[Snyk] Upgrade yaml from 1.10.2 to 2.0.1 #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was automatically created by Snyk using the credentials of a real user.
Snyk has created this PR to upgrade yaml from 1.10.2 to 2.0.1.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
Warning: This is a major version upgrade, and may be a breaking change.
Release notes
Package name: yaml
-
2.0.1 - 2022-04-15
- Fix tags and anchors on map keys (#378)
-
2.0.0 - 2022-04-06
- Drop deprecated end points, members, options & defaults (#171)
- Breaking changes to Document & createNode APIs (#186)
- When creating a mapping from a JS Object, drop undefined values (#173)
- Retain existing nodes when using
- Improve JSON compatibility (#189)
- Refactor tag
- Drop
- Update build configs & minimum supported versions (#224)
- Refactor options (#235)
- Refactor parsing completely (#203)
- Merge all of
- Refactor node identification (#233)
- Drop
- Refactor as TypeScript (#233)
- Make anchor & alias resolution lazier (#248)
- Split flow collections into items in Parser (#249)
- Make Pair not extend NodeBase; drop its prop forwarding (#245, #250)
- Rename the
- Turn the Lexer, Parser & Composer into generators (#253)
- Refactor Node range as
- Replace
- Fix empty lines & trailing comments (#278)
- Drop Node.js 10 support
- Allow disabling single & block quotes completely (#326)
- The TS type of
- Drop Node.js 12 support (end-of-life 2022-04-30)
- Resolve known tags in core schema (#172)
- Create intermediates for
- Fix intermediate collection creation for parsed documents (#174)
- Improve quoted string flexibility (#177)
- Add
- Remember source string for null scalars (#193)
- Support
- Refactor logging control, adding
- Add
- Stringify top-level block scalars with header on marker line
- Add a couple of things to
- Add Collection, Value & Node visitor aliases
- Add error codes
- Always include offset in CST tokens
- Add CST tools (#252)
- Check key uniqueness; add
- Drop special-casing
- Support immediate map values for
- Add a new createNode option
- Add
- Add
- Allow for custom schema id, provided that
- Expose tags & types required by custom composers (#325)
- Add a compatibility checker (#335)
- Support for Non-YAML Schemas (#336, #337, #343, #344)
- Add warning for aliases & anchors ending with a colon (#370)
- Add
- Add
- Allow for a
-
2.0.0-11 - 2022-03-22
-
2.0.0-10 - 2021-12-31
-
2.0.0-9 - 2021-11-13
-
2.0.0-8 - 2021-09-06
-
2.0.0-7 - 2021-07-17
-
2.0.0-6 - 2021-06-14
-
2.0.0-5 - 2021-04-18
-
2.0.0-4 - 2021-03-13
-
2.0.0-3 - 2021-01-31
-
2.0.0-2 - 2021-01-31
-
2.0.0-1 - 2020-10-05
-
2.0.0-0 - 2020-08-23
-
1.10.2 - 2021-03-13
from yaml GitHub release notesThis update has been in the works for the last year and a half. Its prerelease versions have been thoroughly tested by a wide number of users, and I think it's finally ready for "actual" release, for use in the mythical "production".
The breaking changes introduced here are mostly originating from the v1 CST parser having become a rather difficult beast to work with. So it's here rewritten pretty much completely, now with a lexer as a first stage. Along the way, the whole project was rewritten in TypeScript and the export paths and options refactored pretty deeply.
If you've been using the library just via its
parse(),parseDocument()andstringify()functions, then it's quite likely that none of the changes affect your experience in any way. However, if you've been doing something more involved, then I would strongly recommend that you review the library's documentation site for the v2 docs.Going forward, it's finally time to start experimenting with new YAML spec features that may eventually be included in YAML 1.3 and later. Those will be made available by specifying the
version: 'next'option. However, beware! Any features available this way may be removed or have their API broken by any minor release of this library, and no compatibility guarantees with other libraries are given. In general, semver compatibility is guaranteed for features that are explicitly included in the documentation; everything else should be considered as internal implementation details.The following is an overview of the breaking changes and new features introduced in each of the prerelease steps leading up to this release; the individual releases' notes and the PRs will contain more detail, along with specific migration guides.
BREAKING CHANGES
v2.0.0-0
set()in mappings & sequences (#185)v2.0.0-1
resolve()API (#201)v2.0.0-3
'yaml/parse-cst'endpoint (#223)v2.0.0-4
'yaml/types'and some of'yaml/util'into'yaml'(#234)typeproperty from all but Scalar nodes (#240)v2.0.0-5
tokensnamespace asCST(#252)[start, value-end, node-end](#259)error.offsetwitherror.pos: [number, number](#260)v2.0.0-6
v2.0.0-9
v2.0.0-10
doc.directivesnow indicates it as optional (#344)v2.0.0-11
YAML.defaultOptionsis removed (#346)directives.markeris renamed asdirectives.docStart(#371)v2.0.0
New Features
v2.0.0-0
set()&setIn()on doc with empty contents (#174)defaultKeyTypeoption for finer control of scalar output (#179)v2.0.0-1
asBigIntoption for sexagesimal integer valuesv2.0.0-3
logLeveloption (#215)visit(node, visitor)to'yaml'(#225)v2.0.0-4
'yaml/util'that weren't exposed beforev2.0.0-5
v2.0.0-6
uniqueKeysoption (#271)COMMENT_SPACEerror; useMISSING_CHARfor it insteadv2.0.0-7
<<merge keys, in addition to alias valuesv2.0.0-8
aliasDuplicateObjects(#299)clone()methods to Document, Directives, Schema and all Nodes (#304)v2.0.0-9
keepSoureTokenparse option, addingsrcTokenvalues to Nodes (#309)customTagsis defined (#325)v2.0.0-10
v2.0.0-11
directives.docEnd, for...marker (#371)YAML.visitAsync()(#372)v2.0.0
'next'YAML versionRead more
Read more
Read more
Read more
Read more
Read more
Read more
Read more
Commit messages
Package name: yaml
Compare
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs