Skip to content

fix: upgrade @openapi-spec packages to v0.3.0 - #2178

Merged
dinwwwh merged 1 commit into
mainfrom
claude/keen-tesla-y6gf0f
Oct 4, 2026
Merged

dinwwwh merged 1 commit into
mainfrom
claude/keen-tesla-y6gf0f

Conversation

@dinwwwh

@dinwwwh dinwwwh commented Oct 4, 2026

Copy link
Copy Markdown
Member

Upgrades @openapi-spec/types and @openapi-spec/downgrader to v0.3.0 across the monorepo, and updates import statements to use the new versioned export paths.

Changes

  • Updated dependencies: Bumped @openapi-spec/types from ~0.1.0 to ~0.3.0 in packages/openapi, packages/json-schema, and packages/zod; bumped @openapi-spec/downgrader from ~0.1.0 to ~0.3.0 in packages/openapi
  • Updated import statements: Changed from default named imports (OpenAPIV3_0, OpenAPIV3_1, OpenAPIV3_2) to namespace imports from versioned subpaths (@openapi-spec/types/v3.0, @openapi-spec/types/v3.1, @openapi-spec/types/v3.2) in packages/openapi/src/types.ts and packages/json-schema/src/types.ts
  • Updated re-exports: Removed the no-restricted-imports eslint disable comment from the re-export statement in packages/openapi/src/types.ts since imports are now from versioned subpaths

Implementation Details

The new version of @openapi-spec/types uses versioned export paths instead of a single barrel export, requiring consumers to import from specific version subpaths. This change is reflected across all packages that depend on these types.

https://claude.ai/code/session_01LSvM1s4GEexEQATTaN5AEW

Upgrades `@openapi-spec/types` and `@openapi-spec/downgrader` from 0.1.0
to 0.3.0 in `openapi`, `json-schema`, and `zod`.

`@openapi-spec/types` 0.3.0 removes its root entry, so the
`OpenAPIV3_0`/`OpenAPIV3_1`/`OpenAPIV3_2` namespaces are now imported
from the `/v3.0`, `/v3.1`, and `/v3.2` subpaths. The public
`OpenAPIV3_*` exports of `@orpc/openapi` are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LSvM1s4GEexEQATTaN5AEW
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
orpc fa604f7 Commit Preview URL

Branch Preview URL
Oct 04 2026, 08:15 AM

@dinwwwh dinwwwh changed the title chore: upgrade @openapi-spec packages to v0.3.0 fix: upgrade @openapi-spec packages to v0.3.0 Oct 4, 2026
@pkg-pr-new

pkg-pr-new Bot commented Oct 4, 2026

Copy link
Copy Markdown
More templates

@orpc/ai-sdk

npm i https://pkg.pr.new/@orpc/ai-sdk@2178

@orpc/arktype

npm i https://pkg.pr.new/@orpc/arktype@2178

@orpc/bun

npm i https://pkg.pr.new/@orpc/bun@2178

@orpc/client

npm i https://pkg.pr.new/@orpc/client@2178

@orpc/cloudflare

npm i https://pkg.pr.new/@orpc/cloudflare@2178

@orpc/contract

npm i https://pkg.pr.new/@orpc/contract@2178

@orpc/experimental-effect

npm i https://pkg.pr.new/@orpc/experimental-effect@2178

@orpc/evlog

npm i https://pkg.pr.new/@orpc/evlog@2178

@orpc/hibernation

npm i https://pkg.pr.new/@orpc/hibernation@2178

@orpc/json-schema

npm i https://pkg.pr.new/@orpc/json-schema@2178

@orpc/experimental-lock

npm i https://pkg.pr.new/@orpc/experimental-lock@2178

@orpc/experimental-msw

npm i https://pkg.pr.new/@orpc/experimental-msw@2178

@orpc/nest

npm i https://pkg.pr.new/@orpc/nest@2178

@orpc/next

npm i https://pkg.pr.new/@orpc/next@2178

@orpc/node

npm i https://pkg.pr.new/@orpc/node@2178

@orpc/openapi

npm i https://pkg.pr.new/@orpc/openapi@2178

@orpc/opentelemetry

npm i https://pkg.pr.new/@orpc/opentelemetry@2178

@orpc/pinia-colada

npm i https://pkg.pr.new/@orpc/pinia-colada@2178

@orpc/pino

npm i https://pkg.pr.new/@orpc/pino@2178

@orpc/publisher

npm i https://pkg.pr.new/@orpc/publisher@2178

@orpc/ratelimit

npm i https://pkg.pr.new/@orpc/ratelimit@2178

@orpc/server

npm i https://pkg.pr.new/@orpc/server@2178

@orpc/shared

npm i https://pkg.pr.new/@orpc/shared@2178

@orpc/swr

npm i https://pkg.pr.new/@orpc/swr@2178

@orpc/tanstack-query

npm i https://pkg.pr.new/@orpc/tanstack-query@2178

@orpc/trpc

npm i https://pkg.pr.new/@orpc/trpc@2178

@orpc/valibot

npm i https://pkg.pr.new/@orpc/valibot@2178

@orpc/zod

npm i https://pkg.pr.new/@orpc/zod@2178

commit: fa604f7

@codecov

codecov Bot commented Oct 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@codspeed

codspeed Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will improve performance by 13.07%

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

⚡ 1 improved benchmark
✅ 29 untouched benchmarks

Performance Changes

Benchmark BASE HEAD Efficiency
⚡ serve deeply nested encoded path 1.2 ms 1 ms +13.07%

Tip

Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.


Comparing claude/keen-tesla-y6gf0f (fa604f7) with main (161cdc0)

Open in CodSpeed

@pullfrog pullfrog Bot 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.

✅ No new issues found.

Reviewed changes — dependency bump of @openapi-spec/types and @openapi-spec/downgrader to ~0.3.0 across the openapi/json-schema/zod packages, plus the import-path rewrite needed by the new package layout.

  • Version bumps: @openapi-spec/types ~0.1.0 → ~0.3.0 in packages/json-schema, packages/openapi, packages/zod; @openapi-spec/downgrader ~0.1.0 → ~0.3.0 in packages/openapi.
  • Versioned subpath imports: @openapi-spec/types@0.3.0 drops the root . barrel, so OpenAPIV3_0/1/2 are now namespace imports from @openapi-spec/types/v3.0|v3.1|v3.2 in packages/openapi/src/types.ts and packages/json-schema/src/types.ts, each keeping its no-restricted-imports disable.
  • Re-export cleanup: the openapi package re-exports the local namespace bindings and removes the now-unneeded disable comment on the export line.
  • Lockfile: pnpm-lock.yaml pins both packages to 0.3.0, and the downgrader snapshot correctly resolves its @openapi-spec/types to 0.3.0.

Verified locally: pnpm type:check, pnpm lint, and pnpm vitest run packages/openapi packages/json-schema packages/zod (699 tests) all pass. The v0.3.0 subpath modules expose the same type members as the old barrel namespace, and the downgrades to OpenAPI 3.0/3.1 tests still assert exact output, covering the downgrader behavior change.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

@dinwwwh
dinwwwh merged commit 2dc6099 into main Oct 4, 2026
12 checks passed
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.

2 participants