Skip to content

chore(deps): bump schema-dts from 1.1.5 to 2.0.0#11

Merged
WomB0ComB0 merged 1 commit intomainfrom
dependabot/npm_and_yarn/schema-dts-2.0.0
Mar 29, 2026
Merged

chore(deps): bump schema-dts from 1.1.5 to 2.0.0#11
WomB0ComB0 merged 1 commit intomainfrom
dependabot/npm_and_yarn/schema-dts-2.0.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

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

Bumps schema-dts from 1.1.5 to 2.0.0.

Release notes

Sourced from schema-dts's releases.

schema-dts & schema-dts-gen v2.0.0

Changes in schema-dts

  • Supports the latest Schema.org release from Schema.org v30 -- See https://schema.org/docs/releases.html#v30.0

  • Input and Output constraints are now supported, for example:

    import type {SearchAction, WebSite, WithActionConstraints} from 'schema-dts';
    const potentialAction: WithActionConstraints<SearchAction> = {
    '@​type': 'SearchAction',
    'query-input': 'required name=search_term_string',
    // ...
    };
    const website: WebSite = {
    '@​type': 'WebSite',
    potentialAction: {
    '@​type': 'SearchAction',
    'query-input': 'required name=search_term_string',
    } as WithActionConstraints<SearchAction>,
    };

  • Breaking change: Update typings for Roles so that they are not recursive, see #205 for more details

  • Breaking change: Quantity is now a core DataType, this is a change done in schema.org v30.0 and will technically make certain formerly-legal (but likely invalid) assignments no longer work

  • "Leaf" types are now exported. While objects like Thing or Organization require a type union that includes the object itself, it can also include any of its children. Now, if you want type something as a Thing exactly, you can import ThingLeaf which can only be a Thing and does not allow sub-types.

  • Support MergeLeafTypes, which fixes a long-running user request (#179 #189 #203), allowing a multi-typed schema object to be declared. Shout out to @​mjy9088 and @​cochinescu for the work to get this working. This allows declarations like this to be made:

    import type { MergeLeafTypes,ProductLeaf, SoftwareApplicationLeaf,  WithContext } from 'schema-dts';
    const app: WithContext<MergeLeafTypes<[ProductLeaf, SoftwareApplicationLeaf]>> =
    {
    '@​context': 'https://schema.org',
    '@​type': ['Product', 'SoftwareApplication'],
    name: 'My App',
    offers: {
    '@​type': 'Offer',
    price: 89,
    priceCurrency: 'USD',
    },
    operatingSystem: 'Any',
    };

    while #189 and #179 are not completely addressed since a random Thing cannot be a merged type, this allows some multi-type objects to exist, though they need to be explicitly declared as such by the developer.

  • Technically a breaking change: Some non-schema.org types exported in schema-dts are now renamed. These are included mostly for equivalence because the Schema.org ontology defines them, but most users should not depend on them. The names for these classes are now escaped fully-qualified IRIs instead of just the "in-context" name. This is needed because new types with the same "in-context" name have been added as external references, e.g. www.omg.org/spec/Commons/DatesAndTimes/Date which conflicts with schema.org/Date. Now, this is exported as www_omg_org_spec_Commons_DatesAndTimes_Date.

Changes in schema-dts-gen

  • Compatibility with Schema.org v30

... (truncated)

Commits
  • a848f5b Bump schema-dts version to 2.0.0
  • c993c36 Fix import clause overload and apply prettier
  • 7767d82 Add MergeLeafTypes helper and export leaf types
  • 6df4f89 Factor out common types that don't depend on the exact schema into schema-dts...
  • 8263488 Update installation commands in README files to use --save-dev flag
  • 0d91fcc Update withcontext.ts (comment typo)
  • 32c2b2d feat: add WithActionConstraints helper
  • See full diff in compare view

@dependabot dependabot bot added dependencies Automated dependency updates javascript JavaScript and TypeScript dependency updates labels Mar 27, 2026
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
landing Error Error Mar 29, 2026 9:56am

Request Review

@WomB0ComB0
Copy link
Copy Markdown
Member

@dependabot rebase

Bumps [schema-dts](https://github.com/google/schema-dts/tree/HEAD/packages/schema-dts) from 1.1.5 to 2.0.0.
- [Release notes](https://github.com/google/schema-dts/releases)
- [Commits](https://github.com/google/schema-dts/commits/v2.0.0/packages/schema-dts)

---
updated-dependencies:
- dependency-name: schema-dts
  dependency-version: 2.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/schema-dts-2.0.0 branch from d41df9e to b1196f2 Compare March 29, 2026 09:56
@github-actions github-actions bot added size/M and removed size/XS labels Mar 29, 2026
@WomB0ComB0 WomB0ComB0 merged commit 2da91fe into main Mar 29, 2026
10 of 11 checks passed
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/schema-dts-2.0.0 branch March 29, 2026 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Automated dependency updates javascript JavaScript and TypeScript dependency updates size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant