Skip to content

chore: update versions - #80

Merged
macalinao merged 2 commits into
masterfrom
changeset-release/master
Aug 13, 2026
Merged

macalinao merged 2 commits into
masterfrom
changeset-release/master

Conversation

@github-actions

@github-actions github-actions Bot commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.

Releases

temporal-orpc@1.0.0

Minor Changes

  • 33d699a: New package: oRPC support for Temporal types.

    oRPC generates its OpenAPI documents with its own ZodToJsonSchemaConverter,
    which re-implements the Zod → JSON Schema conversion rather than calling
    z.toJSONSchema(), so the metadata temporal-zod attaches to each validator is
    ignored — a Temporal validator is a z.union([...]) underneath, and the
    converter emits a messy anyOf with no format/pattern.

    temporal-orpc exports temporalJsonSchemaInterceptor, which you pass to the
    converter so every Temporal validator renders as the correct string schema:

    import { ZodToJsonSchemaConverter } from "@orpc/zod/zod4";
    import { temporalJsonSchemaInterceptor } from "temporal-orpc";
    
    new ZodToJsonSchemaConverter({
      interceptors: [temporalJsonSchemaInterceptor],
    });

    It rewrites only the schemas in temporalRegistry — temporal-zod's own
    validators — so your schemas are left entirely to oRPC, including ones you
    annotate the same way, such as
    z.string().min(5).meta({ type: "string", format: "email" }), which keeps the
    minLength oRPC derives from its checks.

    temporal-zod and @orpc/zod are peer dependencies: the interceptor has to
    consult the same registry instance your validators registered into, and it is
    typed against oRPC's own interceptor signature.

Patch Changes

  • Updated dependencies [33d699a]
    • temporal-zod@0.8.0

temporal-zod@0.8.0

Minor Changes

  • 33d699a: Export temporalRegistry, a Zod registry scoped to this package that holds every
    validator temporal-zod creates along with its JSON Schema. Use it to recognize
    Temporal validators in your own schema walks by identity —
    temporalRegistry.has(zInstant) — instead of pattern matching on
    z.globalRegistry metadata, which cannot tell our schemas apart from yours. The
    metadata-free temporal-zod/base validators are not members.

    This is what the new temporal-orpc
    package consults to fix Temporal types in oRPC-generated OpenAPI documents.

    Widen the exported *_PATTERN regexes to accept everything toJSON() can emit,
    which matters now that they are published as an OpenAPI contract. They previously
    rejected strings the validators themselves parse:

    • The [u-ca=…] annotation appended under a non-ISO calendar, for PlainDate,
      PlainDateTime, PlainYearMonth, PlainMonthDay, and ZonedDateTime.
    • The full reference-date form PlainYearMonth and PlainMonthDay serialize to
      under a non-ISO calendar (e.g. 2022-12-25[u-ca=hebrew]). A bare calendar date
      is still rejected for both, since the annotation is required in that form.
    • Signed six-digit years for years outside 0000–9999 (e.g. -000753-04-21).

    ZONED_DATE_TIME_PATTERN also no longer ends in \[.+\], whose greedy .+
    spanned both bracket groups and accepted malformed annotations such as
    [not a time zone!][].

    Note that PlainDate still advertises format: "date", which is RFC 3339
    full-date and cannot carry an annotation, so a validator that asserts format
    will reject a non-ISO PlainDate even though the pattern accepts it.

Summary by Sourcery

Release temporal-orpc 1.0.0 and temporal-zod 0.8.0, updating registry and schema support for Temporal types and aligning package versions.

New Features:

  • Introduce the temporal-orpc package providing oRPC/OpenAPI support for Temporal types via a JSON Schema interceptor.
  • Expose a temporalRegistry from temporal-zod to identify Temporal validators by identity for schema processing.

Enhancements:

  • Relax Temporal-related pattern regexes in temporal-zod to accept all forms produced by Temporal toJSON(), improving OpenAPI contract accuracy.

Build:

  • Update devDependency versions for temporal-polyfill and turbo in the root package configuration.

Releases:
  temporal-orpc@1.0.0
  temporal-zod@0.8.0

[skip ci]
@sourcery-ai

sourcery-ai Bot commented Aug 13, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Release PR updating package versions, adding temporal-orpc 1.0.0 changelog, temporal-zod 0.8.0 changelog, and aligning peer deps and dev tooling versions with the new release.

Sequence diagram for temporalJsonSchemaInterceptor integration with ZodToJsonSchemaConverter

sequenceDiagram
  participant App
  participant ZodToJsonSchemaConverter
  participant temporalJsonSchemaInterceptor
  participant temporalRegistry

  App->>ZodToJsonSchemaConverter: new ZodToJsonSchemaConverter({ interceptors: [temporalJsonSchemaInterceptor] })
  ZodToJsonSchemaConverter->>temporalJsonSchemaInterceptor: intercept(zodSchema)
  temporalJsonSchemaInterceptor->>temporalRegistry: has(zodSchema)
  alt [schema is in temporalRegistry]
    temporalRegistry-->>temporalJsonSchemaInterceptor: true
    temporalJsonSchemaInterceptor-->>ZodToJsonSchemaConverter: return temporal_json_string_schema
  else [schema is not in temporalRegistry]
    temporalRegistry-->>temporalJsonSchemaInterceptor: false
    temporalJsonSchemaInterceptor-->>ZodToJsonSchemaConverter: return original_json_schema
  end
Loading

File-Level Changes

Change Details Files
Document the temporal-zod 0.8.0 release and its behavioral changes to Temporal regex patterns and the new temporalRegistry export.
  • Added a 0.8.0 section to the temporal-zod changelog describing temporalRegistry and widened *_PATTERN regexes.
  • Explained behavior changes for ZonedDateTime and non-ISO calendar annotations and how they interact with OpenAPI contracts.
packages/temporal-zod/CHANGELOG.md
Update package versions and peer dependencies to reflect the temporal-orpc 1.0.0 and temporal-zod 0.8.0 releases, plus minor dev-tool version bumps.
  • Bumped temporal-orpc package version from 0.0.1 to 1.0.0.
  • Bumped temporal-zod package version from 0.7.0 to 0.8.0.
  • Updated temporal-orpc peer dependency on temporal-zod from ^0.7.0 to ^0.8.0.
  • Bumped dev dependencies temporal-polyfill and turbo in the root package.json.
  • Updated bun.lock to reflect new versions.
packages/temporal-orpc/package.json
packages/temporal-zod/package.json
package.json
bun.lock
Add the initial temporal-orpc 1.0.0 changelog and remove now-consumed Changesets files.
  • Created temporal-orpc changelog documenting the 1.0.0 release and temporalJsonSchemaInterceptor usage.
  • Removed the Changesets markdown files for temporal-orpc initial release and temporal-registry changes now that they are published.
packages/temporal-orpc/CHANGELOG.md
.changeset/temporal-orpc-initial.md
.changeset/temporal-registry.md

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@macalinao
macalinao merged commit 900ea93 into master Aug 13, 2026
5 checks passed
@macalinao
macalinao deleted the changeset-release/master branch August 13, 2026 08:13
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