From 794af76c50e4021d028e918cf87acd4891db06e3 Mon Sep 17 00:00:00 2001 From: Juan Picado Date: Fri, 15 Oct 2021 18:49:47 +0200 Subject: [PATCH] Remove Node 12 support (v6.x) (#2473) --- .babelrc | 2 +- .changeset/eleven-spoons-matter.md | 39 +++++++++++++++++++ Dockerfile | 4 +- README.md | 2 + packages/api/package.json | 2 +- packages/auth/package.json | 2 +- packages/cli/package.json | 2 +- packages/config/package.json | 2 +- packages/core/core/package.json | 2 +- packages/core/file-locking/package.json | 2 +- packages/core/htpasswd/package.json | 2 +- packages/core/readme/package.json | 2 +- packages/core/server/package.json | 2 +- packages/core/streams/package.json | 2 +- packages/core/tarball/package.json | 2 +- packages/core/types/package.json | 2 +- packages/core/url/package.json | 2 +- packages/hooks/package.json | 2 +- packages/loaders/package.json | 2 +- packages/logger/package.json | 2 +- packages/middleware/package.json | 2 +- packages/mock/package.json | 2 +- packages/node-api/package.json | 2 +- .../plugins/active-directory/package.json | 2 +- packages/plugins/audit/package.json | 2 +- packages/plugins/auth-memory/package.json | 2 +- packages/plugins/aws-storage/package.json | 2 +- .../plugins/google-cloud-storage/package.json | 2 +- packages/plugins/memory/package.json | 2 +- packages/plugins/ui-theme/package.json | 2 +- packages/server/package.json | 2 +- packages/standalone/package.json | 2 +- packages/store/package.json | 2 +- packages/types/package.json | 2 +- packages/utils/package.json | 2 +- packages/verdaccio/package.json | 2 +- packages/web/package.json | 2 +- 37 files changed, 77 insertions(+), 36 deletions(-) create mode 100644 .changeset/eleven-spoons-matter.md diff --git a/.babelrc b/.babelrc index bcd7fa214..4257c3965 100644 --- a/.babelrc +++ b/.babelrc @@ -7,7 +7,7 @@ "version": 3, "proposals": true }, "targets": { - "node": 12 + "node": 14 } } ], diff --git a/.changeset/eleven-spoons-matter.md b/.changeset/eleven-spoons-matter.md new file mode 100644 index 000000000..66f0bea9b --- /dev/null +++ b/.changeset/eleven-spoons-matter.md @@ -0,0 +1,39 @@ +--- +'@verdaccio/api': major +'@verdaccio/auth': major +'@verdaccio/cli': major +'@verdaccio/config': major +'@verdaccio/core': major +'@verdaccio/file-locking': major +'verdaccio-htpasswd': major +'@verdaccio/readme': major +'@verdaccio/fastify-migration': major +'@verdaccio/streams': major +'@verdaccio/tarball': major +'@verdaccio/types': major +'@verdaccio/url': major +'@verdaccio/hooks': major +'@verdaccio/loaders': major +'@verdaccio/logger': major +'@verdaccio/middleware': major +'@verdaccio/mock': major +'@verdaccio/node-api': major +'@verdaccio/active-directory': major +'verdaccio-audit': major +'verdaccio-auth-memory': major +'verdaccio-aws-s3-storage': major +'verdaccio-google-cloud': major +'verdaccio-memory': major +'@verdaccio/ui-theme': major +'@verdaccio/server': major +'@verdaccio/cli-standalone': major +'@verdaccio/store': major +'@verdaccio/dev-types': major +'@verdaccio/utils': major +'verdaccio': major +'@verdaccio/web': major +--- + +Remove Node 12 support + +- We need move to the new `undici` and does not support Node.js 12 diff --git a/Dockerfile b/Dockerfile index 7845455d6..929a02cd3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=${BUILDPLATFORM:-linux/amd64} node:14.17.6-alpine as builder +FROM --platform=${BUILDPLATFORM:-linux/amd64} node:14.18.1-alpine as builder ENV NODE_ENV=development \ VERDACCIO_BUILD_REGISTRY=https://registry.verdaccio.org @@ -19,7 +19,7 @@ RUN npm -g i pnpm@6.10.3 && \ # FIXME: need to remove devDependencies from the build # RUN pnpm install --prod --ignore-scripts -FROM node:14.17.6-alpine +FROM node:14.18.1-alpine LABEL maintainer="https://github.com/verdaccio/verdaccio" ENV VERDACCIO_APPDIR=/opt/verdaccio \ diff --git a/README.md b/README.md index b0d206c59..cc2275c41 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,8 @@ Google Cloud Storage** or create your own plugin. ## Install +> Latest Node.js v14 + Install with npm: ```bash diff --git a/packages/api/package.json b/packages/api/package.json index 06dc30842..d14a57d96 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -25,7 +25,7 @@ "verdaccio" ], "engines": { - "node": ">=10", + "node": ">=14", "npm": ">=6" }, "scripts": { diff --git a/packages/auth/package.json b/packages/auth/package.json index 7e58fa9b8..be8753273 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -25,7 +25,7 @@ "verdaccio" ], "engines": { - "node": ">=10", + "node": ">=14", "npm": ">=6" }, "scripts": { diff --git a/packages/cli/package.json b/packages/cli/package.json index b3babc636..9fde055a1 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -26,7 +26,7 @@ "verdaccio" ], "engines": { - "node": ">=12", + "node": ">=14", "npm": ">=6" }, "description": "verdaccio CLI", diff --git a/packages/config/package.json b/packages/config/package.json index f21c4255d..26d9ae616 100644 --- a/packages/config/package.json +++ b/packages/config/package.json @@ -26,7 +26,7 @@ "verdaccio" ], "engines": { - "node": ">=10", + "node": ">=14", "npm": ">=6" }, "scripts": { diff --git a/packages/core/core/package.json b/packages/core/core/package.json index 21467167a..c9edc2579 100644 --- a/packages/core/core/package.json +++ b/packages/core/core/package.json @@ -19,7 +19,7 @@ "license": "MIT", "homepage": "https://verdaccio.org", "engines": { - "node": ">=12", + "node": ">=14", "npm": ">=6" }, "repository": { diff --git a/packages/core/file-locking/package.json b/packages/core/file-locking/package.json index 4bcb73ea3..313bb6f4c 100644 --- a/packages/core/file-locking/package.json +++ b/packages/core/file-locking/package.json @@ -17,7 +17,7 @@ "license": "MIT", "homepage": "https://verdaccio.org", "engines": { - "node": ">=10", + "node": ">=14", "npm": ">=6" }, "repository": { diff --git a/packages/core/htpasswd/package.json b/packages/core/htpasswd/package.json index 8140807c3..16c8af8f4 100644 --- a/packages/core/htpasswd/package.json +++ b/packages/core/htpasswd/package.json @@ -30,7 +30,7 @@ "build" ], "engines": { - "node": ">=10", + "node": ">=14", "npm": ">=6" }, "dependencies": { diff --git a/packages/core/readme/package.json b/packages/core/readme/package.json index 70bfccd6a..23dc1149a 100644 --- a/packages/core/readme/package.json +++ b/packages/core/readme/package.json @@ -20,7 +20,7 @@ "license": "MIT", "homepage": "https://verdaccio.org", "engines": { - "node": ">=10", + "node": ">=14", "npm": ">=6" }, "repository": { diff --git a/packages/core/server/package.json b/packages/core/server/package.json index 1305ebc6b..e35103ae9 100644 --- a/packages/core/server/package.json +++ b/packages/core/server/package.json @@ -19,7 +19,7 @@ "license": "MIT", "homepage": "https://verdaccio.org", "engines": { - "node": ">=12", + "node": ">=14", "npm": ">=6" }, "repository": { diff --git a/packages/core/streams/package.json b/packages/core/streams/package.json index f4d4b4e36..9f9e4330f 100644 --- a/packages/core/streams/package.json +++ b/packages/core/streams/package.json @@ -19,7 +19,7 @@ "license": "MIT", "homepage": "https://verdaccio.org", "engines": { - "node": ">=10", + "node": ">=14", "npm": ">=6" }, "repository": { diff --git a/packages/core/tarball/package.json b/packages/core/tarball/package.json index 3831466eb..2787814eb 100644 --- a/packages/core/tarball/package.json +++ b/packages/core/tarball/package.json @@ -19,7 +19,7 @@ "license": "MIT", "homepage": "https://verdaccio.org", "engines": { - "node": ">=10", + "node": ">=14", "npm": ">=6" }, "repository": { diff --git a/packages/core/types/package.json b/packages/core/types/package.json index 4ee58d356..3bc994b86 100644 --- a/packages/core/types/package.json +++ b/packages/core/types/package.json @@ -17,7 +17,7 @@ "license": "MIT", "homepage": "https://verdaccio.org", "engines": { - "node": ">=10", + "node": ">=14", "npm": ">=6" }, "repository": { diff --git a/packages/core/url/package.json b/packages/core/url/package.json index 72953aeaa..e91ac71f8 100644 --- a/packages/core/url/package.json +++ b/packages/core/url/package.json @@ -19,7 +19,7 @@ "license": "MIT", "homepage": "https://verdaccio.org", "engines": { - "node": ">=10", + "node": ">=14", "npm": ">=6" }, "repository": { diff --git a/packages/hooks/package.json b/packages/hooks/package.json index ac120b027..de8c20cdc 100644 --- a/packages/hooks/package.json +++ b/packages/hooks/package.json @@ -26,7 +26,7 @@ "verdaccio" ], "engines": { - "node": ">=12", + "node": ">=14", "npm": ">=6" }, "dependencies": { diff --git a/packages/loaders/package.json b/packages/loaders/package.json index 41069dceb..ebfbfb754 100644 --- a/packages/loaders/package.json +++ b/packages/loaders/package.json @@ -36,7 +36,7 @@ "verdaccio" ], "engines": { - "node": ">=10", + "node": ">=14", "npm": ">=6" }, "license": "MIT", diff --git a/packages/logger/package.json b/packages/logger/package.json index 3bab3ce12..038f2f1eb 100644 --- a/packages/logger/package.json +++ b/packages/logger/package.json @@ -26,7 +26,7 @@ "verdaccio" ], "engines": { - "node": ">=10", + "node": ">=14", "npm": ">=6" }, "scripts": { diff --git a/packages/middleware/package.json b/packages/middleware/package.json index f1f7eee3d..0535d57e0 100644 --- a/packages/middleware/package.json +++ b/packages/middleware/package.json @@ -26,7 +26,7 @@ "verdaccio" ], "engines": { - "node": ">=10", + "node": ">=14", "npm": ">=6" }, "scripts": { diff --git a/packages/mock/package.json b/packages/mock/package.json index e4bdf8e71..5b9061dc4 100644 --- a/packages/mock/package.json +++ b/packages/mock/package.json @@ -23,7 +23,7 @@ "verdaccio" ], "engines": { - "node": ">=10", + "node": ">=14", "npm": ">=6" }, "description": "mock server for testing", diff --git a/packages/node-api/package.json b/packages/node-api/package.json index afa59dc39..3bd3a71d9 100644 --- a/packages/node-api/package.json +++ b/packages/node-api/package.json @@ -25,7 +25,7 @@ "verdaccio" ], "engines": { - "node": ">=12", + "node": ">=14", "npm": ">=6" }, "scripts": { diff --git a/packages/plugins/active-directory/package.json b/packages/plugins/active-directory/package.json index 7739671b3..f8171b32a 100644 --- a/packages/plugins/active-directory/package.json +++ b/packages/plugins/active-directory/package.json @@ -30,7 +30,7 @@ "main": "build/index.js", "types": "build/index.d.ts", "engines": { - "node": ">=10", + "node": ">=14", "npm": ">=6" }, "dependencies": { diff --git a/packages/plugins/audit/package.json b/packages/plugins/audit/package.json index 9ede83b14..df82b8857 100644 --- a/packages/plugins/audit/package.json +++ b/packages/plugins/audit/package.json @@ -27,7 +27,7 @@ "main": "build/index.js", "types": "build/index.d.ts", "engines": { - "node": ">=10", + "node": ">=14", "npm": ">=6" }, "dependencies": { diff --git a/packages/plugins/auth-memory/package.json b/packages/plugins/auth-memory/package.json index 32f465bd8..60de0bc70 100644 --- a/packages/plugins/auth-memory/package.json +++ b/packages/plugins/auth-memory/package.json @@ -27,7 +27,7 @@ "main": "build/index.js", "types": "build/src/index.d.ts", "engines": { - "node": ">=10", + "node": ">=14", "npm": ">=6" }, "dependencies": { diff --git a/packages/plugins/aws-storage/package.json b/packages/plugins/aws-storage/package.json index bedc8179a..e7723fb29 100644 --- a/packages/plugins/aws-storage/package.json +++ b/packages/plugins/aws-storage/package.json @@ -14,7 +14,7 @@ "verdaccio" ], "engines": { - "node": ">=10", + "node": ">=14", "npm": ">=6" }, "author": "Juan Picado ", diff --git a/packages/plugins/google-cloud-storage/package.json b/packages/plugins/google-cloud-storage/package.json index 3b189a1c4..183226423 100644 --- a/packages/plugins/google-cloud-storage/package.json +++ b/packages/plugins/google-cloud-storage/package.json @@ -27,7 +27,7 @@ "main": "build/index.js", "types": "build/index.d.ts", "engines": { - "node": ">=10", + "node": ">=14", "npm": ">=6" }, "dependencies": { diff --git a/packages/plugins/memory/package.json b/packages/plugins/memory/package.json index 294319ec4..a2ce8e078 100644 --- a/packages/plugins/memory/package.json +++ b/packages/plugins/memory/package.json @@ -27,7 +27,7 @@ "main": "build/index.js", "types": "build/index.d.ts", "engines": { - "node": ">=10", + "node": ">=14", "npm": ">=6" }, "dependencies": { diff --git a/packages/plugins/ui-theme/package.json b/packages/plugins/ui-theme/package.json index ea3dc53f0..89bbc8c48 100644 --- a/packages/plugins/ui-theme/package.json +++ b/packages/plugins/ui-theme/package.json @@ -13,7 +13,7 @@ "homepage": "https://verdaccio.org", "main": "index.js", "engines": { - "node": ">=10", + "node": ">=14", "npm": ">=6" }, "devDependencies": { diff --git a/packages/server/package.json b/packages/server/package.json index 88ddf7325..3b1b6a5f1 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -26,7 +26,7 @@ "verdaccio" ], "engines": { - "node": ">=10", + "node": ">=14", "npm": ">=6" }, "dependencies": { diff --git a/packages/standalone/package.json b/packages/standalone/package.json index a3e336138..f7c381bb5 100644 --- a/packages/standalone/package.json +++ b/packages/standalone/package.json @@ -52,7 +52,7 @@ "verdaccio" ], "engines": { - "node": ">=10", + "node": ">=14", "npm": ">=6" }, "preferGlobal": true, diff --git a/packages/store/package.json b/packages/store/package.json index 8ce8fe099..f88e7523c 100644 --- a/packages/store/package.json +++ b/packages/store/package.json @@ -26,7 +26,7 @@ "verdaccio" ], "engines": { - "node": ">=12", + "node": ">=14", "npm": ">=6" }, "scripts": { diff --git a/packages/types/package.json b/packages/types/package.json index cbe7c0f23..0c5ca66d0 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -29,7 +29,7 @@ "verdaccio" ], "engines": { - "node": ">=10", + "node": ">=14", "npm": ">=6" }, "license": "MIT", diff --git a/packages/utils/package.json b/packages/utils/package.json index eafadf580..988d5bfe4 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -26,7 +26,7 @@ "verdaccio" ], "engines": { - "node": ">=10", + "node": ">=14", "npm": ">=6" }, "dependencies": { diff --git a/packages/verdaccio/package.json b/packages/verdaccio/package.json index 33d7853a1..9ac8216c5 100644 --- a/packages/verdaccio/package.json +++ b/packages/verdaccio/package.json @@ -66,7 +66,7 @@ "verdaccio" ], "engines": { - "node": ">=10", + "node": ">=14", "npm": ">=6" }, "preferGlobal": true, diff --git a/packages/web/package.json b/packages/web/package.json index f3ae542b9..b58a250a8 100644 --- a/packages/web/package.json +++ b/packages/web/package.json @@ -20,7 +20,7 @@ "verdaccio" ], "engines": { - "node": ">=10", + "node": ">=14", "npm": ">=6" }, "license": "MIT",