What's New
The ID Field option has been revamped with cuid, uuid and autoincrement options! 🤹
"@keystone-next/admin-ui-utils": "5.0.3",
"@keystone-next/auth": "28.0.0",
"@keystone-next/cloudinary@": "6.0.2",
"@keystone-next/fields": "11.0.2",
"@keystone-next/fields-document": "7.0.1",
"@keystone-next/keystone": "21.0.1",
"@keystone-next/testing": "1.0.1",
"@keystone-next/types": "21.0.0",
"@keystone-next/utils": "1.0.1",New ID Fields 🧮
We've replaced the idField list configuration option with a more constrained option, db.idField.
This option accepts an object with a kind property with a value of:
cuiduuidautoincrement
The default behaviour has changed from using autoincrement to using cuids.
To keep the current behaviour, you should set { kind: 'autoincrement' } at db.idField in your top level config.
db.idField can be set on either the top level config object:
config({
db: {
idField: { kind: 'uuid' }
},
lists,
});
Or on individual lists:
config({
db,
lists: createSchema({
User: list({
db: {
idField: { kind: 'uuid' },
},
fields: {
name: text({ isRequired: true }),
},
}),
});
Enjoying Keystone?
Star this repo 🌟 ☝️ or connect to Keystone on Twitter and in Slack.
View verbose release notes
Releases
@keystone-next/keystone@21.0.1
Major Changes
-
#5947
03f535ba6Thanks @mitchellhamilton! - Replaced theidFieldlist configuration option with a more constrained option,db.idField, that accepts an object with akindproperty with a value ofcuid,uuidorautoincrement.db.idFieldcan be set on either the top levelconfigobject, or on individual lists.The default behaviour has changed from using
autoincrementto using cuids. To keep the current behaviour, you should set{ kind: 'autoincrement' }atdb.idFieldin your top level config. -
#5947
03f535ba6Thanks @mitchellhamilton! - Id field filters no longer allownullto be passed because ids can never be null. For theinandnot_in, this is reflected in the GraphQL types -
#6022
475307e0eThanks @mitchellhamilton! - Fixed error when loading the Admin UI due to the id field changes.
Patch Changes
- Updated dependencies [
03f535ba6]:- @keystone-next/types@21.0.0
- @keystone-next/fields@11.0.2
- @keystone-next/admin-ui-utils@5.0.3
- @keystone-next/utils@1.0.1
@keystone-next/types@21.0.0
Major Changes
-
#5947
03f535ba6Thanks @mitchellhamilton! - Replaced theidFieldlist configuration option with a more constrained option,db.idField, that accepts an object with akindproperty with a value ofcuid,uuidorautoincrement.db.idFieldcan be set on either the top levelconfigobject, or on individual lists.The default behaviour has changed from using
autoincrementto using cuids. To keep the current behaviour, you should set{ kind: 'autoincrement' }atdb.idFieldin your top level config.
Patch Changes
- Updated dependencies []:
- @keystone-next/fields@11.0.2
@keystone-next/admin-ui-utils@5.0.3
Patch Changes
- Updated dependencies [
03f535ba6]:- @keystone-next/types@21.0.0
@keystone-next/auth@28.0.0
Patch Changes
- Updated dependencies [
03f535ba6,03f535ba6]:- @keystone-next/keystone@21.0.0
- @keystone-next/types@21.0.0
- @keystone-next/fields@11.0.2
- @keystone-next/admin-ui-utils@5.0.3
@keystone-next/cloudinary@6.0.2
Patch Changes
- Updated dependencies [
03f535ba6]:- @keystone-next/types@21.0.0
- @keystone-next/fields@11.0.2
@keystone-next/fields@11.0.2
Patch Changes
- Updated dependencies [
03f535ba6,03f535ba6]:- @keystone-next/keystone@21.0.0
- @keystone-next/types@21.0.0
- @keystone-next/admin-ui-utils@5.0.3
- @keystone-next/utils@1.0.1
@keystone-next/fields-document@7.0.1
Patch Changes
- Updated dependencies [
03f535ba6,03f535ba6]:- @keystone-next/keystone@21.0.0
- @keystone-next/types@21.0.0
- @keystone-next/fields@11.0.2
- @keystone-next/admin-ui-utils@5.0.3
@keystone-next/testing@1.0.1
Patch Changes
@keystone-next/utils@1.0.1
Patch Changes
- Updated dependencies [
03f535ba6]:- @keystone-next/types@21.0.0
@keystone-next/example-assets-cloud@1.0.1
Patch Changes
- Updated dependencies [
03f535ba6,03f535ba6]:- @keystone-next/keystone@21.0.0
- @keystone-next/fields@11.0.2
@keystone-next/example-assets-local@1.0.1
Patch Changes
- Updated dependencies [
03f535ba6,03f535ba6]:- @keystone-next/keystone@21.0.0
- @keystone-next/fields@11.0.2
@keystone-next/example-auth@4.0.3
Patch Changes
- Updated dependencies [
03f535ba6,03f535ba6]:- @keystone-next/keystone@21.0.0
- @keystone-next/auth@28.0.0
- @keystone-next/fields@11.0.2
@keystone-next/examples-app-basic@4.0.3
Patch Changes
- Updated dependencies [
03f535ba6,03f535ba6]:- @keystone-next/keystone@21.0.0
- @keystone-next/types@21.0.0
- @keystone-next/auth@28.0.0
- @keystone-next/fields@11.0.2
- @keystone-next/fields-document@7.0.1
@keystone-next/example-ecommerce@4.0.4
Patch Changes
- Updated dependencies [
03f535ba6,03f535ba6]:- @keystone-next/keystone@21.0.0
- @keystone-next/types@21.0.0
- @keystone-next/auth@28.0.0
- @keystone-next/fields@11.0.2
- @keystone-next/cloudinary@6.0.2
@keystone-next/example-embedded-nextjs@3.0.3
Patch Changes
- Updated dependencies [
03f535ba6,03f535ba6]:- @keystone-next/keystone@21.0.0
- @keystone-next/fields@11.0.2
keystone-next-app@1.0.3
Patch Changes
- Updated dependencies [
03f535ba6,03f535ba6]:- @keystone-next/keystone@21.0.0
- @keystone-next/auth@28.0.0
- @keystone-next/fields@11.0.2
- @keystone-next/fields-document@7.0.1
@keystone-next/example-playground@1.0.2
Patch Changes
- Updated dependencies [
03f535ba6,03f535ba6]:- @keystone-next/keystone@21.0.0
- @keystone-next/fields@11.0.2
@keystone-next/example-roles@4.0.3
Patch Changes
- Updated dependencies [
03f535ba6,03f535ba6]:- @keystone-next/keystone@21.0.0
- @keystone-next/types@21.0.0
- @keystone-next/auth@28.0.0
- @keystone-next/fields@11.0.2
@keystone-next/example-sandbox@3.0.3
Patch Changes
- Updated dependencies [
03f535ba6,03f535ba6]:- @keystone-next/keystone@21.0.0
- @keystone-next/auth@28.0.0
- @keystone-next/fields@11.0.2
@keystone-next/example-blog@2.0.3
Patch Changes
- Updated dependencies [
03f535ba6,03f535ba6]:- @keystone-next/keystone@21.0.0
- @keystone-next/fields@11.0.2
@keystone-next/example-default-values@1.0.2
Patch Changes
- Updated dependencies [
03f535ba6,03f535ba6]:- @keystone-next/keystone@21.0.0
- @keystone-next/fields@11.0.2
@keystone-next/example-document-field@1.0.1
Patch Changes
- Updated dependencies [
03f535ba6,03f535ba6]:- @keystone-next/keystone@21.0.0
- @keystone-next/fields@11.0.2
- @keystone-next/fields-document@7.0.1
@keystone-next/example-extend-graphql-schema@1.0.2
Patch Changes
- Updated dependencies [
03f535ba6,03f535ba6]:- @keystone-next/keystone@21.0.0
- @keystone-next/fields@11.0.2
@keystone-next/example-json-field@4.0.3
Patch Changes
- Updated dependencies [
03f535ba6,03f535ba6]:- @keystone-next/keystone@21.0.0
- @keystone-next/fields@11.0.2
@keystone-next/example-task-manager@4.0.3
Patch Changes
- Updated dependencies [
03f535ba6,03f535ba6]:- @keystone-next/keystone@21.0.0
- @keystone-next/fields@11.0.2
@keystone-next/example-testing@0.0.2
Patch Changes
- Updated dependencies [
03f535ba6,03f535ba6]:- @keystone-next/keystone@21.0.0
- @keystone-next/types@21.0.0
- @keystone-next/auth@28.0.0
- @keystone-next/fields@11.0.2
- @keystone-next/testing@1.0.1
@keystone-next/example-virtual-field@0.1.1
Patch Changes
- Updated dependencies [
03f535ba6,03f535ba6]:- @keystone-next/keystone@21.0.0
- @keystone-next/types@21.0.0
- @keystone-next/fields@11.0.2
@keystone-next/example-with-auth@2.0.3
Patch Changes
- Updated dependencies [
03f535ba6,03f535ba6]:- @keystone-next/keystone@21.0.0
- @keystone-next/auth@28.0.0
- @keystone-next/fields@11.0.2
@keystone-next/api-tests-legacy@11.0.4
Patch Changes
- Updated dependencies [
03f535ba6]:- @keystone-next/types@21.0.0
- @keystone-next/testing@1.0.1
- @keystone-next/utils@1.0.1