github sanity-io/sanity v3.0.0-dev-preview.12

latest releases: v3.36.2, v3.36.1, v3.36.0...
pre-release20 months ago

Changes

  • New studios gets bootstrapped with deploy and deploy-graphql scripts (mapping to sanity deploy/sanity graphql deploy)
  • The default document node resolver for desk structures now gets the ConfigContext passed as the second argument, matching the regular structure
  • Added and exposed new assertion methods:
    • isDocumentSchemaType
    • isArrayOfObjectsSchemaType
    • isArrayOfPrimitivesSchemaType
    • isObjectInputProps
    • isStringInputProps
    • isNumberInputProps
    • isBooleanInputProps
    • isArrayOfObjectsInputProps
    • isArrayOfPrimitivesInputProps
  • BREAKING CHANGE: The history store no longer exposes the historyEventsFor() method
  • BREAKING CHANGE: The @sanity/transaction-collator module is now deprecated and will no longer be maintained
  • BREAKING CHANGE: Document nodes in structure now requires you to define a schemaType

🐛 Notable bugfixes

  • Fixes issue where studio requests would not be tagged correctly
  • Fixes issue where schema type errors would be caught by the global error handler instead of the specific schema error boundary
  • Fixes issue where deployed studios would crash when attempting to upload images/files
  • Fixes issue where studio might crash when attempting to preview a file as if it was an image
  • Fixes issue where building/deploying a studio would not work if the configuration file had .tsx/.jsx extension
  • Fixes issue where the global error handler would be used for known errors
  • Fixes issue where the wrong order would be used when resolving input components, leading to slug input without a generate button, array inputs without drag handles and a few other cases
  • Fixes a few warnings being printed to the console when publishing
  • Fixes a few issues with the typescript definitions for schema declarations

📓 Full changelog

Author Message Commit
Espen Hovlandsdal fix(server): add missing esbuild peer dependency e22cebf
Espen Hovlandsdal fix(form): inline attr-accept dependency 097e5ef
Espen Hovlandsdal fix(types): check asset id prefix when determining if object is image cbbde1c
Espen Hovlandsdal fix(types): add validation on field definitions a312e2e
Espen Hovlandsdal fix(types): add missing placeholder property on date/datetime schema definitions 245201f
Espen Hovlandsdal fix(types): allow field references in validation min/max/gt/lt rules c5de07b
Espen Hovlandsdal fix(types): add schema options for cross-dataset references c00f5c5
Espen Hovlandsdal chore(test-studio): migrate schema files to typescript 8a75979
Marius Lundgård refactor: defer global error listener to let error boundary subscribe 4e4acc9
Espen Hovlandsdal fix(server): resolve tsx/jsx studio config when building 9d884b5
Espen Hovlandsdal chore(test-studio): migrate schema files to typescript 34120ef
Espen Hovlandsdal refactor(hooks): use type-only import for client 7915c91
Espen Hovlandsdal fix(studio): prevent global error handler from catching known errors d80f1e1
Espen Hovlandsdal refactor(errors): only expose subscribe() method on global error channel b2b742d
Espen Hovlandsdal refactor(errors): improve typings for global error handler 375095c
Espen Hovlandsdal feat(cli): add deploy + deploy-graphql scripts to package.json 9058bf6
Espen Hovlandsdal refactor(portable-text-editor): improve typings 268dd15
Espen Hovlandsdal refactor(schema): slightly improve typings for schema bf74adf
Espen Hovlandsdal feat!: historyStore: drop historyEventsFor(), move history types to @sanity/types 8d72f59
Espen Hovlandsdal feat!(transaction-collator): drop unused transaction-collator package 26df0cb
Espen Hovlandsdal refactor(types): more specific return type of defineType() 52e5541
Espen Hovlandsdal fix(types): add + deprecate missing isHighlighted asset field option 951e0f1
Espen Hovlandsdal fix(errors): log uncaught errors to console dea50c8
Espen Hovlandsdal feat(types): add isDocumentSchemaType() asserter 825bc69
Espen Hovlandsdal fix(datastores): add missing request tag prefix 62d850b
Espen Hovlandsdal fix(form): reverse order of input component resolution 860ab5a
Espen Hovlandsdal fix(cli): use correct create command based on --missing/--replace flags f19aff1
Espen Hovlandsdal fix(desk): silence warning about animating stroke dash offset 1558d3e
Espen Hovlandsdal fix(test-studio): temporarily remove orderable tag/category types d53a9d4
Espen Hovlandsdal fix(structure): narrow provided structure context to defined properties 59d10a0
Espen Hovlandsdal feat(desk): pass ConfigContext to default document node resolver 5d9f9b5
Espen Hovlandsdal fix: define types path for exports a37b206
Espen Hovlandsdal feat(types): add array of object/primitives schema type asserters db0ef47
Espen Hovlandsdal refactor(form): use isArrayOfObjectsSchemaType from @sanity/types 9c59e1e
Espen Hovlandsdal feat(form): implement input props type asserters adec4af
Espen Hovlandsdal chore(dev-studio): remove deprecated structure example 8b5c7ae
Espen Hovlandsdal feat!(desk): require schemaType for document nodes in structure a286cb7
Espen Hovlandsdal chore: modify publish-dev-preview script f9a22b1

Don't miss a new sanity release

NewReleases is sending notifications on new releases.