Skip to content

Commit

Permalink
chore(deps): upgrade various dependencies (payloadcms#10657)
Browse files Browse the repository at this point in the history
Bumps the following dependencies:
- next
- typescript
- http-status
- nodemailer
- Payload & next versions in all templates
- Monorepo only: playwright and dotenv

Removes unused dependencies:
- ts-jest
- jest-environment-jsdom
- resend (we don't use their sdk, we only use their rest API)
  • Loading branch information
AlessioGr authored Jan 18, 2025
1 parent 00cc10c commit b6e9c3b
Show file tree
Hide file tree
Showing 93 changed files with 9,880 additions and 18,079 deletions.
1 change: 0 additions & 1 deletion .github/actions/release-commenter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"eslint": "^7.32.0",
"jest": "^29.7.0",
"prettier": "^3.3.3",
"ts-jest": "^26.5.6",
"typescript": "^4.9.5"
}
}
3,568 changes: 1,195 additions & 2,373 deletions .github/actions/release-commenter/pnpm-lock.yaml

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion .github/actions/triage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"eslint": "^7.32.0",
"jest": "^29.7.0",
"prettier": "^3.3.3",
"ts-jest": "^26.5.6",
"typescript": "^4.9.5"
}
}
3,568 changes: 1,195 additions & 2,373 deletions .github/actions/triage/pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/custom-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"cross-env": "^7.0.3",
"express": "^4.21.1",
"graphql": "^16.8.1",
"next": "15.0.4",
"next": "15.1.5",
"payload": "latest",
"react": "19.0.0",
"react-dom": "19.0.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/localization/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"postcss": "^8.4.38",
"prettier": "^3.4.2",
"tailwindcss": "^3.4.3",
"typescript": "5.7.2"
"typescript": "5.7.3"
},
"engines": {
"node": "^18.20.2 || >=20.9.0"
Expand Down
6 changes: 3 additions & 3 deletions examples/remix/payload/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@payloadcms/richtext-lexical": "latest",
"cross-env": "^7.0.3",
"graphql": "^16.8.1",
"next": "15.1.0",
"next": "15.1.5",
"payload": "latest",
"react": "19.0.0",
"react-dom": "19.0.0",
Expand All @@ -39,9 +39,9 @@
"@types/react": "19.0.1",
"@types/react-dom": "19.0.1",
"eslint": "^9.16.0",
"eslint-config-next": "15.1.0",
"eslint-config-next": "15.1.5",
"prettier": "^3.4.2",
"typescript": "5.7.2"
"typescript": "5.7.3"
},
"engines": {
"node": "^18.20.2 || >=20.9.0"
Expand Down
19 changes: 7 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@
"devDependencies": {
"@jest/globals": "29.7.0",
"@libsql/client": "0.14.0",
"@next/bundle-analyzer": "15.0.3",
"@next/bundle-analyzer": "15.1.5",
"@payloadcms/db-postgres": "workspace:*",
"@payloadcms/eslint-config": "workspace:*",
"@payloadcms/eslint-plugin": "workspace:*",
"@payloadcms/live-preview-react": "workspace:*",
"@playwright/test": "1.48.1",
"@playwright/test": "1.49.1",
"@sentry/nextjs": "^8.33.1",
"@sentry/node": "^8.33.1",
"@swc-node/register": "1.10.9",
Expand All @@ -138,7 +138,7 @@
"copyfiles": "2.4.1",
"create-payload-app": "workspace:*",
"cross-env": "7.0.3",
"dotenv": "16.4.5",
"dotenv": "16.4.7",
"drizzle-kit": "0.28.0",
"drizzle-orm": "0.36.1",
"escape-html": "^1.0.3",
Expand All @@ -148,15 +148,14 @@
"globby": "11.1.0",
"husky": "9.0.11",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"lint-staged": "15.2.7",
"minimist": "1.2.8",
"mongodb-memory-server": "^10",
"next": "15.1.3",
"next": "15.1.5",
"open": "^10.1.0",
"p-limit": "^5.0.0",
"playwright": "1.48.1",
"playwright-core": "1.48.1",
"playwright": "1.49.1",
"playwright-core": "1.49.1",
"prettier": "3.3.3",
"prompts": "2.4.2",
"react": "19.0.0",
Expand All @@ -172,7 +171,7 @@
"tstyche": "^3.1.1",
"tsx": "4.19.2",
"turbo": "^2.3.3",
"typescript": "5.7.2"
"typescript": "5.7.3"
},
"peerDependencies": {
"react": "^19.0.0 || ^19.0.0-rc-65a56d0e-20241020",
Expand All @@ -184,10 +183,6 @@
"pnpm": "^9.7.0"
},
"pnpm": {
"allowedDeprecatedVersions": {
"abab": "2",
"domexception": "4"
},
"overrides": {
"copyfiles": "$copyfiles",
"cross-env": "$cross-env",
Expand Down
1 change: 0 additions & 1 deletion packages/db-mongodb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
"prepublishOnly": "pnpm clean && pnpm turbo build"
},
"dependencies": {
"http-status": "1.6.2",
"mongoose": "8.9.5",
"mongoose-aggregate-paginate-v2": "1.1.2",
"mongoose-paginate-v2": "1.8.5",
Expand Down
4 changes: 2 additions & 2 deletions packages/email-nodemailer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@
"prepublishOnly": "pnpm clean && pnpm turbo build"
},
"dependencies": {
"nodemailer": "6.9.10"
"nodemailer": "6.9.16"
},
"devDependencies": {
"@types/nodemailer": "6.4.14",
"@types/nodemailer": "6.4.17",
"payload": "workspace:*"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"eslint-plugin-react-hooks": "5.0.0",
"eslint-plugin-regexp": "2.6.0",
"globals": "15.12.0",
"typescript": "5.7.2",
"typescript": "5.7.3",
"typescript-eslint": "8.14.0"
}
}
2 changes: 1 addition & 1 deletion packages/eslint-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"eslint-plugin-react-hooks": "5.0.0",
"eslint-plugin-regexp": "2.6.0",
"globals": "15.12.0",
"typescript": "5.7.2",
"typescript": "5.7.3",
"typescript-eslint": "8.14.0"
}
}
4 changes: 2 additions & 2 deletions packages/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"file-type": "19.3.0",
"graphql-http": "^1.22.0",
"graphql-playground-html": "1.6.30",
"http-status": "1.6.2",
"http-status": "2.1.0",
"path-to-regexp": "6.3.0",
"qs-esm": "7.0.2",
"react-diff-viewer-continued": "3.2.6",
Expand All @@ -104,7 +104,7 @@
"@babel/preset-env": "7.26.0",
"@babel/preset-react": "7.25.9",
"@babel/preset-typescript": "7.26.0",
"@next/eslint-plugin-next": "15.0.4",
"@next/eslint-plugin-next": "15.1.5",
"@payloadcms/eslint-config": "workspace:*",
"@types/busboy": "1.5.4",
"@types/react": "19.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/next/src/routes/graphql/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { APIError, Payload, PayloadRequest, SanitizedConfig } from 'payload

import { configToSchema } from '@payloadcms/graphql'
import { createHandler } from 'graphql-http/lib/use/fetch'
import httpStatus from 'http-status'
import { status as httpStatus } from 'http-status'
import {
addDataAndFileToRequest,
addLocalesToRequestFromData,
Expand Down
8 changes: 3 additions & 5 deletions packages/payload-cloud/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,12 @@
"@aws-sdk/lib-storage": "^3.614.0",
"@payloadcms/email-nodemailer": "workspace:*",
"amazon-cognito-identity-js": "^6.1.2",
"nodemailer": "6.9.10",
"resend": "^0.17.2"
"nodemailer": "6.9.16"
},
"devDependencies": {
"@types/jest": "29.5.12",
"@types/nodemailer": "6.4.14",
"payload": "workspace:*",
"ts-jest": "^29.1.0"
"@types/nodemailer": "6.4.17",
"payload": "workspace:*"
},
"peerDependencies": {
"payload": "workspace:*"
Expand Down
8 changes: 4 additions & 4 deletions packages/payload/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,20 +85,20 @@
},
"dependencies": {
"@monaco-editor/react": "4.6.0",
"@next/env": "^15.0.0",
"@next/env": "^15.1.5",
"@payloadcms/translations": "workspace:*",
"@types/busboy": "1.5.4",
"ajv": "8.17.1",
"bson-objectid": "2.0.4",
"busboy": "^1.6.0",
"ci-info": "^4.0.0",
"ci-info": "^4.1.0",
"console-table-printer": "2.12.1",
"croner": "9.0.0",
"dataloader": "2.2.3",
"deepmerge": "4.3.1",
"file-type": "19.3.0",
"get-tsconfig": "4.8.1",
"http-status": "1.6.2",
"http-status": "2.1.0",
"image-size": "1.2.0",
"jose": "5.9.6",
"json-schema-to-typescript": "15.0.3",
Expand All @@ -120,7 +120,7 @@
"@payloadcms/eslint-config": "workspace:*",
"@types/json-schema": "7.0.15",
"@types/minimist": "1.2.2",
"@types/nodemailer": "6.4.14",
"@types/nodemailer": "6.4.17",
"@types/pluralize": "0.0.33",
"@types/uuid": "10.0.0",
"@types/ws": "^8.5.10",
Expand Down
2 changes: 1 addition & 1 deletion packages/payload/src/auth/endpoints/access.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import httpStatus from 'http-status'
import { status as httpStatus } from 'http-status'

import type { PayloadHandler } from '../../config/types.js'

Expand Down
2 changes: 1 addition & 1 deletion packages/payload/src/auth/endpoints/forgotPassword.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import httpStatus from 'http-status'
import { status as httpStatus } from 'http-status'

import type { PayloadHandler } from '../../config/types.js'

Expand Down
2 changes: 1 addition & 1 deletion packages/payload/src/auth/endpoints/login.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import httpStatus from 'http-status'
import { status as httpStatus } from 'http-status'

import type { PayloadHandler } from '../../config/types.js'

Expand Down
2 changes: 1 addition & 1 deletion packages/payload/src/auth/endpoints/logout.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import httpStatus from 'http-status'
import { status as httpStatus } from 'http-status'

import type { PayloadHandler } from '../../config/types.js'

Expand Down
2 changes: 1 addition & 1 deletion packages/payload/src/auth/endpoints/me.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import httpStatus from 'http-status'
import { status as httpStatus } from 'http-status'

import type { PayloadHandler } from '../../config/types.js'

Expand Down
2 changes: 1 addition & 1 deletion packages/payload/src/auth/endpoints/refresh.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import httpStatus from 'http-status'
import { status as httpStatus } from 'http-status'

import type { PayloadHandler } from '../../config/types.js'

Expand Down
2 changes: 1 addition & 1 deletion packages/payload/src/auth/endpoints/registerFirstUser.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import httpStatus from 'http-status'
import { status as httpStatus } from 'http-status'

import type { PayloadHandler } from '../../config/types.js'

Expand Down
2 changes: 1 addition & 1 deletion packages/payload/src/auth/endpoints/resetPassword.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import httpStatus from 'http-status'
import { status as httpStatus } from 'http-status'

import type { PayloadHandler } from '../../config/types.js'

Expand Down
2 changes: 1 addition & 1 deletion packages/payload/src/auth/endpoints/unlock.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import httpStatus from 'http-status'
import { status as httpStatus } from 'http-status'

import type { PayloadHandler } from '../../config/types.js'

Expand Down
2 changes: 1 addition & 1 deletion packages/payload/src/auth/endpoints/verifyEmail.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import httpStatus from 'http-status'
import { status as httpStatus } from 'http-status'

import type { PayloadHandler } from '../../config/types.js'

Expand Down
2 changes: 1 addition & 1 deletion packages/payload/src/auth/operations/forgotPassword.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import crypto from 'crypto'
import httpStatus from 'http-status'
import { status as httpStatus } from 'http-status'
import { URL } from 'url'

import type {
Expand Down
2 changes: 1 addition & 1 deletion packages/payload/src/auth/operations/logout.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import httpStatus from 'http-status'
import { status as httpStatus } from 'http-status'

import type { Collection } from '../../collections/config/types.js'
import type { PayloadRequest } from '../../types/index.js'
Expand Down
2 changes: 1 addition & 1 deletion packages/payload/src/auth/operations/resetPassword.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import httpStatus from 'http-status'
import { status as httpStatus } from 'http-status'

import type { Collection } from '../../collections/config/types.js'
import type { PayloadRequest } from '../../types/index.js'
Expand Down
2 changes: 1 addition & 1 deletion packages/payload/src/auth/operations/unlock.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import httpStatus from 'http-status'
import { status as httpStatus } from 'http-status'

import type {
AuthOperationsFromCollectionSlug,
Expand Down
2 changes: 1 addition & 1 deletion packages/payload/src/auth/operations/verifyEmail.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import httpStatus from 'http-status'
import { status as httpStatus } from 'http-status'

import type { Collection } from '../../collections/config/types.js'
import type { PayloadRequest } from '../../types/index.js'
Expand Down
2 changes: 1 addition & 1 deletion packages/payload/src/collections/endpoints/count.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import httpStatus from 'http-status'
import { status as httpStatus } from 'http-status'

import type { PayloadHandler } from '../../config/types.js'
import type { Where } from '../../types/index.js'
Expand Down
2 changes: 1 addition & 1 deletion packages/payload/src/collections/endpoints/create.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getTranslation } from '@payloadcms/translations'
import httpStatus from 'http-status'
import { status as httpStatus } from 'http-status'

import type { PayloadHandler } from '../../config/types.js'

Expand Down
2 changes: 1 addition & 1 deletion packages/payload/src/collections/endpoints/delete.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getTranslation } from '@payloadcms/translations'
import httpStatus from 'http-status'
import { status as httpStatus } from 'http-status'

import type { PayloadHandler } from '../../config/types.js'
import type { Where } from '../../types/index.js'
Expand Down
2 changes: 1 addition & 1 deletion packages/payload/src/collections/endpoints/deleteByID.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import httpStatus from 'http-status'
import { status as httpStatus } from 'http-status'

import type { PayloadHandler } from '../../config/types.js'

Expand Down
2 changes: 1 addition & 1 deletion packages/payload/src/collections/endpoints/docAccess.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import httpStatus from 'http-status'
import { status as httpStatus } from 'http-status'

import type { PayloadHandler } from '../../config/types.js'

Expand Down
2 changes: 1 addition & 1 deletion packages/payload/src/collections/endpoints/duplicate.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getTranslation } from '@payloadcms/translations'
import httpStatus from 'http-status'
import { status as httpStatus } from 'http-status'

import type { PayloadHandler } from '../../config/types.js'

Expand Down
2 changes: 1 addition & 1 deletion packages/payload/src/collections/endpoints/find.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import httpStatus from 'http-status'
import { status as httpStatus } from 'http-status'

import type { PayloadHandler } from '../../config/types.js'
import type { JoinQuery, Where } from '../../types/index.js'
Expand Down
2 changes: 1 addition & 1 deletion packages/payload/src/collections/endpoints/findByID.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import httpStatus from 'http-status'
import { status as httpStatus } from 'http-status'

import type { PayloadHandler } from '../../config/types.js'
import type { JoinQuery } from '../../types/index.js'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import httpStatus from 'http-status'
import { status as httpStatus } from 'http-status'

import type { PayloadHandler } from '../../config/types.js'

Expand Down
2 changes: 1 addition & 1 deletion packages/payload/src/collections/endpoints/findVersions.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import httpStatus from 'http-status'
import { status as httpStatus } from 'http-status'

import type { PayloadHandler } from '../../config/types.js'
import type { Where } from '../../types/index.js'
Expand Down
2 changes: 1 addition & 1 deletion packages/payload/src/collections/endpoints/getFile.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { fileTypeFromFile } from 'file-type'
import fsPromises from 'fs/promises'
import httpStatus from 'http-status'
import { status as httpStatus } from 'http-status'
import path from 'path'

import type { PayloadHandler } from '../../config/types.js'
Expand Down
Loading

0 comments on commit b6e9c3b

Please sign in to comment.