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:yaml #1661

Merged
merged 197 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
197 commits
Select commit Hold shift + click to select a range
0dcfcab
Restructure YAML package suitable for pub lish
Jan 26, 2013
ae52aec
Rename mappedBy to map.
lrhn Jan 31, 2013
fba7cc2
Revert "Rename mappedBy to map."
floitschG Jan 31, 2013
c1a60bb
Reapply "Rename mappedBy to map."
lrhn Jan 31, 2013
3735d69
Remove deprecated Strings class.
floitschG Feb 19, 2013
09aaae3
Remove deprecated string features.
lrhn Feb 25, 2013
83a0bf8
Remove deprecated StringBuffer.add, addAll and addCharCode.
floitschG Mar 8, 2013
e8af83e
Remove Expect from core library.
floitschG Mar 9, 2013
b279b10
Revert "Remove Expect from core library."
floitschG Mar 9, 2013
3bff350
Fix escaping in YAML RegExp.
munificent Mar 15, 2013
131da10
Moved pkg pubspecs to use dev_dependencies where appropriate
kevmoo Mar 20, 2013
3b40e0f
Remove Expect from core library.
floitschG Apr 5, 2013
7a891ed
Remove Collection, Collections and clean up List/Set/Queue implementa…
Apr 12, 2013
b4a4288
Remove insertRange.
floitschG Apr 15, 2013
5ee6549
Restructure the yaml package.
nex3 Apr 16, 2013
aa2c7c1
add installation instructions to pkg packages
sethladd Apr 19, 2013
98531f0
Adding isNotEmpty property to collection and string.
floitschG May 28, 2013
73e48f0
Make my pkg packages warning-clean.
nex3 Jun 4, 2013
b3c02aa
pkg: analysis aided cleanup
kevmoo Aug 6, 2013
096c625
Remove usage of dart:json.
floitschG Aug 28, 2013
d31d7fc
Add YamlMap.addAll.
nex3 Sep 20, 2013
2fcd7cc
Remove dart:json
lrhn Oct 25, 2013
517b5a8
add versions and constraints for packages and samples
Nov 6, 2013
cf22784
Revert "add versions and constraints for packages and samples"
Nov 6, 2013
63dd51a
Re-land r29957 (add versions and constraints for packages and samples…
dgrove Nov 6, 2013
9af2a93
pkg/unittest: added LICENSE
kevmoo Jan 13, 2014
175d270
Remove unmodifiable map wrappers that could instead use UnmodifiableM…
lrhn Apr 22, 2014
efb4043
Revert "Remove unmodifiable map wrappers that could instead use Unmod…
lrhn Apr 22, 2014
f21ae3c
Remove unmodifiable map wrappers that could instead use UnmodifiableM…
lrhn Apr 24, 2014
1cba6f6
Fix analyzer warnings in the YAML package.
nex3 May 8, 2014
8c7195e
Bring the YAML package's style up to modern standards.
nex3 May 20, 2014
c50a54b
Ensure that YAML maps' map keys are order-independent.
nex3 May 20, 2014
1fe4673
Use SpanScanner to emit better YAML parse errors.
nex3 Jun 2, 2014
be352d6
Release yaml 0.10.0.
nex3 Jun 2, 2014
3e25817
Attach source range information to parsed YAML nodes.
nex3 Jun 3, 2014
46688d0
Fix a variable name typo in yaml.
nex3 Jun 3, 2014
8ff8029
Fix yaml's SDK constraint to contain only SDKs with MapMixin.
nex3 Jun 5, 2014
c135187
Make YamlException inherit from SpanFormatException.
nex3 Jun 23, 2014
8f3e034
Add new constructors to YamlNode subclasses.
nex3 Jun 24, 2014
8b38f4b
Fix busted type parameters in yaml.
nex3 Jun 24, 2014
92c54cc
Move a number of packages and some of pub over to using source_span.
nex3 Jul 23, 2014
8d5d55d
Fix lingering references to the old Span in yaml.
nex3 Jul 29, 2014
0ea30a1
Fix an import in yaml_node_wrapper_test.
nex3 Jul 29, 2014
5c8372b
Update dart:collection to version 1.0.0
lrhn Aug 22, 2014
757ba49
pkg/yaml prepare for release
kevmoo Aug 29, 2014
38c641a
Rewrite the pkg/yaml parser.
nex3 Nov 10, 2014
b423d1f
Don't include extra whitespace in YAML scalar spans.
nex3 Dec 12, 2014
b7a7e17
Fix a crashing yaml bug when parsing block scalars.
nex3 Dec 12, 2014
fcd12ad
Add gitignore, status, and codereview files.
nex3 Dec 18, 2014
6238a74
Update the pubspec's homepage link.
nex3 Dec 18, 2014
8225181
yaml: reformat, fix README and homepage link, bump version
kevmoo Jan 21, 2015
f94b78d
Add a "missing colon" hint.
nex3 Jun 9, 2015
721c7be
Upgrade to the new test runner.
nex3 Jul 16, 2015
ce3bb9a
Add a parsing benchmark.
munificent Sep 2, 2015
164e968
Hoist tokenizing RegExps out.
munificent Sep 2, 2015
e9ed99b
Limit the number of benchmark trials.
nex3 Sep 2, 2015
8351c3c
Improve performance by not doing binary searches.
nex3 Sep 2, 2015
8e9a30e
Don't use regular expressions in Loader.
nex3 Sep 3, 2015
765946c
Fix source spans for scalars.
nex3 Sep 9, 2015
0dc36e4
add a cast
devoncarew Sep 24, 2015
fc80250
Merge pull request dart-lang/yaml#14 from dart-lang/ddc
nex3 Sep 28, 2015
1786f59
Fix some strong mode warnings in the parser.
nex3 Oct 1, 2015
f36e14a
fixes dart-lang/yaml#15, strong mode errors and warnings
Oct 1, 2015
3100a1c
Merge pull request dart-lang/yaml#16 from dart-lang/ddc
nex3 Oct 2, 2015
aee6282
Get rid of all the library tags.
nex3 Jan 19, 2016
c7a1b06
Make "path" a dev dependency.
nex3 Jan 19, 2016
c2c45f0
Fix all strong-mode warnings.
nex3 May 4, 2016
047fb67
Support string_scanner 1.0.0.
nex3 Jun 23, 2016
089d326
fix a couple of analyzer errors
kevmoo Oct 6, 2016
58225d0
Do not try to fetch more tokens if the stream end is encountered.
denesalmasi Oct 5, 2016
7743b10
Include a pull request reference.
nex3 Oct 6, 2016
647a497
Add pubspec and changelog entries.
nex3 Oct 6, 2016
c053502
Merge pull request dart-lang/yaml#19 from denesalmasi/yaml
nex3 Oct 6, 2016
5831316
Reject duplicate keys. (dart-lang/yaml#22)
nex3 Oct 13, 2016
b6aae80
enable Travis-CI
kevmoo Apr 7, 2017
feff3e2
dartfmt
kevmoo Apr 7, 2017
dd792d4
Fix travis (dart-lang/yaml#28)
kevmoo Jul 18, 2017
0173460
Update pubspec.yaml
devoncarew Jul 18, 2017
572c076
Rename .analysis_options to analysis_options.yaml
devoncarew Jul 18, 2017
2d4dfe4
Merge pull request dart-lang/yaml#30 from dart-lang/devoncarew-patch-2
devoncarew Jul 19, 2017
52229e7
Merge pull request dart-lang/yaml#29 from dart-lang/devoncarew-patch-1
devoncarew Jul 19, 2017
a0a9578
Update README.md (dart-lang/yaml#32)
devoncarew Sep 11, 2017
dfeed38
Travis testing: dev, stable, and oldest supported (dart-lang/yaml#33)
kevmoo Sep 12, 2017
65d2acd
Remove -dev.infinity in SDK upper constraint
kevmoo Sep 19, 2017
49455d1
Stop using comment-based generic syntax (dart-lang/yaml#35)
nex3 Sep 27, 2017
f224837
Don't test Dartium on Travis (dart-lang/yaml#37)
kevmoo Feb 20, 2018
73004e8
Remove upper case constants (dart-lang/yaml#39)
lrhn May 15, 2018
ee1ba96
Remove usage of deprecated `onError` argument to `int.parse` and `dou…
lrhn May 22, 2018
1a58205
chore: set max SDK version to <3.0.0 (dart-lang/yaml#46)
chalin Jul 17, 2018
5385e3d
misc: fix test dependency to work with Dart 2 stable (dart-lang/yaml#47)
kevmoo Aug 13, 2018
52d9603
Enable and fix a number of lints
kevmoo Apr 9, 2019
bcc814d
test on oldest supported SDK
kevmoo Apr 9, 2019
80fe101
Replace deprecated JSON with json from dart:convert (dart-lang/yaml#48)
onejmi Apr 9, 2019
26070a9
Update .gitignore to new `dart_tool` pub cache (dart-lang/yaml#44)
bcko Apr 9, 2019
9081110
Add test to validate SourceSpan values for nodes
kevmoo Apr 9, 2019
cb3cf76
Improve the YamlScalar.span values with trailing whitespace
kevmoo Apr 9, 2019
aa6f6a3
Revert "Improve the YamlScalar.span values with trailing whitespace"
kevmoo Apr 9, 2019
f33e8cb
Prepare to release 2.1.16 (dart-lang/yaml#54)
kevmoo Jun 17, 2019
a9fb900
Preserve parsed key order in maps (dart-lang/yaml#57)
yjbanov Sep 18, 2019
2cbb0fb
Fix newly enforced package:pedantic lints (dart-lang/yaml#58)
natebosch Dec 7, 2019
f80f102
Update min SDK to 2.4 (dart-lang/yaml#59)
kevmoo Jan 13, 2020
dbe2944
remove unused field from private class (dart-lang/yaml#60)
kevmoo Jan 17, 2020
74991ba
[doc] Add an example.dart file (dart-lang/yaml#64)
ayan-b Feb 24, 2020
6ec8be0
Refactor to real enums (dart-lang/yaml#62)
godcrampy Feb 25, 2020
c17877f
Use camelcase for enums (dart-lang/yaml#65)
natebosch Feb 26, 2020
4503cd3
remove author from pubspec
kevmoo Mar 13, 2020
1d07eed
fix for issue 49 (dart-lang/yaml#79)
adarshm-26 Apr 27, 2020
8bfac45
Switch to Chrome (over FF) in CI (dart-lang/yaml#85)
kevmoo Jun 6, 2020
44f7e87
Added style as an optional named parameter for wrap() (dart-lang/yaml…
walnutdust Jul 1, 2020
a82e71b
Update README.md
kevmoo Oct 9, 2020
6cd35bd
migrate to nnbd
pq Nov 7, 2020
5082926
unconstrain dart
pq Nov 7, 2020
3b8f1a8
updated charcode dep
pq Nov 7, 2020
d56075c
sort
pq Nov 7, 2020
a98171f
updated version
pq Nov 9, 2020
de2ac82
fixed ws
pq Nov 9, 2020
2d4ef71
made suffix nullable
pq Nov 9, 2020
3f121a7
+ notes
pq Nov 9, 2020
a369529
bumped major version
pq Nov 9, 2020
c4d6678
fix suffix
pq Nov 9, 2020
c6fe976
fixed pair API
pq Nov 9, 2020
a9345d2
make span non-nullable
pq Nov 9, 2020
e416b4b
make sourcespan non-nullable
pq Nov 9, 2020
dffabd2
Different pattern for _span so it doesn't need to be late
natebosch Nov 9, 2020
881223d
Merge pull request dart-lang/yaml#95 from dart-lang/null_safet-non-late
pq Nov 10, 2020
356f7a9
Avoid a late FileSpan field
natebosch Nov 10, 2020
0343b61
Merge pull request dart-lang/yaml#96 from dart-lang/loader-span-late
pq Nov 10, 2020
84d3651
Merge pull request dart-lang/yaml#94 from dart-lang/null_safety
pq Nov 10, 2020
3c10f64
Delete .test_config (dart-lang/yaml#99)
kevmoo Nov 13, 2020
bcf372e
Add static type to sourceUrl arguments (dart-lang/yaml#98)
natebosch Nov 14, 2020
9324bd0
Migrate to GitHub Actions (dart-lang/yaml#104)
athomas Jan 14, 2021
3fcf072
stable null safety release (dart-lang/yaml#106)
jakemac53 Feb 5, 2021
a316e3f
Attempt to recover from invalid YAML
DanTup Jan 13, 2021
28b90a9
Add an "ErrorListener" to collect errors during parsing
DanTup Feb 8, 2021
ddd50e0
Use YamlExceptions directly + tidy up error reporting
DanTup Feb 8, 2021
d394b04
Add missing copyright
DanTup Feb 11, 2021
72f8b02
Disallow errorListener when not recovering, and don't call error list…
DanTup Feb 12, 2021
18e732f
Merge pull request dart-lang/yaml#107 from DanTup/recover
bwilkerson Feb 12, 2021
11f5131
Add note about recovery to changelog/update version
DanTup Feb 13, 2021
f4323a7
Merge pull request dart-lang/yaml#108 from DanTup/changelog
bwilkerson Feb 25, 2021
77c54f3
Drop dependency on `package:charcode`. (dart-lang/yaml#109)
lrhn Feb 25, 2021
e750623
prep to release 3.1.0 (dart-lang/yaml#110)
jakemac53 Feb 25, 2021
92696fa
Update test-package.yml (dart-lang/yaml#111)
kevmoo Mar 9, 2021
7724896
Update LICENSE
franklinyow Mar 31, 2021
e653a67
Merge pull request dart-lang/yaml#112 from dart-lang/franklinyow-patch-1
franklinyow Mar 31, 2021
cd11012
Fix pre-existing HintCode.UNNECESSARY_TYPE_CHECK_TRUE
scheglov Sep 1, 2021
76c0665
Merge pull request dart-lang/yaml#115 from scheglov/aa-fix-HintCode.U…
scheglov Sep 2, 2021
ee84d22
Simplify licensing
jonasfj Sep 21, 2021
ab35912
Merge pull request dart-lang/yaml#118 from jonasfj/cleanup-license
jonasfj Sep 24, 2021
edcb0a9
Move to pkg:lints (dart-lang/yaml#120)
kevmoo Oct 14, 2021
aab43c5
Update pubspec.yaml
devoncarew Apr 22, 2022
cda9a06
Merge pull request dart-lang/yaml#126 from dart-lang/devoncarew-patch-1
devoncarew Apr 26, 2022
b1d2dd0
prep for publishing 3.1.1
devoncarew May 11, 2022
06977b9
Merge pull request dart-lang/yaml#127 from dart-lang/rev_3.1.1
devoncarew May 12, 2022
225d840
blast_repo fixes
kevmoo Nov 15, 2022
131ec6d
Merge pull request dart-lang/yaml#131 from dart-lang/blast_repo-2022_…
devoncarew Nov 15, 2022
fbc3295
Bump actions/checkout from 3.1.0 to 3.2.0 (dart-lang/yaml#133)
dependabot[bot] Jan 3, 2023
5d7e342
Migrate from no-implicit-casts to strict-casts (dart-lang/yaml#134)
srawlins Jan 10, 2023
684dfb2
Bump actions/checkout from 3.2.0 to 3.3.0 (dart-lang/yaml#136)
dependabot[bot] Feb 1, 2023
553fd02
Bump dart-lang/setup-dart from 1.3 to 1.4 (dart-lang/yaml#135)
dependabot[bot] Feb 1, 2023
413ac98
benchmark: fix output.json (dart-lang/yaml#137)
kevmoo Mar 1, 2023
cdfe46e
Require Dart 2.19, migrate to dart_flutter_team_lints, make associate…
kevmoo Mar 1, 2023
4d64b66
revert updating the type for YamlScalar.value (dart-lang/yaml#139)
devoncarew Mar 9, 2023
4901d1c
Bump actions/checkout from 3.3.0 to 3.5.0 (dart-lang/yaml#141)
dependabot[bot] Apr 3, 2023
93826f1
Bump dart-lang/setup-dart from 1.4.0 to 1.5.0 (dart-lang/yaml#140)
dependabot[bot] Apr 3, 2023
6dd79af
Prepare release with topics (dart-lang/yaml#144)
jonasfj May 4, 2023
69de270
Bump actions/checkout from 3.5.0 to 3.5.2 (dart-lang/yaml#142)
dependabot[bot] May 8, 2023
bace8a7
Uncomment some tests (dart-lang/yaml#145)
natebosch May 10, 2023
f7acbf3
blast_repo fixes (dart-lang/yaml#146)
devoncarew May 23, 2023
dfb433b
Bump actions/checkout from 3.5.2 to 3.5.3 (dart-lang/yaml#148)
dependabot[bot] Jul 1, 2023
7b65a9e
Bump actions/checkout from 3.5.3 to 3.6.0 (dart-lang/yaml#150)
dependabot[bot] Sep 1, 2023
ca725bf
Bump actions/checkout from 3.6.0 to 4.1.0 (dart-lang/yaml#152)
dependabot[bot] Oct 1, 2023
4c57dc3
Bump dart-lang/setup-dart from 1.5.0 to 1.5.1 (dart-lang/yaml#153)
dependabot[bot] Oct 1, 2023
476ea4a
Bump actions/checkout from 4.1.0 to 4.1.1 (dart-lang/yaml#155)
dependabot[bot] Nov 1, 2023
de85a1a
Bump dart-lang/setup-dart from 1.5.1 to 1.6.0 (dart-lang/yaml#154)
dependabot[bot] Nov 1, 2023
33fe339
update lints, require Dart 3.0 (dart-lang/yaml#156)
kevmoo Dec 12, 2023
64fb9cb
Bump dart-lang/setup-dart from 1.6.0 to 1.6.2 (dart-lang/yaml#157)
dependabot[bot] Feb 1, 2024
8d9c359
Bump actions/checkout from 4.1.1 to 4.1.2 (dart-lang/yaml#160)
dependabot[bot] Apr 1, 2024
cafc337
Bump dart-lang/setup-dart from 1.6.2 to 1.6.4 (dart-lang/yaml#162)
dependabot[bot] May 1, 2024
1cba07a
Bump actions/checkout from 4.1.2 to 4.1.4 (dart-lang/yaml#161)
dependabot[bot] May 1, 2024
4e544f6
blast_repo fixes (dart-lang/yaml#163)
devoncarew May 13, 2024
6dfb2d5
Bump actions/checkout from 4.1.4 to 4.1.5 in the github-actions group…
dependabot[bot] May 13, 2024
01043b9
Bump actions/checkout from 4.1.5 to 4.1.6 in the github-actions group…
dependabot[bot] Jun 1, 2024
33f58f9
blast_repo fixes (dart-lang/yaml#166)
kevmoo Jun 20, 2024
4b465ee
update lints, require Dart 3.4 (dart-lang/yaml#167)
kevmoo Jun 20, 2024
7440807
Bump dart-lang/setup-dart in the github-actions group (dart-lang/yaml…
dependabot[bot] Jul 1, 2024
a0f9e57
Handle surrogate pairs during scanning (dart-lang/yaml#159)
tamcy Jul 20, 2024
5bb3a10
Drop Pair util class (dart-lang/yaml#169)
kevmoo Aug 29, 2024
120d197
Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group…
dependabot[bot] Oct 1, 2024
afdd03c
blast_repo fixes (dart-lang/yaml#171)
kevmoo Oct 28, 2024
5261816
Bump actions/checkout from 4.2.0 to 4.2.2 in the github-actions group…
dependabot[bot] Nov 1, 2024
185e519
Bump dart-lang/setup-dart in the github-actions group (dart-lang/yaml…
dependabot[bot] Dec 1, 2024
d885eea
Merge package:yaml into the tools monorepo
mosuem Dec 11, 2024
5d3b065
Add issue template and other fixes
mosuem Dec 11, 2024
ebc93fb
Moving fixes
mosuem Dec 11, 2024
0ec11ec
Merge branch 'main' into merge-yaml-package
mosuem Dec 20, 2024
e0e8ae3
Update pkgs/yaml/pubspec.yaml
mosuem Dec 20, 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/yaml.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: "package:yaml"
about: "Create a bug or file a feature request against package:yaml."
labels: "package:yaml"
---
4 changes: 4 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,7 @@
'package:watcher':
- changed-files:
- any-glob-to-any-file: 'pkgs/watcher/**'

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

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

env:
PUB_ENVIRONMENT: bot.github


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

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:
# Add macos-latest and/or windows-latest if relevant for this package.
os: [ubuntu-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 VM tests
run: dart test --platform vm
if: always() && steps.install.outcome == 'success'
- name: Run Chrome tests
run: dart test --platform chrome
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 @@ -49,6 +49,7 @@ don't naturally belong to other topic monorepos (like
| [timing](pkgs/timing/) | A simple package for tracking the performance of synchronous and asynchronous actions. | [![package issues](https://img.shields.io/badge/package:timing-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Atiming) | [![pub package](https://img.shields.io/pub/v/timing.svg)](https://pub.dev/packages/timing) |
| [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) |
| [watcher](pkgs/watcher/) | Monitor directories and send notifications when the contents change. | [![package issues](https://img.shields.io/badge/package:watcher-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Awatcher) | [![pub package](https://img.shields.io/pub/v/watcher.svg)](https://pub.dev/packages/watcher) |
| [yaml](pkgs/yaml/) | A parser for YAML, a human-friendly data serialization standard | [![package issues](https://img.shields.io/badge/package:yaml-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Ayaml) | [![pub package](https://img.shields.io/pub/v/yaml.svg)](https://pub.dev/packages/yaml) |

## Publishing automation

Expand Down
16 changes: 16 additions & 0 deletions pkgs/yaml/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Don’t commit the following directories created by pub.
.buildlog
.dart_tool/
.pub/
build/
packages
.packages

# Or the files created by dart2js.
*.dart.js
*.js_
*.js.deps
*.js.map

# Include when developing application packages.
pubspec.lock
199 changes: 199 additions & 0 deletions pkgs/yaml/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,199 @@
## 3.1.3

* Require Dart 3.4
* Fix UTF-16 surrogate pair handling in plain scaler.
* Move to `dart-lang/tools` monorepo.

## 3.1.2

* Require Dart 2.19
* Added `topics` in `pubspec.yaml`.

## 3.1.1

* Switch to using package:lints.
* Populate the pubspec `repository` field.

## 3.1.0

* `loadYaml` and related functions now accept a `recover` flag instructing the parser
to attempt to recover from parse errors and may return invalid or synthetic nodes.
When recovering, an `ErrorListener` can also be supplied to listen for errors that
are recovered from.
* Drop dependency on `package:charcode`.

## 3.0.0

* Stable null safety release.

## 3.0.0-nullsafety.0

* Updated to support 2.12.0 and null safety.
* Allow `YamlNode`s to be wrapped with an optional `style` parameter.
* **BREAKING** The `sourceUrl` named argument is statically typed as `Uri`
instead of allowing `String` or `Uri`.

## 2.2.1

* Update min Dart SDK to `2.4.0`.
* Fixed span for null nodes in block lists.

## 2.2.0

* POSSIBLY BREAKING CHANGE: Make `YamlMap` preserve parsed key order.
This is breaking because some programs may rely on the
`HashMap` sort order.

## 2.1.16

* Fixed deprecated API usage in README.
* Fixed lints that affect package score.

## 2.1.15

* Set max SDK version to `<3.0.0`, and adjust other dependencies.

## 2.1.14

* Remove use of deprecated features.
* Updated SDK version to 2.0.0-dev.17.0

## 2.1.13

* Stop using comment-based generic syntax.

## 2.1.12

* Properly refuse mappings with duplicate keys.

## 2.1.11

* Fix an infinite loop when parsing some invalid documents.

## 2.1.10

* Support `string_scanner` 1.0.0.

## 2.1.9

* Fix all strong-mode warnings.

## 2.1.8

* Remove the dependency on `path`, since we don't actually import it.

## 2.1.7

* Fix more strong mode warnings.

## 2.1.6

* Fix two analysis issues with DDC's strong mode.

## 2.1.5

* Fix a bug with 2.1.4 where source span information was being discarded for
scalar values.

## 2.1.4

* Substantially improve performance.

## 2.1.3

* Add a hint that a colon might be missing when a mapping value is found in the
wrong context.

## 2.1.2

* Fix a crashing bug when parsing block scalars.

## 2.1.1

* Properly scope `SourceSpan`s for scalar values surrounded by whitespace.

## 2.1.0

* Rewrite the parser for a 10x speed improvement.

* Support anchors and aliases (`&foo` and `*foo`).

* Support explicit tags (e.g. `!!str`). Note that user-defined tags are still
not fully supported.

* `%YAML` and `%TAG` directives are now parsed, although again user-defined tags
are not fully supported.

* `YamlScalar`, `YamlList`, and `YamlMap` now expose the styles in which they
were written (for example plain vs folded, block vs flow).

* A `yamlWarningCallback` field is exposed. This field can be used to customize
how YAML warnings are displayed.

## 2.0.1+1

* Fix an import in a test.

* Widen the version constraint on the `collection` package.

## 2.0.1

* Fix a few lingering references to the old `Span` class in documentation and
tests.

## 2.0.0

* Switch from `source_maps`' `Span` class to `source_span`'s `SourceSpan` class.

* For consistency with `source_span` and `string_scanner`, all `sourceName`
parameters have been renamed to `sourceUrl`. They now accept Urls as well as
Strings.

## 1.1.1

* Fix broken type arguments that caused breakage on dart2js.

* Fix an analyzer warning in `yaml_node_wrapper.dart`.

## 1.1.0

* Add new publicly-accessible constructors for `YamlNode` subclasses. These
constructors make it possible to use the same API to access non-YAML data as
YAML data.

* Make `YamlException` inherit from source_map's `SpanFormatException`. This
improves the error formatting and allows callers access to source range
information.

## 1.0.0+1

* Fix a variable name typo.

## 1.0.0

* **Backwards incompatibility**: The data structures returned by `loadYaml` and
`loadYamlStream` are now immutable.

* **Backwards incompatibility**: The interface of the `YamlMap` class has
changed substantially in numerous ways. External users may no longer construct
their own instances.

* Maps and lists returned by `loadYaml` and `loadYamlStream` now contain
information about their source locations.

* A new `loadYamlNode` function returns the source location of top-level scalars
as well.

## 0.10.0

* Improve error messages when a file fails to parse.

## 0.9.0+2

* Ensure that maps are order-independent when used as map keys.

## 0.9.0+1

* The `YamlMap` class is deprecated. In a future version, maps returned by
`loadYaml` and `loadYamlStream` will be Dart `HashMap`s with a custom equality
operation.
20 changes: 20 additions & 0 deletions pkgs/yaml/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Copyright (c) 2014, the Dart project authors.
Copyright (c) 2006, Kirill Simonov.

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
33 changes: 33 additions & 0 deletions pkgs/yaml/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[![Build Status](https://github.com/dart-lang/tools/actions/workflows/yaml.yaml/badge.svg)](https://github.com/dart-lang/tools/actions/workflows/yaml.yaml)
[![pub package](https://img.shields.io/pub/v/yaml.svg)](https://pub.dev/packages/yaml)
[![package publisher](https://img.shields.io/pub/publisher/yaml.svg)](https://pub.dev/packages/yaml/publisher)


A parser for [YAML](https://yaml.org/).

## Usage

Use `loadYaml` to load a single document, or `loadYamlStream` to load a
stream of documents. For example:

```dart
import 'package:yaml/yaml.dart';

main() {
var doc = loadYaml("YAML: YAML Ain't Markup Language");
print(doc['YAML']);
}
```

This library currently doesn't support dumping to YAML. You should use
`json.encode` from `dart:convert` instead:

```dart
import 'dart:convert';
import 'package:yaml/yaml.dart';

main() {
var doc = loadYaml("YAML: YAML Ain't Markup Language");
print(json.encode(doc));
}
```
18 changes: 18 additions & 0 deletions pkgs/yaml/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
include: package:dart_flutter_team_lints/analysis_options.yaml

analyzer:
language:
strict-casts: true

linter:
rules:
- avoid_private_typedef_functions
- avoid_redundant_argument_values
- avoid_unused_constructor_parameters
- cancel_subscriptions
- join_return_with_assignment
- missing_whitespace_between_adjacent_strings
- no_runtimeType_toString
- prefer_const_declarations
- prefer_expression_function_bodies
- use_string_buffers
Loading
Loading