Skip to content

Bump z-schema from 11.0.1 to 12.0.0#692

Merged
NuclearPhoenixx merged 1 commit intodevfrom
dependabot/npm_and_yarn/dev/z-schema-12.0.0
Mar 4, 2026
Merged

Bump z-schema from 11.0.1 to 12.0.0#692
NuclearPhoenixx merged 1 commit intodevfrom
dependabot/npm_and_yarn/dev/z-schema-12.0.0

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 3, 2026

Bumps z-schema from 11.0.1 to 12.0.0.

Release notes

Sourced from z-schema's releases.

v12.0.0

12.0.0 (2026-02-28)

⚠ BREAKING CHANGES

  • implement maxRecursionDepth safeguard

Features

  • implement maxRecursionDepth safeguard (d3a2e4f)

Bug Fixes

  • ci: target github-copilot agent explicitly, add debug step, remove pipefail-breaking find (7447706)
  • failing workflow (ba02b66)
  • fix "custome" typo in schema-validator comments (d5d504b)
  • formats: respect null overrides in isFormatSupported (077cc34)
  • make getId draft-aware to return id for draft-04 and $id for newer drafts (c7ec640)

Performance Improvements

  • convert difference() to use Set for O(1) lookups (da39595)
  • schema-cache: cache global_cache clone in instance cache on first access (21e2bca)
  • utils: optimize isUniqueArray with primitive fast path (de94b36)
Changelog

Sourced from z-schema's changelog.

12.0.0 (2026-02-28)

⚠ BREAKING CHANGES

  • Default schema version changed from draft-07 to draft2020-12. If your schemas rely on draft-04/06/07 behavior, set version explicitly or declare $schema in every schema. See MIGRATION.md for details.
  • Format is annotation-only by default for draft-2019-09 / draft-2020-12. In these drafts, unknown formats no longer produce errors (per the specification). Set formatAssertions: null to restore the legacy always-assert behavior.
  • New maxRecursionDepth safeguard (default: 100). Deeply nested schemas or data that previously validated may now fail with MAX_RECURSION_DEPTH_EXCEEDED. Increase the value if needed.

Features

  • implement draft-2019-09 and draft-2020-12 support with draft2020-12 as the new default version (#355) (c0c3a30)
    • draft-2019-09: $anchor, $recursiveRef/$recursiveAnchor, $defs, $vocabulary, dependentRequired, dependentSchemas, maxContains, minContains, unevaluatedItems, unevaluatedProperties
    • draft-2020-12: $dynamicRef/$dynamicAnchor, prefixItems, refined items (applies to remaining items after prefixItems)
    • Full annotation-based unevaluatedProperties/unevaluatedItems with applicator traversal through allOf, anyOf, oneOf, if/then/else, dependentSchemas, contains, $ref, $recursiveRef, $dynamicRef
  • add formatAssertions option to control format assertion behavior per draft (c0c3a30)
  • implement maxRecursionDepth safeguard (d3a2e4f)
  • new TypeScript types: JsonSchemaDraft201909, JsonSchemaDraft202012 with layered inheritance (ba1bd69)
  • new error codes: ARRAY_UNEVALUATED_ITEMS, OBJECT_UNEVALUATED_PROPERTIES, COLLECT_EVALUATED_DEPTH_EXCEEDED, MAX_RECURSION_DEPTH_EXCEEDED

Bug Fixes

  • formats: respect null overrides in isFormatSupported (077cc34)
  • make getId draft-aware to return id for draft-04 and $id for newer drafts (c7ec640)
  • fix "custome" typo in schema-validator comments (d5d504b)

Performance Improvements

  • convert difference() to use Set for O(1) lookups (da39595)
  • schema-cache: cache global_cache clone in instance cache on first access (21e2bca)
  • utils: optimize isUniqueArray with primitive fast path (de94b36)

Refactoring

  • split json-validation.ts into validation/keyword modules (type, numeric, string, array, object, combinators, ref) (121a5da)
  • populate draft-specific TypeScript interfaces with layered inheritance (ba1bd69)
  • replace ___$visited schema mutation with WeakSet in getResolvedSchema (161430c)
  • add Report.addAsyncTaskWithPath to encapsulate async path save/restore (dd64322)
  • replace factory @​ts-expect-error with module-private FACTORY_TOKEN symbol (7364904)
  • modernize loop patterns, indexOf, hasOwn, and unicode handling (e2a3edb)
  • deduplicate setRemoteReference, NON_SCHEMA_KEYWORDS, async task aggregation, and isInternalKey (003c413)

Tests

  • migrate ZSchemaTestSuite legacy JS fixtures to TypeScript (fc87835)
  • make error-ordering assertions order-independent (8f19ee4)
Commits
  • ae4f0e8 chore(main): release 12.0.0 (#362)
  • d5d504b fix: fix "custome" typo in schema-validator comments
  • fc87835 test: migrate ZSchemaTestSuite legacy JS fixtures to TypeScript
  • c64a583 docs: verify changelog entries against git diffs and add missing migration se...
  • 84be8fe docs: fix README version table, add variant examples, TSDoc, perf notes, and ...
  • 7364904 refactor: replace factory @​ts-expect-error with module-private FACTORY_TOKEN ...
  • dd64322 refactor: add Report.addAsyncTaskWithPath to encapsulate async path save/restore
  • c7ec640 fix: make getId draft-aware to return id for draft-04 and $id for newer drafts
  • 161430c refactor: replace ___$visited schema mutation with WeakSet in getResolvedSchema
  • ba1bd69 refactor: populate draft-specific TypeScript interfaces with layered inheritance
  • Additional commits viewable in compare view

Most Recent Ignore Conditions Applied to This Pull Request
Dependency Name Ignore Conditions
z-schema [>= 7.0.a, < 7.1]
z-schema [>= 9.0.a, < 9.1]

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [z-schema](https://github.com/zaggino/z-schema) from 11.0.1 to 12.0.0.
- [Release notes](https://github.com/zaggino/z-schema/releases)
- [Changelog](https://github.com/zaggino/z-schema/blob/main/CHANGELOG.md)
- [Commits](zaggino/z-schema@v11.0.1...v12.0.0)

---
updated-dependencies:
- dependency-name: z-schema
  dependency-version: 12.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Mar 3, 2026
@NuclearPhoenixx NuclearPhoenixx merged commit 88b705f into dev Mar 4, 2026
4 checks passed
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/dev/z-schema-12.0.0 branch March 4, 2026 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Development

Successfully merging this pull request may close these issues.

1 participant