Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge package:package_config #1209

Merged
merged 203 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
203 commits
Select commit Hold shift + click to select a range
fa36860
Initial template commit.
pq May 13, 2015
0ede819
Update README.md
pq May 13, 2015
8aac6f1
Initial parser port.
pq May 13, 2015
a1a4f43
Parser fixes.
pq May 13, 2015
8dc4c7c
Backed out path normalization.
pq May 13, 2015
4223760
Backed out path normalization.
pq May 13, 2015
9abb760
Fixed path normalization.
pq May 14, 2015
f26cd6f
Merge pull request dart-lang/package_config#1 from dart-lang/initial_…
pq May 14, 2015
fd35e58
Fixed path normalization.
pq May 14, 2015
9f9afc2
Merge pull request dart-lang/package_config#3 from dart-lang/normaliz…
pq May 14, 2015
a13bf81
SDK constraint bump to pickup Uri.normalizePath().
pq May 14, 2015
78c0283
Merge pull request dart-lang/package_config#4 from dart-lang/sdk_cons…
pq May 14, 2015
1f27fad
Added .packages, packages/ discovery.
lrhn May 22, 2015
2cb76b9
Add more tests
lrhn May 26, 2015
f3bbc02
Badge update. (Fix dart-lang/package_config#7.)
pq May 26, 2015
45aa4d5
Travis badge teak (point to master).
pq May 26, 2015
3c2c5f5
Update travis.sh
pq May 27, 2015
5d5d0ed
Merge pull request dart-lang/package_config#8 from dart-lang/build_fix
pq May 27, 2015
385d634
Build fix. [TBR] (Fix dart-lang/package_config#9)
pq May 27, 2015
49459e7
Merge pull request dart-lang/package_config#10 from dart-lang/iterabl…
pq May 27, 2015
fd1d37d
Version bump.
pq May 28, 2015
860fa65
Constraint cleanup.
pq May 28, 2015
36ec1a9
Merge pull request dart-lang/package_config#11 from dart-lang/bump_to…
pq May 28, 2015
2e49f23
Package badge.
pq May 28, 2015
58cc2fe
Widen http version constraint.
pq May 28, 2015
f043937
Update pubspec.yaml
pq May 28, 2015
cddbf5b
Merge pull request dart-lang/package_config#12 from dart-lang/http_ve…
pq May 28, 2015
ffabb77
Inline normalizePath to make observatory happy.
pq May 28, 2015
a7722c1
Version bump.
pq May 28, 2015
20a3ff0
Merge pull request dart-lang/package_config#13 from dart-lang/normali…
pq May 28, 2015
de64d3d
Don't use Uri.directory
harryterkelsen May 28, 2015
ba38ca0
Merge pull request dart-lang/package_config#14 from hterkelsen/no_dir…
hterkelsen May 28, 2015
95ebf31
Allow "_" as the first char in a package name
harryterkelsen May 29, 2015
97b17a1
Merge pull request dart-lang/package_config#16 from dart-lang/underscore
lrhn May 29, 2015
8fee1b4
Bump version to 0.0.2+4
harryterkelsen May 29, 2015
8de7c10
Separate out VM dependencies.
harryterkelsen May 29, 2015
b3a31b6
Remove dependency on http package
harryterkelsen Jun 4, 2015
53cf751
Initial approach to discovering package resolution for directory tree.
lrhn Jun 10, 2015
3fcadf7
Add functions to help with --packages/--package-root command line par…
lrhn Jun 10, 2015
4eace89
Tweak comments added by `write` function on packages_file.dart.
lrhn Jun 10, 2015
3f171c5
Make tests pass
sigmundch Jun 16, 2015
ca0681f
Update to new syntax.
lrhn Jun 24, 2015
3b11c03
Build fixes [TBR].
pq Jun 24, 2015
c1ea5db
Merge pull request dart-lang/package_config#25 from dart-lang/build_f…
pq Jun 24, 2015
8110c7a
Version bump.
pq Jun 24, 2015
9d90594
Merge pull request dart-lang/package_config#26 from dart-lang/v_bump
pq Jun 24, 2015
3351876
Don't allow package:-URIs as package locations when creating .package…
lrhn Jul 13, 2015
5bd94be
remove checked-in pubspec.lock and ignore .packages
kevmoo Aug 14, 2015
de593e0
Merge pull request dart-lang/package_config#30 from dart-lang/kevmoo-…
pq Aug 17, 2015
56cefde
Invalid test cleanup (parse_test).
pq Aug 18, 2015
80e6033
Merge pull request dart-lang/package_config#31 from dart-lang/parse_t…
pq Aug 18, 2015
c73974c
Static warning fix.
pq Aug 18, 2015
8adda24
Merge pull request dart-lang/package_config#32 from dart-lang/warning…
pq Aug 18, 2015
57e55d1
Add slash to package dir URI after resolving reference against base.
lrhn Aug 20, 2015
24e3e0c
Update version number before publishing.
lrhn Aug 20, 2015
ba56d66
Go SSL
sethladd Sep 16, 2015
469c223
dartfmt
kevmoo May 4, 2016
4cd7dfb
strong-mode clean
kevmoo May 4, 2016
019debf
cleanup gitignore
kevmoo May 4, 2016
517945a
Merge pull request dart-lang/package_config#36 from dart-lang/tweaks
pq May 4, 2016
52f15c0
More strong-mode fixes
pq May 4, 2016
0e70668
Cache packageName to base Uri mapping.
scheglov Jun 8, 2016
65b68c2
`0.1.5` CHANGELOG update pre-publish.
pq Jun 9, 2016
08cc626
Bump `package_config` to 1.0.0.
pq Jun 14, 2016
afcf0d0
Remove space that causes link not to render on pub.dartlang.org.
DanTup Aug 16, 2016
89cab6a
Merge pull request dart-lang/package_config#38 from DanTup/patch-1
lrhn Aug 16, 2016
fe0d59a
Some minor changes:
devoncarew Sep 2, 2016
520ade1
Fix write to sink after close in test code.
lrhn May 4, 2017
e7805ea
Update SDK constraint to be 2.0.0 dev friendly.
pq Jul 19, 2017
4160a04
Update CHANGELOG.md
pq Jul 19, 2017
9d1c4cc
Rename .analysis_options to analysis_options.yaml
pq Jul 19, 2017
8abb287
Merge pull request dart-lang/package_config#41 from dart-lang/pq-patch-1
pq Jul 19, 2017
5312c5e
Make trusty default distro explicit.
pq Aug 3, 2017
1af0452
Merge pull request dart-lang/package_config#42 from dart-lang/trusty
pq Aug 4, 2017
ac2c072
Stop using deprecated pkg/test APIs - throw an HttpException
kevmoo Sep 22, 2017
f0823a1
Use travis tasks
kevmoo Sep 22, 2017
25cf818
Remove unneeded SDK constraint
kevmoo Sep 22, 2017
f37ecac
dartfmt
kevmoo Sep 22, 2017
cae7ab5
Prepare for release
kevmoo Sep 22, 2017
0480257
Update .gitignore to new `dart_tool` pub cache
pq Mar 10, 2018
589e7f2
Update .gitignore
pq Mar 11, 2018
7666429
Update .gitignore
pq Mar 12, 2018
f097556
Merge pull request dart-lang/package_config#45 from dart-lang/dart_tool
pq Mar 12, 2018
c15609e
core api use migrations
pq Jun 21, 2018
af8a1e1
Merge pull request dart-lang/package_config#46 from dart-lang/core_ap…
pq Jun 21, 2018
0ef6277
dart2
pq Jun 21, 2018
8785d41
Update .travis.yml
pq Jun 21, 2018
428cae4
Merge pull request dart-lang/package_config#47 from dart-lang/dart2
pq Jun 21, 2018
ae24ecb
Remove `strong`.
pq Jul 2, 2018
fd80221
Merge pull request dart-lang/package_config#48 from dart-lang/remove_…
pq Jul 2, 2018
5e14a44
bump sdk constraint to 3.0.0
pq Jul 14, 2018
ecb9015
Merge pull request dart-lang/package_config#49 from dart-lang/sdk_3
pq Jul 16, 2018
cb0b2b1
misc: fix usage of deprecated SDK constants (dart-lang/package_config…
kevmoo Jul 18, 2018
2c3ab9e
Fix missing_return violation newly enforced in Dart ~2.3.2-dev.0.1
srawlins May 23, 2019
207f727
Merge pull request dart-lang/package_config#51 from srawlins/missing-…
pq May 24, 2019
393f6d5
Delete codereview.settings
kevmoo Aug 1, 2019
62c12f2
Add support for default package and metadata. (dart-lang/package_conf…
lrhn Aug 16, 2019
95dada2
Add .vscode/ to .gitignore.
lrhn Aug 16, 2019
50a840d
Readd .gitignore after deleting it.
lrhn Aug 16, 2019
375e28c
Make version number ready for release.
lrhn Aug 16, 2019
8e0739f
Add support for writing defaultPackageName (dart-lang/package_config#54)
jonasfj Sep 2, 2019
fc6f50e
Fix trailing slash logic when writing .packages (dart-lang/package_co…
jonasfj Sep 2, 2019
c0466fe
Version 2.0.0 supporting package_config.json (dart-lang/package_confi…
lrhn Dec 20, 2019
7620e6b
Further tweaks on the API. (dart-lang/package_config#57)
lrhn Jan 27, 2020
db13ed8
Prepare release of package_config 2.0.0.
lrhn Jan 27, 2020
9bb0203
Prepare release of package_config 2.0.0.
lrhn Jan 27, 2020
86f3c52
Make error handling optionally more permissive. (dart-lang/package_co…
lrhn Feb 11, 2020
917abca
Fix doc and bug in util.dart
lrhn Feb 11, 2020
0117f25
Support the new package_config.json file format.
lrhn Feb 21, 2020
af58162
Tweak readme (dart-lang/package_config#69)
kevmoo Feb 26, 2020
b69e8ac
Remove 1.2.0 from changelog.
lrhn Feb 26, 2020
267c75a
Remove pubspec author, fix URL in readme (dart-lang/package_config#71)
kevmoo Feb 26, 2020
45477a6
Add missing dependency on package:path.
lrhn Feb 26, 2020
48ab508
Add another missing dependency.
lrhn Feb 26, 2020
6c4b149
Set version to 1.9.0 (no -dev) for release.
lrhn Feb 26, 2020
6d72904
move io utils to their own library, release 1.9.1 (dart-lang/package_…
jakemac53 Feb 26, 2020
76d2d33
Fix reference to pedantic lints (dart-lang/package_config#73)
kevmoo Feb 26, 2020
c1b6ac1
Fix version constraint on pkg:pedantic
kevmoo Feb 26, 2020
c886dde
Change to only look for package_config.json if asked for .packages by…
lrhn Mar 12, 2020
9caf0c1
Make `.packages` files be more clever about defaults. (dart-lang/pack…
lrhn Mar 18, 2020
1918225
Fix Package constructor not accepting relative packageUriRoot. (dart-…
lrhn Mar 26, 2020
5f06761
fix a lint about an unused import
devoncarew May 6, 2020
7c7cfbe
Merge pull request dart-lang/package_config#83 from dart-lang/fix_lint
devoncarew May 6, 2020
8897a35
Remove unused async imports (dart-lang/package_config#91)
MichaelRFairhurst Sep 28, 2020
e3c69b9
Remove unused dart:async imports.
srawlins Nov 10, 2020
815e27e
Merge pull request dart-lang/package_config#94 from srawlins/unused-a…
srawlins Nov 10, 2020
c86d4c9
Migrate to null safety (dart-lang/package_config#93)
lrhn Dec 2, 2020
ba5cc8d
Add override for _fe_analyzer_shared (dart-lang/package_config#96)
natebosch Dec 9, 2020
02e6eb5
migrate to `dart analyze`
pq Dec 10, 2020
fdf6e9a
Merge pull request dart-lang/package_config#98 from dart-lang/pq-dart…
pq Dec 10, 2020
c939555
Change version to 2.0.0-nullsafety.0 for consistency.
lrhn Jan 19, 2021
43d8094
Make it possible to control whether the `rootUri` path is relativized…
lrhn Jan 21, 2021
9bf6b87
Migrate to GitHub Actions (dart-lang/package_config#103)
athomas Jan 28, 2021
e96a1b0
stable null safety release, clean up deps (dart-lang/package_config#105)
jakemac53 Feb 5, 2021
ec2b468
Include duplicate package name in error message (dart-lang/package_co…
athomas Feb 9, 2021
56a7412
Use unique library names (dart-lang/package_config#107)
natebosch Mar 19, 2021
f72b4a0
Update LICENSE
franklinyow Apr 2, 2021
eb6b0be
Merge pull request dart-lang/package_config#108 from dart-lang/frankl…
franklinyow Apr 2, 2021
c7adc8b
Add dependabot
kevmoo Jun 5, 2021
2730661
Bump dart-lang/setup-dart from 0.3 to 1 (dart-lang/package_config#110)
dependabot[bot] Jun 5, 2021
8049cb6
Dart format with latest SDK (dart-lang/package_config#111)
kevmoo Jul 11, 2021
df19c5c
Update to latest deps, fix remaining lints (dart-lang/package_config#…
kevmoo Jul 15, 2021
028521a
Fix typo: "packjage_config" (dart-lang/package_config#113)
DanTup Aug 2, 2021
0061cdb
Ignore unnecessary casts from utf8.encode (dart-lang/package_config#114)
natebosch Aug 6, 2021
c1531e2
Switch to package:lints
mit-mit Sep 13, 2021
89cfab1
Update description
mit-mit Sep 13, 2021
8d518f7
Add example
mit-mit Sep 13, 2021
9b60f7b
Expand readme
mit-mit Sep 13, 2021
3895874
Fix dartdoc generation
mit-mit Sep 13, 2021
754c0a8
Add ///
mit-mit Sep 13, 2021
0963c4c
Merge pull request dart-lang/package_config#115 from dart-lang/cleanup
mit-mit Sep 13, 2021
0674a0f
Faster read; faster lookup; more tests; error on new package inside e…
jensjoha Nov 25, 2021
c3b52af
Fix for 'Prefer using lowerCamelCase for constant names.'
jensjoha Nov 25, 2021
a0159d4
Allow inside lib anyway, for internal reasons
jensjoha Nov 25, 2021
4e5c229
Feedback
jensjoha Nov 25, 2021
a731f2e
Feedback
jensjoha Nov 25, 2021
b280a3e
Formatting
jensjoha Nov 25, 2021
fd7708b
feedback
jensjoha Nov 25, 2021
e48fd0b
Merge pull request dart-lang/package_config#117 from jensjoha/faster_…
jensjoha Nov 25, 2021
7095a03
Preemptively bump to a -dev version (dart-lang/package_config#118)
natebosch Jan 31, 2022
66077cd
Fix broken link for language-versioning spec (dart-lang/package_confi…
jonasfj Feb 7, 2022
fcea93b
Bump actions/checkout from 2 to 3 (dart-lang/package_config#122)
dependabot[bot] Mar 2, 2022
87732e1
Update pubspec.yaml (dart-lang/package_config#123)
devoncarew May 2, 2022
4374253
prep for publishing 2.0.3
devoncarew May 19, 2022
20062b3
revert version change
devoncarew May 20, 2022
60cdc0d
Merge pull request dart-lang/package_config#124 from dart-lang/prep_2…
devoncarew May 20, 2022
cd86f83
Adds `minVersion` to `findPackageConfig{,Uri}` methods. (dart-lang/pa…
lrhn May 23, 2022
8c91bc2
blast_repo fixes (dart-lang/package_config#127)
kevmoo Nov 15, 2022
ca63b52
Bump actions/checkout from 3.1.0 to 3.2.0 (dart-lang/package_config#128)
dependabot[bot] Jan 3, 2023
681f007
Support latest pkg:build_web_compilers, lints. Update min SDK (dart-l…
kevmoo Jan 30, 2023
f4e8081
Bump actions/checkout from 3.2.0 to 3.3.0 (dart-lang/package_config#131)
dependabot[bot] Feb 1, 2023
6adef61
Bump dart-lang/setup-dart from 1.3 to 1.4 (dart-lang/package_config#130)
dependabot[bot] Feb 1, 2023
1debd19
Bump actions/checkout from 3.3.0 to 3.5.0 (dart-lang/package_config#133)
dependabot[bot] Apr 3, 2023
df5710b
Bump dart-lang/setup-dart from 1.4.0 to 1.5.0 (dart-lang/package_conf…
dependabot[bot] Apr 3, 2023
a543f2f
Bump actions/checkout from 3.5.0 to 3.5.2 (dart-lang/package_config#134)
dependabot[bot] May 8, 2023
3af8962
blast_repo fixes (dart-lang/package_config#135)
devoncarew May 22, 2023
5272260
Bump actions/checkout from 3.5.2 to 3.5.3 (dart-lang/package_config#138)
dependabot[bot] Jul 1, 2023
1b7fb96
Update to team lints, require Dart 3.0 (dart-lang/package_config#139)
kevmoo Jul 21, 2023
9c69749
Bump actions/checkout from 3.5.3 to 3.6.0 (dart-lang/package_config#140)
dependabot[bot] Sep 1, 2023
4225920
Bump dart-lang/setup-dart from 1.5.0 to 1.5.1 (dart-lang/package_conf…
dependabot[bot] Oct 1, 2023
a8ce336
Bump actions/checkout from 3.6.0 to 4.1.0 (dart-lang/package_config#141)
dependabot[bot] Oct 2, 2023
aff00e8
Bump dart-lang/setup-dart from 1.5.1 to 1.6.0 (dart-lang/package_conf…
dependabot[bot] Nov 1, 2023
2019cfa
Bump actions/checkout from 4.1.0 to 4.1.1 (dart-lang/package_config#144)
dependabot[bot] Nov 1, 2023
a9396b0
Update to latest lints, Require Dart 3.2 (dart-lang/package_config#145)
kevmoo Jan 10, 2024
936e0cf
add test validating current behavior of packageOf, run CI on windows …
jakemac53 Jan 10, 2024
935c91e
Bump dart-lang/setup-dart from 1.6.0 to 1.6.2 (dart-lang/package_conf…
dependabot[bot] Feb 1, 2024
bff0401
Fix typo (dart-lang/package_config#149)
mit-mit Mar 5, 2024
b9ca055
Bump actions/checkout from 4.1.1 to 4.1.2 (dart-lang/package_config#150)
dependabot[bot] Apr 1, 2024
84b8800
Fix typos. (dart-lang/package_config#147)
lrhn Apr 11, 2024
1f2920d
Bump dart-lang/setup-dart from 1.6.2 to 1.6.4 (dart-lang/package_conf…
dependabot[bot] May 1, 2024
709cf70
Bump actions/checkout from 4.1.2 to 4.1.4 (dart-lang/package_config#151)
dependabot[bot] May 2, 2024
bc25946
blast_repo fixes (dart-lang/package_config#153)
devoncarew May 9, 2024
4031629
Bump actions/checkout from 4.1.4 to 4.1.5 in the github-actions group…
dependabot[bot] May 9, 2024
80670e1
Bump actions/checkout from 4.1.5 to 4.1.6 in the github-actions group…
dependabot[bot] Jun 1, 2024
58f90e9
Bump the github-actions group with 2 updates (dart-lang/package_confi…
dependabot[bot] Jul 1, 2024
5bfdcd8
Latest lints, require Dart 3.4 (dart-lang/package_config#157)
kevmoo Aug 6, 2024
3b5c351
Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group…
dependabot[bot] Oct 1, 2024
34d7553
Bump actions/checkout from 4.2.0 to 4.2.2 in the github-actions group…
dependabot[bot] Nov 1, 2024
adca221
Bump dart-lang/setup-dart in the github-actions group (dart-lang/pack…
dependabot[bot] Dec 1, 2024
4ed467e
Merge package:package_config into the tools monorepo
mosuem Dec 9, 2024
a9b1487
Add issue template and other fixes
mosuem Dec 9, 2024
3327cbf
Moving fixes
mosuem Dec 10, 2024
3655677
Remove wip
mosuem Dec 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/package_config.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: "package:package_config"
about: "Create a bug or file a feature request against package:package_config."
labels: "package:package_config"
---
4 changes: 4 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@
- changed-files:
- any-glob-to-any-file: 'pkgs/oauth2/**'

'package:package_config':
- changed-files:
- any-glob-to-any-file: 'pkgs/package_config/**'

'package:source_map_stack_trace':
- changed-files:
- any-glob-to-any-file: 'pkgs/source_map_stack_trace/**'
Expand Down
71 changes: 71 additions & 0 deletions .github/workflows/package_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: package:package_config

on:
# Run on PRs and pushes to the default branch.
push:
branches: [ main ]
paths:
- '.github/workflows/package_config.yml'
- 'pkgs/package_config/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/package_config.yml'
- 'pkgs/package_config/**'
schedule:
- cron: "0 0 * * 0"

env:
PUB_ENVIRONMENT: bot.github


defaults:
run:
working-directory: pkgs/package_config/

jobs:
# Check code formatting and static analysis on a single OS (linux)
# against Dart dev.
analyze:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sdk: [dev]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94
with:
sdk: ${{ matrix.sdk }}
- id: install
name: Install dependencies
run: dart pub get
- name: Check formatting
run: dart format --output=none --set-exit-if-changed .
if: always() && steps.install.outcome == 'success'
- name: Analyze code
run: dart analyze --fatal-infos
if: always() && steps.install.outcome == 'success'

# Run tests on a matrix consisting of two dimensions:
# 1. OS: ubuntu-latest, (macos-latest, windows-latest)
# 2. release channel: dev
test:
needs: analyze
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
sdk: [3.4, dev]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94
with:
sdk: ${{ matrix.sdk }}
- id: install
name: Install dependencies
run: dart pub get
- name: Run tests
run: dart test -p chrome,vm
if: always() && steps.install.outcome == 'success'
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ don't naturally belong to other topic monorepos (like
| [json_rpc_2](pkgs/json_rpc_2/) | Utilities to write a client or server using the JSON-RPC 2.0 spec. | [![package issues](https://img.shields.io/badge/package:json_rpc_2-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Ajson_rpc_2) | [![pub package](https://img.shields.io/pub/v/json_rpc_2.svg)](https://pub.dev/packages/json_rpc_2) |
| [mime](pkgs/mime/) | Utilities for handling media (MIME) types, including determining a type from a file extension and file contents. | [![package issues](https://img.shields.io/badge/package:mime-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Amime) | [![pub package](https://img.shields.io/pub/v/mime.svg)](https://pub.dev/packages/mime) |
| [oauth2](pkgs/oauth2/) | A client library for authenticating with a remote service via OAuth2 on behalf of a user, and making authorized HTTP requests with the user's OAuth2 credentials. | [![package issues](https://img.shields.io/badge/package:oauth2-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Aoauth2) | [![pub package](https://img.shields.io/pub/v/oauth2.svg)](https://pub.dev/packages/oauth2) |
| [package_config](pkgs/package_config/) | Support for reading and writing Dart Package Configuration files. | [![package issues](https://img.shields.io/badge/package:package_config-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Apackage_config) | [![pub package](https://img.shields.io/pub/v/package_config.svg)](https://pub.dev/packages/package_config) |
| [source_map_stack_trace](pkgs/source_map_stack_trace/) | A package for applying source maps to stack traces. | [![package issues](https://img.shields.io/badge/package:source_map_stack_trace-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Asource_map_stack_trace) | [![pub package](https://img.shields.io/pub/v/source_map_stack_trace.svg)](https://pub.dev/packages/source_map_stack_trace) |
| [unified_analytics](pkgs/unified_analytics/) | A package for logging analytics for all Dart and Flutter related tooling to Google Analytics. | [![package issues](https://img.shields.io/badge/package:unified_analytics-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Aunified_analytics) | [![pub package](https://img.shields.io/pub/v/unified_analytics.svg)](https://pub.dev/packages/unified_analytics) |

Expand Down
7 changes: 7 additions & 0 deletions pkgs/package_config/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.packages
.pub
.dart_tool/
.vscode/
packages
pubspec.lock
doc/api/
6 changes: 6 additions & 0 deletions pkgs/package_config/AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Below is a list of people and organizations that have contributed
# to the project. Names should be added to the list like so:
#
# Name/Organization <email address>

Google Inc.
108 changes: 108 additions & 0 deletions pkgs/package_config/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
## 2.1.1

- Require Dart 3.4
- Move to `dart-lang/tools` monorepo.

## 2.1.0

- Adds `minVersion` to `findPackageConfig` and `findPackageConfigVersion`
which allows ignoring earlier versions (which currently only means
ignoring version 1, aka. `.packages` files.)

- Changes the version number of `SimplePackageConfig.empty` to the
current maximum version.

- Improve file read performance; improve lookup performance.
- Emit an error when a package is inside the package root of another package.
- Fix a link in the readme.

## 2.0.2

- Update package description and README.
- Change to package:lints for style checking.
- Add an example.

## 2.0.1

- Use unique library names to correct docs issue.

## 2.0.0

- Migrate to null safety.
- Remove legacy APIs.
- Adds `relativeRoot` property to `Package` which controls whether to
make the root URI relative when writing a configuration file.

## 1.9.3

- Fix `Package` constructor not accepting relative `packageUriRoot`.

## 1.9.2

- Updated to support new rules for picking `package_config.json` over
a specified `.packages`.
- Deduce package root from `.packages` derived package configuration,
and default all such packages to language version 2.7.

## 1.9.1

- Remove accidental transitive import of `dart:io` from entrypoints that are
supposed to be cross-platform compatible.

## 1.9.0

- Based on new JSON file format with more content.
- This version includes all the new functionality intended for a 2.0.0
version, as well as the, now deprecated, version 1 functionality.
When we release 2.0.0, the deprecated functionality will be removed.

## 1.1.0

- Allow parsing files with default-package entries and metadata.
A default-package entry has an empty key and a valid package name
as value.
Metadata is attached as fragments to base URIs.

## 1.0.5

- Fix usage of SDK constants.

## 1.0.4

- Set max SDK version to <3.0.0.

## 1.0.3

- Removed unneeded dependency constraint on SDK.

## 1.0.2

- Update SDK constraint to be 2.0.0 dev friendly.

## 1.0.1

- Fix test to not write to sink after it's closed.

## 1.0.0

- Public API marked stable.

## 0.1.5

- `FilePackagesDirectoryPackages.getBase(..)` performance improvements.

## 0.1.4

- Strong mode fixes.

## 0.1.3

- Invalid test cleanup (to keep up with changes in `Uri`).

## 0.1.1

- Syntax updates.

## 0.1.0

- Initial implementation.
27 changes: 27 additions & 0 deletions pkgs/package_config/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Copyright 2019, the Dart project authors.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
* Neither the name of Google LLC nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 changes: 26 additions & 0 deletions pkgs/package_config/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[![Build Status](https://github.com/dart-lang/tools/actions/workflows/package_config.yaml/badge.svg)](https://github.com/dart-lang/tools/actions/workflows/package_config.yaml)
[![pub package](https://img.shields.io/pub/v/package_config.svg)](https://pub.dev/packages/package_config)
[![package publisher](https://img.shields.io/pub/publisher/package_config.svg)](https://pub.dev/packages/package_config/publisher)

Support for working with **Package Configuration** files as described
in the Package Configuration v2 [design document](https://github.com/dart-lang/language/blob/master/accepted/2.8/language-versioning/package-config-file-v2.md).

A Dart package configuration file is used to resolve Dart package names (e.g.
`foobar`) to Dart files containing the source code for that package (e.g.
`file:///Users/myuser/.pub-cache/hosted/pub.dartlang.org/foobar-1.1.0`). The
standard package configuration file is `.dart_tool/package_config.json`, and is
written by the Dart tool when the command `dart pub get` is run.

The primary libraries of this package are
* `package_config.dart`:
Defines the `PackageConfig` class and other types needed to use
package configurations, and provides functions to find, read and
write package configuration files.

* `package_config_types.dart`:
Just the `PackageConfig` class and other types needed to use
package configurations. This library does not depend on `dart:io`.

The package includes deprecated backwards compatible functionality to
work with the `.packages` file. This functionality will not be maintained,
and will be removed in a future version of this package.
5 changes: 5 additions & 0 deletions pkgs/package_config/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.

include: package:dart_flutter_team_lints/analysis_options.yaml
19 changes: 19 additions & 0 deletions pkgs/package_config/example/main.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

import 'dart:io' show Directory;

import 'package:package_config/package_config.dart';

void main() async {
var packageConfig = await findPackageConfig(Directory.current);
if (packageConfig == null) {
print('Failed to locate or read package config.');
} else {
print('This package depends on ${packageConfig.packages.length} packages:');
for (var package in packageConfig.packages) {
print('- ${package.name}');
}
}
}
Loading
Loading