chore: ensure the correct next & react versions are installed in templates and core (#7283)

Some package.json's were on older or mismatching Next.js / React
versions. This includes other Next.js packages like @next/env
This commit is contained in:
Alessio Gravili
2024-07-22 14:33:54 -04:00
committed by GitHub
parent bba7cf37f8
commit 79975f48cf
14 changed files with 31 additions and 19371 deletions

View File

@@ -84,7 +84,7 @@
"pretest": "pnpm build"
},
"dependencies": {
"@next/env": "^15.0.0-rc.0",
"@next/env": "^15.0.0-canary.53",
"@payloadcms/translations": "workspace:*",
"@swc-node/core": "1.13.1",
"@swc-node/sourcemap-support": "0.5.0",

8
pnpm-lock.yaml generated
View File

@@ -644,8 +644,8 @@ importers:
packages/payload:
dependencies:
'@next/env':
specifier: ^15.0.0-rc.0
version: 15.0.0-rc.0
specifier: ^15.0.0-canary.53
version: 15.0.0-canary.53
'@payloadcms/translations':
specifier: workspace:*
version: link:../translations
@@ -5912,10 +5912,6 @@ packages:
/@next/env@15.0.0-canary.53:
resolution: {integrity: sha512-8GBJH7RckXulT5+PpxUT0cBzmxosv8NEcouXzKfC0qsqqTvD7B8XpqHSpHzITUwQH1ToG6a/Jb8fnDrwW/nhEw==}
/@next/env@15.0.0-rc.0:
resolution: {integrity: sha512-6W0ndQvHR9sXcqcKeR/inD2UTRCs9+VkSK3lfaGmEuZs7EjwwXMO2BPYjz9oBrtfPL3xuTjtXsHKSsalYQ5l1Q==}
dev: false
/@next/eslint-plugin-next@14.2.5:
resolution: {integrity: sha512-LY3btOpPh+OTIpviNojDpUdIbHW9j0JBYBjsIp8IxtDFfYFyORvw3yNq6N231FVqQA7n7lwaf7xHbVJlA1ED7g==}
dependencies:

View File

@@ -31,7 +31,7 @@
"@types/react": "npm:types-react@19.0.0-rc.0",
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0",
"eslint": "^8",
"eslint-config-next": "15.0.0-rc.0",
"eslint-config-next": "15.0.0-canary.53",
"typescript": "5.5.3"
},
"engines": {

View File

@@ -20,7 +20,7 @@
"@payloadcms/richtext-lexical": "beta",
"cross-env": "^7.0.3",
"graphql": "^16.8.1",
"next": "15.0.0-rc.0",
"next": "15.0.0-canary.53",
"payload": "beta",
"react": "^19.0.0-rc-6230622a1a-20240610",
"react-dom": "^19.0.0-rc-6230622a1a-20240610",
@@ -30,10 +30,9 @@
"@types/node": "^20.12.12",
"@types/react": "npm:types-react@19.0.0-rc.0",
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0",
"dotenv": "^16.4.5",
"eslint": "^8",
"eslint-config-next": "15.0.0-rc.0",
"typescript": "5.5.2"
"eslint-config-next": "15.0.0-canary.53",
"typescript": "5.5.3"
},
"engines": {
"node": "^18.20.2 || >=20.9.0"

View File

@@ -31,7 +31,7 @@
"@types/react": "npm:types-react@19.0.0-rc.0",
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0",
"eslint": "^8",
"eslint-config-next": "15.0.0-rc.0",
"eslint-config-next": "15.0.0-canary.53",
"typescript": "5.5.3"
},
"engines": {

View File

@@ -18,24 +18,34 @@
"@payloadcms/storage-vercel-blob": "beta",
"@vercel/blob": "^0.22.3",
"cross-env": "^7.0.3",
"next": "15.0.0-rc.0",
"next": "15.0.0-canary.53",
"payload": "beta",
"react": "19.0.0-rc-38e3b23483-20240529",
"react-dom": "19.0.0-rc-38e3b23483-20240529",
"react": "19.0.0-rc-6230622a1a-20240610",
"react-dom": "19.0.0-rc-6230622a1a-20240610",
"sharp": "0.32.6"
},
"devDependencies": {
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"@types/react": "npm:types-react@19.0.0-rc.0",
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0",
"autoprefixer": "^10.0.1",
"eslint": "^8",
"eslint-config-next": "14.1.4",
"eslint-config-next": "15.0.0-canary.53",
"postcss": "^8",
"tailwindcss": "^3.3.0",
"typescript": "^5"
"typescript": "5.5.3"
},
"engines": {
"node": "^18.20.2 || >=20.9.0"
},
"pnpm": {
"overrides": {
"@types/react": "npm:types-react@19.0.0-rc.0",
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0"
}
},
"overrides": {
"@types/react": "npm:types-react@19.0.0-rc.0",
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0"
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,4 +1,4 @@
import type { CollectionConfig } from 'payload/types'
import type { CollectionConfig } from 'payload'
export const Media: CollectionConfig = {
slug: 'media',

View File

@@ -1,4 +1,4 @@
import type { CollectionConfig } from 'payload/types'
import type { CollectionConfig } from 'payload'
export const Users: CollectionConfig = {
slug: 'users',

View File

@@ -2,7 +2,7 @@ import { postgresAdapter } from '@payloadcms/db-postgres'
import { lexicalEditor } from '@payloadcms/richtext-lexical'
import { vercelBlobStorage } from '@payloadcms/storage-vercel-blob'
import path from 'path'
import { buildConfig } from 'payload/config'
import { buildConfig } from 'payload'
import sharp from 'sharp'
import { fileURLToPath } from 'url'

View File

@@ -31,7 +31,7 @@
"@types/react": "npm:types-react@19.0.0-rc.0",
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0",
"eslint": "^8",
"eslint-config-next": "15.0.0-rc.0",
"eslint-config-next": "15.0.0-canary.53",
"typescript": "5.5.3"
},
"engines": {

File diff suppressed because it is too large Load Diff

View File

@@ -31,7 +31,7 @@
"@types/react": "npm:types-react@19.0.0-rc.0",
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0",
"eslint": "^8",
"eslint-config-next": "15.0.0-rc.0",
"eslint-config-next": "15.0.0-canary.53",
"typescript": "5.5.3"
},
"engines": {

View File

@@ -31,7 +31,7 @@
"@types/react": "npm:types-react@19.0.0-rc.0",
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0",
"eslint": "^8",
"eslint-config-next": "15.0.0-rc.0",
"eslint-config-next": "15.0.0-canary.53",
"typescript": "5.5.3"
},
"engines": {