Skip to content

Conversation

@ymc9
Copy link
Member

@ymc9 ymc9 commented Oct 24, 2025

Summary by CodeRabbit

  • Chores

    • Renamed the core package from @zenstackhq/runtime to @zenstackhq/orm across all dependencies and internal references.
  • Documentation

    • Updated installation instructions and code examples to reference the new package name @zenstackhq/orm.

Copilot AI review requested due to automatic review settings October 24, 2025 04:03
@coderabbitai
Copy link

coderabbitai bot commented Oct 24, 2025

Walkthrough

This pull request systematically renames the public package identifier from @zenstackhq/runtime to @zenstackhq/orm across the entire codebase. All import statements, package.json dependencies, documentation, and generated code files are updated to reflect this rename. No functional changes or behavioral modifications are introduced.

Changes

Cohort / File(s) Summary
Documentation
CLAUDE.md, README.md, samples/blog/README.md
Updated references and examples to use @zenstackhq/orm instead of @zenstackhq/runtime in documentation and installation instructions.
Core Package Metadata
packages/orm/package.json
Renamed package name from @zenstackhq/runtime to @zenstackhq/orm and updated description to "ZenStack ORM".
Workspace Dependencies
packages/cli/package.json, packages/server/package.json, packages/plugins/policy/package.json, packages/tanstack-query/package.json, packages/testtools/package.json, packages/zod/package.json, tests/e2e/package.json, tests/regression/package.json
Updated workspace dependencies from @zenstackhq/runtime to @zenstackhq/orm.
CLI Package Files
packages/cli/src/actions/generate.ts, packages/cli/src/actions/init.ts, packages/cli/src/actions/templates.ts, packages/cli/test/ts-schema-gen.test.ts, packages/create-zenstack/src/index.ts
Updated imports and package references in CLI tools and initialization sequences to use ORM package paths.
SDK and Schema Generation
packages/sdk/src/ts-schema-generator.ts
Updated generated TypeScript schema imports to reference @zenstackhq/orm and @zenstackhq/orm/schema.
Policy Plugin Files
packages/plugins/policy/src/column-collector.ts, packages/plugins/policy/src/expression-evaluator.ts, packages/plugins/policy/src/expression-transformer.ts, packages/plugins/policy/src/functions.ts, packages/plugins/policy/src/plugin.ts, packages/plugins/policy/src/policy-handler.ts, packages/plugins/policy/src/types.ts, packages/plugins/policy/src/utils.ts
Updated all policy plugin imports from runtime to ORM package sources.
Server Package Files
packages/server/src/api/rpc/index.ts, packages/server/src/express/middleware.ts, packages/server/src/types.ts, packages/server/test/api/rpc.test.ts
Updated server API and Express middleware imports to use ORM package.
Runtime Integration Packages
packages/tanstack-query/src/react.ts, packages/testtools/src/client.ts, packages/testtools/src/project.ts, packages/testtools/src/vitest-ext.ts, packages/zod/src/index.ts, packages/zod/src/types.ts
Updated type imports and package references in integration and testing utility packages.
Sample Application
samples/blog/package.json, samples/blog/main.ts, samples/blog/zenstack/input.ts, samples/blog/zenstack/models.ts, samples/blog/zenstack/schema.ts
Updated sample application dependencies and generated type imports; expanded input.ts with additional model-specific type exports (Create, Update, Delete, Aggregate variants).
E2E Test Client API Files
tests/e2e/orm/client-api/\\*.test.ts, tests/e2e/orm/client-api/utils.ts
Updated ClientContract and utility imports across 20+ test files from runtime to ORM package.
E2E Test Plugin Infrastructure
tests/e2e/orm/plugin-infra/\\*.test.ts
Updated plugin test imports for ClientContract and plugin utilities to reference ORM package.
E2E Test Policy Files
tests/e2e/orm/policy/basic-schema-read.test.ts, tests/e2e/orm/policy/crud/create.test.ts, tests/e2e/orm/policy/migrated/\\*.test.ts
Updated policy-related test imports and error type references to ORM package.
E2E Test Schema Files
tests/e2e/orm/schemas/basic/\\*.ts, tests/e2e/orm/schemas/delegate/\\*.ts, tests/e2e/orm/schemas/name-mapping/\\*.ts, tests/e2e/orm/schemas/petstore/\\*.ts, tests/e2e/orm/schemas/todo/\\*.ts, tests/e2e/orm/schemas/typing/\\*.ts
Updated generated schema type imports; expanded input.ts files with additional model-specific type exports (Create, Update, Delete, Aggregate variants for affected models).
Regression Test Files
tests/regression/package.json, tests/regression/test/issue-204/\\*.ts, tests/regression/test/v2-migrated/\\*.test.ts
Updated regression test dependencies and generated type/client imports to reference ORM package.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~18 minutes

This is a large-scale refactoring with highly homogeneous changes—the same rename pattern (@zenstackhq/runtime@zenstackhq/orm) applied consistently across ~100 files. While the scope is substantial, the repetitive nature and lack of logic changes reduce complexity. Most review effort centers on verifying completeness of the rename across all import statements and package dependencies. A few files introduce additional type exports (input.ts variants) that follow a consistent, templated pattern, adding minor review overhead.

Possibly related PRs

Poem

🐰 Runtime becomes ORM, a name at last,
A thousand imports rebound from past,
No logic changed, just paths anew,
From shadows of runtime to clarity true,
The rabbit hops through refactored code,
Each @zenstackhq/orm lights the road! 🚀

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 40.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The pull request title "refactor: rename runtime package to orm" directly and accurately summarizes the primary change in the changeset. The PR involves systematically renaming the "@zenstackhq/runtime" package to "@zenstackhq/orm" across the entire codebase, including updating the package.json metadata, all import statements, and related documentation. The title is concise, uses clear language following conventional commit format, and provides sufficient specificity that a teammate reviewing the git history would immediately understand the core refactoring work without requiring additional context.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch refactor/orm-package

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR renames the @zenstackhq/runtime package to @zenstackhq/orm to better reflect its purpose as an ORM engine. The refactoring updates all import statements, package references, and documentation across the entire codebase to use the new package name.

Key changes:

  • Package renamed from @zenstackhq/runtime to @zenstackhq/orm in package.json files
  • All import statements updated from @zenstackhq/runtime to @zenstackhq/orm
  • Documentation and comments updated to reference "ORM" instead of "runtime"

Reviewed Changes

Copilot reviewed 99 out of 147 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/orm/package.json Updated package name and description from runtime to orm
packages/*/package.json Updated dependencies from @zenstackhq/runtime to @zenstackhq/orm
**/*.ts Updated import statements to reference @zenstackhq/orm
packages/sdk/src/ts-schema-generator.ts Updated generated code to import from @zenstackhq/orm
packages/cli/src/actions/*.ts Updated CLI templates and messages to reference @zenstackhq/orm
README.md Updated installation instructions and references
CLAUDE.md Updated documentation to reflect orm package naming
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@claude
Copy link

claude bot commented Oct 24, 2025

Claude finished @ymc9's task —— View job


PR Review: Package Rename from @zenstackhq/runtime to @zenstackhq/orm

This is a comprehensive refactoring that renames the @zenstackhq/runtime package to @zenstackhq/orm to better reflect its purpose as an ORM engine. I've completed my review and here's my assessment:

Review Summary

Code Quality & Best Practices

  • Comprehensive Coverage: All 139 references across 98 files have been systematically updated
  • Consistent Naming: The rename follows clear semantic meaning - "orm" better describes the package's functionality than "runtime"
  • Template Updates: CLI templates in packages/cli/src/actions/templates.ts:29 correctly updated to use @zenstackhq/orm
  • Generated Code: TypeScript schema generator properly updated import statements for generated code (packages/sdk/src/ts-schema-generator.ts:121,1143,1338,1362)

No Functional Issues Found

  • Import Consistency: All import statements consistently updated from @zenstackhq/runtime to @zenstackhq/orm
  • Package Dependencies: All package.json files correctly updated across the monorepo
  • No Residual References: Confirmed no remaining @zenstackhq/runtime references exist in the codebase
  • Documentation Alignment: Both README.md and CLAUDE.md updated to reflect the new package name

Security Considerations

  • No Security Concerns: This is purely a package rename with no functional changes
  • Dependency Integrity: All workspace dependencies properly maintained
  • Export Structure: Package exports remain identical, maintaining API surface

⚠️ Breaking Change Assessment

  • Major Breaking Change: This will break any external consumers importing @zenstackhq/runtime
  • Migration Required: Users will need to update their imports from @zenstackhq/runtime to @zenstackhq/orm
  • Version Bump Needed: Should be accompanied by a major version bump or clear migration guide

Test Coverage Impact

  • Comprehensive Test Updates: All test files properly updated (98 test files across e2e, regression, and unit tests)
  • No Test Logic Changes: Only import statements changed, preserving all existing test coverage
  • Plugin Integration: Policy plugin tests correctly reference the new package name

Recommendations

  1. Documentation: Consider adding a migration guide for external users
  2. Deprecation Strategy: If maintaining backward compatibility, consider keeping @zenstackhq/runtime as a deprecated alias
  3. Release Notes: Clearly document this breaking change in release notes

Final Assessment

This is a well-executed refactoring that improves semantic clarity. The changes are comprehensive, consistent, and maintain all functionality while providing better naming semantics. The only consideration is the breaking nature of the change for external consumers.

Approved ✅ - Ready for merge with appropriate versioning and documentation updates.


Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

♻️ Duplicate comments (3)
tests/e2e/orm/schemas/petstore/input.ts (1)

9-10: LGTM; follows the package rename. See earlier script for repo-wide checks.

tests/regression/test/issue-204/input.ts (1)

9-10: LGTM; consistent with rename. See earlier script for residuals.

samples/blog/zenstack/input.ts (1)

9-10: LGTM; import source moved to @zenstackhq/orm.

🧹 Nitpick comments (1)
samples/blog/README.md (1)

24-32: Confirm export and consider consistency.

Ensure ZenStackClient is exported from @zenstackhq/orm. Consider using createClient consistently across the README to avoid two patterns unless both are intentionally documented.

Run the script in my earlier comment to verify exports, or confirm intent to document both APIs.

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 1c0a7f1 and 9e2bea7.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (99)
  • CLAUDE.md (2 hunks)
  • README.md (2 hunks)
  • packages/cli/package.json (1 hunks)
  • packages/cli/src/actions/generate.ts (1 hunks)
  • packages/cli/src/actions/init.ts (1 hunks)
  • packages/cli/src/actions/templates.ts (1 hunks)
  • packages/cli/test/ts-schema-gen.test.ts (1 hunks)
  • packages/create-zenstack/src/index.ts (1 hunks)
  • packages/orm/package.json (1 hunks)
  • packages/plugins/policy/package.json (1 hunks)
  • packages/plugins/policy/src/column-collector.ts (1 hunks)
  • packages/plugins/policy/src/expression-evaluator.ts (1 hunks)
  • packages/plugins/policy/src/expression-transformer.ts (2 hunks)
  • packages/plugins/policy/src/functions.ts (1 hunks)
  • packages/plugins/policy/src/plugin.ts (1 hunks)
  • packages/plugins/policy/src/policy-handler.ts (2 hunks)
  • packages/plugins/policy/src/types.ts (1 hunks)
  • packages/plugins/policy/src/utils.ts (1 hunks)
  • packages/sdk/src/ts-schema-generator.ts (7 hunks)
  • packages/server/package.json (1 hunks)
  • packages/server/src/api/rpc/index.ts (1 hunks)
  • packages/server/src/express/middleware.ts (1 hunks)
  • packages/server/src/types.ts (1 hunks)
  • packages/server/test/api/rpc.test.ts (1 hunks)
  • packages/tanstack-query/package.json (1 hunks)
  • packages/tanstack-query/src/react.ts (1 hunks)
  • packages/testtools/package.json (1 hunks)
  • packages/testtools/src/client.ts (1 hunks)
  • packages/testtools/src/project.ts (1 hunks)
  • packages/testtools/src/vitest-ext.ts (1 hunks)
  • packages/zod/package.json (1 hunks)
  • packages/zod/src/index.ts (1 hunks)
  • packages/zod/src/types.ts (1 hunks)
  • samples/blog/README.md (2 hunks)
  • samples/blog/main.ts (1 hunks)
  • samples/blog/package.json (1 hunks)
  • samples/blog/zenstack/input.ts (1 hunks)
  • samples/blog/zenstack/models.ts (1 hunks)
  • samples/blog/zenstack/schema.ts (1 hunks)
  • tests/e2e/orm/client-api/aggregate.test.ts (1 hunks)
  • tests/e2e/orm/client-api/computed-fields.test.ts (2 hunks)
  • tests/e2e/orm/client-api/count.test.ts (1 hunks)
  • tests/e2e/orm/client-api/create-many-and-return.test.ts (1 hunks)
  • tests/e2e/orm/client-api/create-many.test.ts (1 hunks)
  • tests/e2e/orm/client-api/create.test.ts (1 hunks)
  • tests/e2e/orm/client-api/default-values.test.ts (1 hunks)
  • tests/e2e/orm/client-api/delegate.test.ts (1 hunks)
  • tests/e2e/orm/client-api/delete-many.test.ts (1 hunks)
  • tests/e2e/orm/client-api/delete.test.ts (1 hunks)
  • tests/e2e/orm/client-api/filter.test.ts (1 hunks)
  • tests/e2e/orm/client-api/find.test.ts (1 hunks)
  • tests/e2e/orm/client-api/group-by.test.ts (1 hunks)
  • tests/e2e/orm/client-api/name-mapping.test.ts (1 hunks)
  • tests/e2e/orm/client-api/raw-query.test.ts (1 hunks)
  • tests/e2e/orm/client-api/transaction.test.ts (1 hunks)
  • tests/e2e/orm/client-api/undefined-values.test.ts (1 hunks)
  • tests/e2e/orm/client-api/update-many.test.ts (1 hunks)
  • tests/e2e/orm/client-api/update.test.ts (1 hunks)
  • tests/e2e/orm/client-api/upsert.test.ts (1 hunks)
  • tests/e2e/orm/client-api/utils.ts (1 hunks)
  • tests/e2e/orm/plugin-infra/entity-mutation-hooks.test.ts (1 hunks)
  • tests/e2e/orm/plugin-infra/on-kysely-query.test.ts (1 hunks)
  • tests/e2e/orm/plugin-infra/on-query-hooks.test.ts (1 hunks)
  • tests/e2e/orm/policy/basic-schema-read.test.ts (1 hunks)
  • tests/e2e/orm/policy/crud/create.test.ts (1 hunks)
  • tests/e2e/orm/policy/migrated/client-extensions.test.ts (1 hunks)
  • tests/e2e/orm/policy/migrated/multi-field-unique.test.ts (1 hunks)
  • tests/e2e/orm/policy/migrated/todo-sample.test.ts (1 hunks)
  • tests/e2e/orm/schemas/basic/input.ts (1 hunks)
  • tests/e2e/orm/schemas/basic/models.ts (1 hunks)
  • tests/e2e/orm/schemas/basic/schema.ts (1 hunks)
  • tests/e2e/orm/schemas/delegate/input.ts (1 hunks)
  • tests/e2e/orm/schemas/delegate/models.ts (1 hunks)
  • tests/e2e/orm/schemas/delegate/schema.ts (1 hunks)
  • tests/e2e/orm/schemas/delegate/typecheck.ts (1 hunks)
  • tests/e2e/orm/schemas/name-mapping/input.ts (1 hunks)
  • tests/e2e/orm/schemas/name-mapping/models.ts (1 hunks)
  • tests/e2e/orm/schemas/name-mapping/schema.ts (1 hunks)
  • tests/e2e/orm/schemas/petstore/input.ts (1 hunks)
  • tests/e2e/orm/schemas/petstore/models.ts (1 hunks)
  • tests/e2e/orm/schemas/petstore/schema.ts (1 hunks)
  • tests/e2e/orm/schemas/todo/input.ts (1 hunks)
  • tests/e2e/orm/schemas/todo/models.ts (1 hunks)
  • tests/e2e/orm/schemas/todo/schema.ts (1 hunks)
  • tests/e2e/orm/schemas/typing/input.ts (1 hunks)
  • tests/e2e/orm/schemas/typing/models.ts (1 hunks)
  • tests/e2e/orm/schemas/typing/schema.ts (1 hunks)
  • tests/e2e/orm/schemas/typing/typecheck.ts (1 hunks)
  • tests/e2e/package.json (1 hunks)
  • tests/regression/package.json (1 hunks)
  • tests/regression/test/issue-204/input.ts (1 hunks)
  • tests/regression/test/issue-204/models.ts (1 hunks)
  • tests/regression/test/issue-204/schema.ts (1 hunks)
  • tests/regression/test/v2-migrated/issue-1135.test.ts (1 hunks)
  • tests/regression/test/v2-migrated/issue-1763.test.ts (1 hunks)
  • tests/regression/test/v2-migrated/issue-1857.test.ts (1 hunks)
  • tests/regression/test/v2-migrated/issue-1894.test.ts (1 hunks)
  • tests/regression/test/v2-migrated/issue-1991.test.ts (1 hunks)
  • tests/regression/test/v2-migrated/issue-1994.test.ts (1 hunks)
🧰 Additional context used
📓 Path-based instructions (3)
{packages,samples,tests}/**

📄 CodeRabbit inference engine (CLAUDE.md)

Place packages only under packages/, samples/, or tests/

Files:

  • tests/e2e/orm/client-api/aggregate.test.ts
  • packages/plugins/policy/package.json
  • packages/tanstack-query/package.json
  • packages/testtools/src/vitest-ext.ts
  • packages/server/package.json
  • tests/e2e/orm/plugin-infra/on-query-hooks.test.ts
  • tests/e2e/orm/schemas/typing/typecheck.ts
  • tests/e2e/orm/client-api/upsert.test.ts
  • tests/e2e/orm/client-api/update.test.ts
  • tests/e2e/orm/policy/crud/create.test.ts
  • packages/cli/test/ts-schema-gen.test.ts
  • samples/blog/package.json
  • tests/e2e/orm/client-api/filter.test.ts
  • packages/plugins/policy/src/functions.ts
  • packages/plugins/policy/src/policy-handler.ts
  • packages/testtools/src/client.ts
  • packages/create-zenstack/src/index.ts
  • tests/regression/test/v2-migrated/issue-1763.test.ts
  • tests/e2e/orm/schemas/todo/schema.ts
  • packages/plugins/policy/src/expression-transformer.ts
  • packages/orm/package.json
  • packages/server/test/api/rpc.test.ts
  • tests/e2e/package.json
  • tests/regression/test/v2-migrated/issue-1994.test.ts
  • tests/e2e/orm/schemas/petstore/schema.ts
  • tests/e2e/orm/policy/migrated/multi-field-unique.test.ts
  • tests/regression/test/v2-migrated/issue-1857.test.ts
  • tests/e2e/orm/client-api/find.test.ts
  • tests/regression/test/v2-migrated/issue-1135.test.ts
  • tests/regression/package.json
  • packages/plugins/policy/src/types.ts
  • tests/e2e/orm/plugin-infra/entity-mutation-hooks.test.ts
  • tests/e2e/orm/client-api/default-values.test.ts
  • tests/e2e/orm/client-api/transaction.test.ts
  • packages/zod/package.json
  • tests/e2e/orm/client-api/update-many.test.ts
  • packages/plugins/policy/src/expression-evaluator.ts
  • packages/server/src/express/middleware.ts
  • tests/e2e/orm/client-api/delete-many.test.ts
  • tests/e2e/orm/policy/migrated/client-extensions.test.ts
  • tests/e2e/orm/schemas/delegate/models.ts
  • packages/sdk/src/ts-schema-generator.ts
  • samples/blog/zenstack/schema.ts
  • packages/testtools/package.json
  • tests/e2e/orm/client-api/computed-fields.test.ts
  • tests/e2e/orm/schemas/basic/input.ts
  • samples/blog/zenstack/models.ts
  • tests/e2e/orm/client-api/name-mapping.test.ts
  • tests/e2e/orm/client-api/delete.test.ts
  • samples/blog/main.ts
  • tests/e2e/orm/client-api/raw-query.test.ts
  • tests/e2e/orm/schemas/petstore/models.ts
  • tests/e2e/orm/client-api/count.test.ts
  • packages/zod/src/index.ts
  • packages/plugins/policy/src/column-collector.ts
  • tests/e2e/orm/schemas/todo/input.ts
  • tests/e2e/orm/plugin-infra/on-kysely-query.test.ts
  • samples/blog/README.md
  • packages/plugins/policy/src/plugin.ts
  • tests/e2e/orm/schemas/typing/schema.ts
  • packages/zod/src/types.ts
  • tests/regression/test/v2-migrated/issue-1991.test.ts
  • tests/e2e/orm/policy/migrated/todo-sample.test.ts
  • packages/cli/src/actions/generate.ts
  • tests/e2e/orm/schemas/delegate/typecheck.ts
  • packages/plugins/policy/src/utils.ts
  • tests/e2e/orm/schemas/name-mapping/input.ts
  • tests/e2e/orm/client-api/undefined-values.test.ts
  • packages/cli/src/actions/init.ts
  • tests/e2e/orm/schemas/basic/models.ts
  • packages/cli/package.json
  • tests/e2e/orm/schemas/name-mapping/schema.ts
  • tests/regression/test/issue-204/schema.ts
  • tests/e2e/orm/client-api/create.test.ts
  • packages/testtools/src/project.ts
  • tests/e2e/orm/schemas/delegate/schema.ts
  • tests/e2e/orm/policy/basic-schema-read.test.ts
  • tests/regression/test/v2-migrated/issue-1894.test.ts
  • tests/e2e/orm/client-api/delegate.test.ts
  • tests/regression/test/issue-204/input.ts
  • tests/e2e/orm/schemas/basic/schema.ts
  • packages/cli/src/actions/templates.ts
  • tests/e2e/orm/schemas/petstore/input.ts
  • tests/e2e/orm/client-api/create-many-and-return.test.ts
  • tests/e2e/orm/schemas/name-mapping/models.ts
  • packages/server/src/types.ts
  • tests/e2e/orm/client-api/group-by.test.ts
  • packages/server/src/api/rpc/index.ts
  • samples/blog/zenstack/input.ts
  • tests/e2e/orm/client-api/create-many.test.ts
  • tests/e2e/orm/client-api/utils.ts
  • tests/e2e/orm/schemas/todo/models.ts
  • packages/tanstack-query/src/react.ts
  • tests/regression/test/issue-204/models.ts
  • tests/e2e/orm/schemas/typing/models.ts
  • tests/e2e/orm/schemas/delegate/input.ts
  • tests/e2e/orm/schemas/typing/input.ts
tests/e2e/**

📄 CodeRabbit inference engine (CLAUDE.md)

End-to-end tests must live under tests/e2e/

Files:

  • tests/e2e/orm/client-api/aggregate.test.ts
  • tests/e2e/orm/plugin-infra/on-query-hooks.test.ts
  • tests/e2e/orm/schemas/typing/typecheck.ts
  • tests/e2e/orm/client-api/upsert.test.ts
  • tests/e2e/orm/client-api/update.test.ts
  • tests/e2e/orm/policy/crud/create.test.ts
  • tests/e2e/orm/client-api/filter.test.ts
  • tests/e2e/orm/schemas/todo/schema.ts
  • tests/e2e/package.json
  • tests/e2e/orm/schemas/petstore/schema.ts
  • tests/e2e/orm/policy/migrated/multi-field-unique.test.ts
  • tests/e2e/orm/client-api/find.test.ts
  • tests/e2e/orm/plugin-infra/entity-mutation-hooks.test.ts
  • tests/e2e/orm/client-api/default-values.test.ts
  • tests/e2e/orm/client-api/transaction.test.ts
  • tests/e2e/orm/client-api/update-many.test.ts
  • tests/e2e/orm/client-api/delete-many.test.ts
  • tests/e2e/orm/policy/migrated/client-extensions.test.ts
  • tests/e2e/orm/schemas/delegate/models.ts
  • tests/e2e/orm/client-api/computed-fields.test.ts
  • tests/e2e/orm/schemas/basic/input.ts
  • tests/e2e/orm/client-api/name-mapping.test.ts
  • tests/e2e/orm/client-api/delete.test.ts
  • tests/e2e/orm/client-api/raw-query.test.ts
  • tests/e2e/orm/schemas/petstore/models.ts
  • tests/e2e/orm/client-api/count.test.ts
  • tests/e2e/orm/schemas/todo/input.ts
  • tests/e2e/orm/plugin-infra/on-kysely-query.test.ts
  • tests/e2e/orm/schemas/typing/schema.ts
  • tests/e2e/orm/policy/migrated/todo-sample.test.ts
  • tests/e2e/orm/schemas/delegate/typecheck.ts
  • tests/e2e/orm/schemas/name-mapping/input.ts
  • tests/e2e/orm/client-api/undefined-values.test.ts
  • tests/e2e/orm/schemas/basic/models.ts
  • tests/e2e/orm/schemas/name-mapping/schema.ts
  • tests/e2e/orm/client-api/create.test.ts
  • tests/e2e/orm/schemas/delegate/schema.ts
  • tests/e2e/orm/policy/basic-schema-read.test.ts
  • tests/e2e/orm/client-api/delegate.test.ts
  • tests/e2e/orm/schemas/basic/schema.ts
  • tests/e2e/orm/schemas/petstore/input.ts
  • tests/e2e/orm/client-api/create-many-and-return.test.ts
  • tests/e2e/orm/schemas/name-mapping/models.ts
  • tests/e2e/orm/client-api/group-by.test.ts
  • tests/e2e/orm/client-api/create-many.test.ts
  • tests/e2e/orm/client-api/utils.ts
  • tests/e2e/orm/schemas/todo/models.ts
  • tests/e2e/orm/schemas/typing/models.ts
  • tests/e2e/orm/schemas/delegate/input.ts
  • tests/e2e/orm/schemas/typing/input.ts
**/schema.ts

📄 CodeRabbit inference engine (CLAUDE.md)

The generated TypeScript schema should be named schema.ts

Files:

  • tests/e2e/orm/schemas/todo/schema.ts
  • tests/e2e/orm/schemas/petstore/schema.ts
  • samples/blog/zenstack/schema.ts
  • tests/e2e/orm/schemas/typing/schema.ts
  • tests/e2e/orm/schemas/name-mapping/schema.ts
  • tests/regression/test/issue-204/schema.ts
  • tests/e2e/orm/schemas/delegate/schema.ts
  • tests/e2e/orm/schemas/basic/schema.ts
🧠 Learnings (2)
📚 Learning: 2025-09-04T12:38:14.150Z
Learnt from: CR
PR: zenstackhq/zenstack-v3#0
File: CLAUDE.md:0-0
Timestamp: 2025-09-04T12:38:14.150Z
Learning: Always run `zenstack generate` after modifying ZModel schemas

Applied to files:

  • README.md
📚 Learning: 2025-10-21T16:09:31.218Z
Learnt from: ymc9
PR: zenstackhq/zenstack-v3#319
File: packages/runtime/src/client/executor/zenstack-query-executor.ts:63-72
Timestamp: 2025-10-21T16:09:31.218Z
Learning: In ZenStack, TypeDefs can be inherited by models. When a TypeDef contains fields with `map` attributes, those mapped field names need to be processed by the QueryNameMapper since they become part of the inheriting model's schema. Therefore, when checking if a schema has mapped names (e.g., in `schemaHasMappedNames`), both `schema.models` and `schema.typeDefs` must be inspected for `@map` and `map` attributes.

Applied to files:

  • packages/zod/src/index.ts
🧬 Code graph analysis (1)
packages/cli/src/actions/templates.ts (1)
packages/create-zenstack/src/templates.ts (1)
  • STARTER_MAIN_TS (29-58)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: build-test (20.x, sqlite)
  • GitHub Check: build-test (20.x, postgresql)
  • GitHub Check: claude-review
🔇 Additional comments (102)
tests/e2e/orm/client-api/group-by.test.ts (1)

1-1: Import rename correctly applied.

The import statement has been properly updated to reflect the package rename from @zenstackhq/runtime to @zenstackhq/orm. The ClientContract type is correctly used throughout the test file.

tests/e2e/orm/client-api/default-values.test.ts (1)

2-3: LGTM! Import paths correctly updated.

The import paths have been correctly updated from @zenstackhq/runtime to @zenstackhq/orm, aligning with the PR objective. All imported symbols remain in use throughout the test file, and no functional changes were introduced.

tests/e2e/orm/client-api/computed-fields.test.ts (1)

105-105: LGTM! Package rename applied correctly.

Both import statements in the embedded test snippets have been successfully updated from @zenstackhq/runtime to @zenstackhq/orm, aligning with the PR's package rename objective. The test logic remains unchanged.

Also applies to: 172-172

packages/cli/test/ts-schema-gen.test.ts (1)

1-1: LGTM! Import path updated correctly.

The import path has been correctly updated from @zenstackhq/runtime/schema to @zenstackhq/orm/schema, consistent with the package rename. All usages of ExpressionUtils throughout the test file remain valid.

tests/e2e/orm/plugin-infra/entity-mutation-hooks.test.ts (1)

1-1: LGTM! Import path correctly updated.

The import statement has been successfully updated from @zenstackhq/runtime to @zenstackhq/orm, aligning with the package rename objective of this PR.

tests/e2e/orm/schemas/basic/models.ts (1)

9-9: LGTM! Import path correctly updated to reflect the package rename.

The import statement has been properly updated from @zenstackhq/runtime to @zenstackhq/orm, which aligns with the PR objective. Since this is a generated file, this confirms that the ZenStack CLI generator has been updated correctly to reference the new package name.

tests/e2e/orm/schemas/typing/typecheck.ts (1)

1-1: LGTM! Import updated correctly.

The import source has been properly updated from @zenstackhq/runtime to @zenstackhq/orm, aligning with the package rename objective.

tests/e2e/orm/policy/crud/create.test.ts (2)

1-370: File path and imports align with package rename PR objective.

The file path has correctly been updated from tests/e2e/runtime/... to tests/e2e/orm/..., and the imports continue to reference the testtools package as expected. The test cases themselves remain unchanged and correctly exercise policy create functionality.


1-2: No issues found — codebase does not enforce consistent import ordering.

The sampled test files show inconsistent import ordering patterns: create.test.ts follows internal→external→local, while count.test.ts mixes external, internal, and local imports throughout. Since the codebase does not consistently apply any ordering convention, the import order in the file under review is acceptable.

tests/e2e/orm/client-api/utils.ts (1)

1-1: Import statement is correctly updated and properly resolves.

Verification confirms the package rename from @zenstackhq/runtime to @zenstackhq/orm is complete and consistent:

  • No remaining @zenstackhq/runtime references in the codebase
  • ClientContract is properly exported from packages/orm via export * from './contract'
  • Package dependencies updated across 10 package.json files

The import will resolve correctly at runtime.

packages/plugins/policy/src/column-collector.ts (1)

1-1: Package rename correctly applied; refactoring is complete.

The import path has been successfully updated from @zenstackhq/runtime to @zenstackhq/orm. Verification confirms no stale references to the old package name remain in the codebase.

packages/plugins/policy/src/expression-evaluator.ts (1)

3-13: LGTM! Package import path correctly updated.

The import path has been correctly updated from @zenstackhq/runtime/schema to @zenstackhq/orm/schema, consistent with the package rename objective.

packages/plugins/policy/src/expression-transformer.ts (1)

2-28: All package migration verified and complete.

Verification confirms zero remaining references to @zenstackhq/runtime across the codebase, with 116 successful references to the new @zenstackhq/orm package. The target file at packages/plugins/policy/src/expression-transformer.ts correctly imports from @zenstackhq/orm and @zenstackhq/orm/schema with no mixed or outdated imports.

