sanity-io/sanity
### [`v2.7.4`](https://togithub.com/sanity-io/sanity/releases/v2.7.4)
[Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.7.2...v2.7.4)
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
##### 🐛 Notable bugfixes
- Fixes continous incoming mutations preventing lists from loading items on slow connections
- Fixes user fallback avatar displaying incorrect initials on special characters
- Fixes query URL not updating in vision if query resulted in an error
- Fixes vision not showing location of error in query
- Fixes mismatch between displayed and stored date in date/datetime inputs in certain timezones
##### 📓 Full changelog
| Author | Message | Commit |
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------- |
| Bjørge Næss | fix(base): prevent cancellation of list fetching while receiving mutation events ([#2401](https://togithub.com/sanity-io/sanity/issues/2401)) | [`5603784`](https://togithub.com/sanity-io/sanity/commit/5603784d9) |
| Bjørge Næss | chore(base): enable TypeScript's checkJs ([#2407](https://togithub.com/sanity-io/sanity/issues/2407)) | [`19d5dca`](https://togithub.com/sanity-io/sanity/commit/19d5dca4f) |
| Espen Hovlandsdal | fix(base): strip symbols from user initials | [`b71c7c5`](https://togithub.com/sanity-io/sanity/commit/b71c7c571) |
| Bjørge Næss | chore(form-builder): remove unused dependencies | [`0fa8a3b`](https://togithub.com/sanity-io/sanity/commit/0fa8a3b32) |
| Bjørge Næss | chore(form-builder): remove unused tests | [`24931dd`](https://togithub.com/sanity-io/sanity/commit/24931dddc) |
| Bjørge Næss | chore(eslint): disable no-undef for ts/tsx files | [`983de88`](https://togithub.com/sanity-io/sanity/commit/983de8850) |
| Bjørge Næss | chore: normalize dependencies | [`c7d4eda`](https://togithub.com/sanity-io/sanity/commit/c7d4edafa) |
| Bjørge Næss | chore: enable strict mode for date-inputs | [`c087601`](https://togithub.com/sanity-io/sanity/commit/c087601d7) |
| Bjørge Næss | refactor(form-builder): add better support for custom input value parsing/formatting | [`d6586f0`](https://togithub.com/sanity-io/sanity/commit/d6586f0fc) |
| Bjørge Næss | test(form-builder): add some basic unit tests for date inputs | [`f6d9d3f`](https://togithub.com/sanity-io/sanity/commit/f6d9d3f8a) |
| Espen Hovlandsdal | fix(import): specify api version in import cli | [`1576c16`](https://togithub.com/sanity-io/sanity/commit/1576c16e4) |
| Espen Hovlandsdal | fix(vision): update query url also on failed queries | [`970f5f1`](https://togithub.com/sanity-io/sanity/commit/970f5f155) |
| Espen Hovlandsdal | fix(vision): extract and display line/column info on errors | [`197534a`](https://togithub.com/sanity-io/sanity/commit/197534a5e) |
### [`v2.7.2`](https://togithub.com/sanity-io/sanity/releases/v2.7.2)
[Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.7.1...v2.7.2)
Upgrade Sanity Studio with:
sanity upgrade
##### Other features
- Added support for custom API versions in vision tool
##### 📓 Full changelog
| Author | Message | Commit |
| ----------------- | ------------------------------------------------- | ----------------------------------------------------------------- |
| Espen Hovlandsdal | feat(vision): allow specifying custom api version | [`63bef3e`](https://togithub.com/sanity-io/sanity/commit/63bef3e02) |
| Espen Hovlandsdal | feat(base): remove unused intl parts | [`a19d391`](https://togithub.com/sanity-io/sanity/commit/a19d39149) |
| Espen Hovlandsdal | chore(deps): upgrade bifur client | [`dc24df5`](https://togithub.com/sanity-io/sanity/commit/dc24df55a) |
### [`v2.7.1`](https://togithub.com/sanity-io/sanity/releases/v2.7.1)
[Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.7.0...v2.7.1)
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
##### 🐛 Notable bugfixes
- Fixes a regression that made the search bar unusable
##### 📓 Full changelog
| Author | Message | Commit |
| --------------- | ------------------------------------------------------------- | ----------------------------------------------------------------- |
| Knut Melvær | Fix URL to docs | [`c501901`](https://togithub.com/sanity-io/sanity/commit/c50190173) |
| Anders Stensaas | fix(search): fix incorrect import path to the versionedClient | [`d2f0c22`](https://togithub.com/sanity-io/sanity/commit/d2f0c2234) |
### [`v2.7.0`](https://togithub.com/sanity-io/sanity/releases/v2.7.0)
[Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.6.4...v2.7.0)
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
##### ✨ Highlights
##### API versioning support in client and studio
On Thursday, March 25th, we will start versioning our APIs to provide you with great new functionality. The details on the new features will be announced at the [Content is Data event](https://www.sanity.io/content-is-data-open-house-2021?utm_source=github) on March 25th, and in a subsequent blog post.
Your code should continue to work as before, but we now recommend you specify which API version you want to use when instantiating a new Sanity client:
##### Using `@sanity/client`
```js
import SanityClient from '@sanity/client'
const client = new SanityClient({
apiVersion: '2021-03-20',
projectId: '...',
dataset: '...',
useCdn: true,
})
```
[The documentation](https://www.sanity.io/docs/api-versioning) has more information on the API versioning scheme used in Sanity.
##### Using the "global" studio client
If you are currently importing from `part:@sanity/base/client` in your Sanity studio, plugins or similar, you should now specify which API version to use:
```js
// Before:
import client from 'part:@sanity/base/client'
client.fetch('*[...]')
// After:
import sanityClient from 'part:@sanity/base/client'
const client = sanityClient.withConfig({
apiVersion: '2021-03-20'
})
client.fetch('*[...]')
```
This enables plugins to work without having to agree on a common API version, as every plugin defines the API version it is known to work with.
##### Using sanity-php
```php
use Sanity\Client as SanityClient;
$client = new SanityClient([
'apiVersion' => '2021-03-20',
'projectId' => '...',
'dataset' => '...',
'useCdn' => true,
]);
```
##### Other clients and libraries
Over the coming days and weeks, we'll be adding API versioning to all our official tooling and libaries, and hope to see community plugins and clients embrace and use the new API versioning functionality!
##### Other features
- The `altText` was added to the image and file asset types - deploying a new version of your GraphQL API will now let you specify the field when fetching data
##### 🐛 Notable bugfixes
- Fixes an issue where the slug input would not work inside of arrays, and would not broadcast the presence status of someone editing the field
##### 📓 Full changelog
| Author | Message | Commit |
| ----------------- | -------------------------------------------------------------------------------------- | ----------------------------------------------------------------- |
| Espen Hovlandsdal | feat(base): add `altText` field to asset types | [`7f9cf6d`](https://togithub.com/sanity-io/sanity/commit/7f9cf6d9b) |
| Bjørge Næss | chore(base): fix lint errors | [`307f8c5`](https://togithub.com/sanity-io/sanity/commit/307f8c582) |
| Espen Hovlandsdal | feat(client): add API versioning support | [`47db879`](https://togithub.com/sanity-io/sanity/commit/47db879b2) |
| Espen Hovlandsdal | feat(base): deprecate studio client without a specified apiVersion | [`75318d1`](https://togithub.com/sanity-io/sanity/commit/75318d199) |
| Espen Hovlandsdal | feat(client): use api-versioned client throughout internal packages | [`aef1eb6`](https://togithub.com/sanity-io/sanity/commit/aef1eb6b7) |
| Espen Hovlandsdal | fix(vision): format non-object return values correctly | [`f8864cd`](https://togithub.com/sanity-io/sanity/commit/f8864cd4d) |
| Espen Hovlandsdal | fix(vision): show executed query on empty result, not _current_ query | [`e45f221`](https://togithub.com/sanity-io/sanity/commit/e45f22108) |
| Espen Hovlandsdal | feat(vision): support selection of API version | [`a8f14d8`](https://togithub.com/sanity-io/sanity/commit/a8f14d879) |
| Espen Hovlandsdal | chore(deps): use latest [@sanity/client](https://togithub.com/sanity/client) in monorepo | [`4941cf0`](https://togithub.com/sanity-io/sanity/commit/4941cf0c8) |
| Espen Hovlandsdal | fix(client): correct response type for observable asset uploads | [`74fbbaa`](https://togithub.com/sanity-io/sanity/commit/74fbbaacd) |
| Espen Hovlandsdal | fix(form-builder): point slug focus to current field | [`5b15898`](https://togithub.com/sanity-io/sanity/commit/5b158981e) |
### [`v2.6.4`](https://togithub.com/sanity-io/sanity/releases/v2.6.4)
[Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.6.2...v2.6.4)
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
##### 🐛 Notable bugfixes
- Fixes an issue that would in some cases make the date picker lose focus when using arrow keys to move between months
- Fixes a regression introduced in v2.6.3 that caused values coming from date inputs to be stored with the same format as datetime fields
- Fixes an issue with studio search not returning results when search string includes special characters
##### 📓 Full changelog
| Author | Message | Commit |
| --------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------- |
| Andy Richardson | Add default ArrayInput implementation | [`16891ac`](https://togithub.com/sanity-io/sanity/commit/16891ac65) |
| Bjørge Næss | fix: strip special characters from studio search ([#2388](https://togithub.com/sanity-io/sanity/issues/2388)) | [`7d929c1`](https://togithub.com/sanity-io/sanity/commit/7d929c19e) |
| Bjørge Næss | fix: preserve focus on calendar buttons between renders | [`2e717c3`](https://togithub.com/sanity-io/sanity/commit/2e717c307) |
| Bjørge Næss | fix: date input emit value on right format | [`9d1c80a`](https://togithub.com/sanity-io/sanity/commit/9d1c80a0a) |
Renovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Enabled.
:recycle: Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
:ghost: Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
[ ] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
2.6.2
->2.7.4
2.6.0
->2.7.4
2.6.2
->2.7.4
2.2.6
->2.7.0
2.6.2
->2.7.4
2.2.6
->2.7.0
2.6.3
->2.7.4
2.4.3
->2.7.0
Release Notes
sanity-io/sanity
### [`v2.7.4`](https://togithub.com/sanity-io/sanity/releases/v2.7.4) [Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.7.2...v2.7.4) Upgrade the Command Line Interface (CLI) with: npm install --global @sanity/cli Upgrade Sanity Studio with: sanity upgrade ##### 🐛 Notable bugfixes - Fixes continous incoming mutations preventing lists from loading items on slow connections - Fixes user fallback avatar displaying incorrect initials on special characters - Fixes query URL not updating in vision if query resulted in an error - Fixes vision not showing location of error in query - Fixes mismatch between displayed and stored date in date/datetime inputs in certain timezones ##### 📓 Full changelog | Author | Message | Commit | | ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------- | | Bjørge Næss | fix(base): prevent cancellation of list fetching while receiving mutation events ([#2401](https://togithub.com/sanity-io/sanity/issues/2401)) | [`5603784`](https://togithub.com/sanity-io/sanity/commit/5603784d9) | | Bjørge Næss | chore(base): enable TypeScript's checkJs ([#2407](https://togithub.com/sanity-io/sanity/issues/2407)) | [`19d5dca`](https://togithub.com/sanity-io/sanity/commit/19d5dca4f) | | Espen Hovlandsdal | fix(base): strip symbols from user initials | [`b71c7c5`](https://togithub.com/sanity-io/sanity/commit/b71c7c571) | | Bjørge Næss | chore(form-builder): remove unused dependencies | [`0fa8a3b`](https://togithub.com/sanity-io/sanity/commit/0fa8a3b32) | | Bjørge Næss | chore(form-builder): remove unused tests | [`24931dd`](https://togithub.com/sanity-io/sanity/commit/24931dddc) | | Bjørge Næss | chore(eslint): disable no-undef for ts/tsx files | [`983de88`](https://togithub.com/sanity-io/sanity/commit/983de8850) | | Bjørge Næss | chore: normalize dependencies | [`c7d4eda`](https://togithub.com/sanity-io/sanity/commit/c7d4edafa) | | Bjørge Næss | chore: enable strict mode for date-inputs | [`c087601`](https://togithub.com/sanity-io/sanity/commit/c087601d7) | | Bjørge Næss | refactor(form-builder): add better support for custom input value parsing/formatting | [`d6586f0`](https://togithub.com/sanity-io/sanity/commit/d6586f0fc) | | Bjørge Næss | test(form-builder): add some basic unit tests for date inputs | [`f6d9d3f`](https://togithub.com/sanity-io/sanity/commit/f6d9d3f8a) | | Espen Hovlandsdal | fix(import): specify api version in import cli | [`1576c16`](https://togithub.com/sanity-io/sanity/commit/1576c16e4) | | Espen Hovlandsdal | fix(vision): update query url also on failed queries | [`970f5f1`](https://togithub.com/sanity-io/sanity/commit/970f5f155) | | Espen Hovlandsdal | fix(vision): extract and display line/column info on errors | [`197534a`](https://togithub.com/sanity-io/sanity/commit/197534a5e) | ### [`v2.7.2`](https://togithub.com/sanity-io/sanity/releases/v2.7.2) [Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.7.1...v2.7.2) Upgrade Sanity Studio with: sanity upgrade ##### Other features - Added support for custom API versions in vision tool ##### 📓 Full changelog | Author | Message | Commit | | ----------------- | ------------------------------------------------- | ----------------------------------------------------------------- | | Espen Hovlandsdal | feat(vision): allow specifying custom api version | [`63bef3e`](https://togithub.com/sanity-io/sanity/commit/63bef3e02) | | Espen Hovlandsdal | feat(base): remove unused intl parts | [`a19d391`](https://togithub.com/sanity-io/sanity/commit/a19d39149) | | Espen Hovlandsdal | chore(deps): upgrade bifur client | [`dc24df5`](https://togithub.com/sanity-io/sanity/commit/dc24df55a) | ### [`v2.7.1`](https://togithub.com/sanity-io/sanity/releases/v2.7.1) [Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.7.0...v2.7.1) Upgrade the Command Line Interface (CLI) with: npm install --global @sanity/cli Upgrade Sanity Studio with: sanity upgrade ##### 🐛 Notable bugfixes - Fixes a regression that made the search bar unusable ##### 📓 Full changelog | Author | Message | Commit | | --------------- | ------------------------------------------------------------- | ----------------------------------------------------------------- | | Knut Melvær | Fix URL to docs | [`c501901`](https://togithub.com/sanity-io/sanity/commit/c50190173) | | Anders Stensaas | fix(search): fix incorrect import path to the versionedClient | [`d2f0c22`](https://togithub.com/sanity-io/sanity/commit/d2f0c2234) | ### [`v2.7.0`](https://togithub.com/sanity-io/sanity/releases/v2.7.0) [Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.6.4...v2.7.0) Upgrade the Command Line Interface (CLI) with: npm install --global @sanity/cli Upgrade Sanity Studio with: sanity upgrade ##### ✨ Highlights ##### API versioning support in client and studio On Thursday, March 25th, we will start versioning our APIs to provide you with great new functionality. The details on the new features will be announced at the [Content is Data event](https://www.sanity.io/content-is-data-open-house-2021?utm_source=github) on March 25th, and in a subsequent blog post. Your code should continue to work as before, but we now recommend you specify which API version you want to use when instantiating a new Sanity client: ##### Using `@sanity/client` ```js import SanityClient from '@sanity/client' const client = new SanityClient({ apiVersion: '2021-03-20', projectId: '...', dataset: '...', useCdn: true, }) ``` [The documentation](https://www.sanity.io/docs/api-versioning) has more information on the API versioning scheme used in Sanity. ##### Using the "global" studio client If you are currently importing from `part:@sanity/base/client` in your Sanity studio, plugins or similar, you should now specify which API version to use: ```js // Before: import client from 'part:@sanity/base/client' client.fetch('*[...]') // After: import sanityClient from 'part:@sanity/base/client' const client = sanityClient.withConfig({ apiVersion: '2021-03-20' }) client.fetch('*[...]') ``` This enables plugins to work without having to agree on a common API version, as every plugin defines the API version it is known to work with. ##### Using sanity-php ```php use Sanity\Client as SanityClient; $client = new SanityClient([ 'apiVersion' => '2021-03-20', 'projectId' => '...', 'dataset' => '...', 'useCdn' => true, ]); ``` ##### Other clients and libraries Over the coming days and weeks, we'll be adding API versioning to all our official tooling and libaries, and hope to see community plugins and clients embrace and use the new API versioning functionality! ##### Other features - The `altText` was added to the image and file asset types - deploying a new version of your GraphQL API will now let you specify the field when fetching data ##### 🐛 Notable bugfixes - Fixes an issue where the slug input would not work inside of arrays, and would not broadcast the presence status of someone editing the field ##### 📓 Full changelog | Author | Message | Commit | | ----------------- | -------------------------------------------------------------------------------------- | ----------------------------------------------------------------- | | Espen Hovlandsdal | feat(base): add `altText` field to asset types | [`7f9cf6d`](https://togithub.com/sanity-io/sanity/commit/7f9cf6d9b) | | Bjørge Næss | chore(base): fix lint errors | [`307f8c5`](https://togithub.com/sanity-io/sanity/commit/307f8c582) | | Espen Hovlandsdal | feat(client): add API versioning support | [`47db879`](https://togithub.com/sanity-io/sanity/commit/47db879b2) | | Espen Hovlandsdal | feat(base): deprecate studio client without a specified apiVersion | [`75318d1`](https://togithub.com/sanity-io/sanity/commit/75318d199) | | Espen Hovlandsdal | feat(client): use api-versioned client throughout internal packages | [`aef1eb6`](https://togithub.com/sanity-io/sanity/commit/aef1eb6b7) | | Espen Hovlandsdal | fix(vision): format non-object return values correctly | [`f8864cd`](https://togithub.com/sanity-io/sanity/commit/f8864cd4d) | | Espen Hovlandsdal | fix(vision): show executed query on empty result, not _current_ query | [`e45f221`](https://togithub.com/sanity-io/sanity/commit/e45f22108) | | Espen Hovlandsdal | feat(vision): support selection of API version | [`a8f14d8`](https://togithub.com/sanity-io/sanity/commit/a8f14d879) | | Espen Hovlandsdal | chore(deps): use latest [@sanity/client](https://togithub.com/sanity/client) in monorepo | [`4941cf0`](https://togithub.com/sanity-io/sanity/commit/4941cf0c8) | | Espen Hovlandsdal | fix(client): correct response type for observable asset uploads | [`74fbbaa`](https://togithub.com/sanity-io/sanity/commit/74fbbaacd) | | Espen Hovlandsdal | fix(form-builder): point slug focus to current field | [`5b15898`](https://togithub.com/sanity-io/sanity/commit/5b158981e) | ### [`v2.6.4`](https://togithub.com/sanity-io/sanity/releases/v2.6.4) [Compare Source](https://togithub.com/sanity-io/sanity/compare/v2.6.2...v2.6.4) Upgrade the Command Line Interface (CLI) with: npm install --global @sanity/cli Upgrade Sanity Studio with: sanity upgrade ##### 🐛 Notable bugfixes - Fixes an issue that would in some cases make the date picker lose focus when using arrow keys to move between months - Fixes a regression introduced in v2.6.3 that caused values coming from date inputs to be stored with the same format as datetime fields - Fixes an issue with studio search not returning results when search string includes special characters ##### 📓 Full changelog | Author | Message | Commit | | --------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------- | | Andy Richardson | Add default ArrayInput implementation | [`16891ac`](https://togithub.com/sanity-io/sanity/commit/16891ac65) | | Bjørge Næss | fix: strip special characters from studio search ([#2388](https://togithub.com/sanity-io/sanity/issues/2388)) | [`7d929c1`](https://togithub.com/sanity-io/sanity/commit/7d929c19e) | | Bjørge Næss | fix: preserve focus on calendar buttons between renders | [`2e717c3`](https://togithub.com/sanity-io/sanity/commit/2e717c307) | | Bjørge Næss | fix: date input emit value on right format | [`9d1c80a`](https://togithub.com/sanity-io/sanity/commit/9d1c80a0a) |Renovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Enabled.
:recycle: Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
:ghost: Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by WhiteSource Renovate. View repository job log here.