ricokahler / sanity-codegen

Generate TypeScript types from your Sanity.io schemas
sanity-codegen-dev.vercel.app
MIT License
270 stars 19 forks source link

feat: v3 updates #275

Closed ricokahler closed 1 year ago

ricokahler commented 1 year ago

Updates the repo to work with v3 instead of v2

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗ī¸Ž

Name Status Preview Comments Updated
sanity-codegen-dev ✅ Ready (Inspect) Visit Preview đŸ’Ŧ Add your feedback Jan 19, 2023 at 0:33AM (UTC)
netlify[bot] commented 1 year ago

Deploy Preview for gifted-yonath-a06519 failed.

Name Link
Latest commit b64b1e5a179ce4a6fa9a191f65dc5a4099305739
Latest deploy log https://app.netlify.com/sites/gifted-yonath-a06519/deploys/63c88f23001354000882c258
github-actions[bot] commented 1 year ago

Size Change: -218 B (0%)

Total Size: 67.1 kB

Filename Size Change
packages/client/dist/index.cjs.js 886 B -31 B (-3%)
packages/client/dist/index.esm.js 784 B -1 B (0%)
packages/groq-codegen/dist/default-structures/geopoint.js 298 B -1 B (0%)
packages/groq-codegen/dist/default-structures/image.js 721 B -2 B (0%)
packages/groq-codegen/dist/default-structures/index.js 254 B -1 B (0%)
packages/groq-codegen/dist/generate-groq-types.js 1.36 kB -2 B (0%)
packages/groq-codegen/dist/index.js 432 B -1 B (0%)
packages/groq-codegen/dist/index.standalone.cjs.js 10.5 kB -202 B (-2%)
packages/groq-codegen/dist/index.standalone.esm.js 10.6 kB -128 B (-1%)
packages/groq-codegen/dist/pluck-groq-from-files.js 2.83 kB -7 B (0%)
packages/groq-codegen/dist/resolve-expression-error.js 149 B -2 B (-1%)
packages/groq-codegen/dist/transform-groq-to-structure.js 3.17 kB +21 B (+1%)
packages/groq-codegen/dist/transform-schema-to-structure.js 1.67 kB -3 B (0%)
packages/groq-codegen/dist/transform-structure-to-ts.js 2.09 kB -11 B (-1%)
packages/groq-codegen/dist/utils/access-attribute-in-structure.js 577 B -5 B (-1%)
packages/groq-codegen/dist/utils/bounded-find.js 382 B -1 B (0%)
packages/groq-codegen/dist/utils/create-structure.js 1.14 kB -2 B (0%)
packages/groq-codegen/dist/utils/get-next-filename.js 371 B -1 B (0%)
packages/groq-codegen/dist/utils/hash.js 604 B -1 B (0%)
packages/groq-codegen/dist/utils/index.js 615 B -1 B (0%)
packages/groq-codegen/dist/utils/is-structure.js 590 B -3 B (-1%)
packages/groq-codegen/dist/utils/narrow-structure.js 2.1 kB -9 B (0%)
packages/groq-codegen/dist/utils/reduce-object-structures.js 910 B -9 B (-1%)
packages/groq-codegen/dist/utils/resolve-expression.js 1.75 kB -3 B (0%)
packages/groq-codegen/dist/utils/resolve-identifier.js 1.6 kB -10 B (-1%)
packages/groq-codegen/dist/utils/simple-logger.js 403 B -1 B (0%)
packages/groq-codegen/dist/utils/transforms.js 976 B -6 B (-1%)
packages/groq-codegen/dist/utils/wrap-array.js 339 B -5 B (-1%)
packages/schema-codegen/dist/generate-schema-types.js 2.17 kB -8 B (0%)
packages/schema-codegen/dist/index.js 370 B +2 B (+1%)
packages/schema-codegen/dist/index.standalone.cjs.js 4.96 kB -86 B (-2%)
packages/schema-codegen/dist/index.standalone.esm.js 5.13 kB +45 B (+1%)
packages/schema-codegen/dist/index.standalone.js 231 B -1 B (0%)
packages/schema-codegen/dist/schema-executor.js 953 B +252 B (+36%) 🚨
packages/schema-codegen/dist/schema-extractor.js 706 B +3 B (0%)
packages/schema-codegen/dist/schema-normalizer.js 2.57 kB +4 B (0%)
packages/schema-codegen/dist/schema-type-shim.js 161 B -1 B (-1%)
ℹī¸ View Unchanged | Filename | Size | | :--- | :---: | | `packages/groq-codegen/dist/index.standalone.js` | 229 B | | `packages/schema-codegen/dist/default-babel-options.js` | 798 B | | `packages/schema-codegen/dist/default-generate-type-name.js` | 301 B | | `packages/schema-codegen/dist/no-op.js` | 192 B | | `packages/schema-codegen/dist/schema-creator-shim.js` | 271 B |

compressed-size-action