Skip to content

26 November 2026

Latest

Choose a tag to compare

@emmatown emmatown released this 25 Nov 23:22
c34ec68

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] Unique where inputs must now have at least one key and their values cannot be null, including in relationships. These previously selected an arbitrary item, or returned null from findOne for {}. Relationships in unique where inputs now also resolve the related list's unique where, so its id parsing and field resolvers apply. (#10103) @emmatown

  • [core] Removes context.query from KeystoneContext. Use context.graphql.run with a complete GraphQL operation to select GraphQL fields, or context.db to work with database items. (#10116) @emmatown

  • [core] Applies access.{operation,filter}.query to relationships in user-supplied filters. Relationship checks use one for findOne and mutation lookups, many for findMany, and count for counts. (#10058) @emmatown

  • [auth, core] Replaces the session Keystone config option with getSession. context.sessionStrategy has been removed, and the SessionStrategy type is no longer exported from @keystone-6/core/types. (#10029) @emmatown

  • [auth] createAuth now requires sessionStrategy and getAuthenticatedItemId options. createAuth no longer loads the authenticated item into the session, so the sessionData option has been removed and sessions are no longer shaped as { itemId, data }. Provide getSession in your Keystone config and return whatever session your application needs. (#10029) @emmatown

  • [auth, core] Moves the @keystone-6/core/session exports to @keystone-6/auth. The statelessSessions strategy has been replaced with jwtSessions which uses HS256 JWTs and the sub claim for the authenticated item ID. The SessionStore and SessionStoreFunction types are now exported from @keystone-6/auth. (#10029) @emmatown

    Unlike statelessSessions, which encrypted the session, jwtSessions only 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 use storedSessions. If you need encrypted sessions, you can use a different session implementation.

  • [auth] Renames password authentication mutation to always authenticateWithPassword with identity and password arguments. The result types are now AuthenticationWithPasswordResult, AuthenticationWithPasswordSuccess, and AuthenticationWithPasswordFailure. (#10029) @emmatown

  • [create-keystone-app] Updates the starter to use getSession with the jwtSessions strategy from @keystone-6/auth (#10029) @emmatown

  • [auth] Renames secretField on createAuth to passwordField (#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] Moves password field from @keystone-6/core/fields to @keystone-6/auth. Removes validation.rejectCommon, use a validate hook instead. (#10070) @emmatown

  • [core] Replaces Node.js HTTP context.req and context.res on KeystoneContext with WHATWG Headers, and replaces context.withRequest(req, res) with context.withHeaders(req, res?). context.req now 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 in server.extendExpressApp before Keystone's GraphQL handler. (#10028) @emmatown

    Headers set on context.res are copied to the response by Keystone's built-in server when the GraphQL response is sent. Custom integrations using context.withHeaders must copy the res headers to their own response, using res.getSetCookie() to preserve separate Set-Cookie values.

  • [cloudinary, core, fields-media-multipart] Moves image and file fields to new @keystone-6/fields-media-multipart package (#10069) @emmatown

  • [core] Removes automatic multipart upload middleware and the server.maxFileSize option. (#10069) @emmatown

    Applications using image, file, or Cloudinary fields must install graphql-upload@17.1 and register its middleware on the GraphQL endpoint in server.extendExpressApp. If you set graphql.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] Removes g.Upload. Custom fields using g.Upload must now import the scalar from graphql-upload/GraphQLUpload.mjs (#10069) @emmatown

  • [cloudinary, fields-media-multipart] Updates the graphql-upload peer dependency to ^17.1.0. (#10069) @emmatown

  • [core] Adds a required router prop to KeystoneProvider in @keystone-6/core/admin-ui/context to support custom router integrations. Note KeystoneProvider should 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] Fixes connect, disconnect and set in relationship inputs failing with a Prisma error when the unique where used 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 nullable bytes fields so they include items with null values. (#10122) @emmatown
  • [core] Fixes DateTime and CalendarDay GraphQL scalars accepting impossible dates like 2021-02-30, which were silently saved as a different date (e.g. 2021-03-02) (#10099) @AnkitJhadev
  • [core] Validates and parses cursor arguments like unique where inputs 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.