What's New
Improvements to the Lists API
To make the Lists API (i.e context.lists.{List}) more intuitive to use, we deprecated the resolveFields option in favour of two new methods 🔧:
1. Specify a string of fields to return with the new query option:
Use this when you want to query for resolved field values (including querying relationships and virtual fields). This replaces the resolveFields: false use case. Now you can query a Post like so:
const [post] = await context.lists.Post.findMany({
where: { slug },
query: `
title
content
image {
src
width
height
}`,
});2. Return the unresolved item data with read hooks
This replaces the resolveFields: boolean use case. We now have a new set of APIs on context.db.lists.{List} which return unresolved item data from your database (but with read hooks applied). They can be referenced directly or returned from a custom mutation or query in the GraphQL API to be handled by the Field resolvers.
For example, to query for the raw data stored in the database:
const [post] = await context.db.lists.Post.findMany({
where: { slug },
});Enjoying Keystone?
Star this repo 🌟 ☝️ or connect to Keystone on Twitter and in Slack.
View verbose release notes
Releases
@keystone-ui/button@4.0.0
Major Changes
- #5397
a5627304bThanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Patch Changes
- Updated dependencies [
a5627304b]:- @keystone-ui/icons@3.0.0
- @keystone-ui/loading@3.0.0
@keystone-ui/fields@3.0.0
Major Changes
- #5397
a5627304bThanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Patch Changes
- Updated dependencies [
a5627304b]:- @keystone-ui/icons@3.0.0
- @keystone-ui/popover@3.0.0
@keystone-ui/icons@3.0.0
Major Changes
- #5397
a5627304bThanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
@keystone-ui/loading@3.0.0
Major Changes
- #5397
a5627304bThanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
@keystone-ui/modals@3.0.0
Major Changes
- #5397
a5627304bThanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Patch Changes
- Updated dependencies [
a5627304b]:- @keystone-ui/button@4.0.0
@keystone-ui/notice@3.0.0
Major Changes
- #5397
a5627304bThanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Patch Changes
- Updated dependencies [
a5627304b]:- @keystone-ui/button@4.0.0
- @keystone-ui/icons@3.0.0
@keystone-ui/options@3.0.0
Major Changes
- #5397
a5627304bThanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Patch Changes
- Updated dependencies [
a5627304b]:- @keystone-ui/fields@3.0.0
- @keystone-ui/icons@3.0.0
@keystone-ui/pill@3.0.0
Major Changes
- #5397
a5627304bThanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Patch Changes
- Updated dependencies [
a5627304b]:- @keystone-ui/icons@3.0.0
@keystone-ui/popover@3.0.0
Major Changes
- #5397
a5627304bThanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
@keystone-ui/segmented-control@3.0.0
Major Changes
- #5397
a5627304bThanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
@keystone-ui/toast@3.0.0
Major Changes
- #5397
a5627304bThanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Patch Changes
- Updated dependencies [
a5627304b]:- @keystone-ui/icons@3.0.0
@keystone-ui/tooltip@3.0.0
Major Changes
- #5397
a5627304bThanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Patch Changes
- Updated dependencies [
a5627304b]:- @keystone-ui/popover@3.0.0
@keystone-next/admin-ui@14.0.0
Major Changes
- #5397
a5627304bThanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Minor Changes
- #5396
be60812f2Thanks @rohan-deshpande! - Reflected next/image exports from admin-ui for use in other relevant keystone-next packages.
Patch Changes
-
#5451
9e060fe83Thanks @JedWatson! - With the goal of making the Lists API (i.econtext.lists.{List}) more intuitive to use, theresolveFieldsoption has been deprecated in favor of two new methods:(1) You can specify a string of fields to return with the new
queryoption, when you want to query for resolved field values (including querying relationships and virtual fields). This replaces theresolveFields: falseuse case.For example, to query a Post you would now write:
const [post] = await context.lists.Post.findMany({ where: { slug }, query: ` title content image { src width height }`, });
(2) Alternatively, there is a new set of APIs on
context.db.lists.{List}which will return the unresolved item data from the database (but with read hooks applied), which can then be referenced directly or returned from a custom mutation or query in the GraphQL API to be handled by the Field resolvers. This replaces theresolveFields: booleanuse case.For example, to query for the raw data stored in the database, you would write:
const [post] = await context.db.lists.Post.findMany({ where: { slug }, });
-
#5366
115b06130Thanks @renovate! - Updated Next.js dependency to^10.1.3. -
Updated dependencies [
9e060fe83,3d3fb860f,c7aecec3c,588f31ddc,781b3e5ab,49025d1ad,7498fcabb,11f5bb631,d9e1acb30,24e62e29c,6861ecb40,5b2369077,a5627304b,202d362f3,d0adec53f,962cde7e3,f67497c1a,1d85d7ff4,2bef01aaa,0e74d8123,76692d266,d7e8cad4f,ecf07393a,ad1776b74,309596591,be60812f2,5b2369077,be60812f2,115b06130,a73aea7d7]:- @keystone-next/keystone@16.0.0
- @keystone-next/types@17.0.0
- @keystone-ui/button@4.0.0
- @keystone-ui/fields@3.0.0
- @keystone-ui/icons@3.0.0
- @keystone-ui/loading@3.0.0
- @keystone-ui/modals@3.0.0
- @keystone-ui/notice@3.0.0
- @keystone-ui/options@3.0.0
- @keystone-ui/pill@3.0.0
- @keystone-ui/popover@3.0.0
- @keystone-ui/toast@3.0.0
- @keystone-ui/tooltip@3.0.0
- @keystone-next/admin-ui-utils@4.0.0
@keystone-next/admin-ui-utils@4.0.0
Major Changes
- #5397
a5627304bThanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Patch Changes
- Updated dependencies [
9e060fe83,7498fcabb,11f5bb631,a5627304b,1d85d7ff4,0e74d8123,be60812f2]:- @keystone-next/types@17.0.0
@keystone-next/auth@21.0.0
Major Changes
- #5397
a5627304bThanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Patch Changes
-
#5451
9e060fe83Thanks @JedWatson! - With the goal of making the Lists API (i.econtext.lists.{List}) more intuitive to use, theresolveFieldsoption has been deprecated in favor of two new methods:(1) You can specify a string of fields to return with the new
queryoption, when you want to query for resolved field values (including querying relationships and virtual fields). This replaces theresolveFields: falseuse case.For example, to query a Post you would now write:
const [post] = await context.lists.Post.findMany({ where: { slug }, query: ` title content image { src width height }`, });
(2) Alternatively, there is a new set of APIs on
context.db.lists.{List}which will return the unresolved item data from the database (but with read hooks applied), which can then be referenced directly or returned from a custom mutation or query in the GraphQL API to be handled by the Field resolvers. This replaces theresolveFields: booleanuse case.For example, to query for the raw data stored in the database, you would write:
const [post] = await context.db.lists.Post.findMany({ where: { slug }, });
-
Updated dependencies [
9e060fe83,3d3fb860f,637ae05d3,d0adec53f,c7aecec3c,588f31ddc,781b3e5ab,49025d1ad,f059f6349,7498fcabb,11f5bb631,d9e1acb30,24e62e29c,fe55e9289,6861ecb40,5b2369077,a5627304b,202d362f3,d0adec53f,962cde7e3,f67497c1a,1d85d7ff4,2bef01aaa,be60812f2,0e74d8123,be60812f2,76692d266,d7e8cad4f,ecf07393a,ad1776b74,309596591,be60812f2,5b2369077,89b869e8d,58a793988,be60812f2,115b06130,a73aea7d7]:- @keystone-next/admin-ui@14.0.0
- @keystone-next/keystone@16.0.0
- @keystone-next/types@17.0.0
- @keystone-next/fields@7.0.0
- @keystone-ui/button@4.0.0
- @keystone-ui/fields@3.0.0
- @keystone-ui/notice@3.0.0
- @keystone-next/admin-ui-utils@4.0.0
@keystone-next/cloudinary@4.0.0
Major Changes
-
#5397
a5627304bThanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30. -
#5420
ecf07393aThanks @timleslie! - Updated core fields implementation to expect an internal optiontype.adapterrather thantype.adapters.prisma.
Patch Changes
-
#5410
0e3e9236eThanks @timleslie! - Converted the remaining JavaScript code to TypeScript. -
#5394
22b16a998Thanks @timleslie! - Removed the dependency on the legacyCloudinaryImagefield implementation. -
#5391
c142dd924Thanks @timleslie! - Refactored the core implementation to not depend on theFiletype. -
#5395
94e6b19d6Thanks @timleslie! - Moved the implementation of theCloudinaryAdapterinto this package. -
#5386
952db7148Thanks @timleslie! - Fixed the type resolver when using thesqliteprovider. -
#5442
1d85d7ff4Thanks @timleslie! - Updated type definitions to be more consistent and correct. -
#5400
d7e8cad4fThanks @timleslie! - Moved theImplementationbase class from thefields-legacypackage into thefieldspackage. -
Updated dependencies [
9e060fe83,637ae05d3,d0adec53f,c7aecec3c,f059f6349,7498fcabb,11f5bb631,8ab2c9bb6,637ae05d3,fe55e9289,a5627304b,1d85d7ff4,2bef01aaa,be60812f2,0e74d8123,be60812f2,d7e8cad4f,ecf07393a,be60812f2,89b869e8d,58a793988,115b06130]:- @keystone-next/admin-ui@14.0.0
- @keystone-next/types@17.0.0
- @keystone-next/fields@7.0.0
- @keystone-next/adapter-prisma-legacy@6.0.0
- @keystone-ui/button@4.0.0
- @keystone-ui/fields@3.0.0
- @keystone-ui/pill@3.0.0
@keystone-next/fields@7.0.0
Major Changes
-
#5478
11f5bb631Thanks @timleslie! - Improved types forBaseKeystoneList. -
#5397
a5627304bThanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30. -
#5420
ecf07393aThanks @timleslie! - Updated core fields implementation to expect an internal optiontype.adapterrather thantype.adapters.prisma.
Minor Changes
-
#5415
fe55e9289Thanks @timleslie! - Exported the typesFieldConfigArgsandFieldExtraArgs. -
#5396
be60812f2Thanks @rohan-deshpande! - Added new image field type. -
#5400
d7e8cad4fThanks @timleslie! - Moved theImplementationbase class from thefields-legacypackage into thefieldspackage.
Patch Changes
-
#5406
637ae05d3Thanks @timleslie! - Fixed a bug which added unsupported string filter options to the GraphQL API for the SQLite provider.
Added a.containsInputFields()method to include string filters just for thecontainsandnot_containsoptions. -
#5403
d0adec53fThanks @gwyneplaine! - Replaced inflection.humanize usage with custom fn to account for edge cases. -
#5452
c7aecec3cThanks @timleslie! - Removed the legacydefaultAccessargument from theKeystoneconstructor. -
#5392
f059f6349Thanks @timleslie! - Removed the dependency on the legacyAutoIncrementfield implementation. -
#5442
1d85d7ff4Thanks @timleslie! - Updated type definitions to be more consistent and correct. -
#5466
0e74d8123Thanks @timleslie! - Improved theBaseKeystonetype to be more correct. -
#5374
89b869e8dThanks @timleslie! - Removed an outdated reference tomongoId. -
#5408
58a793988Thanks @timleslie! - Fixed an issue wherevirtualfields could havecreateandupdateaccess control set to something other thanfalse. -
Updated dependencies [
9e060fe83,637ae05d3,b0db0a7a8,7498fcabb,11f5bb631,8ab2c9bb6,637ae05d3,d0adec53f,5f2673704,a5627304b,ea708559f,1d85d7ff4,2bef01aaa,be60812f2,0e74d8123,be60812f2,115b06130]:- @keystone-next/admin-ui@14.0.0
- @keystone-next/types@17.0.0
- @keystone-next/adapter-prisma-legacy@6.0.0
- @keystone-next/utils-legacy@9.0.0
- @keystone-ui/button@4.0.0
- @keystone-ui/fields@3.0.0
- @keystone-ui/icons@3.0.0
- @keystone-ui/loading@3.0.0
- @keystone-ui/modals@3.0.0
- @keystone-ui/pill@3.0.0
- @keystone-ui/segmented-control@3.0.0
- @keystone-ui/toast@3.0.0
- @keystone-ui/tooltip@3.0.0
- @keystone-next/admin-ui-utils@4.0.0
- @keystone-next/access-control-legacy@10.0.0
@keystone-next/fields-document@5.0.0
Major Changes
- #5420
ecf07393aThanks @timleslie! - Updated core fields implementation to expect an internal optiontype.adapterrather thantype.adapters.prisma.
Patch Changes
-
#5415
fe55e9289Thanks @timleslie! - Converted internal JavaScript code to TypeScript. -
#5442
1d85d7ff4Thanks @timleslie! - Updated type definitions to be more consistent and correct. -
#5372
43a0f5429Thanks @gwyneplaine! - Fixed heading styles to be more differentiatable from normal text. -
#5400
d7e8cad4fThanks @timleslie! - Moved theImplementationbase class from thefields-legacypackage into thefieldspackage. -
#5371
8eebf9195Thanks @mitchellhamilton! - Fixed undo on shortcuts like->to→undoing the whole shortcut rather than just the replacement -
Updated dependencies [
9e060fe83,637ae05d3,d0adec53f,c7aecec3c,f059f6349,7498fcabb,11f5bb631,8ab2c9bb6,637ae05d3,fe55e9289,a5627304b,1d85d7ff4,2bef01aaa,be60812f2,0e74d8123,be60812f2,d7e8cad4f,ecf07393a,be60812f2,89b869e8d,58a793988,115b06130]:- @keystone-next/admin-ui@14.0.0
- @keystone-next/types@17.0.0
- @keystone-next/fields@7.0.0
- @keystone-next/adapter-prisma-legacy@6.0.0
- @keystone-ui/button@4.0.0
- @keystone-ui/fields@3.0.0
- @keystone-ui/icons@3.0.0
- @keystone-ui/popover@3.0.0
- @keystone-ui/tooltip@3.0.0
- @keystone-next/admin-ui-utils@4.0.0
@keystone-next/keystone@16.0.0
Major Changes
-
#5467
7498fcabbThanks @timleslie! - Removed the deprecatedcontext.executeGraphQL. Identical functionality is available viacontext.graphql.raw. -
#5478
11f5bb631Thanks @timleslie! - Improved types forBaseKeystoneList. -
#5404
d9e1acb30Thanks @mitchellhamilton! - Started formatting GraphQL schema written toschema.graphqlwith Prettier -
#5397
a5627304bThanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30. -
#5420
ecf07393aThanks @timleslie! - Updated core fields implementation to expect an internal optiontype.adapterrather thantype.adapters.prisma. -
#5463
309596591Thanks @timleslie! - Removed the_listMetatype from the generated GraphQL API.
Minor Changes
-
#5451
9e060fe83Thanks @JedWatson! - With the goal of making the Lists API (i.econtext.lists.{List}) more intuitive to use, theresolveFieldsoption has been deprecated in favor of two new methods:(1) You can specify a string of fields to return with the new
queryoption, when you want to query for resolved field values (including querying relationships and virtual fields). This replaces theresolveFields: falseuse case.For example, to query a Post you would now write:
const [post] = await context.lists.Post.findMany({ where: { slug }, query: ` title content image { src width height }`, });
(2) Alternatively, there is a new set of APIs on
context.db.lists.{List}which will return the unresolved item data from the database (but with read hooks applied), which can then be referenced directly or returned from a custom mutation or query in the GraphQL API to be handled by the Field resolvers. This replaces theresolveFields: booleanuse case.For example, to query for the raw data stored in the database, you would write:
const [post] = await context.db.lists.Post.findMany({ where: { slug }, });
-
#5325
3d3fb860fThanks @mitchellhamilton! - Updated to Prisma 2.20 -
#5396
be60812f2Thanks @rohan-deshpande! - Added create-image-context, logic for parsing, storing and retrieving image data in keystone core.
Patch Changes
-
#5452
c7aecec3cThanks @timleslie! - Removed the legacydefaultAccessargument from theKeystoneconstructor. -
#5402
588f31ddcThanks @mitchellhamilton! - Refactored to make testing the cli easier -
#5444
781b3e5abThanks @mitchellhamilton! - Fixed an error being printed to the console when the Prisma CLI exited with a non-zero exit code when runningkeystone-next prisma -
#5429
49025d1adThanks @timleslie! - Removed the internal_label_field which is no longer used. -
#5445
24e62e29cThanks @timleslie! - Removed unused and inaccessible code from the core. -
#5428
5b2369077Thanks @mitchellhamilton! - Fixed printing the incorrect migrations directory to the console -
#5426
202d362f3Thanks @mitchellhamilton! - Updated CLI help message to match documentation -
#5403
d0adec53fThanks @gwyneplaine! - Moved core logic in keyToLabel to the @keystone-next/utils-legacy package. -
#5458
962cde7e3Thanks @timleslie! - Set PRISMA_HIDE_UPDATE_MESSAGE=1 to silence Prisma update messages, since these are out of the hands of the developer. -
#5443
f67497c1aThanks @timleslie! - Removed legacy support for auxilliary lists. -
#5460
2bef01aaaThanks @timleslie! - Consolidated the core code from the@keystone-next/keystone-legacypackage into@keystone-next/keystone. -
#5466
0e74d8123Thanks @timleslie! - Improved theBaseKeystonetype to be more correct. -
#5407
76692d266Thanks @timleslie! - Fixed a bug wherecontext.prismawasundefinedin theonConnect()function. -
#5400
d7e8cad4fThanks @timleslie! - Moved theImplementationbase class from thefields-legacypackage into thefieldspackage. -
#5390
ad1776b74Thanks @timleslie! - Silenced logging when running CI tests. -
#5428
5b2369077Thanks @mitchellhamilton! - Fixed casing of GraphQL in message logged inkeystone-next dev -
#5366
115b06130Thanks @renovate! - Updated Next.js dependency to^10.1.3. -
#5393
a73aea7d7Thanks @mitchellhamilton! - Fixed reading config file to be local to the passed directory instead ofprocess.cwd() -
Updated dependencies [
9e060fe83,637ae05d3,d0adec53f,c7aecec3c,b0db0a7a8,f059f6349,7498fcabb,11f5bb631,8ab2c9bb6,637ae05d3,d0adec53f,5f2673704,fe55e9289,a5627304b,ea708559f,49ecca74d,1d85d7ff4,2bef01aaa,be60812f2,0e74d8123,be60812f2,d7e8cad4f,ecf07393a,be60812f2,89b869e8d,58a793988,115b06130]:- @keystone-next/admin-ui@14.0.0
- @keystone-next/types@17.0.0
- @keystone-next/fields@7.0.0
- @keystone-next/adapter-prisma-legacy@6.0.0
- @keystone-next/utils-legacy@9.0.0
- @keystone-next/access-control-legacy@10.0.0
- @keystone-next/server-side-graphql-client-legacy@4.0.0
@keystone-next/session-store-redis@2.0.0
Major Changes
- #5397
a5627304bThanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
@keystone-next/types@17.0.0
Major Changes
-
#5467
7498fcabbThanks @timleslie! - Removed the deprecatedcontext.executeGraphQL. Identical functionality is available viacontext.graphql.raw. -
#5397
a5627304bThanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Minor Changes
-
#5451
9e060fe83Thanks @JedWatson! - With the goal of making the Lists API (i.econtext.lists.{List}) more intuitive to use, theresolveFieldsoption has been deprecated in favor of two new methods:(1) You can specify a string of fields to return with the new
queryoption, when you want to query for resolved field values (including querying relationships and virtual fields). This replaces theresolveFields: falseuse case.For example, to query a Post you would now write:
const [post] = await context.lists.Post.findMany({ where: { slug }, query: ` title content image { src width height }`, });
(2) Alternatively, there is a new set of APIs on
context.db.lists.{List}which will return the unresolved item data from the database (but with read hooks applied), which can then be referenced directly or returned from a custom mutation or query in the GraphQL API to be handled by the Field resolvers. This replaces theresolveFields: booleanuse case.For example, to query for the raw data stored in the database, you would write:
const [post] = await context.db.lists.Post.findMany({ where: { slug }, });
-
#5396
be60812f2Thanks @rohan-deshpande! - Added types for new images functionality in keystone.
Patch Changes
-
#5478
11f5bb631Thanks @timleslie! - Improved types forBaseKeystoneList. -
#5442
1d85d7ff4Thanks @timleslie! - Updated type definitions to be more consistent and correct. -
#5466
0e74d8123Thanks @timleslie! - Improved theBaseKeystonetype to be more correct. -
Updated dependencies [
637ae05d3,d0adec53f,c7aecec3c,f059f6349,11f5bb631,8ab2c9bb6,637ae05d3,fe55e9289,a5627304b,1d85d7ff4,2bef01aaa,0e74d8123,be60812f2,d7e8cad4f,ecf07393a,89b869e8d,58a793988]:- @keystone-next/fields@7.0.0
- @keystone-next/adapter-prisma-legacy@6.0.0
@keystone-next/access-control-legacy@10.0.0
Major Changes
- #5397
a5627304bThanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Patch Changes
- Updated dependencies [
b0db0a7a8,d0adec53f,5f2673704,a5627304b,ea708559f]:- @keystone-next/utils-legacy@9.0.0
@keystone-next/adapter-prisma-legacy@6.0.0
Major Changes
- #5397
a5627304bThanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Minor Changes
-
#5284
8ab2c9bb6Thanks @timleslie! - Converted package to TypeScript. -
#5406
637ae05d3Thanks @timleslie! - Added a.containsConditions()method to include string filters just for thecontainsandnot_containsoptions.
Patch Changes
-
#5406
637ae05d3Thanks @timleslie! - Fixed a bug which added unsupported string filter options to the GraphQL API for the SQLite provider.
Added a.containsInputFields()method to include string filters just for thecontainsandnot_containsoptions. -
#5442
1d85d7ff4Thanks @timleslie! - Updated type definitions to be more consistent and correct. -
#5460
2bef01aaaThanks @timleslie! - Consolidated the core code from the@keystone-next/keystone-legacypackage into@keystone-next/keystone. -
#5466
0e74d8123Thanks @timleslie! - Improved theBaseKeystonetype to be more correct. -
Updated dependencies [
9e060fe83,637ae05d3,d0adec53f,c7aecec3c,b0db0a7a8,f059f6349,7498fcabb,11f5bb631,d0adec53f,5f2673704,fe55e9289,a5627304b,ea708559f,1d85d7ff4,0e74d8123,be60812f2,d7e8cad4f,ecf07393a,be60812f2,89b869e8d,58a793988]:- @keystone-next/types@17.0.0
- @keystone-next/fields@7.0.0
- @keystone-next/utils-legacy@9.0.0
@keystone-next/server-side-graphql-client-legacy@4.0.0
Major Changes
- #5397
a5627304bThanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Patch Changes
-
#5456
49ecca74dThanks @JedWatson! - FixedgetItemto not include null in the return type -
#5400
d7e8cad4fThanks @timleslie! - Moved theImplementationbase class from thefields-legacypackage into thefieldspackage. -
Updated dependencies [
9e060fe83,7498fcabb,11f5bb631,a5627304b,1d85d7ff4,0e74d8123,be60812f2]:- @keystone-next/types@17.0.0
@keystone-next/test-utils-legacy@17.0.0
Major Changes
-
#5397
a5627304bThanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30. -
#5387
406acca51Thanks @timleslie! - Replaced typeAdapterNamewithProviderName. Updated all functions which accepted anAdapterNamevalue namedadapterNameto accept aProviderNameargument namedprovider.
Patch Changes
-
#5459
5106e4bbeThanks @timleslie! - Simplified internal implementation now that Prisma is the only database adapter supported. -
Updated dependencies [
9e060fe83,3d3fb860f,637ae05d3,c7aecec3c,588f31ddc,781b3e5ab,49025d1ad,7498fcabb,11f5bb631,d9e1acb30,8ab2c9bb6,637ae05d3,24e62e29c,6861ecb40,5b2369077,a5627304b,202d362f3,d0adec53f,962cde7e3,f67497c1a,1d85d7ff4,2bef01aaa,0e74d8123,76692d266,d7e8cad4f,ecf07393a,ad1776b74,309596591,5b2369077,be60812f2,115b06130,a73aea7d7]:- @keystone-next/keystone@16.0.0
- @keystone-next/adapter-prisma-legacy@6.0.0
@keystone-next/utils-legacy@9.0.0
Major Changes
- #5397
a5627304bThanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Minor Changes
- #5403
d0adec53fThanks @gwyneplaine! - Added a humanize fn which is string transformation logic ported over from @keystone-next/keystone.
Patch Changes
-
#5409
b0db0a7a8Thanks @timleslie! - Updated argument types ofintersectionto bereadonly. -
#5472
5f2673704Thanks @timleslie! - Improved types ofarrayToObject. -
#5419
ea708559fThanks @timleslie! - Updated types formapKeyNamesandflattento be more correct. -
Updated dependencies [
9e060fe83,7498fcabb,11f5bb631,a5627304b,1d85d7ff4,0e74d8123,be60812f2]:- @keystone-next/types@17.0.0
@keystone-next/document-renderer@2.0.3
Patch Changes
- #5417
34e3b6309Thanks @alexmgrant! - Fixedrenderersprop not being respected.
@keystone-ui/website@2.0.0
Major Changes
- #5397
a5627304bThanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Patch Changes
-
#5366
115b06130Thanks @renovate! - Updated Next.js dependency to^10.1.3. -
Updated dependencies [
a5627304b]:- @keystone-ui/button@4.0.0
- @keystone-ui/fields@3.0.0
- @keystone-ui/loading@3.0.0
- @keystone-ui/modals@3.0.0
- @keystone-ui/notice@3.0.0
- @keystone-ui/options@3.0.0
- @keystone-ui/pill@3.0.0
- @keystone-ui/popover@3.0.0
- @keystone-ui/segmented-control@3.0.0
- @keystone-ui/toast@3.0.0
- @keystone-ui/tooltip@3.0.0
@keystone-next/website@2.0.0
Major Changes
- #5397
a5627304bThanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Patch Changes
-
#5451
9e060fe83Thanks @JedWatson! - With the goal of making the Lists API (i.econtext.lists.{List}) more intuitive to use, theresolveFieldsoption has been deprecated in favor of two new methods:(1) You can specify a string of fields to return with the new
queryoption, when you want to query for resolved field values (including querying relationships and virtual fields). This replaces theresolveFields: falseuse case.For example, to query a Post you would now write:
const [post] = await context.lists.Post.findMany({ where: { slug }, query: ` title content image { src width height }`, });
(2) Alternatively, there is a new set of APIs on
context.db.lists.{List}which will return the unresolved item data from the database (but with read hooks applied), which can then be referenced directly or returned from a custom mutation or query in the GraphQL API to be handled by the Field resolvers. This replaces theresolveFields: booleanuse case.For example, to query for the raw data stored in the database, you would write:
const [post] = await context.db.lists.Post.findMany({ where: { slug }, });
-
#5467
7498fcabbThanks @timleslie! - Removed the deprecatedcontext.executeGraphQL. Identical functionality is available viacontext.graphql.raw. -
#5471
838247cc0Thanks @raveling! - Fixed typo in guide meta title. -
#5366
115b06130Thanks @renovate! - Updated Next.js dependency to^10.1.3. -
Updated dependencies [
fe55e9289,a5627304b,1d85d7ff4,43a0f5429,d7e8cad4f,ecf07393a,8eebf9195]:- @keystone-next/fields-document@5.0.0
- @keystone-ui/button@4.0.0
- @keystone-ui/fields@3.0.0
- @keystone-ui/icons@3.0.0
- @keystone-ui/notice@3.0.0
- @keystone-ui/toast@3.0.0
- @keystone-ui/tooltip@3.0.0
@keystone-next/example-auth@3.0.0
Major Changes
- #5397
a5627304bThanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Patch Changes
-
#5388
29c9a36b7Thanks @timleslie! - Updated example project to use the newdb.providerconfig option over the deprecateddb.adapteroption. -
#5366
115b06130Thanks @renovate! - Updated Next.js dependency to^10.1.3. -
Updated dependencies [
9e060fe83,3d3fb860f,637ae05d3,d0adec53f,c7aecec3c,588f31ddc,781b3e5ab,49025d1ad,f059f6349,7498fcabb,11f5bb631,d9e1acb30,24e62e29c,fe55e9289,6861ecb40,5b2369077,a5627304b,202d362f3,d0adec53f,962cde7e3,f67497c1a,1d85d7ff4,2bef01aaa,be60812f2,0e74d8123,be60812f2,76692d266,d7e8cad4f,ecf07393a,ad1776b74,309596591,5b2369077,89b869e8d,58a793988,be60812f2,115b06130,a73aea7d7]:- @keystone-next/admin-ui@14.0.0
- @keystone-next/auth@21.0.0
- @keystone-next/keystone@16.0.0
- @keystone-next/fields@7.0.0
@keystone-next/app-basic@3.0.0
Major Changes
- #5397
a5627304bThanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Patch Changes
-
#5388
29c9a36b7Thanks @timleslie! - Updated example project to use the newdb.providerconfig option over the deprecateddb.adapteroption. -
#5396
be60812f2Thanks @rohan-deshpande! - Added example of image field support to basic keystone-next example. -
#5366
115b06130Thanks @renovate! - Updated Next.js dependency to^10.1.3. -
Updated dependencies [
9e060fe83,3d3fb860f,637ae05d3,fe55e9289,d0adec53f,c7aecec3c,588f31ddc,781b3e5ab,49025d1ad,f059f6349,7498fcabb,11f5bb631,d9e1acb30,34e3b6309,24e62e29c,fe55e9289,6861ecb40,5b2369077,a5627304b,202d362f3,d0adec53f,962cde7e3,f67497c1a,1d85d7ff4,2bef01aaa,be60812f2,0e74d8123,43a0f5429,be60812f2,76692d266,d7e8cad4f,ecf07393a,ad1776b74,309596591,be60812f2,5b2369077,8eebf9195,89b869e8d,58a793988,be60812f2,115b06130,a73aea7d7]:- @keystone-next/admin-ui@14.0.0
- @keystone-next/auth@21.0.0
- @keystone-next/keystone@16.0.0
- @keystone-next/types@17.0.0
- @keystone-next/fields@7.0.0
- @keystone-next/fields-document@5.0.0
- @keystone-next/document-renderer@2.0.3
- @keystone-ui/fields@3.0.0
- @keystone-ui/icons@3.0.0
- @keystone-ui/tooltip@3.0.0
@keystone-next/example-ecommerce@3.0.0
Major Changes
- #5397
a5627304bThanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Patch Changes
-
#5451
9e060fe83Thanks @JedWatson! - With the goal of making the Lists API (i.econtext.lists.{List}) more intuitive to use, theresolveFieldsoption has been deprecated in favor of two new methods:(1) You can specify a string of fields to return with the new
queryoption, when you want to query for resolved field values (including querying relationships and virtual fields). This replaces theresolveFields: falseuse case.For example, to query a Post you would now write:
const [post] = await context.lists.Post.findMany({ where: { slug }, query: ` title content image { src width height }`, });
(2) Alternatively, there is a new set of APIs on
context.db.lists.{List}which will return the unresolved item data from the database (but with read hooks applied), which can then be referenced directly or returned from a custom mutation or query in the GraphQL API to be handled by the Field resolvers. This replaces theresolveFields: booleanuse case.For example, to query for the raw data stored in the database, you would write:
const [post] = await context.db.lists.Post.findMany({ where: { slug }, });
-
#5388
29c9a36b7Thanks @timleslie! - Updated example project to use the newdb.providerconfig option over the deprecateddb.adapteroption. -
#5366
115b06130Thanks @renovate! - Updated Next.js dependency to^10.1.3. -
Updated dependencies [
9e060fe83,3d3fb860f,637ae05d3,d0adec53f,c7aecec3c,0e3e9236e,588f31ddc,781b3e5ab,49025d1ad,f059f6349,7498fcabb,11f5bb631,d9e1acb30,22b16a998,24e62e29c,c142dd924,94e6b19d6,fe55e9289,6861ecb40,5b2369077,a5627304b,202d362f3,d0adec53f,962cde7e3,f67497c1a,952db7148,49ecca74d,1d85d7ff4,2bef01aaa,be60812f2,0e74d8123,be60812f2,76692d266,d7e8cad4f,ecf07393a,ad1776b74,309596591,be60812f2,5b2369077,89b869e8d,58a793988,be60812f2,115b06130,a73aea7d7]:- @keystone-next/admin-ui@14.0.0
- @keystone-next/auth@21.0.0
- @keystone-next/keystone@16.0.0
- @keystone-next/types@17.0.0
- @keystone-next/fields@7.0.0
- @keystone-next/cloudinary@4.0.0
- @keystone-next/server-side-graphql-client-legacy@4.0.0
@keystone-next/example-next-lite@2.0.0
Major Changes
- #5397
a5627304bThanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Patch Changes
-
#5451
9e060fe83Thanks @JedWatson! - With the goal of making the Lists API (i.econtext.lists.{List}) more intuitive to use, theresolveFieldsoption has been deprecated in favor of two new methods:(1) You can specify a string of fields to return with the new
queryoption, when you want to query for resolved field values (including querying relationships and virtual fields). This replaces theresolveFields: falseuse case.For example, to query a Post you would now write:
const [post] = await context.lists.Post.findMany({ where: { slug }, query: ` title content image { src width height }`, });
(2) Alternatively, there is a new set of APIs on
context.db.lists.{List}which will return the unresolved item data from the database (but with read hooks applied), which can then be referenced directly or returned from a custom mutation or query in the GraphQL API to be handled by the Field resolvers. This replaces theresolveFields: booleanuse case.For example, to query for the raw data stored in the database, you would write:
const [post] = await context.db.lists.Post.findMany({ where: { slug }, });
-
#5388
29c9a36b7Thanks @timleslie! - Updated example project to use the newdb.providerconfig option over the deprecateddb.adapteroption. -
#5366
115b06130Thanks @renovate! - Updated Next.js dependency to^10.1.3. -
Updated dependencies [
9e060fe83,3d3fb860f,637ae05d3,d0adec53f,c7aecec3c,588f31ddc,781b3e5ab,49025d1ad,f059f6349,7498fcabb,11f5bb631,d9e1acb30,24e62e29c,fe55e9289,6861ecb40,5b2369077,a5627304b,202d362f3,d0adec53f,962cde7e3,f67497c1a,1d85d7ff4,2bef01aaa,be60812f2,0e74d8123,be60812f2,76692d266,d7e8cad4f,ecf07393a,ad1776b74,309596591,5b2369077,89b869e8d,58a793988,be60812f2,115b06130,a73aea7d7]:- @keystone-next/admin-ui@14.0.0
- @keystone-next/keystone@16.0.0
- @keystone-next/fields@7.0.0
@keystone-next/example-roles@3.0.0
Major Changes
- #5397
a5627304bThanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Patch Changes
-
#5388
29c9a36b7Thanks @timleslie! - Updated example project to use the newdb.providerconfig option over the deprecateddb.adapteroption. -
#5366
115b06130Thanks @renovate! - Updated Next.js dependency to^10.1.3. -
Updated dependencies [
9e060fe83,3d3fb860f,637ae05d3,d0adec53f,c7aecec3c,588f31ddc,781b3e5ab,49025d1ad,f059f6349,7498fcabb,11f5bb631,d9e1acb30,24e62e29c,fe55e9289,6861ecb40,5b2369077,a5627304b,202d362f3,d0adec53f,962cde7e3,f67497c1a,1d85d7ff4,2bef01aaa,be60812f2,0e74d8123,be60812f2,76692d266,d7e8cad4f,ecf07393a,ad1776b74,309596591,be60812f2,5b2369077,89b869e8d,58a793988,be60812f2,115b06130,a73aea7d7]:- @keystone-next/admin-ui@14.0.0
- @keystone-next/auth@21.0.0
- @keystone-next/keystone@16.0.0
- @keystone-next/types@17.0.0
- @keystone-next/fields@7.0.0
@keystone-next/example-sandbox@2.0.0
Major Changes
- #5397
a5627304bThanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Patch Changes
-
#5388
29c9a36b7Thanks @timleslie! - Updated example project to use the newdb.providerconfig option over the deprecateddb.adapteroption. -
Updated dependencies [
9e060fe83,3d3fb860f,637ae05d3,d0adec53f,c7aecec3c,588f31ddc,781b3e5ab,49025d1ad,f059f6349,7498fcabb,11f5bb631,d9e1acb30,24e62e29c,fe55e9289,6861ecb40,5b2369077,a5627304b,202d362f3,d0adec53f,962cde7e3,f67497c1a,1d85d7ff4,2bef01aaa,be60812f2,0e74d8123,be60812f2,76692d266,d7e8cad4f,ecf07393a,ad1776b74,309596591,5b2369077,89b869e8d,58a793988,be60812f2,115b06130,a73aea7d7]:- @keystone-next/admin-ui@14.0.0
- @keystone-next/auth@21.0.0
- @keystone-next/keystone@16.0.0
- @keystone-next/fields@7.0.0
@keystone-next/example-todo@2.0.0
Major Changes
- #5397
a5627304bThanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Patch Changes
-
#5388
29c9a36b7Thanks @timleslie! - Updated example project to use the newdb.providerconfig option over the deprecateddb.adapteroption. -
#5366
115b06130Thanks @renovate! - Updated Next.js dependency to^10.1.3. -
Updated dependencies [
9e060fe83,3d3fb860f,637ae05d3,d0adec53f,c7aecec3c,588f31ddc,781b3e5ab,49025d1ad,f059f6349,7498fcabb,11f5bb631,d9e1acb30,24e62e29c,fe55e9289,6861ecb40,5b2369077,a5627304b,202d362f3,d0adec53f,962cde7e3,f67497c1a,1d85d7ff4,2bef01aaa,be60812f2,0e74d8123,be60812f2,76692d266,d7e8cad4f,ecf07393a,ad1776b74,309596591,5b2369077,89b869e8d,58a793988,be60812f2,115b06130,a73aea7d7]:- @keystone-next/admin-ui@14.0.0
- @keystone-next/auth@21.0.0
- @keystone-next/keystone@16.0.0
- @keystone-next/fields@7.0.0
@keystone-next/api-tests-legacy@10.0.0
Major Changes
- #5397
a5627304bThanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Patch Changes
-
#5451
9e060fe83Thanks @JedWatson! - With the goal of making the Lists API (i.econtext.lists.{List}) more intuitive to use, theresolveFieldsoption has been deprecated in favor of two new methods:(1) You can specify a string of fields to return with the new
queryoption, when you want to query for resolved field values (including querying relationships and virtual fields). This replaces theresolveFields: falseuse case.For example, to query a Post you would now write:
const [post] = await context.lists.Post.findMany({ where: { slug }, query: ` title content image { src width height }`, });
(2) Alternatively, there is a new set of APIs on
context.db.lists.{List}which will return the unresolved item data from the database (but with read hooks applied), which can then be referenced directly or returned from a custom mutation or query in the GraphQL API to be handled by the Field resolvers. This replaces theresolveFields: booleanuse case.For example, to query for the raw data stored in the database, you would write:
const [post] = await context.db.lists.Post.findMany({ where: { slug }, });
-
#5400
d7e8cad4fThanks @timleslie! - Moved theImplementationbase class from thefields-legacypackage into thefieldspackage. -
Updated dependencies [
9e060fe83,b0db0a7a8,7498fcabb,11f5bb631,d0adec53f,5f2673704,a5627304b,ea708559f,406acca51,1d85d7ff4,0e74d8123,5106e4bbe,be60812f2]:- @keystone-next/types@17.0.0
- @keystone-next/utils-legacy@9.0.0
- @keystone-next/test-utils-legacy@17.0.0
@keystone-next/benchmarks-legacy@6.0.0
Major Changes
- #5397
a5627304bThanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Patch Changes
-
#5400
d7e8cad4fThanks @timleslie! - Moved theImplementationbase class from thefields-legacypackage into thefieldspackage. -
Updated dependencies [
9e060fe83,3d3fb860f,637ae05d3,d0adec53f,c7aecec3c,588f31ddc,781b3e5ab,49025d1ad,f059f6349,7498fcabb,11f5bb631,d9e1acb30,24e62e29c,fe55e9289,6861ecb40,5b2369077,a5627304b,202d362f3,d0adec53f,406acca51,962cde7e3,f67497c1a,49ecca74d,1d85d7ff4,2bef01aaa,0e74d8123,be60812f2,5106e4bbe,76692d266,d7e8cad4f,ecf07393a,ad1776b74,309596591,5b2369077,89b869e8d,58a793988,be60812f2,115b06130,a73aea7d7]:- @keystone-next/keystone@16.0.0
- @keystone-next/fields@7.0.0
- @keystone-next/server-side-graphql-client-legacy@4.0.0
- @keystone-next/test-utils-legacy@17.0.0
@keystonejs/examples-smoke-tests@1.0.0
Major Changes
- #5397
a5627304bThanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
keystone-next-app@0.0.6
Patch Changes
-
#5388
29c9a36b7Thanks @timleslie! - Updated example project to use the newdb.providerconfig option over the deprecateddb.adapteroption. -
Updated dependencies [
9e060fe83,3d3fb860f,637ae05d3,fe55e9289,d0adec53f,c7aecec3c,588f31ddc,781b3e5ab,49025d1ad,f059f6349,7498fcabb,11f5bb631,d9e1acb30,24e62e29c,fe55e9289,6861ecb40,5b2369077,a5627304b,202d362f3,d0adec53f,962cde7e3,f67497c1a,1d85d7ff4,2bef01aaa,0e74d8123,43a0f5429,be60812f2,76692d266,d7e8cad4f,ecf07393a,ad1776b74,309596591,5b2369077,8eebf9195,89b869e8d,58a793988,be60812f2,115b06130,a73aea7d7]:- @keystone-next/auth@21.0.0
- @keystone-next/keystone@16.0.0
- @keystone-next/fields@7.0.0
- @keystone-next/fields-document@5.0.0