Conversation
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
…lds (#2552) Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
… limit (#2554) Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
…legate models (#2555) Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThis PR bumps many package versions from 3.5.4 → 3.5.5, enhances ORM typed-JSON handling to accept JSON null-sentinel values for optional type-def JSON fields, adjusts Zod mutation schemas, improves JSON filter routing and relation-count aliasing in query dialects, adds PostgreSQL jsonb_build_object chunking, and adds several regression tests. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related issues
Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
|
Claude finished @ymc9's task —— View job Code Review for v3.5.5 Release PR ✅I've completed a comprehensive review of this release PR merging dev to main for version 3.5.5. This appears to be a well-structured release with important bug fixes and improvements. Review SummaryOverall Assessment: This is a solid release PR with critical bug fixes, good test coverage, and consistent versioning. The changes are focused and well-implemented. Key Changes Analyzed
Code Quality Assessment✅ Strengths:
✅ Security: No security concerns identified Specific Technical Improvements
Test CoverageExcellent regression test coverage addressing real-world issues:
Recommendations✅ Ready to Merge - This PR is well-prepared for release with:
The release effectively resolves several important issues while maintaining backward compatibility and code quality standards. |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
tests/regression/test/issue-2411/regression.test.ts (1)
10-10: Test name is broader than what the assertions enforce.The title says AnyNull is accepted in create/update, but the test intentionally expects rejection there. Consider renaming for clarity.
✏️ Suggested rename
- it('should accept DbNull/JsonNull/AnyNull for nullable typed JSON fields in create/update/find', async () => { + it('should enforce nullable typed JSON null-sentinel behavior across create/update/find', async () => {🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@tests/regression/test/issue-2411/regression.test.ts` at line 10, The test title is misleading: update the it(...) description to match the assertions (which expect DbNull/JsonNull to be accepted but AnyNull to be rejected in create/update); replace the current string "should accept DbNull/JsonNull/AnyNull for nullable typed JSON fields in create/update/find" with a clearer one such as "should accept DbNull/JsonNull for nullable JSON fields and reject AnyNull in create/update (find may accept DbNull/JsonNull)"; ensure you only change the test name (the it(...) description) and not the test logic in the test case.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@packages/orm/src/client/zod/factory.ts`:
- Around line 613-635: The optional typed-JSON wrapper
makeNullableTypedJsonMutationSchema currently rebuilds a schema via
makeScalarSchema(type, attributes), which discards any prior list/array-mutation
shape; change makeNullableTypedJsonMutationSchema to accept and use the
already-built field schema (e.g., pass a baseSchema or fieldSchema parameter)
instead of reconstructing from type and attributes, then use that
baseSchema.safeParse(...) inside superRefine and keep .optional(); update all
callers (the spots currently reconstructing at the other occurrences mentioned)
to pass the pre-wrapped fieldSchema so list validation and array mutation
operators ({ set, push, etc. }) are preserved.
---
Nitpick comments:
In `@tests/regression/test/issue-2411/regression.test.ts`:
- Line 10: The test title is misleading: update the it(...) description to match
the assertions (which expect DbNull/JsonNull to be accepted but AnyNull to be
rejected in create/update); replace the current string "should accept
DbNull/JsonNull/AnyNull for nullable typed JSON fields in create/update/find"
with a clearer one such as "should accept DbNull/JsonNull for nullable JSON
fields and reject AnyNull in create/update (find may accept DbNull/JsonNull)";
ensure you only change the test name (the it(...) description) and not the test
logic in the test case.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 9f417a7f-15ba-4190-baef-b758e69e1bbd
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (36)
package.jsonpackages/auth-adapters/better-auth/package.jsonpackages/cli/package.jsonpackages/clients/client-helpers/package.jsonpackages/clients/tanstack-query/package.jsonpackages/common-helpers/package.jsonpackages/config/eslint-config/package.jsonpackages/config/typescript-config/package.jsonpackages/config/vitest-config/package.jsonpackages/create-zenstack/package.jsonpackages/ide/vscode/package.jsonpackages/language/package.jsonpackages/orm/package.jsonpackages/orm/src/client/crud-types.tspackages/orm/src/client/crud/dialects/base-dialect.tspackages/orm/src/client/crud/dialects/postgresql.tspackages/orm/src/client/zod/factory.tspackages/plugins/policy/package.jsonpackages/schema/package.jsonpackages/sdk/package.jsonpackages/server/package.jsonpackages/testtools/package.jsonpackages/zod/package.jsonsamples/orm/package.jsontests/e2e/package.jsontests/regression/package.jsontests/regression/test/issue-2410.test.tstests/regression/test/issue-2411/input.tstests/regression/test/issue-2411/models.tstests/regression/test/issue-2411/regression.test.tstests/regression/test/issue-2411/schema.tstests/regression/test/issue-2411/schema.zmodeltests/regression/test/issue-2452.test.tstests/regression/test/issue-2524.test.tstests/runtimes/bun/package.jsontests/runtimes/edge-runtime/package.json
#2557) Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Claude finished @ymc9's task —— View job Code Review for v3.5.5 Release PR ✅I've completed a comprehensive review of this release PR merging dev to main for version 3.5.5. This appears to be a well-structured release with important bug fixes and improvements. Review Tasks:
Review SummaryOverall Assessment: This is a solid release PR with critical bug fixes, good test coverage, and consistent versioning. The changes are focused and well-implemented. Key Changes Analyzed
Code Quality Assessment✅ Strengths:
✅ Security: No security concerns identified Specific Technical Improvements
Test CoverageExcellent regression test coverage addressing real-world issues:
Minor Issues Noted
Recommendations✅ Ready to Merge - This PR is well-prepared for release with:
The release effectively resolves several important issues while maintaining backward compatibility and code quality standards. |
Summary by CodeRabbit
Chores
Bug Fixes
Tests