Skip to content

lib: add experimental node:yaml module - #67157

Open
marcopiraccini wants to merge 11 commits into
nodejs:mainfrom
marcopiraccini:yaml-module
Open

marcopiraccini wants to merge 11 commits into
nodejs:mainfrom
marcopiraccini:yaml-module

Conversation

@marcopiraccini

@marcopiraccini marcopiraccini commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

This is a proposal for a built-in YAML parser, with a basic implementation to discuss on: an experimental, parse-only node:yaml module behind --experimental-yaml.

const yaml = require('node:yaml');
yaml.parse('name: app\nports: [8080, 8443]\n');
// { name: 'app', ports: [ 8080, 8443 ] }

The parser supports the YAML 1.2 core schema, anchors, aliases, tags, and multi-document streams. It is written from scratch and has no external dependencies.

This gives Node.js a built-in YAML parser for future configuration support, following the discussion about .noderc in #53787, where the config file ended up JSON-only because core had no parser.

Bun parity

Bun ships Bun.YAML since v1.2.21. yaml.parse() follows Bun.YAML.parse() so that code written for it runs unchanged:

  • parse(input) takes a string or binary input (ArrayBuffer, TypedArray, DataView) decoded as UTF-8.
  • One document returns its value, a multi-document stream returns an array, an empty stream returns null.
  • Invalid input throws a SyntaxError (here with the ERR_INVALID_YAML code and the line and column).
  • Aliases of an anchored collection are the same object, and a collection may contain an alias to itself, so results can hold cycles.
  • Core schema tags such as !!str and !!int are applied.

Not covered yet: Bun.YAML.stringify(value, replacer, space), Blob input, and importing .yaml files as modules. See the next steps.

Tests

Tests include the official YAML Test Suite, vendored at a fixed revision. Of 402 cases, 400 pass.

The two that fail, 2JQS and X38W, are documents with duplicate keys: two empty keys, and a key that is an alias of the previous key. The suite only checks that they parse, since duplicate keys are not a syntax error, and provides no expected output for them. The YAML 1.2 specification requires mapping keys to be unique, and this parser enforces it and throws Duplicate mapping key, as the yaml and js-yaml packages do by default. They are listed as known failures with that reason. If the reviewers prefer the JSON.parse() behavior, where the last value wins, the check can be removed and both pass.

Review guide

  1. doc/api/yaml.md: API behavior.
  2. lib/yaml.js: input validation and document return values.
  3. lib/internal/yaml/parser.js: parser implementation.
  4. test/parallel/test-yaml.js: API tests. test/parallel/test-yaml-test-suite.js: official suite runner.
  5. The experimental flag follows the node:vfs setup in vfs: add minimal node:vfs subsystem #63115.

Next steps, if accepted

  1. yaml.stringify(value, replacer, space) with Bun's semantics.
  2. import data from './config.yaml' with { type: 'yaml' }.
  3. YAML support in --experimental-config-file.
  4. A yaml subsystem label and commit subsystem, as was done for vfs.
  5. Graduation from the flag once the API has settled.

Refs:

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/config
  • @nodejs/loaders
  • @nodejs/startup

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs involving general changes in the lib/ or src/ directories. needs-ci PRs that need a full CI run. labels Oct 31, 2026
@marcopiraccini marcopiraccini changed the title yaml: add experimental node:yaml module lib: add experimental node:yaml module Oct 31, 2026
@marcopiraccini
marcopiraccini marked this pull request as ready for review October 31, 2026 07:37
@marcopiraccini
marcopiraccini force-pushed the yaml-module branch 2 times, most recently from ad1f666 to 09ed139 Compare October 31, 2026 08:29
@codecov

codecov Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 91.60000% with 42 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.58%. Comparing base (9873287) to head (318d97e).
⚠️ Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
src/node_yaml.cc 90.12% 7 Missing and 34 partials ⚠️
lib/formats/yaml.js 98.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #67157      +/-   ##
==========================================
+ Coverage   90.56%   90.58%   +0.01%     
==========================================
  Files         802      804       +2     
  Lines      286935   287455     +520     
  Branches    55415    55532     +117     
==========================================
+ Hits       259871   260398     +527     
+ Misses      17161    17122      -39     
- Partials     9903     9935      +32     
Files with missing lines Coverage Δ
lib/internal/bootstrap/realm.js 97.02% <100.00%> (+<0.01%) ⬆️
lib/internal/errors.js 98.42% <100.00%> (+<0.01%) ⬆️
src/node_binding.cc 76.78% <ø> (ø)
src/node_builtins.cc 77.70% <100.00%> (+0.03%) ⬆️
src/node_errors.h 86.95% <ø> (ø)
src/node_external_reference.h 100.00% <ø> (ø)
src/node_metadata.cc 92.95% <100.00%> (+0.10%) ⬆️
src/node_options.cc 88.25% <100.00%> (-0.06%) ⬇️
src/node_options.h 95.78% <100.00%> (+0.01%) ⬆️
lib/formats/yaml.js 98.71% <98.71%> (ø)
... and 1 more

... and 33 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@LiviaMedeiros LiviaMedeiros left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm +0.5 for adding builtin yaml support in general and would be +1 if some concerns were resolved first:

  1. How do we do versioning once v1.3 or subsequent specs are released? While JSON is both blessed in cursed with lack of versioning, in YAML we need to account this somehow. Hardcoding v1.2.2 isn't very future-proof.
    1.1. Should we introduce compatibility with v1.1?
  2. What's the plan for this module, aside from parse() and stringify()? Are we aiming for full-fledged module with all the classes, traversal methods, selectors, transformers, handling multi-document objects, etc.?

Without draft for the desired module API, it's hard to tell if it really should be implemented as separate builtin module.
If we just need this for something similar to #53787, i think an internal/util.parseYAML() (potentially re-exported later for userland as util.parseYAML() or util.YAML.parse()) would be sufficient.

Comment thread test/parallel/test-yaml-test-suite.js Outdated
Comment on lines +6 to +8
// parser. test/fixtures/yaml-test-suite.json holds, for every test, the input
// and either the expected documents as JSON or a flag that the input is an
// error.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: would be more future-proof if either the file structure was fully defined here, or if there was a tool that regenerates it if test suite gets updated.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added tools/update-yaml-test-suite.mjs that regenerates test/fixtures/yaml-test-suite.json.

