Skip to content

Conversation

@ymc9
Copy link
Member

@ymc9 ymc9 commented Oct 15, 2025

No description provided.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 15, 2025

📝 Walkthrough

Pre-merge checks and finishing touches

❌ Failed checks (1 warning, 1 inconclusive)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 28.57% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
Description Check ❓ Inconclusive No description was provided, so there is insufficient information to assess its relevance to the changeset. Please add a brief description summarizing the purpose and scope of the changes to facilitate review.
✅ Passed checks (1 passed)
Check name Status Explanation
Title Check ✅ Passed The title concisely indicates merging the dev branch into main with the v2.20.0 version bump, which aligns with the primary intent of this changeset.
✨ 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 dev

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

@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: 6

🧹 Nitpick comments (8)
packages/plugins/trpc/tests/trpc.test.ts (1)

60-411: Clarify tRPC version support and documentation

  • The plugin’s package.json doesn’t pin any @trpc/* versions (peerDependencies only includes zod), and dedicated test projects cover both v10 and v11 RC releases.
  • Main trpc.test.ts uses v10, while separate fixtures validate v11 compatibility.
  • Ensure the README (or docs) explicitly states support for both tRPC v10 and v11 and outlines any migration steps.
packages/schema/src/plugins/enhancer/enhance/index.ts (1)

132-145: Good improvement: Conditional json-types export.

The change to only export json-types when TypeDefs exist is a good optimization that reduces the public API surface and avoids generating unnecessary exports.

Minor suggestion: Consider extracting the TypeDef check into a helper method for reusability:

private hasTypeDefinitions(): boolean {
    return this.model.declarations.some(isTypeDef);
}

Then use it consistently:

const modelsTsContent = [`export * from '${resultPrismaBaseImport}/models';`];
if (this.hasTypeDefinitions()) {
    modelsTsContent.push(`export * from './json-types';`);
}
.devcontainer/.env (1)

1-11: Tidy .env (ordering/newline) and avoid committing real creds

  • Fix dotenv-linter warnings (order keys, add trailing newline).
  • Keep these credentials strictly dev-only; consider .env.example or local overrides to avoid committing actual secrets.

Apply this reordering and add a blank line at EOF:

-POSTGRES_USER=postgres
-POSTGRES_PASSWORD=abc123
-POSTGRES_DB=postgres
-POSTGRES_HOST=postgres
-POSTGRES_PORT=5432
-
-ZENSTACK_TEST_DB_USER=postgres
-ZENSTACK_TEST_DB_PASS=abc123
-ZENSTACK_TEST_DB_NAME=postgres
-ZENSTACK_TEST_DB_HOST=postgres
-ZENSTACK_TEST_DB_PORT=5432
+POSTGRES_DB=postgres
+POSTGRES_HOST=postgres
+POSTGRES_PASSWORD=abc123
+POSTGRES_PORT=5432
+POSTGRES_USER=postgres
+
+ZENSTACK_TEST_DB_HOST=postgres
+ZENSTACK_TEST_DB_NAME=postgres
+ZENSTACK_TEST_DB_PASS=abc123
+ZENSTACK_TEST_DB_PORT=5432
+ZENSTACK_TEST_DB_USER=postgres
+
tests/integration/tests/cli/generate.test.ts (1)

48-49: Install @types/node as a devDependency for consistency

Move @types/node@20 to dev deps (like plugins.test.ts), keeping runtime deps clean.

Apply:

-        installPackage('prisma @prisma/client zod@^3.25.0 @types/node@20');
+        installPackage('prisma @prisma/client zod@^3.25.0');
+        installPackage('@types/node@20', true);
packages/server/tests/adapter/hono.test.ts (1)

85-87: Prefer conditional skip to retain local coverage

Gate the skip to CI and link a tracking issue so this doesn’t become permanent.

Apply:

-// TODO: investigate failure in CI
-// eslint-disable-next-line jest/no-disabled-tests
-it.skip('custom load path', async () => {
+// TODO(issues/xxxx): investigate failure in CI
+const maybeIt = process.env.CI ? it.skip : it;
+maybeIt('custom load path', async () => {
packages/server/tests/adapter/sveltekit.test.ts (1)

84-86: Conditionally skip in CI and track with an issue

Keep the test running locally; skip only on CI.

Apply:

-// TODO: investigate failure in CI
-// eslint-disable-next-line jest/no-disabled-tests
-it.skip('custom load path', async () => {
+// TODO(issues/xxxx): investigate failure in CI
+const maybeIt = process.env.CI ? it.skip : it;
+maybeIt('custom load path', async () => {
packages/server/src/tanstack-start/index.ts (1)

18-22: API surface looks solid

Handler delegation and options shape are clear and consistent. Consider also exporting a type alias for the handler for consumer ergonomics (optional).

Example:

export type TanStackStartFetchHandler = ReturnType<typeof Handler>;
packages/server/src/tanstack-start/handler.ts (1)

24-29: Consider extracting a response helper to reduce duplication.

The JSON response creation pattern is repeated four times with identical structure. Extract a helper function to improve maintainability.

Add a helper function at the top of the file:

function createJsonResponse(body: unknown, status: number): Response {
    return new Response(JSON.stringify(body), {
        status,
        headers: {
            'Content-Type': 'application/json',
        },
    });
}

Then refactor the response creation calls:

         if (!prisma) {
-            return new Response(JSON.stringify({ message: 'unable to get prisma from request context' }), {
-                status: 500,
-                headers: {
-                    'Content-Type': 'application/json',
-                },
-            });
+            return createJsonResponse({ message: 'unable to get prisma from request context' }, 500);
         }

Apply similar changes to the other three response creation sites (lines 39-44, 67-72, 74-79).

Also applies to: 39-44, 67-72, 74-79

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between dfe721c and a93a2db.

⛔ Files ignored due to path filters (56)
  • .devcontainer/devcontainer.json is excluded by !**/*.json
  • .devcontainer/docker-compose.yml is excluded by !**/*.yml
  • package.json is excluded by !**/*.json
  • packages/ide/jetbrains/package.json is excluded by !**/*.json
  • packages/language/package.json is excluded by !**/*.json
  • packages/misc/redwood/package.json is excluded by !**/*.json
  • packages/plugins/openapi/package.json is excluded by !**/*.json
  • packages/plugins/swr/package.json is excluded by !**/*.json
  • packages/plugins/tanstack-query/package.json is excluded by !**/*.json
  • packages/plugins/trpc/package.json is excluded by !**/*.json
  • packages/plugins/trpc/tests/projects/nuxt-trpc-v10/package.json is excluded by !**/*.json
  • packages/plugins/trpc/tests/projects/nuxt-trpc-v10/server/trpc/routers/generated/client/Post.nuxt.type.ts is excluded by !**/generated/**, !**/generated/**
  • packages/plugins/trpc/tests/projects/nuxt-trpc-v10/server/trpc/routers/generated/client/User.nuxt.type.ts is excluded by !**/generated/**, !**/generated/**
  • packages/plugins/trpc/tests/projects/nuxt-trpc-v10/server/trpc/routers/generated/client/nuxt.ts is excluded by !**/generated/**, !**/generated/**
  • packages/plugins/trpc/tests/projects/nuxt-trpc-v10/server/trpc/routers/generated/client/utils.ts is excluded by !**/generated/**, !**/generated/**
  • packages/plugins/trpc/tests/projects/nuxt-trpc-v10/server/trpc/routers/generated/helper.ts is excluded by !**/generated/**, !**/generated/**
  • packages/plugins/trpc/tests/projects/nuxt-trpc-v10/server/trpc/routers/generated/routers/Post.router.ts is excluded by !**/generated/**, !**/generated/**
  • packages/plugins/trpc/tests/projects/nuxt-trpc-v10/server/trpc/routers/generated/routers/User.router.ts is excluded by !**/generated/**, !**/generated/**
  • packages/plugins/trpc/tests/projects/nuxt-trpc-v10/server/trpc/routers/generated/routers/index.ts is excluded by !**/generated/**, !**/generated/**
  • packages/plugins/trpc/tests/projects/nuxt-trpc-v11/package.json is excluded by !**/*.json
  • packages/plugins/trpc/tests/projects/nuxt-trpc-v11/server/trpc/routers/generated/client/Post.nuxt.type.ts is excluded by !**/generated/**, !**/generated/**
  • packages/plugins/trpc/tests/projects/nuxt-trpc-v11/server/trpc/routers/generated/client/User.nuxt.type.ts is excluded by !**/generated/**, !**/generated/**
  • packages/plugins/trpc/tests/projects/nuxt-trpc-v11/server/trpc/routers/generated/client/nuxt.ts is excluded by !**/generated/**, !**/generated/**
  • packages/plugins/trpc/tests/projects/nuxt-trpc-v11/server/trpc/routers/generated/client/utils.ts is excluded by !**/generated/**, !**/generated/**
  • packages/plugins/trpc/tests/projects/nuxt-trpc-v11/server/trpc/routers/generated/helper.ts is excluded by !**/generated/**, !**/generated/**
  • packages/plugins/trpc/tests/projects/nuxt-trpc-v11/server/trpc/routers/generated/routers/Post.router.ts is excluded by !**/generated/**, !**/generated/**
  • packages/plugins/trpc/tests/projects/nuxt-trpc-v11/server/trpc/routers/generated/routers/User.router.ts is excluded by !**/generated/**, !**/generated/**
  • packages/plugins/trpc/tests/projects/nuxt-trpc-v11/server/trpc/routers/generated/routers/index.ts is excluded by !**/generated/**, !**/generated/**
  • packages/plugins/trpc/tests/projects/t3-trpc-v10/src/server/api/routers/generated/client/Post.next.type.ts is excluded by !**/generated/**, !**/generated/**
  • packages/plugins/trpc/tests/projects/t3-trpc-v10/src/server/api/routers/generated/client/User.next.type.ts is excluded by !**/generated/**, !**/generated/**
  • packages/plugins/trpc/tests/projects/t3-trpc-v10/src/server/api/routers/generated/client/next.ts is excluded by !**/generated/**, !**/generated/**
  • packages/plugins/trpc/tests/projects/t3-trpc-v10/src/server/api/routers/generated/client/utils.ts is excluded by !**/generated/**, !**/generated/**
  • packages/plugins/trpc/tests/projects/t3-trpc-v10/src/server/api/routers/generated/helper.ts is excluded by !**/generated/**, !**/generated/**
  • packages/plugins/trpc/tests/projects/t3-trpc-v10/src/server/api/routers/generated/routers/Post.router.ts is excluded by !**/generated/**, !**/generated/**
  • packages/plugins/trpc/tests/projects/t3-trpc-v10/src/server/api/routers/generated/routers/User.router.ts is excluded by !**/generated/**, !**/generated/**
  • packages/plugins/trpc/tests/projects/t3-trpc-v10/src/server/api/routers/generated/routers/index.ts is excluded by !**/generated/**, !**/generated/**
  • packages/plugins/trpc/tests/projects/t3-trpc-v11/package-lock.json is excluded by !**/package-lock.json, !**/*.json
  • packages/plugins/trpc/tests/projects/t3-trpc-v11/package.json is excluded by !**/*.json
  • packages/plugins/trpc/tests/projects/t3-trpc-v11/src/server/api/routers/generated/client/Post.react.type.ts is excluded by !**/generated/**, !**/generated/**
  • packages/plugins/trpc/tests/projects/t3-trpc-v11/src/server/api/routers/generated/client/User.react.type.ts is excluded by !**/generated/**, !**/generated/**
  • packages/plugins/trpc/tests/projects/t3-trpc-v11/src/server/api/routers/generated/client/react.ts is excluded by !**/generated/**, !**/generated/**
  • packages/plugins/trpc/tests/projects/t3-trpc-v11/src/server/api/routers/generated/client/utils.ts is excluded by !**/generated/**, !**/generated/**
  • packages/plugins/trpc/tests/projects/t3-trpc-v11/src/server/api/routers/generated/helper.ts is excluded by !**/generated/**, !**/generated/**
  • packages/plugins/trpc/tests/projects/t3-trpc-v11/src/server/api/routers/generated/routers/Post.router.ts is excluded by !**/generated/**, !**/generated/**
  • packages/plugins/trpc/tests/projects/t3-trpc-v11/src/server/api/routers/generated/routers/User.router.ts is excluded by !**/generated/**, !**/generated/**
  • packages/plugins/trpc/tests/projects/t3-trpc-v11/src/server/api/routers/generated/routers/index.ts is excluded by !**/generated/**, !**/generated/**
  • packages/runtime/package.json is excluded by !**/*.json
  • packages/schema/package.json is excluded by !**/*.json
  • packages/schema/tsconfig.vscode.json is excluded by !**/*.json
  • packages/sdk/package.json is excluded by !**/*.json
  • packages/server/package.json is excluded by !**/*.json
  • packages/testtools/package.json is excluded by !**/*.json
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml, !**/*.yaml
  • tests/integration/test-run/package.json is excluded by !**/*.json
  • tests/integration/tests/frameworks/nextjs/test-project/package.json is excluded by !**/*.json
  • tests/integration/tests/frameworks/trpc/test-project/package.json is excluded by !**/*.json
📒 Files selected for processing (22)
  • .devcontainer/.env (1 hunks)
  • .gitignore (1 hunks)
  • packages/ide/jetbrains/CHANGELOG.md (1 hunks)
  • packages/ide/jetbrains/build.gradle.kts (2 hunks)
  • packages/plugins/tanstack-query/src/generator.ts (1 hunks)
  • packages/plugins/tanstack-query/tests/plugin.test.ts (2 hunks)
  • packages/plugins/trpc/tests/trpc.test.ts (10 hunks)
  • packages/schema/src/plugins/enhancer/enhance/index.ts (3 hunks)
  • packages/schema/src/plugins/enhancer/index.ts (2 hunks)
  • packages/schema/src/plugins/zod/utils/schema-gen.ts (2 hunks)
  • packages/schema/src/vscode/vscode-telemetry.ts (1 hunks)
  • packages/sdk/src/code-gen.ts (1 hunks)
  • packages/sdk/src/typescript-expression-transformer.ts (2 hunks)
  • packages/sdk/src/utils.ts (1 hunks)
  • packages/server/src/tanstack-start/handler.ts (1 hunks)
  • packages/server/src/tanstack-start/index.ts (1 hunks)
  • packages/server/tests/adapter/hono.test.ts (1 hunks)
  • packages/server/tests/adapter/sveltekit.test.ts (1 hunks)
  • packages/server/tests/adapter/tanstack-start.test.ts (1 hunks)
  • tests/integration/tests/cli/generate.test.ts (1 hunks)
  • tests/integration/tests/cli/plugins.test.ts (2 hunks)
  • tests/integration/tests/enhancements/with-delegate/plugin-interaction.test.ts (1 hunks)
🧰 Additional context used
🧬 Code graph analysis (9)
packages/server/src/tanstack-start/handler.ts (4)
packages/server/src/tanstack-start/index.ts (1)
  • TanStackStartOptions (7-12)
packages/server/src/types.ts (1)
  • Response (19-22)
packages/server/src/shared.ts (1)
  • loadAssets (5-21)
packages/runtime/src/types.ts (1)
  • DbClientContract (91-93)
packages/server/src/tanstack-start/index.ts (1)
packages/server/src/types.ts (1)
  • AdapterBaseOptions (32-56)
packages/sdk/src/utils.ts (1)
packages/language/src/generated/ast.ts (14)
  • DataModel (277-287)
  • DataModel (289-289)
  • TypeDef (639-646)
  • TypeDef (648-648)
  • DataModelField (308-315)
  • DataModelField (317-317)
  • TypeDefField (654-661)
  • TypeDefField (663-663)
  • Enum (365-372)
  • Enum (374-374)
  • FunctionDecl (407-415)
  • FunctionDecl (417-417)
  • Attribute (141-148)
  • Attribute (150-150)
packages/schema/src/plugins/enhancer/index.ts (1)
packages/sdk/src/utils.ts (1)
  • getPrismaClientGenerator (709-732)
packages/server/tests/adapter/tanstack-start.test.ts (4)
packages/plugins/tanstack-query/src/runtime/common.ts (1)
  • unmarshal (222-230)
packages/server/src/types.ts (1)
  • Response (19-22)
packages/server/src/tanstack-start/index.ts (2)
  • TanStackStartOptions (7-12)
  • TanStackStartHandler (18-20)
packages/testtools/src/schema.ts (1)
  • loadSchema (172-248)
packages/schema/src/plugins/enhancer/enhance/index.ts (2)
packages/language/src/generated/ast.ts (1)
  • isTypeDef (650-652)
packages/sdk/src/code-gen.ts (1)
  • saveSourceFile (25-37)
tests/integration/tests/cli/generate.test.ts (1)
packages/testtools/src/schema.ts (1)
  • installPackage (68-70)
packages/sdk/src/typescript-expression-transformer.ts (1)
packages/language/src/generated/ast.ts (2)
  • isLiteralExpr (69-71)
  • isInvocationExpr (486-488)
packages/schema/src/plugins/zod/utils/schema-gen.ts (1)
packages/sdk/src/utils.ts (1)
  • hasAttribute (134-148)
🪛 dotenv-linter (3.3.0)
.devcontainer/.env

[warning] 2-2: [UnorderedKey] The POSTGRES_PASSWORD key should go before the POSTGRES_USER key

(UnorderedKey)


[warning] 3-3: [UnorderedKey] The POSTGRES_DB key should go before the POSTGRES_PASSWORD key

(UnorderedKey)


[warning] 4-4: [UnorderedKey] The POSTGRES_HOST key should go before the POSTGRES_PASSWORD key

(UnorderedKey)


[warning] 5-5: [UnorderedKey] The POSTGRES_PORT key should go before the POSTGRES_USER key

(UnorderedKey)


[warning] 8-8: [UnorderedKey] The ZENSTACK_TEST_DB_PASS key should go before the ZENSTACK_TEST_DB_USER key

(UnorderedKey)


[warning] 9-9: [UnorderedKey] The ZENSTACK_TEST_DB_NAME key should go before the ZENSTACK_TEST_DB_PASS key

(UnorderedKey)


[warning] 10-10: [UnorderedKey] The ZENSTACK_TEST_DB_HOST key should go before the ZENSTACK_TEST_DB_NAME key

(UnorderedKey)


[warning] 11-11: [EndingBlankLine] No blank line at the end of the file

(EndingBlankLine)


[warning] 11-11: [UnorderedKey] The ZENSTACK_TEST_DB_PORT key should go before the ZENSTACK_TEST_DB_USER key

(UnorderedKey)

⏰ 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). (5)
  • GitHub Check: OSSAR-Scan
  • GitHub Check: build-test (20.x)
  • GitHub Check: build-test (20.x)
  • GitHub Check: dependency-review
  • GitHub Check: build-test (20.x)
🔇 Additional comments (21)
.gitignore (1)

11-11: Good call on ignoring the pnpm store

Keeping .pnpm-store out of version control prevents committing large cache artifacts and keeps the repo clean.

packages/schema/src/vscode/vscode-telemetry.ts (1)

70-70: LGTM! Token usage is now consistent.

The change to use VSCODE_TELEMETRY_TRACKING_TOKEN aligns with the token used for mixpanel initialization at line 32, improving consistency across the class.

packages/sdk/src/utils.ts (1)

134-148: LGTM! Signature expansion aligns with getAttribute.

The addition of TypeDefField to the union type is consistent with the getAttribute function signature (lines 150-166) and enables broader applicability for schema generation logic that inspects field attributes. TypeDefField has the same attributes structure as DataModelField, so the implementation remains correct.

packages/schema/src/plugins/zod/utils/schema-gen.ts (2)

1-2: LGTM! Import consolidation and relocation.

The imports have been restructured appropriately:

  • upperCaseFirst relocated to @zenstackhq/runtime/local-helpers
  • hasAttribute consolidated into the @zenstackhq/sdk import

This aligns with the expanded hasAttribute signature in packages/sdk/src/utils.ts that now supports TypeDefField.


238-244: LGTM! Correct handling for JSON field defaults.

The new logic correctly prevents double-stringification of JSON string defaults:

  • JSON fields (field.type.type === 'Json') or fields with the @json attribute already contain JSON strings
  • Returning arg.value.value as-is for these fields is correct
  • Non-JSON string fields continue to use JSON.stringify(arg.value.value) as before
packages/plugins/tanstack-query/src/generator.ts (1)

164-164: LGTM! Angular target correctly added to v5 infinite query handling.

The extension of infinite query support to include Angular is appropriate and aligns with the v5-only Angular support constraint established earlier in the file (lines 44-47). This ensures that Angular infinite queries receive the required getNextPageParam default option in TanStack Query v5.

packages/plugins/tanstack-query/tests/plugin.test.ts (1)

306-312: LGTM! Test correctly reflects Angular Query API shape.

The removal of queryKey from destructuring in the Angular tests accurately reflects the Angular Query experimental API, which uses Angular signals and has a different return shape compared to React/Vue/Svelte adapters. This change aligns with the generator updates that extend v5 infinite query support to Angular.

packages/sdk/src/typescript-expression-transformer.ts (1)

19-19: LGTM: Import necessary for new functionality.

The isInvocationExpr import is correctly added and used in the new compile-time comparison optimization logic below.

tests/integration/tests/enhancements/with-delegate/plugin-interaction.test.ts (1)

55-55: LGTM! Verify that version 10 is the intended target.

The dependency pinning to tRPC v10 is clear and consistent. Since tRPC v11 is the current major release, please confirm that pinning to v10 is intentional—for example, if the plugin or generated code specifically targets v10 APIs, or if a v11 migration is planned for a future release.

packages/plugins/trpc/tests/trpc.test.ts (4)

60-60: LGTM! Consistent dependency pinning.

The dependency specifications for @trpc/client@10 and @trpc/server@10 are consistently applied across multiple test cases. The changes are mechanical and maintain test structure.

Also applies to: 102-102, 132-132, 157-157, 187-187


235-237: LGTM! Appropriate transitive dependency.

The inclusion of @trpc/react-query@10 alongside core tRPC packages is appropriate for this test case that generates React Query client helpers.


258-263: LGTM! Appropriate Next.js dependency.

The inclusion of @trpc/next@10 is appropriate for testing Next.js client helper generation. The formatting across multiple lines improves readability.


293-293: LGTM! Comprehensive test coverage with pinned dependencies.

The dependency pinning is consistently applied across diverse test scenarios (mixed casing, selective model generation, Zod plugin interaction), ensuring uniform version control.

Also applies to: 340-340, 411-411

packages/sdk/src/code-gen.ts (2)

25-37: Add static type-check for generated files

Integration tests execute generators but don’t enforce TypeScript compilation after dropping @ts-nocheck. Add a tsc --noEmit (or equivalent) check against every generator’s output (e.g. packages/sdk/src/code-gen.ts and plugin generators) in CI or a dedicated test so no type errors go unnoticed.


19-19: Approve Node.js type definitions addition
Adding 'node' to the types array aligns with the removal of @ts-nocheck and introduces no new type errors—generated outputs contain no untyped Node.js globals.

packages/schema/src/plugins/enhancer/enhance/index.ts (2)

602-608: Good improvement: Conditional json-types.ts file creation.

Only creating the json-types.ts file when TypeDefs exist is a sensible optimization that avoids generating empty or unnecessary files. This aligns well with the conditional export in models.ts.


167-167: Confirm removal of edge target in new Prisma generator
The new generator only invokes generateEnhance(..., 'node'), whereas the old generator emits both enhance.ts and enhance-edge.ts. This drops support for edge runtimes and may break deployments (Cloudflare Workers, Vercel Edge, etc.). Please confirm:

  • Was edge runtime support intentionally removed?
  • Are there technical limitations preventing edge support with the new generator?
  • If intentional, has migration guidance been provided for existing edge-runtime users?
packages/schema/src/plugins/enhancer/index.ts (1)

39-40: Approve conditional Prisma client path fallback
Switching to 'client' for new generators and retaining 'models' for legacy mirrors the Prisma plugin’s preBuild output paths and preserves backward compatibility; no hardcoded downstream imports to the old structure were found.

tests/integration/tests/cli/plugins.test.ts (1)

88-90: Dev dependency pins look good

Upgrading prisma to 6.17.x and pinning @types/node@20 under devDeps aligns with the rest of the test setup.

Confirm CI runs on Node >=18 so global fetch/Request are available without polyfills.

packages/server/tests/adapter/tanstack-start.test.ts (1)

8-16: Ensure Node runtime provides global fetch/Request

This suite relies on Web Fetch globals. If CI uses Node <18, add a polyfill (e.g., isomorphic-fetch) or bump CI Node. Given other tests pin @types/node@20, prefer ensuring CI Node >=18.

If needed, minimally polyfill for tests:

+// Only needed if CI Node < 18
+import 'isomorphic-fetch';
packages/server/src/tanstack-start/handler.ts (1)

35-45: No changes needed for _splat_splat is the documented TanStack Start catch-all parameter, as confirmed by the handler implementation and adapter tests.

@ymc9 ymc9 merged commit db5e4c6 into main Oct 15, 2025
17 of 18 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.

4 participants