Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/bump-next.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@keystone-6/core": major
---

Upgrades Next major version to 15
5 changes: 5 additions & 0 deletions .changeset/bump-react.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@keystone-6/core": major
---

Upgrades React major version to 19
6 changes: 4 additions & 2 deletions docs/app/(site)/blog/[post]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export type BlogPost = NonNullable<
>

export default async function Page ({ params }) {
const post = await reader.collections.posts.read(params!.post, {
const _params = await params
const post = await reader.collections.posts.read(_params!.post, {
resolveLinkedFiles: true,
})

Expand All @@ -40,7 +41,8 @@ export default async function Page ({ params }) {

// Dynamic SEO page metadata
export async function generateMetadata ({ params }): Promise<Metadata> {
const post = await reader.collections.posts.read(params!.post)
const _params = await params
const post = await reader.collections.posts.read(_params!.post)

const title = post?.title ? `${post.title} - Keystone 6 Blog` : 'Keystone 6 Blog'

Expand Down
8 changes: 5 additions & 3 deletions docs/app/(site)/docs/[...rest]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export type Document = NonNullable<
>

export default async function DocPage ({ params }) {
const doc = await reader.collections.docs.read(params!.rest.join('/'), {
const _params = await params
const doc = await reader.collections.docs.read(_params!.rest.join('/'), {
resolveLinkedFiles: true,
})
if (!doc) return notFound()
Expand All @@ -35,15 +36,16 @@ export default async function DocPage ({ params }) {
]

return (
<DocsLayout headings={headings} editPath={`docs/${(params?.rest as string[]).join('/')}.md`}>
<DocsLayout headings={headings} editPath={`docs/${(_params?.rest as string[]).join('/')}.md`}>
<PageClient document={JSON.parse(JSON.stringify(transformedDoc))} />
</DocsLayout>
)
}

// Dynamic SEO page metadata
export async function generateMetadata ({ params }) {
const doc = await reader.collections.docs.read(params!.rest.join('/'))
const _params = await params
const doc = await reader.collections.docs.read(_params!.rest.join('/'))
return {
title: doc?.title ? `${doc.title} - Keystone 6 Documentation` : 'Keystone 6 Documentation',
description: doc?.description,
Expand Down
2 changes: 1 addition & 1 deletion docs/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ function LinkItem ({
)
}

function useClickOutside (ref: RefObject<HTMLElement>, cb: () => void) {
function useClickOutside (ref: RefObject<HTMLElement | null>, cb: () => void) {
useEffect(() => {
/**
* Alert if clicked on outside of element
Expand Down
2 changes: 1 addition & 1 deletion docs/components/Markdoc.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client'

import React, { type ElementType, type ReactNode } from 'react'
import React, { type ElementType, type ReactNode, type JSX } from 'react'
import type { RenderableTreeNodes, Scalar, RenderableTreeNode, Tag } from '@markdoc/markdoc'
import { isTag } from '../markdoc/isTag'
import { Code, InlineCode } from './primitives/Code'
Expand Down
2 changes: 1 addition & 1 deletion docs/components/content/CustomerCard.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @jsxImportSource @emotion/react */

import type { HTMLAttributes } from 'react'
import type { HTMLAttributes, JSX } from 'react'

import { Type } from '../primitives/Type'
import { type IconProps } from '../icons/util'
Expand Down
22 changes: 11 additions & 11 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
"dependencies": {
"@babel/runtime": "^7.24.7",
"@codemod/core": "^2.0.1",
"@emotion/cache": "11.13.1",
"@emotion/cache": "11.14.0",
"@emotion/css": "^11.7.1",
"@emotion/react": "^11.7.1",
"@emotion/react": "^11.14.0",
"@emotion/server": "11.11.0",
"@emotion/weak-memoize": "^0.4.0",
"@keystar/ui": "^0.7.6",
"@keystatic/core": "^0.5.24",
"@keystatic/next": "^5.0.1",
"@keystar/ui": "^0.7.16",
"@keystatic/core": "^0.5.44",
"@keystatic/next": "^5.0.3",
"@keystone-6/fields-document": "workspace:^",
"@keystone-ui/core": "workspace:^",
"@keystone-ui/icons": "workspace:^",
Expand All @@ -39,12 +39,12 @@
"globby": "^14.0.0",
"js-yaml": "^4.1.0",
"lodash.debounce": "^4.0.8",
"next": "^14.2.0",
"next": "^15.5.15",
"next-compose-plugins": "^2.2.1",
"prism-react-renderer": "^2.0.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-focus-lock": "^2.7.1",
"react": "^19.2.5",
"react-dom": "^19.2.5",
"react-focus-lock": "^2.13.2",
"rss": "^1.2.2",
"tsx": "^4.0.0"
},
Expand All @@ -54,8 +54,8 @@
"@types/gtag.js": "^0.0.20",
"@types/js-yaml": "^4.0.5",
"@types/lodash.debounce": "^4.0.6",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@types/rss": "^0.0.32",
"next-sitemap": "^4.0.0",
"typescript": "^5.5.0"
Expand Down
14 changes: 11 additions & 3 deletions docs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,16 @@
"name": "next"
}
],
"strictNullChecks": true
"strictNullChecks": true,
"target": "ES2017"
},
"include": ["next-env.d.ts", ".next/types/**/*.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
"include": [
"next-env.d.ts",
".next/types/**/*.ts",
"**/*.ts",
"**/*.tsx"
],
"exclude": [
"node_modules"
]
}
6 changes: 3 additions & 3 deletions examples/custom-admin-ui-logo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"@keystone-6/core": "^6.5.2",
"@keystone-ui/core": "^5.0.2",
"@prisma/client": "5.19.0",
"next": "^14.2.0",
"react": "^18.3.1",
"react-dom": "^18.3.1"
"next": "^15.5.15",
"react": "^19.2.5",
"react-dom": "^19.2.5"
},
"devDependencies": {
"prisma": "5.19.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-admin-ui-navigation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"@keystone-6/core": "^6.5.2",
"@prisma/client": "5.19.0",
"react": "^18.3.1"
"react": "^19.2.5"
},
"devDependencies": {
"prisma": "5.19.0",
Expand Down
6 changes: 3 additions & 3 deletions examples/custom-admin-ui-pages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"@keystone-6/core": "^6.5.2",
"@keystone-ui/core": "^5.0.2",
"@prisma/client": "5.19.0",
"next": "^14.2.0",
"react": "^18.3.1",
"react-dom": "^18.3.1"
"next": "^15.5.15",
"react": "^19.2.5",
"react-dom": "^19.2.5"
},
"devDependencies": {
"prisma": "5.19.0",
Expand Down
6 changes: 3 additions & 3 deletions examples/custom-field-view/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
"@keystone-ui/fields": "^7.2.0",
"@keystone-ui/icons": "^6.0.2",
"@prisma/client": "5.19.0",
"next": "^14.2.0",
"react": "^18.3.1",
"react-dom": "^18.3.1"
"next": "^15.5.15",
"react": "^19.2.5",
"react-dom": "^19.2.5"
},
"devDependencies": {
"prisma": "5.19.0",
Expand Down
6 changes: 3 additions & 3 deletions examples/custom-output-paths/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"dependencies": {
"@keystone-6/core": "^6.5.2",
"@prisma/client": "5.19.0",
"next": "^14.2.0",
"react": "^18.3.1",
"react-dom": "^18.3.1"
"next": "^15.5.15",
"react": "^19.2.5",
"react-dom": "^19.2.5"
},
"devDependencies": {
"prisma": "5.19.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-session-next-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"@keystone-6/core": "^6.5.2",
"@prisma/client": "5.19.0",
"next-auth": "^4.22.1"
"next-auth": "^4.24.11"
},
"devDependencies": {
"prisma": "5.19.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@keystone-ui/icons": "^6.0.1",
"@keystone-ui/tooltip": "^6.0.1",
"@prisma/client": "5.19.0",
"react": "^18.3.1",
"react": "^19.2.5",
"typescript": "^5.5.0"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
"@keystone-6/document-renderer": "^1.1.2",
"@preconstruct/next": "^4.0.0",
"graphql": "^16.8.1",
"next": "^14.2.0",
"react": "^18.3.1",
"react-dom": "^18.3.1"
"next": "^15.5.15",
"react": "^19.2.5",
"react-dom": "^19.2.5"
},
"devDependencies": {
"@types/node": "^20.14.10",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"typescript": "^5.5.0"
}
}
6 changes: 3 additions & 3 deletions examples/document-field/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
"@keystone-6/fields-document": "^9.1.1",
"@preconstruct/next": "^4.0.0",
"@prisma/client": "5.19.0",
"next": "^14.2.0",
"react": "^18.3.1",
"react-dom": "^18.3.1"
"next": "^15.5.15",
"react": "^19.2.5",
"react-dom": "^19.2.5"
},
"devDependencies": {
"prisma": "5.19.0",
Expand Down
4 changes: 2 additions & 2 deletions examples/extend-graphql-subscriptions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"postinstall": "keystone postinstall"
},
"dependencies": {
"@apollo/client": "^3.7.0",
"@apollo/client": "^3.12.2",
"@emotion/css": "^11.7.1",
"@graphql-tools/schema": "^9.0.0",
"@keystone-6/core": "^6.5.2",
Expand All @@ -21,7 +21,7 @@
"graphql": "^16.8.1",
"graphql-subscriptions": "^2.0.0",
"graphql-ws": "^5.9.1",
"react": "^18.3.1",
"react": "^19.2.5",
"ws": "^8.8.0"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions examples/framework-astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
},
"devDependencies": {
"@types/node": "^20.14.10",
"@types/react-dom": "^18.3.0",
"@types/react-dom": "^19.2.3",
"prisma": "5.19.0",
"react": "^18.3.1",
"react": "^19.2.5",
"typescript": "^5.5.0"
}
}
5 changes: 1 addition & 4 deletions examples/framework-nextjs-app-directory/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
import withPreconstruct from '@preconstruct/next'

export default withPreconstruct({
experimental: {
// without this, 'Error: Expected Upload to be a GraphQL nullable type.'
serverComponentsExternalPackages: ['graphql'],
},
serverExternalPackages: ['graphql'],
eslint: {
ignoreDuringBuilds: true,
},
Expand Down
10 changes: 5 additions & 5 deletions examples/framework-nextjs-app-directory/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
"graphql": "^16.8.1",
"graphql-request": "^5.0.0",
"graphql-yoga": "^3.1.0",
"next": "^14.2.0",
"react": "^18.3.1",
"react-dom": "^18.3.1"
"next": "^15.5.15",
"react": "^19.2.5",
"react-dom": "^19.2.5"
},
"devDependencies": {
"@types/node": "^20.14.10",
"react": "^18.3.1",
"@types/react-dom": "^18.3.0",
"react": "^19.2.5",
"@types/react-dom": "^19.2.3",
"prisma": "5.19.0",
"typescript": "^5.5.0"
}
Expand Down
10 changes: 5 additions & 5 deletions examples/framework-nextjs-pages-directory/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
"graphql": "^16.8.1",
"graphql-request": "^5.0.0",
"graphql-yoga": "^3.1.0",
"next": "^14.2.0",
"react": "^18.3.1",
"react-dom": "^18.3.1"
"next": "^15.5.15",
"react": "^19.2.5",
"react-dom": "^19.2.5"
},
"devDependencies": {
"@types/node": "^20.14.10",
"react": "^18.3.1",
"@types/react-dom": "^18.3.0",
"react": "^19.2.5",
"@types/react-dom": "^19.2.3",
"prisma": "5.19.0",
"typescript": "^5.5.0"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
"@keystone-6/document-renderer": "^1.1.2",
"@preconstruct/next": "^4.0.0",
"graphql": "^16.8.1",
"next": "^14.2.0",
"react": "^18.3.1",
"react-dom": "^18.3.1"
"next": "^15.5.15",
"react": "^19.2.5",
"react-dom": "^19.2.5"
},
"devDependencies": {
"@types/node": "^20.14.10",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"typescript": "^5.5.0"
}
}
8 changes: 4 additions & 4 deletions examples/framework-remix/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
"@remix-run/react": "^1.18.0",
"@remix-run/serve": "^1.18.0",
"isbot": "^5.1.13",
"react": "^18.3.1",
"react-dom": "^18.3.1"
"react": "^19.2.5",
"react-dom": "^19.2.5"
},
"devDependencies": {
"@remix-run/dev": "^1.18.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"prisma": "5.19.0",
"typescript": "^5.5.0"
}
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
"@types/jest": "^29.0.0",
"@types/node": "^22.0.0",
"@types/node-fetch": "^2.5.12",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"esbuild": "^0.24.0",
"esbuild-jest": "^0.5.0",
"eslint": "^9.2.0",
Expand Down
Loading