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
a5627304b
Thanks @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
a5627304b
Thanks @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
a5627304b
Thanks @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
a5627304b
Thanks @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
a5627304b
Thanks @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
a5627304b
Thanks @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
a5627304b
Thanks @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
a5627304b
Thanks @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
a5627304b
Thanks @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
a5627304b
Thanks @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
a5627304b
Thanks @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
a5627304b
Thanks @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
a5627304b
Thanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Minor Changes
- #5396
be60812f2
Thanks @rohan-deshpande! - Reflected next/image exports from admin-ui for use in other relevant keystone-next packages.
Patch Changes
-
#5451
9e060fe83
Thanks @JedWatson! - With the goal of making the Lists API (i.econtext.lists.{List}
) more intuitive to use, theresolveFields
option has been deprecated in favor of two new methods:(1) You can specify a string of fields to return with the new
query
option, when you want to query for resolved field values (including querying relationships and virtual fields). This replaces theresolveFields: false
use 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: boolean
use 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
115b06130
Thanks @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
a5627304b
Thanks @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
a5627304b
Thanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Patch Changes
-
#5451
9e060fe83
Thanks @JedWatson! - With the goal of making the Lists API (i.econtext.lists.{List}
) more intuitive to use, theresolveFields
option has been deprecated in favor of two new methods:(1) You can specify a string of fields to return with the new
query
option, when you want to query for resolved field values (including querying relationships and virtual fields). This replaces theresolveFields: false
use 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: boolean
use 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
a5627304b
Thanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30. -
#5420
ecf07393a
Thanks @timleslie! - Updated core fields implementation to expect an internal optiontype.adapter
rather thantype.adapters.prisma
.
Patch Changes
-
#5410
0e3e9236e
Thanks @timleslie! - Converted the remaining JavaScript code to TypeScript. -
#5394
22b16a998
Thanks @timleslie! - Removed the dependency on the legacyCloudinaryImage
field implementation. -
#5391
c142dd924
Thanks @timleslie! - Refactored the core implementation to not depend on theFile
type. -
#5395
94e6b19d6
Thanks @timleslie! - Moved the implementation of theCloudinaryAdapter
into this package. -
#5386
952db7148
Thanks @timleslie! - Fixed the type resolver when using thesqlite
provider. -
#5442
1d85d7ff4
Thanks @timleslie! - Updated type definitions to be more consistent and correct. -
#5400
d7e8cad4f
Thanks @timleslie! - Moved theImplementation
base class from thefields-legacy
package into thefields
package. -
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
11f5bb631
Thanks @timleslie! - Improved types forBaseKeystoneList
. -
#5397
a5627304b
Thanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30. -
#5420
ecf07393a
Thanks @timleslie! - Updated core fields implementation to expect an internal optiontype.adapter
rather thantype.adapters.prisma
.
Minor Changes
-
#5415
fe55e9289
Thanks @timleslie! - Exported the typesFieldConfigArgs
andFieldExtraArgs
. -
#5396
be60812f2
Thanks @rohan-deshpande! - Added new image field type. -
#5400
d7e8cad4f
Thanks @timleslie! - Moved theImplementation
base class from thefields-legacy
package into thefields
package.
Patch Changes
-
#5406
637ae05d3
Thanks @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 thecontains
andnot_contains
options. -
#5403
d0adec53f
Thanks @gwyneplaine! - Replaced inflection.humanize usage with custom fn to account for edge cases. -
#5452
c7aecec3c
Thanks @timleslie! - Removed the legacydefaultAccess
argument from theKeystone
constructor. -
#5392
f059f6349
Thanks @timleslie! - Removed the dependency on the legacyAutoIncrement
field implementation. -
#5442
1d85d7ff4
Thanks @timleslie! - Updated type definitions to be more consistent and correct. -
#5466
0e74d8123
Thanks @timleslie! - Improved theBaseKeystone
type to be more correct. -
#5374
89b869e8d
Thanks @timleslie! - Removed an outdated reference tomongoId
. -
#5408
58a793988
Thanks @timleslie! - Fixed an issue wherevirtual
fields could havecreate
andupdate
access 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
ecf07393a
Thanks @timleslie! - Updated core fields implementation to expect an internal optiontype.adapter
rather thantype.adapters.prisma
.
Patch Changes
-
#5415
fe55e9289
Thanks @timleslie! - Converted internal JavaScript code to TypeScript. -
#5442
1d85d7ff4
Thanks @timleslie! - Updated type definitions to be more consistent and correct. -
#5372
43a0f5429
Thanks @gwyneplaine! - Fixed heading styles to be more differentiatable from normal text. -
#5400
d7e8cad4f
Thanks @timleslie! - Moved theImplementation
base class from thefields-legacy
package into thefields
package. -
#5371
8eebf9195
Thanks @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
7498fcabb
Thanks @timleslie! - Removed the deprecatedcontext.executeGraphQL
. Identical functionality is available viacontext.graphql.raw
. -
#5478
11f5bb631
Thanks @timleslie! - Improved types forBaseKeystoneList
. -
#5404
d9e1acb30
Thanks @mitchellhamilton! - Started formatting GraphQL schema written toschema.graphql
with Prettier -
#5397
a5627304b
Thanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30. -
#5420
ecf07393a
Thanks @timleslie! - Updated core fields implementation to expect an internal optiontype.adapter
rather thantype.adapters.prisma
. -
#5463
309596591
Thanks @timleslie! - Removed the_listMeta
type from the generated GraphQL API.
Minor Changes
-
#5451
9e060fe83
Thanks @JedWatson! - With the goal of making the Lists API (i.econtext.lists.{List}
) more intuitive to use, theresolveFields
option has been deprecated in favor of two new methods:(1) You can specify a string of fields to return with the new
query
option, when you want to query for resolved field values (including querying relationships and virtual fields). This replaces theresolveFields: false
use 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: boolean
use 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
3d3fb860f
Thanks @mitchellhamilton! - Updated to Prisma 2.20 -
#5396
be60812f2
Thanks @rohan-deshpande! - Added create-image-context, logic for parsing, storing and retrieving image data in keystone core.
Patch Changes
-
#5452
c7aecec3c
Thanks @timleslie! - Removed the legacydefaultAccess
argument from theKeystone
constructor. -
#5402
588f31ddc
Thanks @mitchellhamilton! - Refactored to make testing the cli easier -
#5444
781b3e5ab
Thanks @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
49025d1ad
Thanks @timleslie! - Removed the internal_label_
field which is no longer used. -
#5445
24e62e29c
Thanks @timleslie! - Removed unused and inaccessible code from the core. -
#5428
5b2369077
Thanks @mitchellhamilton! - Fixed printing the incorrect migrations directory to the console -
#5426
202d362f3
Thanks @mitchellhamilton! - Updated CLI help message to match documentation -
#5403
d0adec53f
Thanks @gwyneplaine! - Moved core logic in keyToLabel to the @keystone-next/utils-legacy package. -
#5458
962cde7e3
Thanks @timleslie! - Set PRISMA_HIDE_UPDATE_MESSAGE=1 to silence Prisma update messages, since these are out of the hands of the developer. -
#5443
f67497c1a
Thanks @timleslie! - Removed legacy support for auxilliary lists. -
#5460
2bef01aaa
Thanks @timleslie! - Consolidated the core code from the@keystone-next/keystone-legacy
package into@keystone-next/keystone
. -
#5466
0e74d8123
Thanks @timleslie! - Improved theBaseKeystone
type to be more correct. -
#5407
76692d266
Thanks @timleslie! - Fixed a bug wherecontext.prisma
wasundefined
in theonConnect()
function. -
#5400
d7e8cad4f
Thanks @timleslie! - Moved theImplementation
base class from thefields-legacy
package into thefields
package. -
#5390
ad1776b74
Thanks @timleslie! - Silenced logging when running CI tests. -
#5428
5b2369077
Thanks @mitchellhamilton! - Fixed casing of GraphQL in message logged inkeystone-next dev
-
#5366
115b06130
Thanks @renovate! - Updated Next.js dependency to^10.1.3
. -
#5393
a73aea7d7
Thanks @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
a5627304b
Thanks @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
7498fcabb
Thanks @timleslie! - Removed the deprecatedcontext.executeGraphQL
. Identical functionality is available viacontext.graphql.raw
. -
#5397
a5627304b
Thanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Minor Changes
-
#5451
9e060fe83
Thanks @JedWatson! - With the goal of making the Lists API (i.econtext.lists.{List}
) more intuitive to use, theresolveFields
option has been deprecated in favor of two new methods:(1) You can specify a string of fields to return with the new
query
option, when you want to query for resolved field values (including querying relationships and virtual fields). This replaces theresolveFields: false
use 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: boolean
use 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
be60812f2
Thanks @rohan-deshpande! - Added types for new images functionality in keystone.
Patch Changes
-
#5478
11f5bb631
Thanks @timleslie! - Improved types forBaseKeystoneList
. -
#5442
1d85d7ff4
Thanks @timleslie! - Updated type definitions to be more consistent and correct. -
#5466
0e74d8123
Thanks @timleslie! - Improved theBaseKeystone
type 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
a5627304b
Thanks @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
a5627304b
Thanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Minor Changes
-
#5284
8ab2c9bb6
Thanks @timleslie! - Converted package to TypeScript. -
#5406
637ae05d3
Thanks @timleslie! - Added a.containsConditions()
method to include string filters just for thecontains
andnot_contains
options.
Patch Changes
-
#5406
637ae05d3
Thanks @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 thecontains
andnot_contains
options. -
#5442
1d85d7ff4
Thanks @timleslie! - Updated type definitions to be more consistent and correct. -
#5460
2bef01aaa
Thanks @timleslie! - Consolidated the core code from the@keystone-next/keystone-legacy
package into@keystone-next/keystone
. -
#5466
0e74d8123
Thanks @timleslie! - Improved theBaseKeystone
type 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
a5627304b
Thanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Patch Changes
-
#5456
49ecca74d
Thanks @JedWatson! - FixedgetItem
to not include null in the return type -
#5400
d7e8cad4f
Thanks @timleslie! - Moved theImplementation
base class from thefields-legacy
package into thefields
package. -
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
a5627304b
Thanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30. -
#5387
406acca51
Thanks @timleslie! - Replaced typeAdapterName
withProviderName
. Updated all functions which accepted anAdapterName
value namedadapterName
to accept aProviderName
argument namedprovider
.
Patch Changes
-
#5459
5106e4bbe
Thanks @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
a5627304b
Thanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Minor Changes
- #5403
d0adec53f
Thanks @gwyneplaine! - Added a humanize fn which is string transformation logic ported over from @keystone-next/keystone.
Patch Changes
-
#5409
b0db0a7a8
Thanks @timleslie! - Updated argument types ofintersection
to bereadonly
. -
#5472
5f2673704
Thanks @timleslie! - Improved types ofarrayToObject
. -
#5419
ea708559f
Thanks @timleslie! - Updated types formapKeyNames
andflatten
to 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
34e3b6309
Thanks @alexmgrant! - Fixedrenderers
prop not being respected.
@keystone-ui/website@2.0.0
Major Changes
- #5397
a5627304b
Thanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Patch Changes
-
#5366
115b06130
Thanks @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
a5627304b
Thanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Patch Changes
-
#5451
9e060fe83
Thanks @JedWatson! - With the goal of making the Lists API (i.econtext.lists.{List}
) more intuitive to use, theresolveFields
option has been deprecated in favor of two new methods:(1) You can specify a string of fields to return with the new
query
option, when you want to query for resolved field values (including querying relationships and virtual fields). This replaces theresolveFields: false
use 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: boolean
use 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
7498fcabb
Thanks @timleslie! - Removed the deprecatedcontext.executeGraphQL
. Identical functionality is available viacontext.graphql.raw
. -
#5471
838247cc0
Thanks @raveling! - Fixed typo in guide meta title. -
#5366
115b06130
Thanks @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
a5627304b
Thanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Patch Changes
-
#5388
29c9a36b7
Thanks @timleslie! - Updated example project to use the newdb.provider
config option over the deprecateddb.adapter
option. -
#5366
115b06130
Thanks @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
a5627304b
Thanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Patch Changes
-
#5388
29c9a36b7
Thanks @timleslie! - Updated example project to use the newdb.provider
config option over the deprecateddb.adapter
option. -
#5396
be60812f2
Thanks @rohan-deshpande! - Added example of image field support to basic keystone-next example. -
#5366
115b06130
Thanks @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
a5627304b
Thanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Patch Changes
-
#5451
9e060fe83
Thanks @JedWatson! - With the goal of making the Lists API (i.econtext.lists.{List}
) more intuitive to use, theresolveFields
option has been deprecated in favor of two new methods:(1) You can specify a string of fields to return with the new
query
option, when you want to query for resolved field values (including querying relationships and virtual fields). This replaces theresolveFields: false
use 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: boolean
use 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
29c9a36b7
Thanks @timleslie! - Updated example project to use the newdb.provider
config option over the deprecateddb.adapter
option. -
#5366
115b06130
Thanks @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
a5627304b
Thanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Patch Changes
-
#5451
9e060fe83
Thanks @JedWatson! - With the goal of making the Lists API (i.econtext.lists.{List}
) more intuitive to use, theresolveFields
option has been deprecated in favor of two new methods:(1) You can specify a string of fields to return with the new
query
option, when you want to query for resolved field values (including querying relationships and virtual fields). This replaces theresolveFields: false
use 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: boolean
use 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
29c9a36b7
Thanks @timleslie! - Updated example project to use the newdb.provider
config option over the deprecateddb.adapter
option. -
#5366
115b06130
Thanks @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
a5627304b
Thanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Patch Changes
-
#5388
29c9a36b7
Thanks @timleslie! - Updated example project to use the newdb.provider
config option over the deprecateddb.adapter
option. -
#5366
115b06130
Thanks @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
a5627304b
Thanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Patch Changes
-
#5388
29c9a36b7
Thanks @timleslie! - Updated example project to use the newdb.provider
config option over the deprecateddb.adapter
option. -
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
a5627304b
Thanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Patch Changes
-
#5388
29c9a36b7
Thanks @timleslie! - Updated example project to use the newdb.provider
config option over the deprecateddb.adapter
option. -
#5366
115b06130
Thanks @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
a5627304b
Thanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Patch Changes
-
#5451
9e060fe83
Thanks @JedWatson! - With the goal of making the Lists API (i.econtext.lists.{List}
) more intuitive to use, theresolveFields
option has been deprecated in favor of two new methods:(1) You can specify a string of fields to return with the new
query
option, when you want to query for resolved field values (including querying relationships and virtual fields). This replaces theresolveFields: false
use 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: boolean
use 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
d7e8cad4f
Thanks @timleslie! - Moved theImplementation
base class from thefields-legacy
package into thefields
package. -
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
a5627304b
Thanks @bladey! - Updated Node engine version to 12.x due to 10.x reaching EOL on 2021-04-30.
Patch Changes
-
#5400
d7e8cad4f
Thanks @timleslie! - Moved theImplementation
base class from thefields-legacy
package into thefields
package. -
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
a5627304b
Thanks @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
29c9a36b7
Thanks @timleslie! - Updated example project to use the newdb.provider
config option over the deprecateddb.adapter
option. -
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