Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for NPM 8, 9, 10 and PNPM 8, remove support for NPM 6 #7286

Merged

Conversation

alexander-schranz
Copy link
Member

@alexander-schranz alexander-schranz commented Feb 15, 2024

Q A
Bug fix? no
New feature? yes
BC breaks? yes
Deprecations? no
Fixed tickets fixes #issuenum
Related issues/PRs sulu/skeleton#235, sulu/skeleton#88
License MIT
Documentation PR sulu/sulu-docs#prnum

What's in this PR?

See sulu/skeleton#235

Why?

Node 16 is going for end of life: https://nodejs.org/en/about/previous-releases

Example Usage

rm -rf ./**/node_modules/
rm -rf ./**/package-lock.json

cd assets/admin
npm -g i npm@10

npm install
npm run build
rm -rf ./**/node_modules/
rm -rf ./**/package-lock.json
rm -rf ./**/pnpm-lock.yaml

cd assets/admin
curl -fsSL https://get.pnpm.io/install.sh | sh -

pnpm install
pnpm run build

BC Breaks/Deprecations

No support for NPM 6 / symlinked local packages.

Disadvantages

No watch task over vendor package developments as install requires install-links=true which ends not longer uses symlinks. Instead a tarball is created and install, but it installs correctly dependencies of local dependencies. Which does not work for file: packages.

@alexander-schranz alexander-schranz added the Feature New functionality not yet included in Sulu label Feb 15, 2024
@alexander-schranz alexander-schranz force-pushed the enhancement/node-npm-upgrade branch 2 times, most recently from ab30f62 to 9482e2b Compare February 15, 2024 18:47
@alexander-schranz alexander-schranz added this to the Release 2.6 milestone Mar 11, 2024
@alexander-schranz alexander-schranz force-pushed the enhancement/node-npm-upgrade branch from 20ed1aa to ee0f002 Compare March 13, 2024 11:14
@alexander-schranz alexander-schranz marked this pull request as ready for review March 14, 2024 15:04
@alexander-schranz alexander-schranz force-pushed the enhancement/node-npm-upgrade branch 2 times, most recently from 03e75e5 to 4355890 Compare March 14, 2024 15:09
UPGRADE.md Outdated
Comment on lines 14 to 18
### Custom Admin Builds npm version changed

Sulu 2.6 now supports [npm 8, 9, 10](https://nodejs.org/en/download) and even
[pnpm 8](https://pnpm.io/) or [bun 1](https://bun.sh/) to be used for custom admin
builds. To support this new versions we were required to drop support for NPM 6.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Prokyonn can you have a look at this :)

UPGRADE.md Outdated Show resolved Hide resolved
@alexander-schranz alexander-schranz force-pushed the enhancement/node-npm-upgrade branch from 0e5f0a1 to 79edf75 Compare March 15, 2024 08:00
@alexander-schranz alexander-schranz merged commit 8217e93 into sulu:2.6 Mar 15, 2024
8 checks passed
@alexander-schranz alexander-schranz deleted the enhancement/node-npm-upgrade branch March 15, 2024 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New functionality not yet included in Sulu
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants