Skip to content

Rewrite to have parse take schema to prevent accessing refs#7

Merged
bas080 merged 1 commit intomasterfrom
require-schema-in-parse-to-prevent-access-of-undefined-refs
Apr 8, 2026
Merged

Rewrite to have parse take schema to prevent accessing refs#7
bas080 merged 1 commit intomasterfrom
require-schema-in-parse-to-prevent-access-of-undefined-refs

Conversation

@bas080
Copy link
Copy Markdown
Owner

@bas080 bas080 commented Apr 8, 2026

Things to consider are the change of stringify to also take a schema. This is not required as of now. Should that be changed or should we keep the "module" module. There are reasons for and against.

Reasons for:

  • Stringify will always need instrumented values so it makes sense to merge the two.

Reasons against:

  • If people want to make a instrumented version of a module they will have to pull in stringify.

Reasons against win. We do not want people throwing away stringify functions or create a new one just to stringify other instrumented values.

We add back the idea of module but let's also carefully consider the naming.

@bas080 bas080 force-pushed the require-schema-in-parse-to-prevent-access-of-undefined-refs branch from 714fe17 to fb07ccf Compare April 8, 2026 15:26
This results in a major release because it changes the API.

Since we are doing that we can also do some renames and changes to
other APIs.
@bas080 bas080 force-pushed the require-schema-in-parse-to-prevent-access-of-undefined-refs branch from fb07ccf to 9d03782 Compare April 8, 2026 15:28
@bas080 bas080 merged commit df16f85 into master Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant