sanity-io / example-company-website-gatsby-sanity-combo

This is an example company website using Gatsby and Sanity in combination.
https://example-company-website-gatsby-sanity-combo.now.sh
MIT License
274 stars 142 forks source link

Bump @sanity/cli from 0.146.0 to 2.1.0 in /studio #415

Closed dependabot-preview[bot] closed 3 years ago

dependabot-preview[bot] commented 3 years ago

Bumps @sanity/cli from 0.146.0 to 2.1.0.

Release notes

Sourced from @sanity/cli's releases.

v2.1.0

Upgrade the Command Line Interface (CLI) with:

npm install --global @sanity/cli

Upgrade Sanity Studio with:

sanity upgrade

✨ Highlights

Advanced Dataset Management: Cloud Clone & Dataset Hotswap

We have added two new features for Advanced Dataset Management for projects on the Enterprise plan. You can now initate dataset copying directly in the cloud and create aliases to hot swap between datasets. This will enhance development and CI workflows.

Learn more in our blog post

GraphQL allDocument field

When deploying new GraphQL APIs for your datasets, you will now get an allDocument field which allows you to query for all documents matching a filter. You will still need to use fragments with type checks to access fields based on the type, of course:

{
  allDocument(where: {
    _createdAt: { gte: "2020-12-01T14:33:00Z"}
  }) {
    # `_id` is defined on the `Document` interface,
    # so it does not require a type assertion
    _id
# Unique fields on the `post` type
...on Post {
  title
  category
}

} }

If you already have a GraphQL API deployed, you will have to specify that you want to use the new generation of GraphQL schema by using sanity graphql deploy --generation gen3. The reason for this is a minor breaking change: the DocumentFilter type now represents the filters that can be applied in the allDocument query, mirroring other type filters (PostFilter, AuthorFilter), while the type previously called DocumentFilter has been renamed to Sanity_DocumentFilter.

Other features

  • We now prevent crawlers/search engines from indexing studios

🐛 Notable bugfixes

  • Fix bug where color input would crash when selecting color (thanks @obelmont!)
Commits
  • 1521783 v2.1.0
  • f7e3830 Add tsbuildinfo files to .npmignore
  • 46a9c17 [chore] Fix issue with double monorepo detection/config override
  • 6265c4d [chore] Remove unused file
  • bb76931 [chore] Lazy require tsconfig when resolving monorepo aliases
  • f2600c8 [core] Add a new GraphQL generation 'gen3' for querying all documents
  • 652fc75 [core] Revert changes to GraphQL 'gen2'as they were breaking
  • c6cc389 [core] Explicitly define which types to query for in allDocument query
  • 04821bf [core] Do not include document interface as type
  • 38b2434 [core] Add full support for querying Document
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.

Dependabot will not automatically merge this PR because this dependency is pre-1.0.0.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)
dependabot-preview[bot] commented 3 years ago

Superseded by #422.