github keystonejs/keystone 2021-06-28
✨ 28th June 2021

latest releases: 2024-04-30, @keystone-6/core@6.1.0, @keystone-6/core@0.0.0-rc-20240429035832...
2 years ago

What's New

An assortment of good things in this release! A new package to help test the behaviour of your GraphQL API, a document field example, better error messages, accessibility updates and another Prisma update! 🍱

"@keystone-ui/fields": "4.1.2",
"@keystone-ui/options": "4.0.1",
"@keystone-ui/pill": "5.0.0",
"@keystone-ui/popover": "4.0.2",
"@keystone-ui/toast": "4.0.1",
"@keystone-next/cloudinary": "6.0.1",
"@keystone-next/fields": "11.0.1",
"@keystone-next/keystone": "20.0.1",
"@keystone-next/testing": "1.0.0",
"@keystone-next/types": "20.0.1",
"@keystone-next/utils": "1.0.0",

Testing Package 🧪

We’ve shipped a new package called @keystone-next/testing to help you write tests for your GraphQL API!

Check out the guide on the Keystone website for more details.

Document Field Example ✍️

We have a new example project for the document field which covers the basic use case of configuring the toolbar, rendering the document field in a front end, and providing custom renderers for the built in data.

Another example showing advanced use cases is in-progress and will be available soon!

Error Messages ❗

GraphQL error messages are far more helpful when running queries. You will now get relevant error messages instead of getting Cannot assign to read only property 'path' of object '#<Object>'" back.

Thanks @tjbp for contributing this fix!

Improved Types for KeystoneContext 📜

⚠️ We've tweaked lists and db.lists APIs on KeystoneContext to have improved types. If you're using the generated KeystoneListsTypeInfo type like this:

const lists: KeystoneListsAPI<KeystoneListsTypeInfo> = context.lists;

You will have to change it to use as like this:

const lists = context.lists as KeystoneListsAPI<KeystoneListsTypeInfo>;

UI Accessibility 🏷️

Another set of accessibility improvements in the Admin UI in this release including assorted quality of life and screen reader improvements to Filter pills and dialogs, as well as labels and descriptions.

Prisma update ⬆️

We've updated our Prisma dependencies to 2.25.0, check out the Prisma releases page for more information.

Enjoying Keystone?

Star this repo 🌟 ☝️ or connect to Keystone on Twitter and in Slack.


View verbose release notes

Releases

@keystone-ui/pill@5.0.0

Major Changes

  • #5987 972e04514 Thanks @gwyneplaine! - Added containerProps prop, these are spread onto the containing element. All other props are now spread onto the internal PillButton component (this change is inclusive of refs).

@keystone-next/testing@1.0.0

Major Changes

Patch Changes

@keystone-next/utils@1.0.0

Major Changes

Patch Changes

@keystone-ui/fields@4.1.2

Patch Changes

@keystone-ui/options@4.0.1

Patch Changes

@keystone-ui/popover@4.0.2

Patch Changes

@keystone-ui/toast@4.0.1

Patch Changes

@keystone-next/cloudinary@6.0.1

Patch Changes

@keystone-next/fields@11.0.1

Patch Changes

@keystone-next/keystone@20.0.1

Patch Changes

@keystone-next/types@20.0.1

Patch Changes

  • #5910 50ad1ce6b Thanks @mitchellhamilton! - Fixed generated list types to allow passing a value directly when a GraphQL list of the value is expected

  • #5907 0df3734d5 Thanks @mitchellhamilton! - Fixed lists and db.lists APIs on KeystoneContext to have improved types. If you're using the generated KeystoneListsTypeInfo type like this:

    const lists: KeystoneListsAPI<KeystoneListsTypeInfo> = context.lists;

    You will have to change it to use as like this:

    const lists = context.lists as KeystoneListsAPI<KeystoneListsTypeInfo>;
  • #5992 543154bc0 Thanks @timleslie! - Pinned dependency decimal.js to 10.2.1 to be consistent with Prisma.

  • Updated dependencies [de0a5c19e, 7a25925c3, 543154bc0, 972e04514]:

    • @keystone-next/fields@11.0.1

@keystone-next/example-document-field@1.0.0

Major Changes

Patch Changes

@keystone-next/example-virtual-field@0.1.0

Minor Changes

Patch Changes

@keystone-ui/website@3.0.1

Patch Changes

@keystone-next/example-ecommerce@4.0.3

Patch Changes

@keystone-next/example-playground@1.0.1

Patch Changes

@keystone-next/example-testing@0.0.1

Patch Changes

@keystone-next/api-tests-legacy@11.0.3

Patch Changes

@keystone-next/benchmarks-legacy@7.0.3

Patch Changes

Don't miss a new keystone release

NewReleases is sending notifications on new releases.