Comment thread lib/yaml.js Outdated
Comment on lines +17 to +21
let TextDecoder;
function decode(input) {
TextDecoder ??= require('internal/encoding').TextDecoder;
return new TextDecoder('utf-8').decode(input);
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit

Suggested change
let TextDecoder;
function decode(input) {
TextDecoder ??= require('internal/encoding').TextDecoder;
return new TextDecoder('utf-8').decode(input);
}
let textDecoder;
function decode(input) {
textDecoder ??= new (require('internal/encoding').TextDecoder)('utf-8');
return textDecoder.decode(input);
}

@ShogunPanda ShogunPanda left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm +1 to this. Actually I wanted to implement it but Marco beated me on time.
Only a small nit: make it clear that now it only adds the parser in the commit.

@mcollina

mcollina commented Nov 2, 2026

Copy link
Copy Markdown
Member

Can we verify if a native version would be faster?

I'm +1 on adding it to core, but I think we should strive to have near-json performance if possible.

@jsumners-nr

Copy link
Copy Markdown

It is written from scratch and has no external dependencies.

Why was this path chosen over forking a known tested module and vendoring it?

Comment thread lib/formats/yaml.js Resolved
@aduh95

aduh95 commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Should we pick TOML instead? It's much easier to parse (and a simpler parser usually means less maintenance burden), even for humans arguably

@jsumners-nr

Copy link
Copy Markdown

Should we pick TOML instead? It's much easier to parse (and a simpler parser usually means less maintenance burden), even for humans arguably

It shouldn't be "instead." There are many reasons to parse yaml, and the standard library is not currently providing a means to do so.

@marcopiraccini

Copy link
Copy Markdown
Contributor Author

@LiviaMedeiros The parser is YAML 1.2, core schema. A %YAML 1.1 directive is accepted and the document is read with 1.2 rules, which is what spec 1.2 asks a processor to do (6.8.1). %YAML 2.x is rejected. There is no 1.3 yet. If one comes out, I guess the newest implemented version becomes the default and a version option can select the old behaviour.

I'd rather not add 1.1 compatibility now. The syntax is almost the same, the difference is in scalar resolution (no as a boolean, 0777 as octal, implicit timestamps, << merge keys), and 1.2 changed those on purpose. yaml-test-suite covers 1.2 only, so a 1.1 mode would have no conformance check, and js-yaml, Bun.YAML and yaml all default to 1.2 anyway. It can be added later as an option without breaking anything.

@LiviaMedeiros LiviaMedeiros added semver-minor PRs that contain new features and should be released in the next minor version. notable-change PRs with changes that should be highlighted in changelogs. experimental Issues and PRs related to experimental features. labels Nov 3, 2026
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

The notable-change PRs with changes that should be highlighted in changelogs. label has been added by @LiviaMedeiros.

Please suggest a text for the release notes if you'd like to include a more detailed summary, then proceed to update the PR description with the text or a link to the notable change suggested text comment. Otherwise, the commit will be placed in the Other Notable Changes section.

Comment thread lib/internal/yaml/parser.js Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth the maintenance burden of implementing this ourselves? Is there no trusted library that would be suitable, either native or JS?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think using a dependency might be better for our case.

@araujogui

Copy link
Copy Markdown
Member

Can we verify if a native version would be faster?

I'm +1 on adding it to core, but I think we should strive to have near-json performance if possible.

I think near-json performance is not practical, there aren't SIMD yaml parsers yet.

Small benchmark I did:

Parser Input Size (bytes) Time (ms) Throughput (MB/s) vs simdjson
simdjson JSON 2901396 1.148 2528.0 1.0x
rapidyaml YAML 2021384 9.427 214.4 8.2x
yaml-cpp YAML 2021384 223.463 9.0 194.7x

@marcopiraccini

marcopiraccini commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor Author

Should we pick TOML instead? It's much easier to parse (and a simpler parser usually means less maintenance burden), even for humans arguably

It shouldn't be "instead." There are many reasons to parse yaml, and the standard library is not currently providing a means to do so.

@jsumners-nr I did look at vendoring first. yaml is a whole document model, several times more code than this module needs, and on a GitHub Actions style document it parses about 15x slower than this parser.

js-yaml is about as fast, but its default schema resolves the 1.1 types (!!binary, !!timestamp, !!omap, merge keys), while this module sticks to the 1.2 core schema and JSON-shaped values. Either package would end up in deps/ behind a wrapper, or rewritten with primordials to live in lib/, which is a rewrite anyway.

Writing it against the spec gave ~1500 lines of code with 100% coverage and passes the official test suite. YAML 1.2.2 has not changed since 2021, so the maintenance target is a frozen spec with a conformance suite, which I felt manageable.

@marcopiraccini

marcopiraccini commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor Author

Can we verify if a native version would be faster?

I'm +1 on adding it to core, but I think we should strive to have near-json performance if possible.

@mcollina I tried a rapidyaml C++ addon and yaml-rust2 compiled to Wasm on the same workflow.

These are milliseconds per document on Linux x64, including the time to build the JS result and, for Wasm, to encode the input. The sizes are for YAML; I used the equivalent JSON for JSON.parse.

Parser 1 KiB 17 KiB 332 KiB
node:yaml (this PR) 0.016 0.36 6.49
rapidyaml (C++ addon, batch object creation) 0.011 0.16 3.54
yaml-rust2 (Wasm) 0.024 0.40 7.81
JSON.parse 0.003 0.063 1.26

On the 332 KiB input, node:yaml took 6.49 ms, Wasm took 7.81 ms, and rapidyaml took 3.54 ms. Even rapidyaml took about 2.8x as long as JSON.parse. The addon produces the same JS value for this workflow, but it doesn't implement the full node:yaml API.

I would keep the first version in JS: on the 17 KiB workflow the addon saved 0.20 ms per parse, which seems small for a new C++ dependency and binding to maintain.

@ShogunPanda

Copy link
Copy Markdown
Contributor

I agree. Leave it in JS.

@aduh95

aduh95 commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Calling it node:yaml is not forward thinking IMO, unless we're confident that we don't want to add support for more markup languages

Should we pick TOML instead? It's much easier to parse (and a simpler parser usually means less maintenance burden), even for humans arguably

It shouldn't be "instead." There are many reasons to parse yaml, and the standard library is not currently providing a means to do so.

What I meant was "to ship first as an alternative to JSON". Sure parsing YAML would be useful, but if the ecosystem settles on one, TOML is much better choice IMO – for example, SIMD parsers for TOML are available

@jasnell

jasnell commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

@marcopiraccini ... in the next hour or so I'm going to have another dependency option for you to try... putting a few finishing touches on it... but to get a sense, these are the current numbers (MB/s) benchmarking the raw parsing (no node.js involvement yet) against libyaml and rapidyaml.

image

@jasnell

jasnell commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Ok here, please give this a trial run. https://github.com/jasnell/igname

It is still very much a work in progress but has been purpose built with a Node.js binding in mind. Unlike rapidyaml it is event-driven only, avoiding the intermediate tree building with the idea that the events would go straight into JS values.

It supports emitting yaml also but I'm running through some ideas for improving the perf there so the emitter APIs may/will change a bit.

Btw, If this works out, my plan would be to propose transfering the repo to the node.js org.

Update: in testing serialization, the native path via igname beats pure js serialization 1.5x-2x and rapidyaml is slightly slower and uses far more memory. I'm still experimenting tho.

@marcopiraccini

Copy link
Copy Markdown
Contributor Author

Ok here, please give this a trial run. https://github.com/jasnell/igname

@jasnell thanks, I gave it a run (parse only). It is the fastest by a clear margin.

Time to parse one YAML document into a JS value, in milliseconds per document (on my Linux laptop):

Parser 1 KiB 17 KiB 332 KiB
node:formats/yaml (this PR) 0.0155 0.298 5.93
js-yaml 5.5.0, core schema 0.0268 0.334 7.40
yaml 2.9.1 0.201 4.33 139
rapidyaml 0.16.0, C++ addon returning JS objects 0.00898 0.171 3.49
igname 61cf959, C++ addon returning JS objects 0.00517 0.0924 1.87

All five return the same value, and runs differ by up to about 10%. igname is about 3.2x faster than this PR and about 1.8x faster than rapidyaml, end to end.
Code and steps to reproduce: https://github.com/marcopiraccini/yaml-parse-benchmark

Since igname also runs the YAML test suite in its CI, it makes sense to move this PR to it.
The plan would be: vendor igname in deps/ as a separate commit, replace lib/internal/yaml/parser.js with a C++ binding, and keep the current tests (including the YAML test suite run from JS, which then covers the binding too).

Should I vendor it from your repo now, or wait until it is transferred to the nodejs org?

@mcollina would this address your request for a dependency?

@jasnell

jasnell commented Dec 2, 2026

Copy link
Copy Markdown
Member

It can be vendored into this PR now, I'd think. Take the latest push and include an update script. If/when it gets transfered that can be updated to point at the org.

Request to transfer it in: nodejs/admin#1112

marcopiraccini added a commit to marcopiraccini/node that referenced this pull request Dec 3, 2026
igname is a C++ YAML 1.2 parser and emitter, written to be vendored
into Node.js. It is vendored at commit ecf1197, with a script to
update it to the latest commit of its main branch.

Refs: https://github.com/jasnell/igname
Refs: nodejs#67157 (comment)
marcopiraccini added a commit to marcopiraccini/node that referenced this pull request Dec 3, 2026
Replace the JavaScript parser of `node:formats/yaml` with a binding
to igname. The binding creates the JavaScript values from the events
of the parser, without an intermediate tree. The API of `parse()` and
its results are unchanged: aliases keep their identity, duplicate
keys and mismatched core schema tags throw, and collection keys
become their JSON text.

The messages of syntax errors now come from igname. igname accepts
raw DEL, C1 control characters, U+FFFE and U+FFFF, which are not
printable characters in YAML 1.2: the binding rejects them in plain
and block scalars, and quoted scalars accept them.

The tests cover what the binding adds. The YAML test suite is no
longer vendored, since igname runs it.

On a 332 KiB document, parsing takes about a third of the time.

Refs: nodejs#67157 (comment)
Add a YAML 1.2 parser for the core schema as `node:yaml`, behind
`--experimental-yaml`, with `yaml.parse(input)` following the shape of
`Bun.YAML.parse()`. The parser is written from scratch, in one pass from
text to values, with no new dependency. Anchors and aliases resolve to
shared objects, core schema tags are applied, mappings become plain
objects and duplicate keys are an error.

The official yaml-test-suite is vendored as a JSON fixture and run by
test-yaml-test-suite.js: 400 of its 402 cases pass, the two left are
documents with duplicate keys.

Refs: nodejs#53787
Signed-off-by: marcopiraccini <marco.piraccini@gmail.com>
Add `options.throwIfInvalid` to `yaml.parse()`, following the
`fs.statSync()` `throwIfNoEntry` option: with `false` the parser
returns `undefined` instead of building an `ERR_INVALID_YAML` error.
The parser throws an internal sentinel on the first error, so no error
object or message is created in that mode.

Add `tools/update-yaml-test-suite.mjs`, which regenerates
`test/fixtures/yaml-test-suite.json` from the `data` branch of
yaml/yaml-test-suite, and document the fixture layout in the test.
The suite runner also checks the non-throwing mode on every case.

Reuse a single `TextDecoder` instance when decoding buffer input.
Defining every mapping entry through `ObjectDefineProperty()` was half
of the parse time. Build each mapping with a frozen empty prototype
instead, assign the entries, and give the mapping `Object.prototype`
once it is complete. An assignment can then not reach a setter or a
non-writable property inherited from `Object.prototype`, and a
`__proto__` key stays an own property. Parsing is about 60% faster on
typical documents, and the result objects keep V8 fast properties,
which a null-prototype literal would not.
The straw poll in the pull request settled on `node:formats/*` as the
home for data format modules, so that future formats such as TOML do
not each take a top-level name.

Move lib/yaml.js to lib/formats/yaml.js and expose it as
`node:formats/yaml`. The API, the `--experimental-yaml` flag and the
internal parser location are unchanged.

Refs: nodejs#67157 (comment)
Document `node:formats/yaml` in a `formats.md` page that covers the
`node:formats/*` modules, with one section per format, so that
other formats can be added to it later.

Refs: nodejs#67157
"Stream" is the term of the YAML specification for a sequence of
documents, but none of the accepted `input` types is a stream. Refer
to the input or to its documents instead, in the documentation and in
the code.
igname is a C++ YAML 1.2 parser and emitter, written to be vendored
into Node.js. It is vendored at commit ecf1197, with a script to
update it to the latest commit of its main branch.

Refs: https://github.com/jasnell/igname
Refs: nodejs#67157 (comment)
Replace the JavaScript parser of `node:formats/yaml` with a binding
to igname. The binding creates the JavaScript values from the events
of the parser, without an intermediate tree. The API of `parse()` and
its results are unchanged: aliases keep their identity, duplicate
keys and mismatched core schema tags throw, and collection keys
become their JSON text.

The messages of syntax errors now come from igname. igname accepts
raw DEL, C1 control characters, U+FFFE and U+FFFF, which are not
printable characters in YAML 1.2: the binding rejects them in plain
and block scalars, and quoted scalars accept them.

The tests cover what the binding adds. The YAML test suite is no
longer vendored, since igname runs it.

On a 332 KiB document, parsing takes about a third of the time.

Refs: nodejs#67157 (comment)
@marcopiraccini

Copy link
Copy Markdown
Contributor Author

@jasnell @mcollina the PR now parses with igname, as suggested in #67157 (comment).

@aduh95 aduh95 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's make igname opt-in via a configure flag (e.g. --with-yaml) so we can backport this, and remove the runtime experimental flag. We can make the configure flag opt-out in a semver-major

Comment thread src/node_yaml.cc Resolved
Comment thread src/node_yaml.cc
// Without throwIfInvalid the result is undefined.
if (!throw_if_invalid) return;
std::string message;
if (result.error == igname::Error::kAborted) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some error messages point to the wrong column when the line has non-ASCII characters before the error.

There are two kinds of error here:

  • Syntax errors. igname finds these, and it counts the column in characters. These are correct.
  • Errors this file finds, such as duplicate keys, tags that don't match the value, unknown anchors, and characters that aren't allowed. These get their column from igname::Mark, which counts bytes, not characters (igname.hpp:86).

In UTF-8, é is 2 bytes, so each é before the error pushes the column one place too far right:

parse('{a: 1, a: 2}');      // column 8   (correct)
parse('{é: 1, é: 2}');      // column 9   (should be 8)
parse('{ééé: 1, ééé: 2}');  // column 13  (should be 10)
parse('[ééé, !!int a]');    // column 10  (should be 7)

A fix: before building the message, find where the error's line starts and count characters instead of bytes up to the error. The NUL check below already counts this way. It only runs when there's an error, so it costs nothing in the normal case.

Could you also add a test with a non-ASCII character before the error? All the current position tests use ASCII only, which is why this wasn't caught.

Alternatively, we can modify igname's column reporting here.

Comment thread src/node_yaml.cc

// Returns false with a negative budget when the text is too long, and with
// a pending exception otherwise.
bool AppendKeyJSON(Local<Value> value, std::string* out, int* budget) {

@jasnell jasnell Dec 3, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worth a check here that something like yaml.parse('? [.nan]\n: first\n? [~]\n: second\n'); works correctly.

> yaml.parse('? [.nan]\n: first\n? [~]\n: second\n');
Uncaught [SyntaxError: Duplicate mapping key "[null]" (line 3, column 3)
] {
  code: 'ERR_INVALID_YAML'
}

Comment thread src/node_yaml.cc Resolved
Comment thread src/node_yaml.cc Resolved
Comment thread src/node_yaml.cc Resolved
Comment thread lib/formats/yaml.js Resolved
@jasnell

jasnell commented Dec 3, 2026

Copy link
Copy Markdown
Member

Handful of additional review points, but I'd consider them optional for the initial version so long as there is follow-up

Build mappings with fast properties, count error columns in characters, keep NaN and the infinities distinct in collection keys, pass binary input to the parser without decoding it, reject keys longer than a string can be, and accept at most one document.
@marcopiraccini

Copy link
Copy Markdown
Contributor Author

Let's make igname opt-in via a configure flag (e.g. --with-yaml) so we can backport this, and remove the runtime experimental flag. We can make the configure flag opt-out in a semver-major

@aduh95 I'm fine with gating this at build time and dropping --experimental-yaml. One question: with the flag off by default, the regular CI jobs skip the YAML tests. Should one job enable it, e.g. like test-linux-quic.yml does for QUIC?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. experimental Issues and PRs related to experimental features. large-pr PRs subject to the large-PR policy. lib / src Issues and PRs involving general changes in the lib/ or src/ directories. needs-ci PRs that need a full CI run. notable-change PRs with changes that should be highlighted in changelogs. semver-minor PRs that contain new features and should be released in the next minor version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.