tests/e2e/orm/client-api/undefined-values.test.ts (1)

2-2: LGTM! Import path updated correctly and verified.

The import path has been successfully updated from @zenstackhq/runtime to @zenstackhq/orm. Verification confirms that ClientContract is properly exported through the package's export chain: @zenstackhq/ormsrc/index.tssrc/client/index.tssrc/client/contract.ts.

tests/e2e/orm/schemas/petstore/models.ts (1)

9-9: LGTM! Generated import path correctly updated.

The auto-generated file correctly reflects the package rename from @zenstackhq/runtime to @zenstackhq/orm.

tests/e2e/orm/policy/basic-schema-read.test.ts (1)

2-2: LGTM! Import path correctly updated.

The import source for ClientContract has been successfully migrated to the renamed ORM package.

tests/regression/test/v2-migrated/issue-1991.test.ts (1)

30-30: LGTM! Test fixture import path correctly updated.

The import path in the test's source file fixture has been properly updated to reference the renamed ORM package.

samples/blog/zenstack/schema.ts (1)

8-8: LGTM! Generated schema imports correctly updated.

The auto-generated schema file correctly updates the import path from @zenstackhq/runtime/schema to @zenstackhq/orm/schema, preserving the subpath structure.

tests/e2e/orm/policy/migrated/todo-sample.test.ts (1)

2-2: LGTM! Import path correctly updated.

The type import for ClientContract has been successfully migrated to the renamed ORM package.

tests/e2e/orm/client-api/update-many.test.ts (1)

1-1: LGTM! Import path correctly updated.

The import source has been properly updated to reference the renamed ORM package.

tests/regression/test/v2-migrated/issue-1857.test.ts (1)

22-22: LGTM! Test fixture import path correctly updated.

The import path in the test's extra source file has been properly migrated to the renamed ORM package.

samples/blog/package.json (1)

17-17: LGTM! Dependency correctly updated.

The package dependency has been successfully migrated from @zenstackhq/runtime to @zenstackhq/orm while preserving the workspace protocol. Verification confirms no remaining references to the old package exist anywhere in the codebase.

tests/regression/test/v2-migrated/issue-1135.test.ts (1)

34-34: LGTM! Clean package rename.

The import path update from @zenstackhq/runtime to @zenstackhq/orm is consistent with the PR's refactoring objective.

tests/e2e/orm/client-api/name-mapping.test.ts (1)

3-3: LGTM! Import path correctly updated.

The ClientContract type import now references the new @zenstackhq/orm package.

tests/e2e/orm/plugin-infra/on-query-hooks.test.ts (1)

1-1: LGTM! Package import correctly updated.

Both definePlugin and ClientContract now import from @zenstackhq/orm as expected.

tests/e2e/orm/policy/migrated/multi-field-unique.test.ts (1)

2-2: LGTM! Error type import updated correctly.

The QueryError import now references the new ORM package location.

packages/create-zenstack/src/index.ts (1)

70-70: LGTM! Scaffolding dependency correctly updated.

New projects created with create-zenstack will now install @zenstackhq/orm@next instead of the old runtime package.

packages/zod/src/types.ts (1)

1-1: LGTM! Schema type imports updated correctly.

The schema type imports now reference @zenstackhq/orm/schema maintaining the same subpath structure.

tests/e2e/orm/schemas/typing/schema.ts (1)

8-8: LGTM! Generated schema file updated correctly.

The generated schema now imports from @zenstackhq/orm/schema, confirming the code generator has been properly updated.

tests/regression/test/v2-migrated/issue-1994.test.ts (1)

56-56: LGTM! Test fixture import updated correctly.

The ZenStackClient import in the test's source fixture now references @zenstackhq/orm.

tests/e2e/orm/policy/migrated/client-extensions.test.ts (1)

1-1: LGTM! Import path correctly updated.

The import statement has been properly updated to use @zenstackhq/orm instead of @zenstackhq/runtime, maintaining the same API surface.

tests/regression/test/v2-migrated/issue-1763.test.ts (1)

27-27: LGTM! Test fixture import correctly updated.

The embedded test code now imports ZenStackClient from @zenstackhq/orm, aligning with the package rename.

tests/regression/test/v2-migrated/issue-1894.test.ts (1)

29-29: LGTM! Test fixture import correctly updated.

The embedded test code import has been properly updated to reference @zenstackhq/orm.

tests/e2e/orm/client-api/transaction.test.ts (1)

2-2: LGTM! Type import correctly updated.

The ClientContract type import has been properly migrated to @zenstackhq/orm.

tests/e2e/orm/schemas/basic/schema.ts (1)

8-8: LGTM! Generated schema imports correctly updated.

The generated schema file now imports from @zenstackhq/orm/schema. This confirms the code generation tooling has been properly updated to reference the renamed package.

packages/server/src/express/middleware.ts (1)

1-2: LGTM! Type imports correctly updated.

Both ClientContract and SchemaDef type imports have been properly migrated to @zenstackhq/orm, maintaining type safety while reflecting the package rename.

tests/e2e/package.json (1)

18-18: LGTM! Package dependency correctly updated.

The dependency reference has been properly updated from @zenstackhq/runtime to @zenstackhq/orm with the workspace protocol maintained.

packages/cli/package.json (1)

52-52: LGTM! DevDependency correctly updated.

The devDependency has been properly updated to reference @zenstackhq/orm instead of @zenstackhq/runtime.

samples/blog/main.ts (1)

2-2: LGTM! Package rename applied correctly.

The import source has been correctly updated from @zenstackhq/runtime to @zenstackhq/orm, consistent with the PR's objective to rename the runtime package.

packages/zod/src/index.ts (1)

1-1: LGTM! Schema import path updated correctly.

The type imports have been correctly updated from @zenstackhq/runtime/schema to @zenstackhq/orm/schema, maintaining the same subpath structure.

tests/regression/package.json (1)

17-17: LGTM! Dependency renamed correctly.

The devDependency has been correctly updated from @zenstackhq/runtime to @zenstackhq/orm, maintaining the workspace protocol.

tests/e2e/orm/client-api/upsert.test.ts (1)

1-1: LGTM! Test import updated correctly.

The type import for ClientContract has been correctly updated from @zenstackhq/runtime to @zenstackhq/orm.

tests/e2e/orm/schemas/petstore/schema.ts (1)

8-8: LGTM! Generated schema import updated correctly.

The import in this generated file has been correctly updated from @zenstackhq/runtime/schema to @zenstackhq/orm/schema, ensuring generated code uses the renamed package.

