diff --git a/app/lib/admin/backend.dart b/app/lib/admin/backend.dart index 38c4e69eb1..5e129578af 100644 --- a/app/lib/admin/backend.dart +++ b/app/lib/admin/backend.dart @@ -520,10 +520,10 @@ class AdminBackend { await taskBackend.trackPackage(packageName); } - /// Handles GET '/api/admin/packages//assigned-tags' + /// Handles `GET '/api/admin/packages//assigned-tags'`. /// /// Note, this API end-point is intentionally locked down even if it doesn't - /// return anything secret. This is because the /admin/ section is only + /// return anything secret. This is because the `/admin/` section is only /// intended to be exposed to administrators. Users can read the assigned-tags /// through API that returns list of package tags. Future handleGetAssignedTags( @@ -541,7 +541,7 @@ class AdminBackend { ); } - /// Handles POST '/api/admin/packages//assigned-tags' + /// Handles `POST '/api/admin/packages//assigned-tags'`. Future handlePostAssignedTags( String packageName, api.PatchAssignedTags body, @@ -586,7 +586,7 @@ class AdminBackend { }); } - /// Handles GET '/api/admin/packages//uploaders' + /// Handles `GET '/api/admin/packages//uploaders'`. /// /// Returns the list of uploaders for a package. Future handleGetPackageUploaders( @@ -620,7 +620,7 @@ class AdminBackend { .toList(); } - /// Handles PUT '/api/admin/packages//uploaders/' + /// Handles `PUT '/api/admin/packages//uploaders/'`. /// /// Returns the list of uploaders for a package. Future handleAddPackageUploader( @@ -645,7 +645,7 @@ class AdminBackend { return await handleGetPackageUploaders(packageName); } - /// Handles DELETE '/api/admin/packages//uploaders/' + /// Handles `DELETE '/api/admin/packages//uploaders/'`. /// /// Returns the list of uploaders for a package. Future handleRemovePackageUploader( diff --git a/app/lib/admin/models.dart b/app/lib/admin/models.dart index 7ef51049b2..e2ebf3aac5 100644 --- a/app/lib/admin/models.dart +++ b/app/lib/admin/models.dart @@ -305,20 +305,23 @@ abstract class ModerationViolation { ]; } -/// Describes the parsed structure of a [ModerationCase.subject] (or the same as URL parameter). +/// Describes the parsed structure of a [ModerationCase.subject] +/// (or the same as URL parameter). class ModerationSubject { /// The kind of moderation as described by [ModerationSubjectKind], one of: - /// - package, - /// - package-version, - /// - publisher, - /// - user. + /// + /// - package + /// - package-version + /// - publisher + /// - user final String kind; /// The local name part of the subject, may be a composite, one of: - /// - , - /// - /, - /// - , - /// - . + /// + /// - `` + /// - `/` + /// - `` + /// - `` final String localName; /// The package name of the subject (if not a publisher, or user). diff --git a/app/lib/frontend/handlers/account.dart b/app/lib/frontend/handlers/account.dart index ea16bfddd2..b248f2bc2c 100644 --- a/app/lib/frontend/handlers/account.dart +++ b/app/lib/frontend/handlers/account.dart @@ -151,7 +151,7 @@ Future invalidateSessionHandler(shelf.Request request) async { ); } -/// Handles GET /consent?id= +/// Handles `GET /consent?id=`. Future consentPageHandler( shelf.Request request, String? consentId) async { final unauthenticatedRs = await checkAuthenticatedPageRequest(request); @@ -184,7 +184,7 @@ Future consentPageHandler( ); } -/// Handles GET /api/account/options/packages/ +/// Handles `GET /api/account/options/packages/`. Future accountPkgOptionsHandler( shelf.Request request, String package) async { checkPackageVersionParams(package); @@ -210,7 +210,7 @@ Future listPackageLikesHandler( return LikedPackagesResponse(likedPackages: packageLikes); } -/// Handles GET /api/account/likes/ +/// Handles `GET /api/account/likes/`. Future getLikePackageHandler( shelf.Request request, String package) async { checkPackageVersionParams(package); @@ -228,7 +228,7 @@ Future getLikePackageHandler( ); } -/// Handles PUT /api/account/likes/ +/// Handles `PUT /api/account/likes/`. Future likePackageHandler( shelf.Request request, String package) async { final authenticatedUser = await requireAuthenticatedWebUser(); @@ -237,7 +237,7 @@ Future likePackageHandler( return PackageLikeResponse(liked: true, package: package, created: l.created); } -/// Handles DELETE /api/account/likes/ +/// Handles `DELETE /api/account/likes/`. Future unlikePackageHandler( shelf.Request request, String package) async { final authenticatedUser = await requireAuthenticatedWebUser(); @@ -246,7 +246,7 @@ Future unlikePackageHandler( return shelf.Response(204); } -/// Handles /api/account/options/publishers/ +/// Handles `/api/account/options/publishers/`. Future accountPublisherOptionsHandler( shelf.Request request, String publisherId) async { checkPublisherIdParam(publisherId); diff --git a/app/lib/frontend/handlers/custom_api.dart b/app/lib/frontend/handlers/custom_api.dart index a70b7fa5c9..25dded9bde 100644 --- a/app/lib/frontend/handlers/custom_api.dart +++ b/app/lib/frontend/handlers/custom_api.dart @@ -33,7 +33,7 @@ import '../../task/backend.dart'; import '../../task/models.dart'; import 'cache_control.dart'; -/// Handles requests for /api/documentation/ +/// Handles requests for `/api/documentation/`. Future apiDocumentationHandler( shelf.Request request, String package) async { checkPackageVersionParams(package); @@ -113,7 +113,7 @@ Future apiPackageNameCompletionDataHandler( }); } -/// Handles request for /api/packages?page= +/// Handles request for `/api/packages?page=`. Future apiPackagesHandler(shelf.Request request) async { final int pageSize = 100; final int page = @@ -194,8 +194,7 @@ Future apiPackagesHandler(shelf.Request request) async { return jsonResponse(data!); } -/// Handles requests for -/// - /api/packages//metrics +/// Handles requests for `/api/packages//metrics`. Future apiPackageMetricsHandler( shelf.Request request, String packageName) async { final packageVersion = request.requestedUri.queryParameters['version']; @@ -211,9 +210,10 @@ Future apiPackageMetricsHandler( return jsonResponse(result); } -/// Handles requests for -// - /api/packages//score -/// - /api/packages//versions//score +/// Handles requests for: +/// +/// - `/api/packages//score` +/// - `/api/packages//versions//score` Future packageVersionScoreHandler( shelf.Request request, String package, {String? version}) async { @@ -471,7 +471,7 @@ Future apiSearchHandler(shelf.Request request) async { return jsonResponse(result, indentJson: requestContext.indentJson); } -/// Handles GET /api/packages//options +/// Handles `GET /api/packages//options`. Future getPackageOptionsHandler( shelf.Request request, String package, @@ -487,7 +487,7 @@ Future getPackageOptionsHandler( ); } -/// Handles PUT /api/packages//options +/// Handles `PUT /api/packages//options`. Future putPackageOptionsHandler( shelf.Request request, String package, @@ -497,7 +497,7 @@ Future putPackageOptionsHandler( return await getPackageOptionsHandler(request, package); } -/// Handles GET /api/packages//versions//options +/// Handles `GET /api/packages//versions//options`. Future getVersionOptionsHandler( shelf.Request request, String package, @@ -513,7 +513,7 @@ Future getVersionOptionsHandler( ); } -/// Handles PUT /api/packages//versions//options +/// Handles `PUT /api/packages//versions//options`. Future putVersionOptionsHandler( shelf.Request request, String package, diff --git a/app/lib/frontend/handlers/documentation.dart b/app/lib/frontend/handlers/documentation.dart index 1a96248ff8..9d99897cc9 100644 --- a/app/lib/frontend/handlers/documentation.dart +++ b/app/lib/frontend/handlers/documentation.dart @@ -20,7 +20,8 @@ import '../../shared/handlers.dart'; import '../../shared/urls.dart'; /// Handles requests for: -/// - /documentation// +/// +/// - `/documentation//` Future documentationHandler(shelf.Request request) async { final docFilePath = parseRequestUri(request.requestedUri); if (docFilePath == null) { @@ -93,7 +94,7 @@ class DocFilePath { DocFilePath(this.package, this.version, this.path); } -/// Parses the /documentation/// URL +/// Parses the `/documentation///` URL /// and returns the parsed structure. DocFilePath? parseRequestUri(Uri uri) { final int segmentCount = uri.pathSegments.length; diff --git a/app/lib/frontend/handlers/package.dart b/app/lib/frontend/handlers/package.dart index e73250197a..a7dcf8bed3 100644 --- a/app/lib/frontend/handlers/package.dart +++ b/app/lib/frontend/handlers/package.dart @@ -51,7 +51,7 @@ Map packageDebugStats() { }; } -/// Handles requests for /packages/ - JSON +/// Handles requests for `/packages/`, returning JSON. Future packageShowHandlerJson( shelf.Request request, String packageName) async { checkPackageVersionParams(packageName); @@ -70,7 +70,7 @@ Future packageShowHandlerJson( return jsonResponse(json); } -/// Handles requests for /packages//versions +/// Handles requests for `/packages//versions`. Future packageVersionsListHandler( shelf.Request request, String packageName) async { return _handlePackagePage( @@ -103,8 +103,10 @@ Future packageVersionsListHandler( ); } -/// Handles requests for /packages//changelog -/// Handles requests for /packages//versions//changelog +/// Handles requests for: +/// +/// - `/packages//changelog` +/// - `/packages//versions//changelog` Future packageChangelogHandler( shelf.Request request, String packageName, {String? versionName}) async { @@ -125,8 +127,10 @@ Future packageChangelogHandler( ); } -/// Handles requests for /packages//example -/// Handles requests for /packages//versions//example +/// Handles requests for: +/// +/// - `/packages//example` +/// - `/packages//versions//example` Future packageExampleHandler( shelf.Request request, String packageName, {String? versionName}) async { @@ -147,8 +151,10 @@ Future packageExampleHandler( ); } -/// Handles requests for /packages//install -/// Handles requests for /packages//versions//install +/// Handles requests for: +/// +/// - `/packages//install` +/// - `/packages//versions//install` Future packageInstallHandler( shelf.Request request, String packageName, {String? versionName}) async { @@ -163,8 +169,10 @@ Future packageInstallHandler( ); } -/// Handles requests for /packages//license -/// Handles requests for /packages//versions//license +/// Handles requests for: +/// +/// - `/packages//license` +/// - `/packages//versions//license` Future packageLicenseHandler( shelf.Request request, String packageName, {String? versionName}) async { @@ -179,8 +187,10 @@ Future packageLicenseHandler( ); } -/// Handles requests for /packages//pubspec -/// Handles requests for /packages//versions//pubspec +/// Handles requests for: +/// +/// - `/packages//pubspec` +/// - `/packages//versions//pubspec` Future packagePubspecHandler( shelf.Request request, String packageName, {String? versionName}) async { @@ -195,8 +205,10 @@ Future packagePubspecHandler( ); } -/// Handles requests for /packages//score -/// Handles requests for /packages//versions//score +/// Handles requests for: +/// +/// - `/packages//score` +/// - `/packages//versions//score` Future packageScoreHandler( shelf.Request request, String packageName, {String? versionName}) async { @@ -211,8 +223,10 @@ Future packageScoreHandler( ); } -/// Handles requests for /packages//score/log.txt -/// Handles requests for /packages//versions//score/log.txt +/// Handles requests for: +/// +/// - `/packages//score/log.txt` +/// - `/packages//versions//score/log.txt` Future packageScoreLogTxtHandler( shelf.Request request, String package, { @@ -239,8 +253,10 @@ Future packageScoreLogTxtHandler( ); } -/// Handles requests for /packages/ -/// Handles requests for /packages//versions/ +/// Handles requests for: +/// +/// - `/packages/` +/// - `/packages//versions/` Future packageVersionHandlerHtml( shelf.Request request, String packageName, {String? versionName}) async { @@ -344,8 +360,10 @@ Future _canonicalPackageName(String name) async { return name; } -/// Handles requests for /packages//admin -/// Handles requests for /packages//versions//admin +/// Handles requests for: +/// +/// - `/packages//admin` +/// - `/packages//versions//admin` Future packageAdminHandler( shelf.Request request, String packageName) async { return _handlePackagePage( @@ -381,7 +399,7 @@ Future packageAdminHandler( ); } -/// Handles requests for /packages//activity-log +/// Handles requests for `/packages//activity-log` Future packageActivityLogHandler( shelf.Request request, String packageName) async { return _handlePackagePage( @@ -492,7 +510,7 @@ Future loadPackagePageData( ); } -/// Handles /api/packages/ requests. +/// Handles requests for `/api/packages/`. Future listVersionsHandler( shelf.Request request, String package) async { checkPackageVersionParams(package); @@ -515,7 +533,7 @@ Future listVersionsHandler( ); } -/// Handles requests for /packages//publisher +/// Handles requests for `/packages//publisher`. Future packagePublisherHandler( shelf.Request request, String package) async { checkPackageVersionParams(package); @@ -527,7 +545,7 @@ Future packagePublisherHandler( return redirectResponse(redirectUrl); } -/// Handles GET /api/packages//advisories +/// Handles requests for `/api/packages//advisories`. Future listAdvisoriesForPackage( shelf.Request request, String packageName) async { InvalidInputException.checkPackageName(packageName); diff --git a/app/lib/frontend/handlers/publisher.dart b/app/lib/frontend/handlers/publisher.dart index 9169d254d7..09dbcad1c2 100644 --- a/app/lib/frontend/handlers/publisher.dart +++ b/app/lib/frontend/handlers/publisher.dart @@ -54,14 +54,14 @@ Future publisherListHandler(shelf.Request request) async { return htmlResponse(content); } -/// Handles requests for GET /publishers/ +/// Handles requests for `GET /publishers/`. Future publisherPageHandler( shelf.Request request, String publisherId) async { checkPublisherIdParam(publisherId); return redirectResponse(urls.publisherPackagesUrl(publisherId)); } -/// Handles requests for GET /publishers//packages [?q=...] +/// Handles requests for `GET /publishers//packages [?q=...]`. Future publisherPackagesPageHandler( shelf.Request request, String publisherId, { @@ -143,7 +143,7 @@ Future publisherPackagesPageHandler( return htmlResponse(html); } -/// Handles requests for GET /publishers//admin +/// Handles requests for `GET /publishers//admin`. Future publisherAdminPageHandler( shelf.Request request, String publisherId) async { final publisher = await publisherBackend.getPublisher(publisherId); @@ -171,7 +171,7 @@ Future publisherAdminPageHandler( )); } -/// Handles requests for GET /publishers//activity-log +/// Handles requests for `GET /publishers//activity-log`. Future publisherActivityLogPageHandler( shelf.Request request, String publisherId) async { final publisher = await publisherBackend.getPublisher(publisherId); diff --git a/app/lib/frontend/static_files.dart b/app/lib/frontend/static_files.dart index 7a15299799..6d5fa749ab 100644 --- a/app/lib/frontend/static_files.dart +++ b/app/lib/frontend/static_files.dart @@ -384,9 +384,10 @@ Future updateWebCssBuild() async { } /// Parses the static resource URL and returns the parsed hash values. +/// /// It can parse the following formats: -/// - /static//path/to/resource -/// - /static/path/to/resource?hash= +/// - `/static//path/to/resource` +/// - `/static/path/to/resource?hash=` /// /// TODO: remove after we no longer use url-hash class ParsedStaticUrl { diff --git a/app/lib/package/api_export/exported_api.dart b/app/lib/package/api_export/exported_api.dart index fd4448239d..a071f3dfce 100644 --- a/app/lib/package/api_export/exported_api.dart +++ b/app/lib/package/api_export/exported_api.dart @@ -36,13 +36,13 @@ const _minGarbageAge = Duration(hours: 3); /// * Deletion of all files related to a package. /// * Garbage collection of unknown package entries. /// * Maintaining two prefixes with files in the bucket. -/// * "latest" (that all runtimeVersions write to) -/// * "" (that only this runtimeVersion writes to) +/// * `"latest"` (that all runtimeVersions write to) +/// * `""` (that only this [runtimeVersion] writes to) /// * Garbage collecting old prefixes. /// * Limit concurrency of operations. /// -/// All writes to the bucket containing the exported API should go through this -/// interface. +/// All writes to the bucket containing the exported API should +/// go through this interface. final class ExportedApi { final Pool _pool = Pool(80); final Storage _storage; diff --git a/app/lib/package/models.dart b/app/lib/package/models.dart index ed92bae662..451ba717d3 100644 --- a/app/lib/package/models.dart +++ b/app/lib/package/models.dart @@ -764,7 +764,7 @@ abstract class AssetKind { /// A derived entity that holds extracted asset of a [PackageVersion] archive. @db.Kind(name: 'PackageVersionAsset', idType: db.IdType.String) class PackageVersionAsset extends db.ExpandoModel { - /// ID format: an URI path with // + /// ID format: an URI path with `//` String get assetId => id as String; /// The name of the package. diff --git a/app/lib/package/screenshots/backend.dart b/app/lib/package/screenshots/backend.dart index 4462e2482e..0562ab21d0 100644 --- a/app/lib/package/screenshots/backend.dart +++ b/app/lib/package/screenshots/backend.dart @@ -35,11 +35,18 @@ class ImageStorage { ]; /// Uploads an image to image storage, at - /// '//'. + /// `//`. /// /// Throws an [ArgumentError] if the provided image file is not one of - /// the following supported MIME types : image/apng, image/avif, image/gif, - /// image/jpeg, image/png, image/svg+xml, image/webp. + /// the following supported MIME types: + /// + /// - `image/apng` + /// - `image/avif` + /// - `image/gif` + /// - `image/jpeg` + /// - `image/png` + /// - `image/svg+xml` + /// - `image/webp` Future upload( String package, String version, diff --git a/app/lib/package/upload_signer_service.dart b/app/lib/package/upload_signer_service.dart index 2e20417087..ddf2caf6a7 100644 --- a/app/lib/package/upload_signer_service.dart +++ b/app/lib/package/upload_signer_service.dart @@ -42,7 +42,7 @@ Future createUploadSigner(http.Client authClient) async { /// Since the GCS bucket is not writable by third parties we will make a signed /// upload URL and give this to the client. The client can then for a given time /// period use the signed upload URL to upload the data directly to -/// gs:///. The expiration date, acl, content-length-range are +/// `gs:///`. The expiration date, acl, content-length-range are /// determined by the server. /// /// See here for a broader explanation: diff --git a/app/lib/service/openid/gcp_openid.dart b/app/lib/service/openid/gcp_openid.dart index 36bd0d65f8..a23e336ed4 100644 --- a/app/lib/service/openid/gcp_openid.dart +++ b/app/lib/service/openid/gcp_openid.dart @@ -25,7 +25,8 @@ Future fetchGoogleCloudOpenIdData() async { /// Parsed payload values Google Cloud Service account sends with the token. class GcpServiceAccountJwtPayload { - /// email of the service account (i.e. @cloudbuild.gserviceaccount.com) + /// Email of the service account, in the format: + /// `@cloudbuild.gserviceaccount.com`. final String email; /// focus obfuscated gaia id for the service account (aka. `OAuthUserId`) diff --git a/app/lib/task/backend.dart b/app/lib/task/backend.dart index 87e91001b3..501c5f873a 100644 --- a/app/lib/task/backend.dart +++ b/app/lib/task/backend.dart @@ -1034,9 +1034,9 @@ class TaskBackend { /// Backfills the tracking state and then processes in all packages with /// calling [processPayload]. - /// - /// TODO: rework the callback method into Future Function(String package, String version); - /// to handle the upload boilerplate inside this method. + // TODO: rework the callback method into + // Future Function(String package, String version); + // to handle the upload boilerplate inside this method. Future backfillAndProcessAllPackages( Future Function(Payload payload) processPayload, ) async { diff --git a/app/pubspec.yaml b/app/pubspec.yaml index 6903e28682..1f5f99d6c4 100644 --- a/app/pubspec.yaml +++ b/app/pubspec.yaml @@ -1,7 +1,7 @@ name: pub_dev description: The pub.dartlang.org website. environment: - sdk: '^3.5.0' + sdk: ^3.6.0 resolution: workspace dependencies: _popularity: diff --git a/pkg/_popularity/pubspec.yaml b/pkg/_popularity/pubspec.yaml index 275f3b87b1..812245a824 100644 --- a/pkg/_popularity/pubspec.yaml +++ b/pkg/_popularity/pubspec.yaml @@ -2,7 +2,7 @@ name: _popularity publish_to: none environment: - sdk: '^3.5.0' + sdk: ^3.6.0 resolution: workspace dependencies: diff --git a/pkg/_pub_shared/lib/data/advisories_api.dart b/pkg/_pub_shared/lib/data/advisories_api.dart index 87179cdbd2..472b41cfc5 100644 --- a/pkg/_pub_shared/lib/data/advisories_api.dart +++ b/pkg/_pub_shared/lib/data/advisories_api.dart @@ -35,8 +35,9 @@ class OSV { /// The unique identifier for this particular vulnerability. /// - /// It is a string of the format -, where DB names the database - /// and ENTRYID is in the format used by the database. + /// It is a string of the format `-`, where + /// `DB` names the database and + /// `ENTRYID` is in the format used by the database. /// For example: “OSV-2020-111”, “CVE-2021-3114”, or “GHSA-vp9c-fpxx-744v”. String id; diff --git a/pkg/_pub_shared/lib/data/task_payload.dart b/pkg/_pub_shared/lib/data/task_payload.dart index 3d3bbbbe46..5d9a2a67d8 100644 --- a/pkg/_pub_shared/lib/data/task_payload.dart +++ b/pkg/_pub_shared/lib/data/task_payload.dart @@ -24,7 +24,7 @@ final class Payload { /// * `POST /api/tasks///finished`. /// /// The POST requests must be authenticated with: - /// authorization: bearer + /// `authorization: bearer ` /// Using the `` matching the `` being reported. final String pubHostedUrl; diff --git a/pkg/_pub_shared/pubspec.yaml b/pkg/_pub_shared/pubspec.yaml index 1ace0b2a88..bcd4185b36 100644 --- a/pkg/_pub_shared/pubspec.yaml +++ b/pkg/_pub_shared/pubspec.yaml @@ -2,7 +2,7 @@ name: _pub_shared description: Shared data between the pub server and web_app client. publish_to: none environment: - sdk: '^3.5.0' + sdk: ^3.6.0 resolution: workspace dependencies: diff --git a/pkg/api_builder/pubspec.yaml b/pkg/api_builder/pubspec.yaml index a480314c03..ff816e31cb 100644 --- a/pkg/api_builder/pubspec.yaml +++ b/pkg/api_builder/pubspec.yaml @@ -3,7 +3,7 @@ description: Builder for generating API routers. publish_to: none environment: - sdk: '^3.5.0' + sdk: ^3.6.0 resolution: workspace dependencies: diff --git a/pkg/code_coverage/pubspec.yaml b/pkg/code_coverage/pubspec.yaml index aeef3a0afb..49d9b3316c 100644 --- a/pkg/code_coverage/pubspec.yaml +++ b/pkg/code_coverage/pubspec.yaml @@ -2,7 +2,7 @@ name: code_coverage publish_to: none # don't publish yet description: Code coverage tools. environment: - sdk: '^3.5.0' + sdk: ^3.6.0 resolution: workspace dependencies: diff --git a/pkg/fake_gcloud/pubspec.yaml b/pkg/fake_gcloud/pubspec.yaml index 845a829f22..0affdd8d6f 100644 --- a/pkg/fake_gcloud/pubspec.yaml +++ b/pkg/fake_gcloud/pubspec.yaml @@ -3,7 +3,7 @@ publish_to: none # don't publish yet description: Fake, in-memory implementation of `package:gcloud` interfaces. environment: - sdk: '^3.5.0' + sdk: ^3.6.0 resolution: workspace dependencies: diff --git a/pkg/indexed_blob/pubspec.yaml b/pkg/indexed_blob/pubspec.yaml index 8ea90d240c..3d6a4bead8 100644 --- a/pkg/indexed_blob/pubspec.yaml +++ b/pkg/indexed_blob/pubspec.yaml @@ -1,7 +1,7 @@ name: indexed_blob publish_to: none environment: - sdk: '^3.5.0' + sdk: ^3.6.0 resolution: workspace dependencies: diff --git a/pkg/pub_integration/pubspec.yaml b/pkg/pub_integration/pubspec.yaml index 48ba0a3892..c72833957e 100644 --- a/pkg/pub_integration/pubspec.yaml +++ b/pkg/pub_integration/pubspec.yaml @@ -3,7 +3,7 @@ publish_to: none # don't publish yet description: Tools for integration tests. environment: - sdk: '^3.5.0' + sdk: ^3.6.0 resolution: workspace dependencies: diff --git a/pkg/pub_package_reader/pubspec.yaml b/pkg/pub_package_reader/pubspec.yaml index 4f9fadf81e..bb23977782 100644 --- a/pkg/pub_package_reader/pubspec.yaml +++ b/pkg/pub_package_reader/pubspec.yaml @@ -3,7 +3,7 @@ description: Scans the package archive, extracts its main content and checks for publish_to: none environment: - sdk: '^3.5.0' + sdk: ^3.6.0 resolution: workspace dependencies: diff --git a/pkg/pub_worker/pubspec.yaml b/pkg/pub_worker/pubspec.yaml index 569e4aaced..5e62f63682 100644 --- a/pkg/pub_worker/pubspec.yaml +++ b/pkg/pub_worker/pubspec.yaml @@ -3,7 +3,7 @@ description: Worker for pana and dartdoc analysis for pub.dev publish_to: none environment: - sdk: '^3.5.0' + sdk: ^3.6.0 resolution: workspace dependencies: diff --git a/pkg/web_app/lib/src/admin_pages.dart b/pkg/web_app/lib/src/admin_pages.dart index 26a64c4edf..a158704d25 100644 --- a/pkg/web_app/lib/src/admin_pages.dart +++ b/pkg/web_app/lib/src/admin_pages.dart @@ -74,7 +74,7 @@ void _initGenericForm() { } } -/// Active on /packages//admin page. +/// Active on `/packages//admin` page. class _PkgAdminWidget { Element? _setPublisherInput; Element? _setPublisherButton; @@ -426,7 +426,7 @@ class _CreatePublisherWidget { } } -/// Active on the /publishers//admin page. +/// Active on the `/publishers//admin` page. class _PublisherAdminWidget { Element? _updateButton; TextAreaElement? _descriptionTextArea; diff --git a/pkg/web_app/pubspec.yaml b/pkg/web_app/pubspec.yaml index fc13d30722..c7df0355fb 100644 --- a/pkg/web_app/pubspec.yaml +++ b/pkg/web_app/pubspec.yaml @@ -2,7 +2,7 @@ name: web_app publish_to: none environment: - sdk: '^3.5.0' + sdk: ^3.6.0 resolution: workspace dependencies: diff --git a/pkg/web_css/pubspec.yaml b/pkg/web_css/pubspec.yaml index d008ce8c16..c0c64828b6 100644 --- a/pkg/web_css/pubspec.yaml +++ b/pkg/web_css/pubspec.yaml @@ -2,7 +2,7 @@ name: web_css publish_to: none environment: - sdk: '^3.5.0' + sdk: ^3.6.0 resolution: workspace dependencies: diff --git a/pubspec.lock b/pubspec.lock index c62d98b48c..5ed8eb6fe5 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -482,10 +482,10 @@ packages: dependency: "direct dev" description: name: lints - sha256: "3315600f3fb3b135be672bf4a178c55f274bebe368325ae18462c89ac1e3b413" + sha256: "4a16b3f03741e1252fda5de3ce712666d010ba2122f8e912c94f9f7b90e1a4c3" url: "https://pub.dev" source: hosted - version: "5.0.0" + version: "5.1.0" logging: dependency: transitive description: @@ -1015,4 +1015,4 @@ packages: source: hosted version: "2.2.1" sdks: - dart: ">=3.5.0 <4.0.0" + dart: ">=3.6.0 <4.0.0" diff --git a/pubspec.yaml b/pubspec.yaml index a491c5401f..9b9c27ab1a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: workspace environment: - sdk: '^3.5.0' + sdk: ^3.6.0 workspace: - app/ @@ -17,5 +17,5 @@ workspace: - pkg/pub_package_reader dev_dependencies: - lints: ^5.0.0 - mono_repo: ^6.6.1 + lints: ^5.1.0 + mono_repo: ^6.6.2 diff --git a/tool/pub_get_offline.dart b/tool/pub_get_offline.dart index c6260b6f11..82286222c2 100644 --- a/tool/pub_get_offline.dart +++ b/tool/pub_get_offline.dart @@ -56,7 +56,8 @@ Future main(List args) async { print(pr.stderr); } -/// Returns the map of : pairs from the pubspec.lock file. +/// Returns the map of `:` pairs from the `pubspec.lock` file. +/// /// Only hosted dependencies are included in the result map. Map _parsePubspecLockSync(File file) { final versions = {};