The following packages have been updated
@keystone-6/auth@11.0.0
@keystone-6/cloudinary@11.0.0
@keystone-6/core@9.0.0
@keystone-6/fields-document@12.0.0
@keystone-6/fields-media-multipart@1.0.0
create-keystone-app@12.0.0
Read the upgrade guide on the docs site.
Breaking Changes
-
[core]Uniquewhereinputs must now have at least one key and their values cannot benull, including in relationships. These previously selected an arbitrary item, or returnednullfromfindOnefor{}. Relationships in uniquewhereinputs now also resolve the related list's uniquewhere, so its id parsing and field resolvers apply. (#10103) @emmatown -
[core]Removescontext.queryfromKeystoneContext. Usecontext.graphql.runwith a complete GraphQL operation to select GraphQL fields, orcontext.dbto work with database items. (#10116) @emmatown -
[core]Appliesaccess.{operation,filter}.queryto relationships in user-supplied filters. Relationship checks useoneforfindOneand mutation lookups,manyforfindMany, andcountfor counts. (#10058) @emmatown -
[auth, core]Replaces thesessionKeystone config option withgetSession.context.sessionStrategyhas been removed, and theSessionStrategytype is no longer exported from@keystone-6/core/types. (#10029) @emmatown -
[auth]createAuthnow requiressessionStrategyandgetAuthenticatedItemIdoptions.createAuthno longer loads the authenticated item into the session, so thesessionDataoption has been removed and sessions are no longer shaped as{ itemId, data }. ProvidegetSessionin your Keystone config and return whatever session your application needs. (#10029) @emmatown -
[auth, core]Moves the@keystone-6/core/sessionexports to@keystone-6/auth. ThestatelessSessionsstrategy has been replaced withjwtSessionswhich uses HS256 JWTs and thesubclaim for the authenticated item ID. TheSessionStoreandSessionStoreFunctiontypes are now exported from@keystone-6/auth. (#10029) @emmatownUnlike
statelessSessions, which encrypted the session,jwtSessionsonly signs it: the session payload can be read by anyone holding the cookie, so only store data that is safe for the client to see, or usestoredSessions. If you need encrypted sessions, you can use a different session implementation. -
[auth]Renames password authentication mutation to alwaysauthenticateWithPasswordwithidentityandpasswordarguments. The result types are nowAuthenticationWithPasswordResult,AuthenticationWithPasswordSuccess, andAuthenticationWithPasswordFailure. (#10029) @emmatown -
[create-keystone-app]Updates the starter to usegetSessionwith thejwtSessionsstrategy from@keystone-6/auth(#10029) @emmatown -
[auth]RenamessecretFieldoncreateAuthtopasswordField(#10029) @emmatown -
[core]Fixes default imports of external ES modules returning the module namespace rather than the default export when bundling configurations that use"type": "module"(#10100) @emmatown -
[auth, core]Movespasswordfield from@keystone-6/core/fieldsto@keystone-6/auth. Removesvalidation.rejectCommon, use a validate hook instead. (#10070) @emmatown -
[core]Replaces Node.js HTTPcontext.reqandcontext.resonKeystoneContextwith WHATWGHeaders, and replacescontext.withRequest(req, res)withcontext.withHeaders(req, res?).context.reqnow only carries request headers: the client IP address, method, URL and body of the request are no longer available on the context. If hooks or access control need any of these, add them as request headers in your own middleware inserver.extendExpressAppbefore Keystone's GraphQL handler. (#10028) @emmatownHeaders set on
context.resare copied to the response by Keystone's built-in server when the GraphQL response is sent. Custom integrations usingcontext.withHeadersmust copy theresheaders to their own response, usingres.getSetCookie()to preserve separateSet-Cookievalues. -
[cloudinary, core, fields-media-multipart]Movesimageandfilefields to new@keystone-6/fields-media-multipartpackage (#10069) @emmatown -
[core]Removes automatic multipart upload middleware and theserver.maxFileSizeoption. (#10069) @emmatownApplications using image, file, or Cloudinary fields must install
graphql-upload@17.1and register its middleware on the GraphQL endpoint inserver.extendExpressApp. If you setgraphql.path, use that same path for the middleware.import graphqlUploadExpress from 'graphql-upload/graphqlUploadExpress.mjs' // In your Keystone config: server: { extendExpressApp(app) { app.use('/api/graphql', graphqlUploadExpress({ maxFileSize: 10 * 1024 * 1024, maxFiles: 10 })) }, }
-
[cloudinary, core]Removesg.Upload. Custom fields usingg.Uploadmust now import the scalar fromgraphql-upload/GraphQLUpload.mjs(#10069) @emmatown -
[cloudinary, fields-media-multipart]Updates thegraphql-uploadpeer dependency to^17.1.0. (#10069) @emmatown -
[core]Adds a requiredrouterprop toKeystoneProviderin@keystone-6/core/admin-ui/contextto support custom router integrations. NoteKeystoneProvidershould generally not be used externally, this does not affect normal Keystone usages. (#10062) @emmatown -
[core]Replaces numeric Admin UI field view indexes with stable SHA-256 hashes of view import paths (#10065) @emmatown
Bug Fixes
[core]Fixesconnect,disconnectandsetin relationship inputs failing with a Prisma error when the uniquewhereused a 1-to-1 relationship (#10118) @emmatown[core]Fixes repeated form submissions in create view creating multiple items (#10090) @emmatown[core]Fixes negated equality filters on nullablebytesfields so they include items with null values. (#10122) @emmatown[core]FixesDateTimeandCalendarDayGraphQL scalars accepting impossible dates like2021-02-30, which were silently saved as a different date (e.g.2021-03-02) (#10099) @AnkitJhadev[core]Validates and parsescursorarguments like uniquewhereinputs so e.g. cursors with an autoincrement ID work properly. Relationship fields in cursors are now rejected with a Keystone input error instead of a Prisma error. (#10119) @emmatown
🚨 Security Updates
We have identified and fixed 1 security vulnerability
GHSA-vpcf-c6h5-72rp- Relationship filters could match related items that the caller cannot query
🌱 New Contributors
Thanks to the following developers for making their first contributions to the project!
👀 Review
See 2026-11-03...2026-11-26 to compare with our previous release.