[Snyk] Upgrade yaml from 1.10.2 to 2.1.1 #4
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.
Snyk has created this PR to upgrade yaml from 1.10.2 to 2.1.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
No changes in executable code, only TS types.
Fixes for TypeScript users. Arguably this could've been a patch release as well.
_directives
to resolve type conflict with ToString options (#389)Read more
This version of
yaml
has been published to npm using thenext
dist-tag, so install it with:BREAKING CHANGES
YAML.defaultOptions
is removed (#346)For a while, it's been undocumented, but still available. Since the options refactor of #235, it has only provided defaults for Parse & Document options, and not any of the others, so its name is a bit misleading as well.
If you're using
YAML.defaultOptions
, you'll need to explicitly set the options in the appropriateparse*()
andnew Document()
calls after this change.directives.marker
is renamed asdirectives.docStart
(#371)The behaviour of the property stays the same as before.
New Features
directives.docEnd
, for...
marker (#371)YAML.visitAsync()
(#372)Bugfixes
%YAML
directives? : x
as { ? { : x } }-,
and-]
in flow collections@ types/node
downgradeTest Improvements
yaml-test-suite
, skipping some new testsB63P
testin.json
tests when expecting errorsThis version of
yaml
has been published to npm using thenext
dist-tag, so install it with:BREAKING CHANGES
doc.directives
now indicates it as optional. Its actual value has not changed, but the type needs to account for what might happen ifdoc.setSchema()
is called with anull
version argument. (#344)New Features
Add a compatibility checker (#335)
Adds a new schema option
compat: string | Tags
. If set, warns during composition about compatibility issues with the given schema. When stringifying, uses scalar styles that are parsed correctly by thecompat
schema as well as the actual schema.Support for Non-YAML Schemas
While YAML is a superset of JSON, it isn't a strict superset of other JSON-based configuration languages. Feature-wise, though, these languages are as a rule a subset of YAML features, so let's build some groundwork for supporting them as well by making additional aspects of this library configurable.
commentString
option, refactor internals to support it (#336)toStringDefaults
option (#337)collectionStyle
option (#343)Schema
instance as schema option (#344)Test Improvements
json-test-suite
as git submodule (#340)yaml-test-suite
data{}
and[]
indicators to flow maps & sequences in test-events output (used by the YAML Test Matrix)--target es5
intest:dist:types
script (#334)Bugfixes
flow-error-end
token should not advance offset:
indicators correctlyformat: 'EXP'
This version of
yaml
has been published to npm using thenext
dist-tag, so install it with:Hopefully the breaking change for
singleQuote: false
won't cause anyone issues. Otherwise, small improvements only.BREAKING CHANGES
Allow disabling single & block quotes completely (#326)
The options for representing scalar values are refactored, such that
blockQuote
(new) andsingleQuote
(expanded) allow setting a preference as well as preventing said styles from being used at all. This changes howsingleQuote: false
is handled. To retain the previous behaviour, usesingleQuote: null
or leave the option unset.New Features
keepSoureToken
parse option, addingsrcToken
values to Nodes (#309)customTags
is defined (#325)Bugfixes
resolveAsScalar
return typesingleQuote
option more widelyThis version of
yaml
has been published to npm using thenext
dist-tag, so install it with:This release doesn't really do anything major, it's really just an accumulation of small things over the past few weeks.
New Features
aliasDuplicateObjects
(#299)clone()
methods to Document, Directives, Schema and all Nodes (#304)Bugfixes
doc.createNode(doc)
the same asdoc.createNode(doc.contents)
(#303)setIn()
to handle objects, including duplicatesThis version of
yaml
has been published to npm using thenext
dist-tag, so install it with:This release doesn't really do anything major, it's really just an accumulation of small things over the past few weeks. Thanks in particular to @ ingydotnet for his continuing help in finding corner cases of invalid input being parsed as valid.
New Features
<<
merge keys, in addition to alias valuesBugfixes
,
or%
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