Delivering delightful digital solutions. Monorepo of monorepos of Open Source packages with combined ~100M/month downloads, semantically versioned following @conventional-commits. Fully powered ES Modules, @Airbnb @ESLint + @Prettier, independent & fixed versioning. Quality with @Actions, CodeQL, & Dependabot.
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.1.2.
:information_source: 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.
- The recommended version is **17 versions** ahead of your current version.
- The recommended version was released **21 days ago**, on 2022-10-02.
Release notes Package name: yaml
Revert "Use TS named tuple for range (#385)" -- see #393
Fix types for compatibility with TS 4.2 and 4.7
Add CI workflow for testing published type in a range of TS versions
</li>
<li>
<b>2.1.0</b> - <a href="https://snyk.io/redirect/github/eemeli/yaml/releases/tag/v2.1.0">2022-05-14</a></br><p>Fixes for TypeScript users. Arguably this could've been a patch release as well.</p>
Improve/specify/fix TS types for Document & collection access methods (#383)
<li>
<b>2.0.0-11</b> - <a href="https://snyk.io/redirect/github/eemeli/yaml/releases/tag/v2.0.0-11">2022-03-22</a></br><p>This version of <code>yaml</code> has been published to npm using the <code>next</code> dist-tag, so install it with:</p>
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 appropriate parse*() and new Document() calls after this change.
directives.marker is renamed as directives.docStart (#371)
The behaviour of the property stays the same as before.
New Features
Add warning for aliases & anchors ending with a colon (#370)
Do not throw during composition, even for bad tokens (#367)
Error on invalid %YAML directives
Empty block scalars with chomp=keep & trailing whitespace
Parse ? : x as { ? { : x } }
Do not consider tabs as indent for flow collections
Include trailing more-indented empty lines in block scalar contents
Should complain about -, and -] in flow collections
Update dev dependencies, including @ types/node downgrade
Test Improvements
Update yaml-test-suite, skipping some new tests
Don't needlessly skip yaml-test-suite B63P test
test-events: Do not skip events for only apparently empty documents
yaml-test-suite: Skip in.json tests when expecting errors
</li>
<li>
<b>2.0.0-10</b> - <a href="https://snyk.io/redirect/github/eemeli/yaml/releases/tag/v2.0.0-10">2021-12-31</a></br><p>This version of <code>yaml</code> has been published to npm using the <code>next</code> dist-tag, so install it with:</p>
npm install --save-exact yaml@next
BREAKING CHANGES
The TS type of doc.directives now indicates it as optional. Its actual value has not changed, but the type needs to account for what might happen if doc.setSchema() is called with a null version argument. (#344)
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 the compat 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.
Add commentString option, refactor internals to support it (#336)
parser: flow-error-end token should not advance offset
Handle duplicate flow : indicators correctly
Correctly stringify non-finite scalars with format: 'EXP'
Allow block map with flow collection key as explicit key
Do not use negative indent for any parser tokens
</li>
<li>
<b>2.0.0-9</b> - <a href="https://snyk.io/redirect/github/eemeli/yaml/releases/tag/v2.0.0-9">2021-11-13</a></br><p>This version of <code>yaml</code> has been published to npm using the <code>next</code> dist-tag, so install it with:</p>
npm install --save-exact yaml@next
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) and singleQuote (expanded) allow setting a preference as well as preventing said styles from being used at all. This changes how singleQuote: false is handled. To retain the previous behaviour, use singleQuote: null or leave the option unset.
New Features
Add keepSoureToken parse option, adding srcToken values to Nodes (#309)
Allow for custom schema id, provided that customTags is defined (#325)
Expose tags & types required by custom composers (#325)
Bugfixes
cst: Specify resolveAsScalar return type
lexer: Reset flow-key flag on comma in flow collection (#316)
lexer: Allow unindented comment in flow collection
compose: Indent level of empty block scalars with keep chomping (#313)
Honor singleQuote option more widely
Get rid of extra whitespace around empty map values
Drop ...expansion from public TS interfaces (#334)
</li>
<li>
<b>2.0.0-8</b> - <a href="https://snyk.io/redirect/github/eemeli/yaml/releases/tag/v2.0.0-8">2021-09-06</a></br><p>This version of <code>yaml</code> has been published to npm using the <code>next</code> dist-tag, so install it with:</p>
npm install --save-exact yaml@next
This release doesn't really do anything major, it's really just an accumulation of small things over the past few weeks.
New Features
Add a new createNode option aliasDuplicateObjects (#299)
Add clone() methods to Document, Directives, Schema and all Nodes (#304)
Handle doc.createNode(doc) the same as doc.createNode(doc.contents) (#303)
Allow for collection setIn() to handle objects, including duplicates
Fix parsing errors with CRLF line endings (#306, #307)
</li>
<li>
<b>2.0.0-7</b> - <a href="https://snyk.io/redirect/github/eemeli/yaml/releases/tag/v2.0.0-7">2021-07-17</a></br><p>This version of <code>yaml</code> has been published to npm using the <code>next</code> dist-tag, so install it with:</p>
npm install --save-exact yaml@next
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
Support immediate map values for << merge keys, in addition to alias values
Bugfixes
Anchors for duplicate objects that stringify as strings (#287)
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.1.2.
:information_source: 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. - The recommended version is **17 versions** ahead of your current version. - The recommended version was released **21 days ago**, on 2022-10-02.
Release notes
Package name: yaml
No changes in executable code, only TS types.
_directives
to resolve type conflict with ToString options (#389)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 errorsBREAKING 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'
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 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 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%
Commit messages
Package name: yaml
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