Skip to content

Commit f3f8e1b

Browse files
authored
Merge branch 'main' into merge-async-package
2 parents b3264f8 + 16f396f commit f3f8e1b

Some content is hidden

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

86 files changed

+11521
-3
lines changed

.github/labeler.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,21 @@
11
# Configuration for .github/workflows/pull_request_label.yaml.
22

3-
"package-args":
3+
"package:args":
44
- changed-files:
55
- any-glob-to-any-file: 'pkgs/args/**'
66

77
"package:async":
88
- changed-files:
99
- any-glob-to-any-file: 'pkgs/async/**'
10+
11+
"package:convert":
12+
- changed-files:
13+
- any-glob-to-any-file: 'pkgs/convert/**'
14+
15+
"package:crypto":
16+
- changed-files:
17+
- any-glob-to-any-file: 'pkgs/crypto/**'
18+
19+
"package:fixnum":
20+
- changed-files:
21+
- any-glob-to-any-file: 'pkgs/fixnum/**'

.github/workflows/convert.yaml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: package:convert
2+
3+
on:
4+
# Run CI on pushes to the main branch, and on PRs against main.
5+
push:
6+
branches: [ main ]
7+
paths:
8+
- '.github/workflows/convert.yaml'
9+
- 'pkgs/convert/**'
10+
pull_request:
11+
branches: [ main ]
12+
paths:
13+
- '.github/workflows/convert.yaml'
14+
- 'pkgs/convert/**'
15+
schedule:
16+
- cron: "0 0 * * 0"
17+
env:
18+
PUB_ENVIRONMENT: bot.github
19+
20+
defaults:
21+
run:
22+
working-directory: pkgs/convert/
23+
24+
jobs:
25+
# Check code formatting and static analysis on a single OS (linux)
26+
# against Dart dev.
27+
analyze:
28+
runs-on: ubuntu-latest
29+
strategy:
30+
fail-fast: false
31+
matrix:
32+
sdk: [dev]
33+
steps:
34+
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
35+
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
36+
with:
37+
sdk: ${{ matrix.sdk }}
38+
- id: install
39+
name: Install dependencies
40+
run: dart pub get
41+
- name: Check formatting
42+
run: dart format --output=none --set-exit-if-changed .
43+
if: always() && steps.install.outcome == 'success'
44+
- name: Analyze code
45+
run: dart analyze --fatal-infos
46+
if: always() && steps.install.outcome == 'success'
47+
48+
# Run tests on a matrix consisting of two dimensions:
49+
# 1. OS: ubuntu-latest, (macos-latest, windows-latest)
50+
# 2. release sdk: dev
51+
test:
52+
needs: analyze
53+
runs-on: ${{ matrix.os }}
54+
strategy:
55+
fail-fast: false
56+
matrix:
57+
# Add macos-latest and/or windows-latest if relevant for this package.
58+
os: [ubuntu-latest]
59+
sdk: [3.4, dev]
60+
steps:
61+
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
62+
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
63+
with:
64+
sdk: ${{ matrix.sdk }}
65+
- id: install
66+
name: Install dependencies
67+
run: dart pub get
68+
- name: Run VM tests
69+
run: dart test --platform vm
70+
if: always() && steps.install.outcome == 'success'
71+
- name: Run Chrome tests
72+
run: dart test --platform chrome
73+
if: always() && steps.install.outcome == 'success'
74+
- name: Run Chrome tests - wasm
75+
run: dart test --platform chrome --compiler dart2wasm
76+
if: always() && steps.install.outcome == 'success'

