Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency @sanity/client to ^0.147.3 #996

Merged
merged 1 commit into from
Jul 21, 2020

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 20, 2020

This PR contains the following updates:

Package Type Update Change
@sanity/client (source) dependencies minor ^0.144.0 -> ^0.147.3

Release Notes

sanity-io/sanity

v0.147.3

Compare Source

Upgrade the Command Line Interface (CLI) with:

npm install --global @​sanity/cli

Upgrade the Content Studio with:

sanity upgrade

✨ Highlights

Hints mode

The Sanity Studio now comes with an optional sidebar that is used for onboarding new developers. It can be opened and closed, and removed by configuring sanity.json. It will not appear in existing studios unless you enable it youself. It will be added as a default to the starters on sanity.io/create.

🐛 Notable bugfixes

  • Normalize blocks received from custom paste handler 📋
  • @​abrougher helped us spell correctly 🙇

📓 Full changelog

Author Message Commit
Per-Kristian Nordnes [form-builder] Normalize blocks received from custom paste handler (#​1657) e2a65a7
Austin Brougher Fix spelling errors (#​1658) 6808f5b
Thomas Drevon [default-layout] Hints mode (#​1660) 62eb7f1

v0.147.0

Compare Source

Upgrade the Command Line Interface (CLI) with

npm install --global @​sanity/cli

Upgrade the Content Studio with:

sanity upgrade

✨ Highlights

Environment variable support

A much requested feature - the Sanity Studio now allows configuration of key parameters such as the project ID and dataset through environment variables, both in development and for deployment. This should make it much easier to integrate it into continuous deployment workflows.

In addition, we now inject environment variables with the SANITY_STUDIO_ prefix into the build process, allowing you to use them when customizing the Sanity Studio.

Read more about this feature in our documentation.

Template for custom asset source plugins

With the recently launched support for pluggable asset sources, we've had a lot of fun seeing what people build with it. In this release of the CLI, we've included a plugin template for building an asset source. You can now do sanity init plugin in your studio folder and choose the "Custom asset source plugin" option to get the boilerplate code up and running.

🐛 Notable bugfixes

  • Fixed the experimental Action UI affordances not being respected
  • Fixed image and file fields not validating their fields property

📓 Full changelog

Author Message Commit
Victoria Bergquist [cli] add template for custom asset source plugin (#​1639) ae4de9b
Espen Hovlandsdal [cli] Reject template download if statusCode is not 2xx (#​1638) 6c9d0a9
Espen Hovlandsdal [structure] Try to infer schema type from filter in document lists (#​1634) daae65f
Espen Hovlandsdal [schema] Validate file, image schema fields ea6825e
Espen Hovlandsdal [schema] Pass correct index to field visitor 03e77e9
Espen Hovlandsdal [server] Fix potential crash when attempting to normalize module path (#​1635) a7fb020
Espen Hovlandsdal [desk-tool] Resolve document type from template if available (#​1633) adf1fbb
Espen Hovlandsdal [structure] Check if "create"-action is enabled before infering templates 318d3c5
Espen Hovlandsdal [desk-tool] Only show publish button if action is enabled 85a5ea8
Espen Hovlandsdal [desk-tool] Disable publishing when action is disabled 4351fb9
Espen Hovlandsdal [desk-tool] Set form as read-only on new document with create action disabled 2640b60
Espen Hovlandsdal [desk-tool] Use noop onChange handler if in readonly mode 63c1c40
Espen Hovlandsdal [desk-tool] Add missing setPayload method to pane router context (#​1645) b283b1c
Bjørge Næss [chore] Upgrade TypeScript + eslint tooling (#​1650) a34fcbe
Espen Hovlandsdal [webpack-integration] Expose SANITY_STUDIO_* environment variables 1ca6c46
Espen Hovlandsdal [util] Allow setting projectId/dataset through environment variables 32f062f
Espen Hovlandsdal [chore] Pass studio path when reducing configuration da11acf
Espen Hovlandsdal [util] Try reading project ID/dataset from .env files b554f9e
Espen Hovlandsdal [core] Read .env files when running sanity exec 4cd838d
Espen Hovlandsdal [webpack-integration] Include SANITY_STUDIO env vars from .env files 0ac8711
Espen Hovlandsdal [chore] Pass through env based on command when determining .env-file b2dea43
Espen Hovlandsdal [webpack-integration] Expose getSanityEnvVars() 8e71dad
Espen Hovlandsdal [core] List environment variables used when building static bundle 115a770
Espen Hovlandsdal [util] Use SANITY_STUDIO_API/SANITY_STUDIO_PROJECT namespaces ce4a2fd
Espen Hovlandsdal [all] Rename internal environment variable name aec5667
Espen Hovlandsdal [core] Respect SANITY_ACTIVE_ENV when reading env files cf711af
Espen Hovlandsdal [structure] Allow setting options on component, component view f51b799
Espen Hovlandsdal [desk-tool] Pass on user-defined options to component panes/views 147802f
Espen Hovlandsdal [structure] Use referential identity when comparing immutability 0baed49
Espen Hovlandsdal [util] Types: Fix method declaration for path get() method 79d4824
Espen Hovlandsdal [form-builder] Pass parent object to slug source function 63bdc12
Espen Hovlandsdal [test-studio] Simplify experiment slug schema a0f2866
Espen Hovlandsdal [structure] Allow specifying a default document node resolver (#​1637) 6eb4406
Marius Lundgård [components] Fix tabs overflow issue 2a3b4b0

v0.146.0

Compare Source

Upgrade the Command Line Interface (CLI) with

npm install --global @​sanity/cli

Upgrade the Content Studio with:

sanity upgrade

✨ Highlights

Introducing: Pluggable asset sources for Sanity Studio!

Read the blog post.

This release includes support for adding additional asset sources for the Sanity Studio. You can install them as plugins, or make you own. You can also customize if you want to override the default asset source selection globally, or for specific image fields.

📓 Full changelog

Author Message Commit
Per-Kristian Nordnes [form-builder] Asset Source Plugin support (#​1591) 4c7caff
Espen Hovlandsdal [structure] Remove auto-inferring of ID based on function name (#​1613) 1b750b1
Espen Hovlandsdal [desk-tool] Redirect old edit URLs to new fallback edit route (#​1618) 6d5e570
Espen Hovlandsdal [validation] Fix unnamed object type matching incorrect array member (#​1616) a9cb7ec
Espen Hovlandsdal [desk-tool] Prevent showing document inspector on no snapshot (#​1615) accbd30
Espen Hovlandsdal [schema] Guard against multidimensional arrays (#​1614) 516478f
Espen Hovlandsdal [mutator] Increase test timeout to 120 seconds (#​1611) a12b767
Espen Hovlandsdal [structure] Enforce unique IDs for views, add serializer tests (#​1612) 6959ec5
Espen Hovlandsdal [test-studio] Add ID to JSON dump node b91ca25
Espen Hovlandsdal [structure] Allow passing object spec to documentTypeList() (#​1619) 1a5bec2
Thomas Drevon [client] Update readme with an example of how to delete an element from an array 731da31
Thomas Drevon [client] Improve readme example c35c1b1
Espen Hovlandsdal [state-router] Provider router as a hook: useRouter() 09fce2f
Espen Hovlandsdal [state-router] Provide router state as hook: useRouterState() 76a0486
Espen Hovlandsdal [desk-tool] Implement naive, shallow, async intent resolver 367b176
Espen Hovlandsdal [desk-tool] Handle case where document type cannot be resolved for intent a58e260
Cameron Chamberlain Cleanup isEmpty function (#​1621) c610b00
Cameron Chamberlain [storybook] Remove duplicate key in story (#​1620) 08e8955

v0.145.0

Compare Source

Upgrade the Command Line Interface (CLI) with

npm install --global @​sanity/cli

Upgrade the Content Studio with:

sanity upgrade

✨ Highlights

Improved editor user interface

The primary actions for a document (publish, unpublish, discard changes, delete) have been moved to a footer at the bottom of the screen, along with the current status of the document. This makes it easier to see the current status without scrolling to the top of the screen as well as logically groups document actions.

This change to the UI paves the way for upcoming features that we think will more than justify getting used to the new behaviour.

We've also centered the form within it's pane, giving you more whitespace and, we think, a more comfortable editing experience.

More helpful development server status

When the development server is rebuilding the latest changes, a message will now appear in the studio informing you that it's currently processing the change.

If the changes cannot be applied without reloading, you will get a message prompting you to reload the studio to see the latest changes.

Fixed GQL top-level reference/array types

A long-standing bug has prevented named reference and array types defined in the types array of your schema to be used in GraphQL schemas. This is now finally fixed - hooray! 🎉

React 16.9 minimum requirement

In a prior release several months ago, we deprecated React versions below 16.9. With this release we've made it the minimum required version to run the studio. This means that Sanity plugins targeting 0.145.0 or higher can now use the React hooks feature.

📓 Full changelog

Author Message Commit
Knut Melvær [readme] Update with new messaging and illustrations (#​1574) 795fb90
Knut Melvær [readme] Update README.md fb0b567
Espen Hovlandsdal [core] Deploy: use passed SOURCE_DIR even when building 87588b7
Espen Hovlandsdal [preview] Fix typescript build issue 8d903bf
Espen Hovlandsdal [cli] Require node version 8.6 or higher (#​1592) aab05a9
Espen Hovlandsdal [form-builder] Fix typescript build errors 0ffab58
Espen Hovlandsdal [chore] README: Add link to Twitter badge cac9c29
Espen Hovlandsdal [core] Include GraphQL commands in CLI help output (#​1597) 9e36787
Espen Hovlandsdal [components] Make snackbar items updateable (#​1594) 300e6d1
Rune Botten [client] Update listening query example in readme (#​1587) 6da2a4f
Espen Hovlandsdal [groq] Don't use arrow functions, fixes IE11 compatibility (#​1598) 74082c9
Espen Hovlandsdal [components] Spinner: Allow passing children instead of message (#​1593) 28da8da
Espen Hovlandsdal [server] Implement custom HMR client for in-studio build status (#​1595) 8af544d
Espen Hovlandsdal [core] GraphQL: Fix top-level references/array types (#​1602) 4a743bd
Anders Stensaas [chore] Replace the in-publish package with prepublishOnly NPM step 9a6d6aa
Anders Stensaas [chore] Reflect that tests have dependencies on compiled files in CONTRIBUTING.md 9ee5553
Espen Hovlandsdal [desk-tool] Implement initial split pane spike aab9abf
Espen Hovlandsdal [structure] Allow editors to have children 3cd6c0b
Espen Hovlandsdal [structure] Allow custom components to have children 4eb2d73
Espen Hovlandsdal [base] Define contextual previews part and add eye icon 6ad075e
Espen Hovlandsdal [desk-tool] Hide "params", introduce "payload" 649373f
Marius Lundgård [desk-tool] Refactor UI: move pane buttons to DefaultPane, and move things into place as per design sketch 58acc13
Espen Hovlandsdal [structure] Introduce views, document node 48eee1f
Espen Hovlandsdal [desk-tool] Implement document pane (replaces editor pane) 2184b39
Espen Hovlandsdal [components] Tabbed pane placeholder cea3400
Espen Hovlandsdal [test-studio] Rewire previews 049b865
Marius Lundgård [components] Add tabs components 4eec2b0
Marius Lundgård [desk-tool] Implement tabs components 58e85dc
Marius Lundgård [components] Improve tabs accessibility and add Storybook example 342b73d
Marius Lundgård [components] Implement tab panel 5504e14
Marius Lundgård [base] Add and update icons 1ac7f36
Marius Lundgård [components] Improve tabbed panes UI a29ad51
Marius Lundgård [components] Improve pane header and footer UI 25b1fb7
Marius Lundgård [desk-tool] Improve footer UI 0a849d4
Marius Lundgård [components] Fix tab component paths a7e1d9f
Marius Lundgård [components] Show pane footer only when hovering 4e030bb
Marius Lundgård [components] Hide focus outline on tab panels c383846
Marius Lundgård [components] Fix z-index issue 047ee1f
Espen Hovlandsdal [components] Render icon if set cf85d62
Espen Hovlandsdal [desk-tool] Use pane key as id prefix for aria attributes e0a1191
Espen Hovlandsdal [structure] Deprecate editor in favor of document e533fa7
Espen Hovlandsdal [desk-tool] Remove EditorPane in favor of DocumentPane e452f7b
Espen Hovlandsdal [desk-tool] Rewire initial template value templates to use params/payload babd0e8
Espen Hovlandsdal [structure] Make generic lists fall back to default intent checker 48533d4
Espen Hovlandsdal [desk-tool] Pass index (depth) of pane to intent checker ade2ade
Espen Hovlandsdal [desk-tool] Fix fallback edit pane intent resolving cb6d74e
Espen Hovlandsdal [test-studio] Set better title for developers pane a3fd6b4
Espen Hovlandsdal [state-router] Reuse base64 JSON encoding for params/payload 9656938
Espen Hovlandsdal [desk-tool] Fix issue where unknown schema types would fail 098cf1c
Espen Hovlandsdal [desk-tool] Use PaneRouterContext naming to allow for PaneViewContext 5f0db26
Espen Hovlandsdal [components] Hide split pane button if only a single view is present ae8bdc7
Espen Hovlandsdal [desk-tool] Add duplicated pane next to current, not the end ba1469b
Espen Hovlandsdal [desk-tool] Pass child item id to panes d1f076b
Espen Hovlandsdal [desk-tool] Only resolve panes based on IDs, not params/payloads ca881d5
Espen Hovlandsdal [test-studio] Allow specifying delay in desk structure resolving e8f5947
Espen Hovlandsdal [desk-tool] Pass noop patch channel on history view, supressing warning c4c8fc3
Espen Hovlandsdal [desk-tool] Drop pane from pane router context methods 738d5ed
Espen Hovlandsdal [desk-tool] Don't clear other params when switching view b21a1cb
Espen Hovlandsdal [desk-tool] Simplify duplicate pane group definitions, inherit params 955085c
Espen Hovlandsdal [desk-tool] Unsubscribe from history fetching on unmount b66c4f8
Espen Hovlandsdal [desk-tool] Share history revision across sibling panes 2b6af49
Espen Hovlandsdal [test-studio] Use pre-wrap for preview component e91d512
Espen Hovlandsdal [desk-tool] Make all pane context methods use objects over args 331b3de
Espen Hovlandsdal [desk-tool] Pass down historical document directly to InspectHistory 0b5b888
Espen Hovlandsdal [desk-tool] Pass params/payload to fallback editor resolver 9be1fed
Marius Lundgård [desk-tool] Implement new document footer 2522e5c
Espen Hovlandsdal [components] HistoryListItem: Use '-' for current revision 9c39d16
Espen Hovlandsdal [desk-tool] Move most history state to URL-params 03ba128
Espen Hovlandsdal [desk-tool] Scroll to selected history event on mount c390ca2
Marius Lundgård [desk-tool] Fix issue with history footer not rendering 6917c73
Marius Lundgård [desk-tool] Rename 'staticContent' property to 'footer' 8f149d7
Marius Lundgård [desk-tool] Make onHistoryStatusClick optional 5b4f4d4
Marius Lundgård [components] Remove unused scroll UI logic 8998ce7
Marius Lundgård [test-studio] Improve DeveloperPreview appearance + small screen fixes 8bb8464
Marius Lundgård [desk-tool] Improve panel content rendering 18acd93
Marius Lundgård [components] Fix visual bug in pane header 72756d0
Marius Lundgård [components] Fix pane header z-index issue 0a9b590
Espen Hovlandsdal [structure] Update tests to reflect intent handler changes 38e33eb
Espen Hovlandsdal [desk-tool] Don't show history list if collapsed 7395bb2
Espen Hovlandsdal [desk-tool] Reintroduce keyboard shortcuts on focus 7386523
Espen Hovlandsdal [desk-tool] Remove historical revision from URL on mobile 9f4ccca
Espen Hovlandsdal [desk-tool] Remove outdated tests 7ab4dbb
Espen Hovlandsdal [desk-tool] Reintroduce "discard changes" 347ad6d
Espen Hovlandsdal [transaction-collator] Reintroduce "discarded draft" event da969ac
Espen Hovlandsdal [state-router] Try to parse JSON params as non-base64 params too (legacy) 738b3b3
Marius Lundgård [desk-tool] Improve document pane layout e7af425
Espen Hovlandsdal [all] Require React >= 16.9 for all studio modules 01190dc
Espen Hovlandsdal [structure] Inherit document type list title from item if possible b828204
Espen Hovlandsdal [structure] Allow . in structure node IDs 30009c1
Espen Hovlandsdal [test-studio] Add image asset document list to structure 5b1d7a6
Espen Hovlandsdal [desk-tool] Use useContext for link components 3af3141
Espen Hovlandsdal [desk-tool] Fix incorrect pane diff index calculation f51ae26
Espen Hovlandsdal [desk-tool] Use context hook for PaneItemWrapper b3de6b5
Espen Hovlandsdal [desk-tool] Do not pass pane context as prop to panes d1b1969
Espen Hovlandsdal [desk-tool] Improve transition between historical revisions cfbc8dd
Espen Hovlandsdal [desk-tool] Simplify props passed to pane views 94e5091
Marius Lundgård [desk-tool] Add tests of action index resolving 03bb9d7
Marius Lundgård [components] Improve pane UI and tab navigation a3e41c7
Marius Lundgård [components] Move the snackbars higher on the screen 91aa60a
Marius Lundgård [components] Minor DefaultPane visual improvements 9005552
Marius Lundgård [desk-tool] Show hotkey hints in actions 8cea20f
Marius Lundgård [components] Make min-height fill pane for preview on mobile 08db3b5
Marius Lundgård [components] Make tab list scrollable 4206866
Espen Hovlandsdal [desk-tool] Fix pane resolving when closing group members 687e914
Espen Hovlandsdal [default-layout] Use published document ID for search result intents da5b831
Espen Hovlandsdal [desk-tool] Add document ID to structure node ID for fallback pane a3b98df
Espen Hovlandsdal [components] Only render split/close buttons if onSplitPane is defined 0f89d95
Espen Hovlandsdal [desk-tool] Only allow splitting panes on large screens 0491660
Espen Hovlandsdal [desk-tool] Cut split panes from URL on narrow screens 8d162a2
Espen Hovlandsdal [structure] Add documentWithInitialValueTemplate function efe452c
Espen Hovlandsdal [desk-tool] Fix incorrect template being passed to fallback pane 21a6da4
Espen Hovlandsdal [desk-tool] Prevent partial re-render before sync structure resolves 4b20178
Marius Lundgård [components] Improve pane UI fd0c72e
Marius Lundgård [components] Fix pane footer overlapping issue 3c634e4
Marius Lundgård [components] Fix scroll container width on small screens 5bdd18f
Espen Hovlandsdal [components] Fix non-scroll container width on small screens 90cc5f8
Marius Lundgård [desk-tool] Improve document status bar UI 3ac7330
Espen Hovlandsdal [base] Skip checking versions for missing dependencies 496f743
Espen Hovlandsdal [components] Add "secondary" to list of known button kinds da27d00
Espen Hovlandsdal [test-studio] Remove delayed resolving of initial value template for author 200fcfe
Espen Hovlandsdal [desk-tool] Resolve from root if no panes are present in URL 49c6981
Espen Hovlandsdal [desk-tool] Fix panes not resolving on transition to fewer pane segments 2c4f803
Espen Hovlandsdal [components] Make pane footer sticky unless we have tabs 68ec69c
Espen Hovlandsdal [desk-tool] Expose hasGroupSiblings property on pane router context 221b301
Espen Hovlandsdal [components] Remove unused template selection logic from pane components 5920a4b
Espen Hovlandsdal [components] Render sticky footer if no sibling panes are present 83afad2
Espen Hovlandsdal [core] Upgrade to Terser 4.4, execute out-of-process (#​1608) 33d310c

Renovate configuration

📅 Schedule: "before 3am on Monday" (UTC).

🚦 Automerge: Enabled.

♻️ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by WhiteSource Renovate. View repository job log here.

@RaeesBhatti RaeesBhatti added the type: chore work needed to keep the product and development running smoothly label Jul 21, 2020
@RaeesBhatti RaeesBhatti merged commit 480c773 into master Jul 21, 2020
@RaeesBhatti RaeesBhatti deleted the renovate/sanity-monorepo branch July 21, 2020 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: chore work needed to keep the product and development running smoothly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants