npm @sanity/default-login 2.19.0
v2.19.0

latest releases: 2.36.2, 2.36.2-weighted-search.16, 2.36.2-weighted-search.10...
2 years ago

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

✨ Highlights

styled-components as first-level dependency

We've been hard at work migrating the internals of Sanity Studio from CSS modules Sanity UI, which is based on styled-components.

Over the past releases, we've seen a few reported issues where multiple versions of the styled-components dependency could end up in the same studio, causing issues that were hard to understand (sanity is undefined) and would require a full dependency tree reinstall to resolve (rm -rf node_modules && sanity install).

In this version, we're introducing styled-components as a first-level dependency in the studio, in the same way that react and react-dom is.

The first time you run sanity start, sanity build or sanity upgrade after the upgrade, you will be asked to install the dependency - and in non-interactive it will install automatically.

This migration should be seamless for most studios. We anticipate that in certain cases (custom monorepo setups, for instance) it might require manual changes, like adding styled-components as a dependency of the studio.

For a more in-depth look at the rationale behind this change, see the pull request for this change.

Specify API version for CLI query command

The sanity documents query CLI command now has a new flag: --api-version.

This is useful for testing how queries behave in different API versions. For now, the command will still use v1 as the default.

🐛 Notable bugfixes

  • Fixes a rare case where an error could be thrown during the React render lifecycle without being an Error instance, which would crash the error boundary

📓 Full changelog

Author Message Commit
Espen Hovlandsdal chore(deps): move styled-component from deps to peerDeps b2e0d92
Espen Hovlandsdal chore(core): allow typescript in @sanity/core 0450f0a
Espen Hovlandsdal chore(deps): upgrade fs-extra, semver dependencies 73e46b3
Espen Hovlandsdal feat(core): verify/prompt for styled-components dependency 417c783
Espen Hovlandsdal fix(cli): add styled-components as dependency for new studios d06bbfe
Espen Hovlandsdal chore(examples): add styled-components to dependencies da87a87
Espen Hovlandsdal chore(core): temporarily add inquirer as dev dependency 9bda8b2
Espen Hovlandsdal fix(core): skip package-manager prompt if non-interactive 8d9af82
Espen Hovlandsdal refactor(core): use semver.minVersion over custom function 1728000
Espen Hovlandsdal chore(storybook): remove unmaintained storybook integration (#2750) 85f1d42
Espen Hovlandsdal fix(core): allow studio manifest without name & version props 8e6d736
Dain Cilke feat(default-login): add support for sso login providers af9423c
RitaDias refactor(base): move style folder to __legacy and update paths in sanity.json (#2745) d837868
Marius Lundgård build: update dependencies 62d2417
Per-Kristian Nordnes test(portable-text-editor): add real life collaboration tests 9ae43a8
Per-Kristian Nordnes refactor(portable-text-editor): memo editor instance spesific placeholder block 25585b9
Per-Kristian Nordnes refactor(portable-text-editor): rename prop 97ba516
Per-Kristian Nordnes fix(form-builder): update prop name changed in PTE e415e0a
Per-Kristian Nordnes fix(portable-text-editor): remove uneccesary 'any' typing a17d84e
Per-Kristian Nordnes fix(portable-text-editor): don't return empty diffmatch patch 6531f15
Per-Kristian Nordnes refactor(portable-text-editor): remove uneccesary string usage d66b7c2
Per-Kristian Nordnes fix(portable-text-editor): previousChildren must be stored sperately for incoming patch adjustments 53d5ff6
Per-Kristian Nordnes fix(portable-text-editor): use < and not <= for determining correct offset aab163d
Per-Kristian Nordnes fix(portable-text-editor): fix incorrectness in line merging operation 6a7a625
Per-Kristian Nordnes test(portable-text-editor): use revId to measure change propagation in the browsers 983f6c1
Per-Kristian Nordnes test(portable-text-editor): selection event delay must be much less 09ecadc
Per-Kristian Nordnes test(portable-text-editor): refactor collab test to reliably wait for selection changes 56cc8a4
Per-Kristian Nordnes test(portable-text-editor): wait for exact selection where we can test for that 8821c60
Espen Hovlandsdal chore(import-cli): upgrade meow dependency (#2755) 03781c9
Marius Lundgård build: update dependencies c4b3653
Espen Hovlandsdal fix(default-layout): handle render errors with no Error instance in boundary (#2754) 22c123f
Espen Hovlandsdal fix(server): alias styled-components in webpack config (#2752) 99a7dcf
Per-Kristian Nordnes refactor(portabletext-editor): split util fn out in more spesific files f124c6f
Geoff Ball docs(client): add detail to create drafts aa964e7
Espen Hovlandsdal feat(core): add --api-version flag for documents query command (#2759) 955c704
Espen Hovlandsdal chore(components): remove deprecated @sanity/components module ea460b7
Espen Hovlandsdal fix(cli): drop @sanity/components from bootstrapped dependencies e45afc4
Espen Hovlandsdal refactor(plugin-loader): remove references to @sanity/components e6781d1
Espen Hovlandsdal refactor(util): remove references to @sanity/components a634a89
Espen Hovlandsdal refactor(base): migrate search utils to typescript 0ff4330
Espen Hovlandsdal refactor(base): use plain import for search utils instead of part 819334c
Espen Hovlandsdal fix(types): experimental search paths are compiled to string arrays be20701
Fred Carlsen feat(base): new preview components using Sanity UI (#2749) 3696728
Espen Hovlandsdal refactor(base): import preview-resolver part from central location 5791530
Espen Hovlandsdal refactor(base): migrate asset url builder to typescript b69ad4e
Espen Hovlandsdal refactor(base): drop usage of parts from default preview e279bcf
Espen Hovlandsdal refactor(base): remove unused upload progress bar 1974cea
Bjørge Næss refactor(base): rename css file 9ba888c
Fred Carlsen fix(base): fix usage of inset property (#2769) 3448ee7
Dain Cilke feat(cli): increase max dataset name length (#2768) b1937c3

Don't miss a new default-login release

NewReleases is sending notifications on new releases.