Skip to content

Commit 94061ca

Browse files
authored
Merge branch 'main' into merge-characters-package
2 parents 762195d + 0237f43 commit 94061ca

File tree

170 files changed

+25799
-3
lines changed

Some content is hidden

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

170 files changed

+25799
-3
lines changed

.github/labeler.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,25 @@
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

7+
"package:async":
8+
- changed-files:
9+
- any-glob-to-any-file: 'pkgs/async/**'
10+
711
"package:characters":
812
- changed-files:
913
- any-glob-to-any-file: 'pkgs/characters/**'
14+
15+
"package:convert":
16+
- changed-files:
17+
- any-glob-to-any-file: 'pkgs/convert/**'
18+
19+
"package:crypto":
20+
- changed-files:
21+
- any-glob-to-any-file: 'pkgs/crypto/**'
22+
23+
"package:fixnum":
24+
- changed-files:
25+
- any-glob-to-any-file: 'pkgs/fixnum/**'

.github/workflows/async.yaml

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

.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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ This repository is home to various Dart packages under the [dart.dev](https://pu
99
| Package | Description | Version |
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) |
12+
| [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) |
1213
| [characters](pkgs/characters/) | String replacement with operations that are Unicode/grapheme cluster aware. | [![pub package](https://img.shields.io/pub/v/characters.svg)](https://pub.dev/packages/characters) |
14+
| [convert](pkgs/convert/) | Utilities for converting between data representations. | [![pub package](https://img.shields.io/pub/v/convert.svg)](https://pub.dev/packages/convert) |
15+
| [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) |
16+
| [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) |
1317

1418
## Publishing automation
1519

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/async/.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# See https://dart.dev/guides/libraries/private-files
2+
3+
.buildlog
4+
.DS_Store
5+
.idea
6+
7+
.dart_tool/
8+
.settings/
9+
build/
10+
pubspec.lock
11+
.packages

pkgs/async/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.

0 commit comments

Comments
 (0)