samples/blog/zenstack/models.ts (1)

9-9: LGTM! Generated models import updated correctly.

The type imports in this generated file have been correctly updated from @zenstackhq/runtime to @zenstackhq/orm.

tests/e2e/orm/schemas/delegate/typecheck.ts (1)

1-1: LGTM! Client import updated correctly.

The import for ZenStackClient has been correctly updated from @zenstackhq/runtime to @zenstackhq/orm.

packages/tanstack-query/package.json (1)

28-28: LGTM! Package dependency renamed correctly.

The dependency has been correctly updated from @zenstackhq/runtime to @zenstackhq/orm, maintaining the workspace protocol.

packages/plugins/policy/src/utils.ts (1)

1-2: LGTM! Import sources correctly updated to ORM package.

The imports have been consistently updated from the runtime package to the ORM package, maintaining the same type signatures and module structure.

README.md (2)

50-50: LGTM! Documentation correctly references ORM runtime.

The migration note has been updated to explicitly reference "ZenStack v3's ORM runtime" for clarity.


80-80: LGTM! Installation command updated to ORM package.

The installation instruction now correctly references @zenstackhq/orm@next instead of the old runtime package name.

packages/plugins/policy/package.json (1)

41-41: LGTM! Dependency correctly updated to ORM package.

The plugin's dependency has been properly migrated from the runtime package to the ORM package while maintaining the workspace reference.

tests/e2e/orm/plugin-infra/on-kysely-query.test.ts (1)

1-1: LGTM! Test import correctly updated to ORM package.

The ClientContract type import has been properly migrated to the ORM package without affecting test logic or behavior.

packages/testtools/package.json (1)

36-36: LGTM! Test tooling dependency correctly updated.

The testtools package dependency has been properly migrated to the ORM package while maintaining the workspace reference.

packages/server/src/types.ts (1)

1-2: LGTM! Server type imports correctly updated to ORM package.

Both ClientContract and SchemaDef imports have been properly migrated from the runtime package to the ORM package, maintaining all type definitions unchanged.

packages/tanstack-query/src/react.ts (1)

8-9: LGTM! TanStack Query type imports correctly updated to ORM package.

All type imports have been properly migrated from the runtime package to the ORM package, including both core types and schema-related types.

packages/zod/package.json (1)

28-28: LGTM! Zod package dependency correctly updated.

The dependency has been properly migrated from the runtime package to the ORM package while maintaining the workspace reference.

packages/plugins/policy/src/types.ts (1)

1-2: LGTM! Import paths correctly updated to ORM package.

The import sources have been systematically updated from @zenstackhq/runtime to @zenstackhq/orm, aligning with the package rename. Type definitions remain unchanged.

packages/orm/package.json (1)

2-4: LGTM! Package metadata correctly updated.

The package name and description have been updated to reflect the rename from "runtime" to "orm". All other package configurations remain unchanged.

packages/server/package.json (1)

55-55: LGTM! Dependency correctly updated to ORM package.

The workspace dependency has been updated from @zenstackhq/runtime to @zenstackhq/orm, maintaining consistency with the package rename.

tests/e2e/orm/schemas/delegate/schema.ts (1)

8-8: LGTM! Generated schema file correctly imports from ORM package.

The import path for SchemaDef and ExpressionUtils has been updated to @zenstackhq/orm/schema, consistent with the package rename. As this is an auto-generated file, the change reflects correct code generation logic.

tests/e2e/orm/schemas/typing/input.ts (1)

9-10: LGTM! Generated input types correctly import from ORM package.

Both import statements have been updated to source types from @zenstackhq/orm, including all Args types, Input types, and result types. The generated type aliases remain structurally unchanged.

packages/sdk/src/ts-schema-generator.ts (3)

121-121: LGTM! Schema generator correctly updated to emit ORM imports.

The import string literal has been updated to generate imports from @zenstackhq/orm/schema for SchemaDef and ExpressionUtils types.


1119-1143: LGTM! Model generator correctly updated to emit ORM imports.

The generator now creates import statements sourcing ModelResult and TypeDefResult from @zenstackhq/orm, ensuring all generated models.ts files reference the renamed package.


1292-1362: LGTM! Input type generator correctly updated to emit ORM imports.

All import generation logic has been updated to source Args types, Input types, and result types from @zenstackhq/orm. This ensures generated input.ts files consistently reference the renamed package across all type imports.

tests/e2e/orm/schemas/typing/models.ts (1)

9-9: LGTM! Generated models file correctly imports from ORM package.

The import statement has been updated to source ModelResult and TypeDefResult from @zenstackhq/orm, consistent with the package rename. All exported type aliases remain unchanged.

CLAUDE.md (3)

36-36: LGTM! Documentation correctly updated to reference ORM package.

The Core Components section now correctly identifies the package as @zenstackhq/orm, aligning with the package rename.


57-57: LGTM! Package Dependencies section correctly updated.

The section heading now references "ORM" instead of "Runtime", maintaining consistency with the package rename.


64-64: LGTM! Testing Strategy section correctly updated.

The reference to "ORM package" replaces the previous "runtime package" terminology, completing the documentation update.

samples/blog/README.md (1)

81-92: LGTM: import path renamed correctly.

tests/e2e/orm/schemas/delegate/models.ts (1)

9-16: All exported model types are valid.

Verification confirms that Video, RatedVideo, Image, and Gallery are all defined in the schema. The ModelResult import and subsequent type exports are correct.

tests/e2e/orm/schemas/basic/input.ts (1)

9-10: Rename to @zenstackhq/orm is complete and consistent across the codebase. No leftover @zenstackhq/runtime imports remain, all package.json files correctly reference the new package, and required exports exist in the ORM source. The changes in the file under review align with the completed migration.

tests/e2e/orm/schemas/delegate/input.ts (1)

9-10: LGTM! Import path correctly updated.

The generated type imports are correctly updated to reference @zenstackhq/orm instead of @zenstackhq/runtime, aligning with the package rename objective.

tests/e2e/orm/client-api/create-many.test.ts (1)

2-2: LGTM! Import correctly updated.

The ClientContract type import is correctly updated to reference the @zenstackhq/orm package.

tests/e2e/orm/client-api/update.test.ts (1)

2-2: LGTM! Import correctly updated.

The ClientContract type import is correctly updated to reference the @zenstackhq/orm package.

tests/e2e/orm/client-api/count.test.ts (1)

2-2: LGTM! Import correctly updated.

The ClientContract type import is correctly updated to reference the @zenstackhq/orm package.

tests/e2e/orm/schemas/name-mapping/schema.ts (1)

