Skip to content

Commit 1269c3b

Browse files
committed
Merge branch 'main' into heapify
2 parents ac687d8 + 61e6771 commit 1269c3b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+2388
-103
lines changed

.gemini/config.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# A configuration files for the Gemini Code Assist bot.
2+
#
3+
# https://developers.google.com/gemini-code-assist/docs/customize-gemini-behavior-github.
4+
5+
# No poems please.
6+
have_fun: false
7+
8+
code_review:
9+
# Options here are LOW, MEDIUM, HIGH, and CRITICAL. The default is MEDIUM.
10+
comment_severity_threshold: MEDIUM
11+
12+
# Configure the behavior for PR opened events.
13+
pull_request_opened:
14+
# Keep the default of no help message comments when pull requests are opened.
15+
help: false
16+
# This is noisy; disable.
17+
summary: false
18+
# Keep this on for now.
19+
code_review: true

.gemini/styleguide.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# The dart-lang Dart style guide
2+
3+
## Introduction
4+
5+
This style guide outlines the coding conventions for Dart code contributed to
6+
dart-lang repositories. All Dart code should follow the Effective Dart style
7+
guide (https://dart.dev/effective-dart/style).
8+
9+
## Contribution Guidelines
10+
11+
- larger or significant changes should be discussed in an issue before creating
12+
a PR
13+
- contributions to our repos should follow the Dart style guide and use 'dart
14+
format'
15+
- most changes should add an entry to the changelog and may need to rev the
16+
pubspec package version
17+
- changes to packages require corresponding tests

.github/ISSUE_TEMPLATE/lints.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
name: "package:lints"
3+
about: "Create a bug or file a feature request against package:lints."
4+
labels: "package:lints"
5+
---
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: Add an existing lint to the `core` or `recommended` rule set
3+
about: Propose adding an existing lint rule to the `core` or `recommended` rule set.
4+
labels: ["package:lints", "lints-proposal"]
5+
---
6+
7+
Note that this should be used to suggest adding an existing lint to the
8+
package:lints lint sets (core, recommended, and package:flutter_lints). For a
9+
suggestion for a new lint, please file an issue at
10+
https://github.com/dart-lang/sdk.
11+
12+
**Describe the rule you'd like to see added and to what rule set**
13+
14+
Include as much detail as you can.
15+
16+
**Additional context**
17+
18+
Add any other considerations or context here.

.github/labeler.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Configuration for .github/workflows/pull_request_label.yml.
1+
# Configuration for .github/workflows/pull_request_label.yaml.
22

33
'type-infra':
44
- changed-files:
@@ -32,6 +32,10 @@
3232
- changed-files:
3333
- any-glob-to-any-file: 'pkgs/fixnum/**'
3434

35+
'package:lints':
36+
- changed-files:
37+
- any-glob-to-any-file: 'pkgs/lints/**'
38+
3539
'package:logging':
3640
- changed-files:
3741
- any-glob-to-any-file: 'pkgs/logging/**'

.github/workflows/args.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: package:args
2+
permissions: read-all
23

34
on:
45
# Run CI on pushes to the main branch, and on PRs against main.
@@ -14,8 +15,6 @@ on:
1415
- 'pkgs/args/**'
1516
schedule:
1617
- cron: "0 0 * * 0"
17-
env:
18-
PUB_ENVIRONMENT: bot.github
1918

2019
defaults:
2120
run:

.github/workflows/async.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: package:async
2+
permissions: read-all
23

34
on:
45
# Run on PRs and pushes to the default branch.
@@ -15,9 +16,6 @@ on:
1516
schedule:
1617
- cron: "0 0 * * 0"
1718

18-
env:
19-
PUB_ENVIRONMENT: bot.github
20-
2119
defaults:
2220
run:
2321
working-directory: pkgs/async/

.github/workflows/characters.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: package:characters
2+
permissions: read-all
23

34
on:
45
# Run CI on pushes to the main branch, and on PRs against main.
@@ -14,8 +15,6 @@ on:
1415
- 'pkgs/characters/**'
1516
schedule:
1617
- cron: "0 0 * * 0"
17-
env:
18-
PUB_ENVIRONMENT: bot.github
1918

2019
defaults:
2120
run:

.github/workflows/collection.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: package:collection
2+
permissions: read-all
23

34
on:
45
# Run CI on pushes to the main branch, and on PRs against main.
@@ -15,9 +16,6 @@ on:
1516
schedule:
1617
- cron: "0 0 * * 0"
1718

18-
env:
19-
PUB_ENVIRONMENT: bot.github
20-
2119
defaults:
2220
run:
2321
working-directory: pkgs/collection/

.github/workflows/convert.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: package:convert
2+
permissions: read-all
23

34
on:
45
# Run CI on pushes to the main branch, and on PRs against main.
@@ -14,8 +15,6 @@ on:
1415
- 'pkgs/convert/**'
1516
schedule:
1617
- cron: "0 0 * * 0"
17-
env:
18-
PUB_ENVIRONMENT: bot.github
1918

2019
defaults:
2120
run:

.github/workflows/crypto.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: package:crypto
2+
permissions: read-all
23

34
on:
45
# Run CI on pushes to the main branch, and on PRs against main.
@@ -14,8 +15,6 @@ on:
1415
- 'pkgs/crypto/**'
1516
schedule:
1617
- cron: "0 0 * * 0"
17-
env:
18-
PUB_ENVIRONMENT: bot.github
1918

2019
defaults:
2120
run:

.github/workflows/fixnum.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: package:fixnum
2+
permissions: read-all
23

34
on:
45
# Run CI on pushes to the main branch, and on PRs against main.
@@ -14,8 +15,6 @@ on:
1415
- 'pkgs/fixnum/**'
1516
schedule:
1617
- cron: "0 0 * * 0"
17-
env:
18-
PUB_ENVIRONMENT: bot.github
1918

2019
defaults:
2120
run:

.github/workflows/lints.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: package:lints
2+
permissions: read-all
3+
4+
on:
5+
# Run CI on pushes to the main branch, and on PRs against main.
6+
push:
7+
branches: [ main ]
8+
paths:
9+
- '.github/workflows/lints.yaml'
10+
- 'pkgs/lints/**'
11+
pull_request:
12+
branches: [ main ]
13+
paths:
14+
- '.github/workflows/lints.yaml'
15+
- 'pkgs/lints/**'
16+
schedule:
17+
- cron: "0 0 * * 0"
18+
19+
defaults:
20+
run:
21+
working-directory: pkgs/lints/
22+
23+
jobs:
24+
build:
25+
runs-on: ubuntu-latest
26+
strategy:
27+
fail-fast: false
28+
matrix:
29+
sdk: [dev, beta, stable]
30+
31+
steps:
32+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
33+
- uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94
34+
with:
35+
sdk: ${{ matrix.sdk }}
36+
37+
- run: dart pub get
38+
- run: dart format --output=none --set-exit-if-changed .
39+
if: ${{ matrix.sdk == 'stable' }}
40+
- run: dart analyze --fatal-infos
41+
- run: dart tool/validate_lib.dart
42+
- run: dart tool/gen_docs.dart --verify

.github/workflows/logging.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: package:logging
2+
permissions: read-all
23

34
on:
45
# Run CI on pushes to the main branch, and on PRs against main.
@@ -14,8 +15,6 @@ on:
1415
- 'pkgs/logging/**'
1516
schedule:
1617
- cron: "0 0 * * 0"
17-
env:
18-
PUB_ENVIRONMENT: bot.github
1918

2019
defaults:
2120
run:

.github/workflows/os_detect.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: package:os_detect
2+
permissions: read-all
23

34
on:
45
# Run CI on pushes to the main branch, and on PRs against main.
@@ -14,8 +15,6 @@ on:
1415
- 'pkgs/os_detect/**'
1516
schedule:
1617
- cron: "0 0 * * 0"
17-
env:
18-
PUB_ENVIRONMENT: bot.github
1918

2019
defaults:
2120
run:
@@ -69,5 +68,5 @@ jobs:
6968
run: dart test --platform vm
7069
if: always() && steps.install.outcome == 'success'
7170
- name: Run Chrome tests
72-
run: dart test --platform chrome
71+
run: dart test --platform chrome --compiler dart2wasm,dart2js
7372
if: always() && steps.install.outcome == 'success'

.github/workflows/path.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: package:path
2+
permissions: read-all
23

34
on:
45
# Run CI on pushes to the main branch, and on PRs against main.
@@ -14,8 +15,6 @@ on:
1415
- 'pkgs/path/**'
1516
schedule:
1617
- cron: "0 0 * * 0"
17-
env:
18-
PUB_ENVIRONMENT: bot.github
1918

2019
defaults:
2120
run:

.github/workflows/platform.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: package:platform
2+
permissions: read-all
23

34
on:
45
# Run CI on pushes to the main branch, and on PRs against main.
@@ -14,8 +15,6 @@ on:
1415
- 'pkgs/platform/**'
1516
schedule:
1617
- cron: "0 0 * * 0"
17-
env:
18-
PUB_ENVIRONMENT: bot.github
1918

2019
defaults:
2120
run:

.github/workflows/publish.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@ jobs:
1414
uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main
1515
with:
1616
write-comments: false
17-
17+
permissions:
18+
id-token: write
19+
pull-requests: write

.github/workflows/typed_data.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: package:typed_data
2+
permissions: read-all
23

34
on:
45
# Run CI on pushes to the main branch, and on PRs against main.
@@ -14,8 +15,6 @@ on:
1415
- 'pkgs/typed_data/**'
1516
schedule:
1617
- cron: "0 0 * * 0"
17-
env:
18-
PUB_ENVIRONMENT: bot.github
1918

2019
defaults:
2120
run:

README.md

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,33 @@ This repository is home to various Dart packages under the [dart.dev](https://pu
88

99
| Package | Description | Issues | Version |
1010
| --- | --- | --- | --- |
11-
| [args](pkgs/args/) | Library for defining parsers for parsing raw command-line arguments into a set of options and values using GNU and POSIX style options. | [![package issues](https://img.shields.io/badge/package:args-4774bc)](https://github.com/dart-lang/core/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Aargs) | [![pub package](https://img.shields.io/pub/v/args.svg)](https://pub.dev/packages/args) |
12-
| [async](pkgs/async/) | Utility functions and classes related to the 'dart:async' library. | [![package issues](https://img.shields.io/badge/package:async-4774bc)](https://github.com/dart-lang/core/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Aasync) | [![pub package](https://img.shields.io/pub/v/async.svg)](https://pub.dev/packages/async) |
13-
| [characters](pkgs/characters/) | String replacement with operations that are Unicode/grapheme cluster aware. | [![package issues](https://img.shields.io/badge/package:characters-4774bc)](https://github.com/dart-lang/core/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Acharacters) | [![pub package](https://img.shields.io/pub/v/characters.svg)](https://pub.dev/packages/characters) |
14-
| [collection](pkgs/collection/) | Collections and utilities functions and classes related to collections. | [![package issues](https://img.shields.io/badge/package:collection-4774bc)](https://github.com/dart-lang/core/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Acollection) | [![pub package](https://img.shields.io/pub/v/collection.svg)](https://pub.dev/packages/collection) |
15-
| [convert](pkgs/convert/) | Utilities for converting between data representations. Provides a number of Sink, Codec, Decoder, and Encoder types. | [![package issues](https://img.shields.io/badge/package:convert-4774bc)](https://github.com/dart-lang/core/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Aconvert) | [![pub package](https://img.shields.io/pub/v/convert.svg)](https://pub.dev/packages/convert) |
16-
| [crypto](pkgs/crypto/) | Implementations of SHA, MD5, and HMAC cryptographic functions. | [![package issues](https://img.shields.io/badge/package:crypto-4774bc)](https://github.com/dart-lang/core/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Acrypto) | [![pub package](https://img.shields.io/pub/v/crypto.svg)](https://pub.dev/packages/crypto) |
17-
| [fixnum](pkgs/fixnum/) | Library for 32- and 64-bit signed fixed-width integers with consistent behavior between native and JS runtimes. | [![package issues](https://img.shields.io/badge/package:fixnum-4774bc)](https://github.com/dart-lang/core/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Afixnum) | [![pub package](https://img.shields.io/pub/v/fixnum.svg)](https://pub.dev/packages/fixnum) |
18-
| [logging](pkgs/logging/) | Provides APIs for debugging and error logging, similar to loggers in other languages, such as the Closure JS Logger and java.util.logging.Logger. | [![package issues](https://img.shields.io/badge/package:logging-4774bc)](https://github.com/dart-lang/core/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Alogging) | [![pub package](https://img.shields.io/pub/v/logging.svg)](https://pub.dev/packages/logging) |
19-
| [os_detect](pkgs/os_detect/) | Platform independent OS detection. | [![package issues](https://img.shields.io/badge/package:os_detect-4774bc)](https://github.com/dart-lang/core/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Aos_detect) | [![pub package](https://img.shields.io/pub/v/os_detect.svg)](https://pub.dev/packages/os_detect) |
20-
| [path](pkgs/path/) | A string-based path manipulation library. | [![package issues](https://img.shields.io/badge/package:path-4774bc)](https://github.com/dart-lang/core/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Apath) | [![pub package](https://img.shields.io/pub/v/path.svg)](https://pub.dev/packages/path) |
21-
| [platform](pkgs/platform/) | A pluggable, mockable platform information abstraction for Dart. | [![package issues](https://img.shields.io/badge/package:platform-4774bc)](https://github.com/dart-lang/core/issues) | [![pub package](https://img.shields.io/pub/v/platform.svg)](https://pub.dev/packages/platform) |
22-
| [typed_data](pkgs/typed_data/) | Utility functions and classes related to the dart:typed_data library. | [![package issues](https://img.shields.io/badge/package:typed_data-4774bc)](https://github.com/dart-lang/core/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Atyped_data) | [![pub package](https://img.shields.io/pub/v/typed_data.svg)](https://pub.dev/packages/typed_data) |
11+
| [args](pkgs/args/) | Library for defining parsers for parsing raw command-line arguments into a set of options and values using GNU and POSIX style options. | [![issues](https://img.shields.io/badge/issues-4774bc)][args_issues] | [![pub package](https://img.shields.io/pub/v/args.svg)](https://pub.dev/packages/args) |
12+
| [async](pkgs/async/) | Utility functions and classes related to the 'dart:async' library. | [![issues](https://img.shields.io/badge/issues-4774bc)][async_issues] | [![pub package](https://img.shields.io/pub/v/async.svg)](https://pub.dev/packages/async) |
13+
| [characters](pkgs/characters/) | String replacement with operations that are Unicode/grapheme cluster aware. | [![issues](https://img.shields.io/badge/issues-4774bc)][characters_issues] | [![pub package](https://img.shields.io/pub/v/characters.svg)](https://pub.dev/packages/characters) |
14+
| [collection](pkgs/collection/) | Collections and utilities functions and classes related to collections. | [![issues](https://img.shields.io/badge/issues-4774bc)][collection_issues] | [![pub package](https://img.shields.io/pub/v/collection.svg)](https://pub.dev/packages/collection) |
15+
| [convert](pkgs/convert/) | Utilities for converting between data representations. Provides a number of Sink, Codec, Decoder, and Encoder types. | [![issues](https://img.shields.io/badge/issues-4774bc)][convert_issues] | [![pub package](https://img.shields.io/pub/v/convert.svg)](https://pub.dev/packages/convert) |
16+
| [crypto](pkgs/crypto/) | Implementations of SHA, MD5, and HMAC cryptographic functions. | [![issues](https://img.shields.io/badge/issues-4774bc)][crypto_issues] | [![pub package](https://img.shields.io/pub/v/crypto.svg)](https://pub.dev/packages/crypto) |
17+
| [fixnum](pkgs/fixnum/) | Library for 32- and 64-bit signed fixed-width integers with consistent behavior between native and JS runtimes. | [![issues](https://img.shields.io/badge/issues-4774bc)][fixnum_issues] | [![pub package](https://img.shields.io/pub/v/fixnum.svg)](https://pub.dev/packages/fixnum) |
18+
| [lints](pkgs/lints/) | Official Dart lint rules. Defines the 'core' and 'recommended' set of lints suggested by the Dart team. | [![issues](https://img.shields.io/badge/issues-4774bc)][lints_issues] | [![pub package](https://img.shields.io/pub/v/lints.svg)](https://pub.dev/packages/lints) |
19+
| [logging](pkgs/logging/) | Provides APIs for debugging and error logging, similar to loggers in other languages, such as the Closure JS Logger and java.util.logging.Logger. | [![issues](https://img.shields.io/badge/issues-4774bc)][logging_issues] | [![pub package](https://img.shields.io/pub/v/logging.svg)](https://pub.dev/packages/logging) |
20+
| [os_detect](pkgs/os_detect/) | Platform independent OS detection. | [![issues](https://img.shields.io/badge/issues-4774bc)][os_detect_issues] | [![pub package](https://img.shields.io/pub/v/os_detect.svg)](https://pub.dev/packages/os_detect) |
21+
| [path](pkgs/path/) | A string-based path manipulation library. | [![issues](https://img.shields.io/badge/issues-4774bc)][path_issues] | [![pub package](https://img.shields.io/pub/v/path.svg)](https://pub.dev/packages/path) |
22+
| [platform](pkgs/platform/) | A pluggable, mockable platform information abstraction for Dart. | [![issues](https://img.shields.io/badge/issues-4774bc)][platform_issues] | [![pub package](https://img.shields.io/pub/v/platform.svg)](https://pub.dev/packages/platform) |
23+
| [typed_data](pkgs/typed_data/) | Utility functions and classes related to the dart:typed_data library. | [![issues](https://img.shields.io/badge/issues-4774bc)][typed_data_issues] | [![pub package](https://img.shields.io/pub/v/typed_data.svg)](https://pub.dev/packages/typed_data) |
24+
25+
[args_issues]: https://github.com/dart-lang/core/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Aargs
26+
[async_issues]: https://github.com/dart-lang/core/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Aasync
27+
[characters_issues]: https://github.com/dart-lang/core/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Acharacters
28+
[collection_issues]: https://github.com/dart-lang/core/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Acollection
29+
[convert_issues]: https://github.com/dart-lang/core/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Aconvert
30+
[crypto_issues]: https://github.com/dart-lang/core/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Acrypto
31+
[fixnum_issues]: https://github.com/dart-lang/core/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Afixnum
32+
[lints_issues]: https://github.com/dart-lang/core/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Alints
33+
[logging_issues]: https://github.com/dart-lang/core/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Alogging
34+
[os_detect_issues]: https://github.com/dart-lang/core/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Aos_detect
35+
[path_issues]: https://github.com/dart-lang/core/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Apath
36+
[platform_issues]: https://github.com/dart-lang/core/issues
37+
[typed_data_issues]: https://github.com/dart-lang/core/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Atyped_data
2338

2439
## Publishing automation
2540

pkgs/args/CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
## 2.6.1-wip
1+
## 2.7.0
22

3+
* Remove sorting of the `allowedHelp` argument in usage output. Ordering will
4+
depend on key order for the passed `Map`.
35
* Fix the repository URL in `pubspec.yaml`.
46
* Added option `hideNegatedUsage` to `ArgParser.flag()` allowing a flag to be
57
`negatable` without showing it in the usage text.
8+
* Fixed #101, adding check for mandatory when using `.option()`.
69

710
## 2.6.0
811

0 commit comments

Comments
 (0)