sanity

Sanity Studio – Rapidly configure content workspaces powered by structured content

MIT License

Downloads
9.5M
Stars
5.2K
Committers
128

Bot releases are visible (Hide)

sanity - v0.132.9

Published by bjoerge about 6 years ago

Upgrade with:

sanity upgrade

And install the latest Command Line Interface (CLI) with:

npm install --global @sanity/cli

🐛 Notable bugfixes

Fixed a bug that resolved wrong array input for toplevel array types

📓 Full changelog

Author Message Commit
Knut Melvær Improve onboarding (#924) 04409d23a
Bjørge Næss [form-builder] Fallback to default array input when resolving (#929) a23f7f1c6
sanity - v0.132.8

Published by rexxars about 6 years ago

Upgrade with:

sanity upgrade

And install the latest Command Line Interface (CLI) with:

npm install --global @sanity/cli

🐛 Notable bugfixes

  • Fixed sanity init sometimes exiting before completion on Windows
  • Fixed a rare case where listeners would get invalid unicode sequences in messages on Node.js
  • Fixed a missing dependency in @sanity/base (thanks @XslemX!)

📓 Full changelog

Author Message Commit
Bjørge Næss [base] Add missing dependency to package.json ffc1b63e3
Espen Hovlandsdal [eventsource] Update EventSource dependency with unicode fix (#926) 47cac10f5
Espen Hovlandsdal [cli] Fix validation check that would silently crash on windows (#927) 15b6e8db5
sanity - v0.132.7

Published by bjoerge about 6 years ago

Upgrade with:

sanity upgrade

And install the latest Command Line Interface (CLI) with:

npm install --global @sanity/cli

🐛 Notable bugfixes

Fixed a bug that could cause the studio to crash when encountering images with either hotspot or crop but not both (#923)

📓 Full changelog

Author Message Commit
even westvang Add Slack link to README.md (#922) 85cb8ae72
Bjørge Næss Fix image url error when missing crop or hotspot (#923) 0f66b319e
sanity - v0.132.6

Published by bjoerge about 6 years ago

Upgrade with:

sanity upgrade

And install the latest Command Line Interface (CLI) with:

npm install --global @sanity/cli

✨ Highlights

Get a list of Sanity projects in the command line

Some of us have acquired quite a few Sanity projects and for sure manage.sanity.io has the list, but who has time to open a browser? So now you can $ sanity projects list in your command line of choice, and get a fine responsive table of all your projects with their IDs and studio URLs for your logged in user.

🐛 Notable bugfixes

Order list of documents by fields on referenced documents (#908)

The sort orders now support ordering by a field on a referenced document, e.g.

// on book schema where author is a reference to an author doc
orderings: [
  {
    title: 'Author name',
    name: 'authorName',
    by: [{field: 'author.name', direction: 'asc'}]
  }
]

Arrays now tolerate items with missing keys (#919)

Quashed a bug that made the Content Studio crash when opening a document that had an array field where one or more items were missing a _key. This is now handled, and the user is presented with a way to quickly set keys on items that lack it.

Fix missing _keys in the Studio interface

📓 Full changelog

Author Message Commit
Espen Hovlandsdal [chore] Appveyor tests (#899) 8cc4986d6
Espen Hovlandsdal [cli] Use ESM for clean template schema (#904) fdffb1a26
Espen Hovlandsdal [image-url] Allow using materialized assets (#903) 097d6aca3
Espen Hovlandsdal [chore] Upgrade dependencies (#901) dd2778732
Knut Melvær [import] Add check for valid prefixes in asset import strings (#866) 9a6368a1d
Bjørge Næss [import] Clarify the types of arguments that can be passed to sanityImport(…) (#898) f210598aa
Kristoffer J. Sivertsen [all] Using native scrollbars (#905) 3f4fc7f72
Knut Melvær [core] More helpful CLI messages (#875) f56694d49
Bjørge Næss [desk-tool] Support ordering by fields on referenced documents. Fixes #908 (#909) 39ec7b7e4
Espen Hovlandsdal [base] Add browser support + javascript check (#902) 17ef5f7b9
Knut Melvær [cli] Add project list command (#918) 14d0e6775
Bjørge Næss [form-builder] Tolerate array items with missing keys and provide a way of fixing (#919) 532578bb2
sanity - v0.132.5

Published by rexxars over 6 years ago

Upgrade with:

sanity upgrade

And install the latest Command Line Interface (CLI) with:

npm install --global @sanity/cli

✨ Highlights

"Clean" project template

If you've tried out Sanity before and know how the schemas fit together, it can be nice to bootstrap a new project without any existing schemas. We've (re)introduced this feature to the CLI!

Asset metadata extraction on per-field basis

The Sanity asset backend can extract and generate metadata from images - things like GPS location, exif data, low-quality image placeholders, palette information and similar. You may now specify which data you want to extract on a per-field basis in your schemas. For more information on this feature, see the documentation.

Create and delete documents from the command line

You can now create and delete documents from the command line with sanity documents create myDocument.json and sanity documents delete <document ID>. You can also create a new document from your favorite text editor by running sanity create document and have Sanity watch for changes with sanity document create --watch. Check the documentation for more infomation about these features.

🐛 Notable bugfixes

  • Datepicker does not close when choosing a date 🐞
  • Datepicker allows edit the date inline 🐛
  • The CLI tool would sometimes take very long to respond because of an update check that was blocking execution. This update check now has a timeout before proceeding.
  • Reference fields now correctly displays any validation errors.
  • Passing a transaction instance created outside the scope of a Sanity client to the mutate() method now serializes the transaction correctly.

📓 Full changelog

Author Message Commit
Knut Melvær [cli] Add option for initiating sanity with a clean template (#874) f2ac755d0
Espen Hovlandsdal [core] Fix missing 'dataset' prefix in import/export help (#873) c6b4fc5d9
Espen Hovlandsdal [form-builder] Allow specifying metadata to extract for images/files (#871) 5f45f247d
Espen Hovlandsdal [core] Add sanity documents create, sanity documents delete commands (#872) e4859343a
Kristoffer J. Sivertsen [components] Dialog with functions height fix (#870) d2609d415
Espen Hovlandsdal [cli] Make update check actually respect timeout (#881) fbe2b41ec
Bjørge Næss [form-builder] Let InvalidValueInput be focusable like any other input (#883) 0def148c0
Espen Hovlandsdal [validation] Remove promise concurrency limitation for now (#884) d5302ab96
Espen Hovlandsdal [form-builder] Show validation status in reference inputs (#885) 69323793e
Espen Hovlandsdal [client] Fix passing clientless transaction to mutate() (#890) be45196a3
Espen Hovlandsdal [color-input] Add documentation for color input (#888) af44aec5d
Bjørge Næss [form-builder] Optimize reference search query (#892) c74b90e4a
Espen Hovlandsdal [chore] Only build on next, drone-ci branches 0fa8cb929
Espen Hovlandsdal [chore] Add UMD build targets and unpkg fields for client + image-url modules (#895) beb024b4b
Kristoffer J. Sivertsen [form-builder] Make datepicker stay open on change, reset inputValue when edit raw is valid (#896) 8f844dd37
Kristoffer J. Sivertsen [form-builder] Not send inn the defaultList class in arrayInput (#878) 9af40e3b7
sanity - v0.132.4

Published by bjoerge over 6 years ago

Upgrade with:

sanity upgrade

And install the latest Command Line Interface (CLI) with:

npm install --global @sanity/cli

✨ Highlights

Various visual fixes and a few bugfixes

🐛 Notable bugfixes

Fixed a bug with sanity export causing custom image/file fields (e.g. caption) to be lost in exported files

📓 Full changelog

Author Message Commit
Thomas Drevon [default-login] Use dedicated styles for CookieTest component (#837) 851a2d2b2
Knut Melvær [readme] Add link for Block Content to Markdown (#853) 4475c06a0
Espen Hovlandsdal [chore] Add Drone CI (#854) 079cc2010
Kristoffer J. Sivertsen [form-builder] Functions padding on array of primitives 9920d5bb3
Kristoffer J. Sivertsen [components] Larger max-height on dialog (#864) f72978a04
Kristoffer J. Sivertsen Design fixes (#858) ce114c146
Kristoffer J. Sivertsen Fix confirm button (#863) ff7f57dac
Bjørge Næss [export] Make sure we export other attributes on fields containing asset references (#867) 6492e96e2
sanity - v0.132.2

Published by rexxars over 6 years ago

Upgrade with:

sanity upgrade

And install the latest Command Line Interface (CLI) with:

npm install --global @sanity/cli

✨ Highlights

🚜More reliable import

The sanity dataset import CLI command is now more fault tolerant, retrying in the case of network failures and similar (up to a maximum number of retries, obviously).

➡️Pass arguments to sanity exec scripts

You can now pass arguments to scripts executed through sanity exec by using subargs:

sanity exec --with-user-token -- --your-script --flags=here

👻 External CSS without CSS modules

When using third-party React components and want to import related CSS files, Sanity will by default convert the CSS to CSS modules. This won't usually work as expected, since the class names change. To force Sanity to use unprefixed CSS classes, you can import using the raw query parameter. For instance:

import 'some-react-component/styles.css?raw'

See PR #849 for more background information.

🐛 Notable bugfixes

  • Fix a bug where selecting a paragraph style from within a dialog would close the dialog
  • The block editor will no longer crash when selecting a block from an array without any text blocks
  • The --visibility flag on sanity dataset create now actually works 😳
  • @sanity/image-url can now parse full asset URLs, enabling you to add image transformation parameters to the URL programatically.

📓 Full changelog

Author Message Commit
Espen Hovlandsdal [import] Add retry handling on write operations (#832) d8e9f1742
Espen Hovlandsdal [plugin-loader] Fix loading of namespaced configs (#836) 6f7e34095
Espen Hovlandsdal [core] Fix visibility mode flag on dataset creation (#833) 77c7f3b37
Espen Hovlandsdal [preview] Log EventListenerOptions warning only in development mode (#838) 752e80eb6
Bjørge Næss [preview] Refactor and expose WithVisibility helper component (#840) 10f78f0ab
Bjørge Næss [chore] Upgrade prettier and add prettify script (#841) f9de6fb6a
Bjørge Næss [chore] Run prettier on all js files e0edb423a
Espen Hovlandsdal [import] Fix serialization of numeric object keys (#842) 86fda82af
Espen Hovlandsdal [chore] Add --all flag to symlink script to blindly symlink all Sanity-modules (#844) b72666777
Espen Hovlandsdal [form-builder] Pass parent path of slug field to source function (#845) 6c17675e3
Espen Hovlandsdal [image-url] Support parsing asset objects with only URL (#846) da749500e
Espen Hovlandsdal [test-studio] Add array of objects containing blocks to blocks schema fb1a0ef54
Knut Melvær [readme] Add slack badge (#850) bf9b4d783
Espen Hovlandsdal [core] Pass subargs onto exec target (#848) b72c68b3f
Thomas Drevon [form-builder] Remove patchChannel prop requirement (#851) b298cab60
Kristoffer J. Sivertsen [components] Fix bug where nested block input dialogs would close when selecting style (#847) 2f8defb87
Kristoffer J. Sivertsen [desk-tool] Less text on publish button. Explanation in tooltip (#839) 5e3bb029d
Espen Hovlandsdal [server] Allow importing CSS with ?raw to bypass CSS modules (#849) 3a5cfcaba
sanity - v0.132.1

Published by bjoerge over 6 years ago

Upgrade with:

sanity upgrade

And install the latest Command Line Interface (CLI) with:

npm install --global @sanity/cli

🐛 Notable bugfixes

Fixed a bug causing the delete button on array items to not respond to mouse clicks

📓 Full changelog

Author Message Commit
Bjørge Næss [components] Prevent inner element in button from stealing focus (#834) 892e0ceb4
sanity - v0.132.0

Published by bjoerge over 6 years ago

Upgrade with:

sanity upgrade

And install the latest Command Line Interface (CLI) with:

npm install --global @sanity/cli

This is a bugfix and maintenance release and includes several improvements and stability fixes

✨🐞 Notable improvements and bugfixes

  • Not displaying delete button when editing "empty" array items, instead showing "cancel" (#810)
  • Fixed a bug when drag-drop batch uploading images that caused an edit dialog to pop open for the last array item (#811)
  • When deleting array items, the confirm delete button is now focused by default, and focus is properly restored to the item when closing it (#783)
  • Fixed a bug causing text selection on Safari when dragging to reorder array items (#814)
  • Fixed various dialog sizing issues (#809, #815)
  • Upgraded RxJS to 6.1 and deprecated the @sanity/observable package (#768)
  • Upgraded react-json-inspector (#821)
  • Fixed a race condition that would sometimes display a document as deleted (for a brief period) when publishing it (#822)
  • Fixed a bug causing the style select to not pop up when editing block text in fullscreen mode (#823)
  • The studio base path can now be overridden using an environment variable. Thanks @dan-dr for putting this together! (#819)
  • The studio will now switch to responsive mode when resizing (#807)
  • Fixed a bug causing editing of inline objects to fail (#826)
  • Fixed an issue where buttons got wrong spacing in some cases (#824, #825)
  • Improved detail level of error messages on import failures (#831)

📓 Full changelog

Author Message Commit
Bjørge Næss [form-builder] Show cancel and hide delete buttons if edited item is empty (#810) 972c697fb
Bjørge Næss [form-builder] Don't open edit dialog for uploaded items (#811) 667659f7d
Bjørge Næss [form-builder] Fix tab/focus on confirm delete button (#783) 128d801ab
Bjørge Næss [components] Remove hard coded distance prop on Sortable components and prevent default on sort start (#814) 67fb13900
Kristoffer J. Sivertsen Force poppersize when containing blockeditor (#809) c1e21ea54
Bjørge Næss [chore] Replace @sanity/observable with RxJS (#768) 13565e36f
Kristoffer J. Sivertsen DialogContent component for sizing dialogs (#815) a51044f65
Espen Hovlandsdal [chore] Upgrade react-json-inspector (#821) 6358be0c3
Bjørge Næss [misc] Checkout draft/published as a pair instead of separately (#822) 208014487
Kristoffer J. Sivertsen [components] Fixing styleselect portal (#823) e5e168403
dan-dr [core] Add ability to override project basePath with environment variable (#819) 765fe2cf8
Kristoffer J. Sivertsen [components] Switch to mobile on resize. No need to refresh browser (#807) bdc174ed6
Bjørge Næss [form-builder] Use FocusManager with inline items (#826) 69e3bbd64
Kristoffer J. Sivertsen Buttons collection and forms spacing (#824) b7841019c
Kristoffer J. Sivertsen [components] Spacing when using forms outside form-builder (#825) d3b8c54c1
Bjørge Næss [preview] Fix intersection observable fallback d060f6dc0
Bjørge Næss [client] Fix wrong import 7fcf9a391
Thomas Drevon [form-builder] Export withValuePath (#829) 29a8802e8
Espen Hovlandsdal [core] Throw on dataset import failure instead of only printing error (#831) 460a81fc1
sanity - v0.131.2

Published by bjoerge over 6 years ago

Upgrade with:

sanity upgrade

And install the latest Command Line Interface (CLI) with:

npm install --global @sanity/cli

🐛 Notable bugfixes

  • Fixed a bug causing ecommerce studios to fail on first deploy

📓 Full changelog

Author Message Commit
Thomas Drevon [cli] Add missing folder to ecommerce template (#820) 9cb616177
sanity - v0.131.1

Published by bjoerge over 6 years ago

Upgrade with:

sanity upgrade

And install the latest Command Line Interface (CLI) with:

npm install --global @sanity/cli

🐛 Notable bugfixes

  • Fixes a bug causing the add-button on array of primitives to not work

📓 Full changelog

Author Message Commit
Bjørge Næss [form-builder] Fix invalid prop (#812) 5156a96e3
sanity - v0.131.0

Published by bjoerge over 6 years ago

Upgrade with:

sanity upgrade

And install the latest Command Line Interface (CLI) with:

npm install --global @sanity/cli

✨ Highlights

⌨️ CORS management through CLI

The command line tool now allows you to manage CORS origins without going through the management interface: sanity cors add, sanity cors list and sanity cors delete are your new friends!

📭 Removing empty values

A common complaint has been that "empty" array items sometimes keep hanging around. For example, if you add an item to an array, then closes the add dialog immediately, then the added item was not removed again. This has now been fixed, and if array items are empty when the edit dialog is closed, the item will be removed from the array (see #780 for more details).

🗑 Dropping React 15 support

We launced with React 16 support as of v0.127.0, which was released two months ago. Since then, we have been developing against React 16.2, and since tracking usage of React 16 specific features is hard, we have decided to make it explicit that the studio needs React 16.2 or newer to run. In case you missed it, here's how to upgrade React in your Sanity studio.

🍱 Use layout: 'grid' on your array of images

Make an array look more like an image gallery. Just add options: {layout: 'grid'} to your array. Uses CSS Grid layout to autosize the columns.

ProTip: You can use the layout: 'grid'-option on arrays of any type, not only images.

layout: grid

🗝 Part-ify rendering of login providers

You can now take complete control of how your Studio renders your login providers. Create your own implementation of the LoginDialogContent.js component. Then wire it up in sanity.json:

{
  "implements": "part:@sanity/base/login-dialog-content",
  "path": "MyLoginDialogContent.js"
}

🐛 Notable bugfixes

  • Improved display of the tokenized tags input in readOnly mode
  • Fixed a bug causing errors when geopoint types were used in an array
  • Fixed a bug causing the sanity command to complain about incompatible version for prereleases
  • Fixed a bug causing preview components to erroneously identify numbers and empty values as invalid preview values

📓 Full changelog

Author Message Commit
Espen Hovlandsdal [plugin-loader] Add option to stub CSS loading (#771) 49e6f0910
Kristoffer J. Sivertsen [components] Make tags textfield display readOnly correct (#776) 86f73dd73
Kristoffer J. Sivertsen Styleselect and official react popper (#777) ba8aadfa3
Kristoffer J. Sivertsen Responsive dialogs width (#775) 468769fdc
Bjørge Næss [form-builder] Remove empty values when array dialog closes and pass down undefined as item values if empty (#780) acf0a3b4f
Bjørge Næss [google-maps-input] Don't overwrite value, just set lat/lng (#781) 0dbbf5c38
Bjørge Næss [schema] Remove geopoint as core type (#782) c0495a4b5
Espen Hovlandsdal [test-studio] Add custom reference input example (#778) 4847a7953
Espen Hovlandsdal [chore] Normalize package fields a339d6d1f
Espen Hovlandsdal [default-layout] Ensure error message inclusion in error boundary (#789) 3fcdd219f
Espen Hovlandsdal [test-studio] Add inline object without preview select to objects schema a79db5bd5
Kristoffer J. Sivertsen Overflowing switch description (#788) 4df78c878
Kristoffer J. Sivertsen [desk-tool] Fix syncing icon and publish button spacing (#787) 39bd39f50
Espen Hovlandsdal [core] Add CLI-commands for managing CORS-origins (#790) 7bb470019
even westvang [ecommerce-studio] Change blurb to from localText to localeString (#779) c025d46fa
Thomas Drevon [default-login] Part-ify rendering of login providers (#793) c6658b23c
Espen Hovlandsdal [image-url] Allow using actual query parameters instead of aliases (#792) d36b714c8
Espen Hovlandsdal [schema] Add missing fields for reference and slug types (#784) 9a79e5b2d
Espen Hovlandsdal [form-builder] Add overridable part for array input functionality (#795) 7b4bcb149
Knut Melvær [cli] Make upgrade message less confusing (#773) fd93e7d4b
Kristoffer J. Sivertsen Fix array grid view (#786) 6da04a038
Thomas Drevon [movies-studio] Update google maps api key 0849c5b73
Thomas Drevon Fix typo in readme c57680f96
Bjørge Næss [chore] Drop support for React 15 (#802) ec4163111
Espen Hovlandsdal [image-url] Allow passing asset documents as source (#803) 2f6a7af8e
Kristoffer J. Sivertsen Button spacing & click to close on dropdown (#794) d98b3bf0a
Thomas Drevon [cli] Coerce @sanity/core version string before performing satisfaction check (#804) aa5eef228
Bjørge Næss [preview] Don't fail on numbers, booleans and empty values (#805) 869c8c911
sanity - v0.130.1

Published by rexxars over 6 years ago

Upgrade with:

sanity upgrade

And install the latest Command Line Interface (CLI) with:

npm install --global @sanity/cli

🐛 Notable bugfixes

  • Fixed bug where sanity upgrade would fail to upgrade modules because of inexplicable yarn bug

📓 Full changelog

Author Message Commit
Espen Hovlandsdal Delete Sanity-modules that needs upgrading to work around yarn bug (#774) ceb237cb
sanity - v0.130.0

Published by bjoerge over 6 years ago

Upgrade with:

sanity upgrade

And install the latest Command Line Interface (CLI) with:

npm install --global @sanity/cli

✨ Highlights

E-commerce sample schema

Till now when you have set up new projects with sanity init you have had the choice between a film database and blog to provide examples of how well known data structures are modeled in Sanity. Now we've expanded this to an e-commerce example.

For an example frontend to use with this schema, check out our Vue/Nuxt.js based ecommerce example frontend

If you don't like blogs, movie databases or e-commerce you can always just:
sanity init --template clean

Error boundaries

If something inside of a tool crashes during rendering, a more user-friendly error message will be displayed.

Default input for date strings

We already had a default input for datetime types, now we also have an input for plain dates (as in date strings without a time segment, e.g. 2018-05-03)

Better feedback on invalid preview config

We have received quite a few error reports that have been caused by invalid values returned from the preview config. Instead of a hard failure in the Studio, these errors should now be handled more gracefully along with a detailed explanation in the developer console.

Node v10 compatibility

Initializing and running a Sanity Studio locally on Node v10 should now work.

📓 Full changelog

Author Message Commit
Bjørge Næss [core] Remove checksum warning until we can provide a way of fixing (#757) 8e9ea1b8c
Bjørge Næss [preview] Tolerate invalid values returned from preview config and provide helpful errors (#760) 3d14c292d
Bjørge Næss [form-builder] Refactor DateTimeInput and add DateInput (#756) 4a9772328
Espen Hovlandsdal [cli] Use npm registry for modules. Upgrade yarn to 1.6.0 (#763) 7d062c246
Espen Hovlandsdal [chore] Test on node 10 instead of node 9 (#759) 298ab7fd4
Espen Hovlandsdal [presence-store] Fix path to entry file (#765) c88c677e6
Espen Hovlandsdal [reflector-client] Reuse sanity client instead of using get-it directly (#764) 4ad6e6dc6
Espen Hovlandsdal [form-builder] Add dl-parameter on download links to trigger attachment disposition (#767) e4f10b31e
Espen Hovlandsdal [default-layout] Provide error boundary at tool level (#766) 4ea2fa146
Kristoffer J. Sivertsen [cli] Adding ecommerce-studio (#758) 5524c36ff
sanity - v0.129.3

Published by bjoerge over 6 years ago

Upgrade with:

sanity upgrade

And install the latest Command Line Interface (CLI) with:

npm install --global @sanity/cli

🐛 Notable bugfixes

  • Fixed a bug that could cause the published document to get overwritten by an empty draft when publishing using the hotkey.

📓 Full changelog

Author Message Commit
Bjørge Næss [desk-tool] Prevent empty draft from overwriting published document (#770) f8717f949
sanity - v0.129.2

Published by bjoerge over 6 years ago

Upgrade with:

sanity upgrade

And install the latest Command Line Interface (CLI) with:

npm install --global @sanity/cli

🐛 Notable bugfixes

  • Fixed a bug causing sanity init to fail when resolving dependencies in Node.js 10

📓 Full changelog

Author Message Commit
Bjørge Næss [cli] Run yarn with --ignore-engines when resolving dependencies (#762) 14dda3428
sanity - v0.129.1

Published by rexxars over 6 years ago

Upgrade with:

sanity upgrade

And install the latest Command Line Interface (CLI) with:

npm install --global @sanity/cli

🐛 Notable bugfixes

  • Fixed a bug where sanity start would crash if NODE_ENV was to production

📓 Full changelog

Author Message Commit
Espen Hovlandsdal [core] Remove production server option from start command (#754) 64a327a67
sanity - v0.129.0

Published by bjoerge over 6 years ago

Upgrade with:

sanity upgrade

And install the latest Command Line Interface (CLI) with:

npm install --global @sanity/cli

✨ Highlights

Publish without confirmation

We've removed the extra confirmation step after pressing the publish button. This after feedback that it was mostly annoying and very seldom helpful. Publish without confirmation

Live Edit

Even though the Content Studio saves your document as you are typing you typically need document changes to be buffered in drafts before you publish them. Sometimes though you want your changes to be immediate. We have therefore added the option liveEdit: true to the document schema type. This does away with drafts and makes every document change reflect on the APIs and show up for listeners as mutations.

Migrations

The best way to run migrations is by writing a small JavaScriptlet that you execute using sanity exec. In this release, we have added support for passing --with-user-token to sanity exec, which will allow you to import a preconfigured, authenticated client from part:@sanity/base/client in your script. Our documentation also now covers running migrations.

🐛 Notable bugfixes

  • Fixed a bug that allowed field names with invalid characters, causing invalid queries (#434, #748)
  • Fixed a bug causing Safari to report valid urls as invalid (#751, #752)

📓 Full changelog

Author Message Commit
Kristoffer J. Sivertsen [components] Improve focus handling on radio selects (#711) 8d3dc7554
Kristoffer J. Sivertsen [form-builder] Min width causes image dialog to fail (#733) 13a999cf6
Kristoffer J. Sivertsen [components] Fixing styling bugs and removing focus completly from va… (#714) d037bda4c
Espen Hovlandsdal [validation] Include $ in path on reference validation errors (#738) 95985d286
even westvang [chore] Improve quality of README copy and display (#735) ab72b9538
Thomas Drevon [desk-tool] Add support for live edit (#741) 6f34912d6
Bjørge Næss [chore] Configure lerna to use npm instead of yarn (#740) 3306c4a1c
Espen Hovlandsdal [core] Add --with-user-token flag for exec command (#746) 0deb45b78
Espen Hovlandsdal [cli] Don't show upgrade prompt on same version (#734) 5f03ef353
Bjørge Næss [example-studio] Add an example of how to rename a document field (#745) 8f35178d7
Bjørge Næss [form-builder] Fix error causing form-builder to fail on patches including ifRevisionID (#747) 99b52fe1a
Bjørge Næss [schema] Make sure field name regex fail on dash and whitespace (#748) 70035abe0
Bjørge Næss [desk-tool] Remove publish confirmation (#750) c8c6a3245
Bjørge Næss [validation] Fix wrong URL constructor invocation. Fixes #751 (#752) 782f7c507
sanity - v0.128.13

Published by rexxars over 6 years ago

Upgrade with:

sanity upgrade

And install the latest Command Line Interface (CLI) with:

npm install --global @sanity/cli

📓 Full changelog

Author Message Commit
Espen Hovlandsdal [cli] Allow using template flag in interactive mode fc63a77
sanity - v0.128.12

Published by rexxars over 6 years ago

Upgrade with:

sanity upgrade

And install the latest Command Line Interface (CLI) with:

npm install --global @sanity/cli

✨ Highlights

Import from folder

You may now target a folder when using sanity dataset import. It will look for an ndjson file within the directory. This is useful when extracting a tarball exported with sanity dataset export to a folder and changing its content.

Studio on non-root paths

When hosting the studio yourself, you may want to put it on a non-root path in order to serve a website and the studio from the same domain. This is now supported by specifying a basePath property under the project key of your projects sanity.json file. Example:

{
  // ...
  "project": {
    "name": "Movies studio",
    "basePath": "/studio"
  },
  // ...
}

🐛 Notable bugfixes

  • Unicode URLs are now treated as valid URLs
  • The image-url module now properly supports passing a document ID, a reference or a materialized asset document (thanks @enigosi!)

📓 Full changelog

Author Message Commit
Wojciech Romanski [image-url] Fix parsing image source (#728) 63f511f
Espen Hovlandsdal [validation] Allow unicode in URIs c21ccd39a
Espen Hovlandsdal [import] Support importing from folder 97564ec77
Espen Hovlandsdal [core] Allow importing datasets from directory 37bc881fa
Espen Hovlandsdal [core] Improve sanity dataset import documentation 7c18827d3
Espen Hovlandsdal [chore] Avoid mixed export/imports (#699) d3924a644
Kristoffer J. Sivertsen [components] Styling focus state on select (#682) d1ff7c339
Espen Hovlandsdal [server] Allow specifying a basePath for a studio (#720) fa63389c2
Espen Hovlandsdal [image-url] Code style fixes 13b75dd83