8-8: LGTM! Schema import correctly updated.

The generated schema file correctly imports SchemaDef and ExpressionUtils from @zenstackhq/orm/schema, aligning with the package rename.

tests/e2e/orm/client-api/aggregate.test.ts (1)

1-1: LGTM! Import correctly updated.

The ClientContract type import is correctly updated to reference the @zenstackhq/orm package.

packages/cli/src/actions/templates.ts (1)

29-29: LGTM! Template import correctly updated.

The starter template correctly imports ZenStackClient from @zenstackhq/orm, ensuring new projects generated by the CLI use the renamed package.

tests/e2e/orm/schemas/name-mapping/models.ts (1)

9-9: LGTM! Import correctly updated.

The generated models file correctly imports ModelResult from @zenstackhq/orm, aligning with the package rename.

packages/plugins/policy/src/policy-handler.ts (1)

2-20: LGTM! Import paths correctly updated.

The import statements have been systematically updated from @zenstackhq/runtime to @zenstackhq/orm and from @zenstackhq/runtime/schema to @zenstackhq/orm/schema. This aligns with the PR objective to rename the runtime package to orm.

packages/plugins/policy/src/plugin.ts (1)

1-2: LGTM! Import paths correctly updated.

The type imports have been updated to reference the new @zenstackhq/orm package and its /schema submodule, consistent with the package rename.

tests/e2e/orm/client-api/delete-many.test.ts (1)

2-2: LGTM! Test import correctly updated.

The ClientContract type import has been updated to the new @zenstackhq/orm package.

tests/regression/test/issue-204/schema.ts (1)

8-8: LGTM! Generated schema import correctly updated.

The SchemaDef type import has been updated to reference @zenstackhq/orm/schema. Since this is a generated file, the change reflects the correct update in the code generation templates.

tests/e2e/orm/client-api/create.test.ts (1)

1-1: LGTM! Test import correctly updated.

The ClientContract type import has been updated to the new @zenstackhq/orm package.

tests/e2e/orm/client-api/filter.test.ts (1)

2-2: LGTM! Test import correctly updated.

The ClientContract type import has been updated to the new @zenstackhq/orm package.

packages/testtools/src/vitest-ext.ts (1)

1-1: LGTM! Error class imports correctly updated.

The error class imports (InputValidationError, NotFoundError, RejectedByPolicyError) have been updated to reference the new @zenstackhq/orm package.

packages/cli/src/actions/generate.ts (1)

33-45: LGTM! Example code correctly updated.

The example code shown to users after code generation has been updated to import ZenStackClient from @zenstackhq/orm instead of @zenstackhq/runtime. This ensures users see the correct package name in the CLI output.

tests/e2e/orm/client-api/delete.test.ts (1)

2-2: LGTM! Clean import path update.

The import has been correctly updated to use the new ORM package name, aligning with the PR's objective to rename the runtime package to orm.

packages/cli/src/actions/init.ts (1)

16-16: LGTM! Package dependency correctly updated.

The initialization now installs the ORM package instead of the runtime package, maintaining it as a production dependency (dev: false).

tests/e2e/orm/schemas/todo/schema.ts (1)

8-8: LGTM! Generated schema import correctly updated.

The schema definition now imports from the ORM package's schema subpath, consistent with the package rename.

packages/server/test/api/rpc.test.ts (1)

1-2: LGTM! Test imports correctly updated.

Both ClientContract and SchemaDef imports have been updated to reference the ORM package, aligning with the package rename.

tests/e2e/orm/client-api/raw-query.test.ts (1)

2-2: LGTM! Import path correctly updated.

The ClientContract type import now uses the ORM package, consistent with the package rename.

packages/testtools/src/project.ts (1)

24-24: LGTM! Test project configuration updated.

The symlink setup now references the ORM package instead of runtime, ensuring test projects correctly link to the renamed package.

tests/e2e/orm/client-api/delegate.test.ts (1)

3-3: LGTM! Import updated to ORM package.

The ClientContract type import correctly references the renamed ORM package.

tests/e2e/orm/client-api/create-many-and-return.test.ts (1)

1-1: LGTM! Import correctly updated.

The ClientContract type import now references the ORM package, completing the systematic rename from runtime to orm.

packages/server/src/api/rpc/index.ts (1)

2-9: LGTM! Import sources correctly updated.

The import paths have been successfully migrated from @zenstackhq/runtime to @zenstackhq/orm, aligning with the package rename. No functional changes introduced.

tests/regression/test/issue-204/models.ts (1)

9-9: LGTM! Auto-generated file correctly updated.

The import source has been properly updated to @zenstackhq/orm. As this is an auto-generated file, the change confirms that the code generator has been correctly updated to reference the renamed package.

tests/e2e/orm/schemas/todo/input.ts (1)

9-10: LGTM! Auto-generated imports correctly updated.

The import sources for all ORM argument types and utility types have been properly migrated to @zenstackhq/orm. The extensive type exports (FindManyArgs, CreateArgs, etc.) remain unchanged, confirming a clean package rename.

packages/plugins/policy/src/functions.ts (1)

2-3: LGTM! Plugin imports correctly migrated.

The import sources for ZModelFunction, ZModelFunctionContext, CRUD, and QueryUtils have been properly updated to @zenstackhq/orm. The policy handler implementation remains functionally unchanged.

packages/testtools/src/client.ts (1)

4-5: LGTM! Test tooling imports correctly updated.

The import sources for ZenStackClient, ClientContract, ClientOptions, and SchemaDef have been properly migrated to the ORM package. Test client creation functions remain functionally unchanged.

tests/e2e/orm/client-api/find.test.ts (1)

2-3: LGTM! Test imports correctly updated.

The import sources for ClientContract, InputValidationError, and NotFoundError have been properly migrated to @zenstackhq/orm. All test logic remains unchanged and will continue to function correctly with the renamed package.

tests/e2e/orm/schemas/todo/models.ts (1)

9-9: LGTM! Auto-generated model types correctly updated.

The import source for ModelResult has been properly updated to @zenstackhq/orm. As an auto-generated file, this confirms the code generator is correctly referencing the renamed package for all model type exports.

tests/e2e/orm/schemas/name-mapping/input.ts (1)

9-10: LGTM! Auto-generated input types correctly updated.

The import sources for all argument types and utility types have been properly migrated to @zenstackhq/orm. The comprehensive type exports for User and Post models remain intact, confirming a successful package rename.

@ymc9 ymc9 merged commit cccd344 into dev Oct 24, 2025
6 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