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

v0.140.3 #1193

Merged
merged 16 commits into from
Feb 1, 2019
Merged

v0.140.3 #1193

merged 16 commits into from
Feb 1, 2019

Conversation

skogsmaskin
Copy link
Member

@skogsmaskin skogsmaskin commented Feb 1, 2019

Upgrade the Command Line Interface (CLI) with

npm install --global @sanity/cli

Upgrade the Content Studio with:

sanity upgrade

✨ Highlights

This is mostly a maintainance and bug-fix release.

  • Added schema validation rule for arrays where using unnamed object types in combination with the block type may lead to problems.

🐛 Notable bugfixes

  • Fixed a bug where URL fields that allows relative URLs would be incorrectly be highlighted as having errors by the browser
  • Fixed a bug in the portable text editor where starting a new document and pasting content as the first action would loose some of the pasted content
  • Fixed issue where links in a default portable text block would not allow relative URLs
  • Fixed issue where primitive values within an array that only allows object types would crash the form builder

📓 Full changelog

Author Message Commit
Kristoffer J. Sivertsen [test] Visual regression testing using backstopjs (#1157) a89d445
Espen Hovlandsdal [form-builder] Use text input for relative URL fields (#1179) 3146a78
Espen Hovlandsdal [schema] Allow tel: and mailto: as URI schemes for block link annotation (#1178) b52037f
even westvang [base] Change startup message from studio branding to pending connection (#1176) 374c332
Espen Hovlandsdal [form-builder] Move pathUtils to util package (#1181) 9ea15cd
Bjørge Næss [core] Coerce semver to allow prereleases of React (#1182) be43753
Espen Hovlandsdal [form-builder] Show warning on non-object array values (#1173) 2b4a481
Per-Kristian Nordnes Validate array type of types for object without a name when used in combination with a block type (#1171) 5b7fda1
Per-Kristian Nordnes [block-tools] Expose normalizeBlock function in README + add test (#1172) c408e4a
Bjørge Næss [form-builder] Include note about the format of _key in the missing keys warning (#1183) db21a13
Knut Melvær Add issue templates (#1180) 27dc5b0
Knut Melvær Remove feature request description 20443ed
Kristoffer J. Sivertsen [test-studio] Add missing name (#1186) 7ccb100
Bjørge Næss [base] Create part of referring documents hoc/util-component (#1188) 4939dcf
Per-Kristian Nordnes [form-builder] Fix editor bugs and upgrade to latest Slate packages (#1189) d80b55c
Kristoffer J. Sivertsen [backstop-test-studio] Update versions (#1192) c7b715a

Kristoffer J. Sivertsen and others added 16 commits February 1, 2019 12:34
* [test] Adding studio
* [test] Adding backstop visual regression testing
* [test] Adding reference files
* [test] Move backstop to test folder and run backstop-test-studio on test
* [test] Check that docker is installed and give error message if not
…ion (#1178)

* [schema] Allow tel: and mailto: as URI schemes for block link annotation

* [schema] Allow relative URIs for default link annotation
* [validation] Fix crash on non-object array values

* [form-builder] Show warning on non-object array values
…ombination with a block type (#1171)

* [default-layout] Fix unique keys and add propTypes for SchemaErrorReporter

* [schema] Don't allow object types without a name when used with a block type
Wasn't aware that we had a separate template for feature requests.
This is a tiny refactor of the `enhanceWithReferringDocuments` utility used in desk tool for fetching a list of document that refers to the one you are attempting to unpublish/delete. Since it is useful for other packages as well, i moved it into base and made a sanity-part of it.

Additionally it is usable not only a higher order component, but also as a component that takes a render func as child, so it can be used like this:

```jsx
import {WithReferringDocuments} from 'part:@sanity/base/with-referring-documents'
function MyComponent(props) {
  return (
    <WithReferringDocuments id={props.documentId}>
      {({isLoading, referringDocuments}) =>
        isLoading
          ? 'Loading referring documents…'
          : `Found ${referringDocuments.length} documents referring to ${props.documentId}`
      }
    </WithReferringDocuments>
  )
}
```
…1189)

* [form-builder] Block editor: Prettier fix for Syncwrapper
* [form-builder] Block editor: remove unused import
* [form-builder] Block editor: add patching test
* [form-builder] Block editor: setIfMissing patches must be followed by set
* [form-builder] Block editor: fix invalid return values
* [form-builder] Block editor: fix triple click bug
* [form-builder] Block editor: upgrade slate packages
@skogsmaskin skogsmaskin merged commit da0b05e into master Feb 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants