feat: polyglot typegen#1091
Conversation
Signed-off-by: Jonah Snider <jonah@jonahsnider.com>
|
Claude finished @jonahsnider's task in 1m 45s —— View job Claude PR Review
Issues to fix1. Consumer code not updated — new polyglot shape is silently broken at runtime. sanityTypegenPlugin({ config: typegen, ... })And
No such folding code exists in this PR. Either implement it (a normalizer at the consumer boundary in 2. Missing changeset. 3. Widening 4. Doc/impl mismatch on 5. No tests. 6. Generic validation error message. 7. Misleading type assertions in the validator. 8. PHP namespace regex won't match the documented default. 9. Helper used once. Summary: the type/schema work looks reasonable as a contract, but this PR ships a config surface whose new branch has no consumer, no folding/deprecation behavior, no tests, and no changeset. I'd hold this until at least items 1, 2, and 5 are addressed. |
📦 Bundle Stats —
|
| Metric | Value | vs main (347ea44) |
|---|---|---|
| Internal (raw) | 2.1 KB | -8 B, -0.4% |
| Internal (gzip) | 799 B | -2 B, -0.2% |
| Bundled (raw) | 10.97 MB | +2.4 KB, +0.0% |
| Bundled (gzip) | 2.06 MB | +740 B, +0.0% |
| Import time | 832ms | +4ms, +0.5% |
bin:sanity
| Metric | Value | vs main (347ea44) |
|---|---|---|
| Internal (raw) | 1023 B | - |
| Internal (gzip) | 486 B | - |
| Bundled (raw) | 9.84 MB | - |
| Bundled (gzip) | 1.77 MB | - |
| Import time | 2.03s | +15ms, +0.7% |
🗺️ View treemap · Artifacts
Details
- Import time regressions over 10% are flagged with
⚠️ - Sizes shown as raw / gzip 🗜️. Internal bytes = own code only. Total bytes = with all dependencies. Import time = Node.js cold-start median.
📦 Bundle Stats — @sanity/cli-core
Compared against main (347ea449)
| Metric | Value | vs main (347ea44) |
|---|---|---|
| Internal (raw) | 97.4 KB | +1.2 KB, +1.2% |
| Internal (gzip) | 23.0 KB | +481 B, +2.1% |
| Bundled (raw) | 21.61 MB | +1.8 KB, +0.0% |
| Bundled (gzip) | 3.42 MB | +468 B, +0.0% |
| Import time | 795ms | +8ms, +1.0% |
🗺️ View treemap · Artifacts
Details
- Import time regressions over 10% are flagged with
⚠️ - Sizes shown as raw / gzip 🗜️. Internal bytes = own code only. Total bytes = with all dependencies. Import time = Node.js cold-start median.
📦 Bundle Stats — create-sanity
Compared against main (347ea449)
| Metric | Value | vs main (347ea44) |
|---|---|---|
| Internal (raw) | 976 B | - |
| Internal (gzip) | 507 B | - |
| Bundled (raw) | 50.7 KB | - |
| Bundled (gzip) | 12.6 KB | - |
| Import time | ❌ ChildProcess denied: node | - |
Details
- Import time regressions over 10% are flagged with
⚠️ - Sizes shown as raw / gzip 🗜️. Internal bytes = own code only. Total bytes = with all dependencies. Import time = Node.js cold-start median.
Coverage Delta
Comparing 1 changed file against main @ Overall Coverage
|
agent week project