.github/workflows/crypto.yaml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: package:crypto
2+
3+
on:
4+
# Run CI on pushes to the main branch, and on PRs against main.
5+
push:
6+
branches: [ main ]
7+
paths:
8+
- '.github/workflows/crypto.yaml'
9+
- 'pkgs/crypto/**'
10+
pull_request:
11+
branches: [ main ]
12+
paths:
13+
- '.github/workflows/crypto.yaml'
14+
- 'pkgs/crypto/**'
15+
schedule:
16+
- cron: "0 0 * * 0"
17+
env:
18+
PUB_ENVIRONMENT: bot.github
19+
20+
defaults:
21+
run:
22+
working-directory: pkgs/crypto/
23+
24+
jobs:
25+
# Check code formatting and static analysis on a single OS (linux)
26+
# against Dart dev.
27+
analyze:
28+
runs-on: ubuntu-latest
29+
strategy:
30+
fail-fast: false
31+
matrix:
32+
sdk: [dev]
33+
steps:
34+
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
35+
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
36+
with:
37+
sdk: ${{ matrix.sdk }}
38+
- id: install
39+
name: Install dependencies
40+
run: dart pub get
41+
- name: Check formatting
42+
run: dart format --output=none --set-exit-if-changed .
43+
if: always() && steps.install.outcome == 'success'
44+
- name: Analyze code
45+
run: dart analyze --fatal-infos
46+
if: always() && steps.install.outcome == 'success'
47+
48+
# Run tests on a matrix consisting of two dimensions:
49+
# 1. OS: ubuntu-latest, (macos-latest, windows-latest)
50+
# 2. release channel: dev
51+
test:
52+
needs: analyze
53+
runs-on: ${{ matrix.os }}
54+
strategy:
55+
fail-fast: false
56+
matrix:
57+
# Add macos-latest and/or windows-latest if relevant for this package.
58+
os: [ubuntu-latest]
59+
sdk: [3.4, dev]
60+
steps:
61+
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
62+
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
63+
with:
64+
sdk: ${{ matrix.sdk }}
65+
- id: install
66+
name: Install dependencies
67+
run: dart pub get
68+
- name: Run VM tests
69+
run: dart test --platform vm
70+
if: always() && steps.install.outcome == 'success'
71+
- name: Run Chrome tests
72+
run: dart test --platform chrome
73+
if: always() && steps.install.outcome == 'success'
74+
- name: Run Chrome tests - wasm
75+
# TODO: investigate why we get hangs when concurrency is > 1
76+
run: dart test --platform chrome --compiler dart2wasm -j 1
77+
if: always() && steps.install.outcome == 'success'

