Conversation
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com> Co-authored-by: Yiming Cao <ymc9@users.noreply.github.com>
…racking Introduces a new `$diagnostics()` method on ZenStackClient that returns Zod schema cache statistics and slow query information, helping users monitor and debug ORM performance. - Add `diagnostics` option to `ClientOptions` with `slowQueryThresholdMs` and `slowQueryMaxRecords` settings - Track slow queries in `ZenStackQueryExecutor` when diagnostics is enabled - Share slow query collection across derived clients (via $setAuth, $setOptions, $use, transactions, etc.) - Cap slow query records with an eviction policy that keeps the slowest queries (default max: 100) - Validate diagnostics config with Zod in ClientImpl constructor - Add `Diagnostics`, `QueryInfo`, and `ZodCacheStats` types - Add e2e tests covering all diagnostics features Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
z.int().nonnegative() rejects Infinity. Use .or(z.literal(Infinity)) to accept both nonnegative integers and Infinity. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…For in generated schema The generated schema previously used `as const` on entire model/enum/typeDef objects, causing TypeScript to deeply infer literal types for all nested properties. This is unnecessary for `attributes`, `default`, and `foreignKeyFor` which are only used at runtime, not in CRUD type computations. Changes: - Add type assertions (`as readonly AttributeApplication[]`, `as FieldDefault`, `as readonly string[]`) to prevent deep const inference on these properties - Extract `FieldDefault` type alias from `FieldDef` for cleaner generated code - Change `FieldHasDefault` to use key existence check (`'default' extends keyof`) instead of value type check, enabling the `default` widening - Conditionally import `AttributeApplication` and `FieldDefault` only when used Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
…ldsOptions (#2496) Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
…2504) Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ma (#2503) Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
|
Important Review skippedToo many files! This PR contains 168 files, which is 18 over the limit of 150. ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (168)
You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 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 PR Review for v3.5.0 ReleaseI've completed a comprehensive review of this large PR (168 files, 44 commits) for the v3.5.0 release. Review Checklist:
🔒 CRITICAL SECURITY CONCERNSVSCode Extension Authentication (
|
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Claude finished @ymc9's task —— View job PR Review for v3.5.0 ReleaseI've completed a comprehensive review of this large PR (168 files, 45 commits) for the v3.5.0 release. Review Checklist:
🚨 CRITICAL SECURITY FINDINGSVSCode Extension Authentication (
|
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Claude finished @ymc9's task —— View job Claude finished @ymc9's task —— View job PR Review for v3.5.0 ReleaseI've completed a comprehensive review of this large PR (168 files, 45 commits) for the v3.5.0 release. Review Checklist:
🚨 CRITICAL SECURITY FINDINGSVSCode Extension Authentication (
|
No description provided.