.github/workflows/fixnum.yaml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: package:fixnum
2+
3+
on:
4+
# Run CI on pushes to the main branch, and on PRs against main.
5+
push:
6+
branches: [ main ]
7+
paths:
8+
- '.github/workflows/fixnum.yaml'
9+
- 'pkgs/fixnum/**'
10+
pull_request:
11+
branches: [ main ]
12+
paths:
13+
- '.github/workflows/fixnum.yaml'
14+
- 'pkgs/fixnum/**'
15+
schedule:
16+
- cron: "0 0 * * 0"
17+
env:
18+
PUB_ENVIRONMENT: bot.github
19+
20+
defaults:
21+
run:
22+
working-directory: pkgs/fixnum/
23+
24+
jobs:
25+
# Check code formatting and static analysis on a single OS (linux)
26+
# against Dart dev.
27+
analyze:
28+
runs-on: ubuntu-latest
29+
strategy:
30+
fail-fast: false
31+
matrix:
32+
sdk: [3.1.0, dev]
33+
steps:
34+
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
35+
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
36+
with:
37+
sdk: ${{ matrix.sdk }}
38+
- id: install
39+
name: Install dependencies
40+
run: dart pub get
41+
- name: Check formatting
42+
run: dart format --output=none --set-exit-if-changed .
43+
if: always() && steps.install.outcome == 'success'
44+
- name: Analyze code
45+
run: dart analyze --fatal-infos
46+
if: always() && steps.install.outcome == 'success'
47+
48+
# Run tests on a matrix consisting of two dimensions:
49+
# 1. OS: ubuntu-latest, (macos-latest, windows-latest)
50+
# 2. release channel: dev
51+
test:
52+
needs: analyze
53+
runs-on: ${{ matrix.os }}
54+
strategy:
55+
fail-fast: false
56+
matrix:
57+
# Add macos-latest and/or windows-latest if relevant for this package.
58+
os: [ubuntu-latest]
59+
sdk: [3.1.0, dev]
60+
steps:
61+
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
62+
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
63+
with:
64+
sdk: ${{ matrix.sdk }}
65+
- id: install
66+
name: Install dependencies
67+
run: dart pub get
68+
- name: Run VM tests
69+
run: dart test --platform vm
70+
if: always() && steps.install.outcome == 'success'
71+
- name: Run Chrome tests
72+
run: dart test --platform chrome
73+
if: always() && steps.install.outcome == 'success'

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ This repository is home to various Dart packages under the [dart.dev](https://pu
1010
|---|---|---|
1111
| [args](pkgs/args/) | Library for defining parsers for parsing raw command-line arguments into a set of options and values. | [![pub package](https://img.shields.io/pub/v/args.svg)](https://pub.dev/packages/args) |
1212
| [async](pkgs/async/) | Utility functions and classes related to the 'dart:async' library.| [![pub package](https://img.shields.io/pub/v/async.svg)](https://pub.dev/packages/async) |
13+
| [convert](pkgs/convert/) | Utilities for converting between data representations. | [![pub package](https://img.shields.io/pub/v/convert.svg)](https://pub.dev/packages/convert) |
14+
| [crypto](pkgs/crypto/) | Implementations of SHA, MD5, and HMAC cryptographic functions. | [![pub package](https://img.shields.io/pub/v/crypto.svg)](https://pub.dev/packages/crypto) |
15+
| [fixnum](pkgs/fixnum/) | Library for 32- and 64-bit signed fixed-width integers. | [![pub package](https://img.shields.io/pub/v/fixnum.svg)](https://pub.dev/packages/fixnum) |
1316

1417
## Publishing automation
1518

pkgs/args/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.6.1-wip
2+
3+
* Fix the reporitory URL in `pubspec.yaml`.
4+
15
## 2.6.0
26

37
* Added source argument when throwing a `ArgParserException`.

pkgs/args/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: args
2-
version: 2.6.0
2+
version: 2.6.1-wip
33
description: >-
44
Library for defining parsers for parsing raw command-line arguments into a set
55
of options and values using GNU and POSIX style options.
6-
repository: https://github.com/dart-lang/core/main/pkgs/args
6+
repository: https://github.com/dart-lang/core/tree/main/pkgs/args
77

88
topics:
99
- cli

pkgs/convert/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.dart_tool
2+
.packages
3+
pubspec.lock

pkgs/convert/AUTHORS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Below is a list of people and organizations that have contributed
2+
# to the project. Names should be added to the list like so:
3+
#
4+
# Name/Organization <email address>
5+
6+
Google Inc.

pkgs/convert/CHANGELOG.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
## 3.1.2
2+
3+
- Require Dart 3.4
4+
- Add chunked decoding support (`startChunkedConversion`) for `CodePage`
5+
encodings.
6+
- Upper-cast the return type of the decoder from `List<int>` to `Uint8List`.
7+
- Move to `dart-lang/core` monorepo.
8+
9+
## 3.1.1
10+
11+
- Require Dart 2.18
12+
- Fix a number of comment references.
13+
14+
## 3.1.0
15+
16+
- Add a fixed-pattern DateTime formatter. See
17+
[#210](https://github.com/dart-lang/intl/issues/210) in package:intl.
18+
19+
## 3.0.2
20+
21+
- Fix bug in `CodePage` class. See issue
22+
[#47](https://github.com/dart-lang/convert/issues/47).
23+
24+
## 3.0.1
25+
26+
- Dependency clean-up.
27+
28+
## 3.0.0
29+
30+
- Stable null safety release.
31+
- Added `CodePage` class for single-byte `Encoding` implementations.
32+
33+
## 2.1.1
34+
35+
- Fixed a DDC compilation regression for consumers using the Dart 1.x SDK that
36+
was introduced in `2.1.0`.
37+
38+
## 2.1.0
39+
40+
- Added an `IdentityCodec<T>` which implements `Codec<T,T>` for use as default
41+
value for in functions accepting an optional `Codec` as parameter.
42+
43+
## 2.0.2
44+
45+
- Set max SDK version to `<3.0.0`, and adjust other dependencies.
46+
47+
## 2.0.1
48+
49+
- `PercentEncoder` no longer encodes digits. This follows the specified
50+
behavior.
51+
52+
## 2.0.0
53+
54+
**Note**: No new APIs have been added in 2.0.0. Packages that would use 2.0.0 as
55+
a lower bound should use 1.0.0 instead—for example, `convert: ">=1.0.0 <3.0.0"`.
56+
57+
- `HexDecoder`, `HexEncoder`, `PercentDecoder`, and `PercentEncoder` no longer
58+
extend `ChunkedConverter`.
59+
60+
## 1.1.1
61+
62+
- Fix all strong-mode warnings.
63+
64+
## 1.1.0
65+
66+
- Add `AccumulatorSink`, `ByteAccumulatorSink`, and `StringAccumulatorSink`
67+
classes for providing synchronous access to the output of chunked converters.
68+
69+
## 1.0.1
70+
71+
- Small improvement in percent decoder efficiency.
72+
73+
## 1.0.0
74+
75+
- Initial version

0 commit comments

Comments
 (0)