Skip to content

Update npm dependencies to latest versions.#2986

Merged
Alex-Jordan merged 2 commits into
openwebwork:WeBWorK-2.21from
drgrice1:update-npm-dependencies
May 24, 2026
Merged

Update npm dependencies to latest versions.#2986
Alex-Jordan merged 2 commits into
openwebwork:WeBWorK-2.21from
drgrice1:update-npm-dependencies

Conversation

@drgrice1
Copy link
Copy Markdown
Member

@drgrice1 drgrice1 commented May 23, 2026

All are updated to the latest versions except for iframe-resizer (which we are locking at the current version for now). There are no changes to the code needed for our usage of these libraries. The Bootstrap if usage in sass is deprecated and warnings about that needed to be silenced.

Edit: As noted by @somiaj, these updates require node version 22. So check_modules.pl has been updated to check for that version of node.

All are updated to the latest versions except for iframe-resizer (which
we are locking at the current version for now).  There are no changes to
the code needed for our usage of these libraries.  The Bootstrap `if`
usage in sass is deprecated and warnings about that needed to be
silenced.
@somiaj
Copy link
Copy Markdown
Contributor

somiaj commented May 23, 2026

I get tons of warnings, lots of these updates now require node 22, and Debian is still only on node 20. Note, Debian is going to be on node 20 for another year, probably nothing we can do but need to require node 22 with this, but that isn't ideal for us few Debian users.

Seems the issues come from all the postcss, cssnano, stylehacks dependencies.

We probably need to update check_modules.pl with this, or drop these dependencies to the last one supported by node 20. Would dropping these recent updates also help with the silencing of the bootstrap if usage?

Everything does seem to work, I just get warnings. Didn't notice any issue with this or the pg one except all those warnings.

npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'cssnano@8.0.1',
npm WARN EBADENGINE   required: { node: '^22.11.0 || ^24.11.0 || >=26.0' },
npm WARN EBADENGINE   current: { node: 'v20.19.2', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'cssnano-preset-default@8.0.1',
npm WARN EBADENGINE   required: { node: '^22.11.0 || ^24.11.0 || >=26.0' },
npm WARN EBADENGINE   current: { node: 'v20.19.2', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'cssnano-utils@6.0.0',
npm WARN EBADENGINE   required: { node: '^22.11.0 || ^24.11.0 || >=26.0' },
npm WARN EBADENGINE   current: { node: 'v20.19.2', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'postcss-colormin@8.0.0',
npm WARN EBADENGINE   required: { node: '^22.11.0 || ^24.11.0 || >=26.0' },
npm WARN EBADENGINE   current: { node: 'v20.19.2', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'postcss-convert-values@8.0.0',
npm WARN EBADENGINE   required: { node: '^22.11.0 || ^24.11.0 || >=26.0' },
npm WARN EBADENGINE   current: { node: 'v20.19.2', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'postcss-discard-comments@8.0.0',
npm WARN EBADENGINE   required: { node: '^22.11.0 || ^24.11.0 || >=26.0' },
npm WARN EBADENGINE   current: { node: 'v20.19.2', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'postcss-discard-duplicates@8.0.0',
npm WARN EBADENGINE   required: { node: '^22.11.0 || ^24.11.0 || >=26.0' },
npm WARN EBADENGINE   current: { node: 'v20.19.2', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'postcss-discard-empty@8.0.0',
npm WARN EBADENGINE   required: { node: '^22.11.0 || ^24.11.0 || >=26.0' },
npm WARN EBADENGINE   current: { node: 'v20.19.2', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'postcss-discard-overridden@8.0.0',
npm WARN EBADENGINE   required: { node: '^22.11.0 || ^24.11.0 || >=26.0' },
npm WARN EBADENGINE   current: { node: 'v20.19.2', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'postcss-merge-longhand@8.0.0',
npm WARN EBADENGINE   required: { node: '^22.11.0 || ^24.11.0 || >=26.0' },
npm WARN EBADENGINE   current: { node: 'v20.19.2', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'postcss-merge-rules@8.0.0',
npm WARN EBADENGINE   required: { node: '^22.11.0 || ^24.11.0 || >=26.0' },
npm WARN EBADENGINE   current: { node: 'v20.19.2', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'postcss-minify-font-values@8.0.0',
npm WARN EBADENGINE   required: { node: '^22.11.0 || ^24.11.0 || >=26.0' },
npm WARN EBADENGINE   current: { node: 'v20.19.2', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'postcss-minify-gradients@8.0.0',
npm WARN EBADENGINE   required: { node: '^22.11.0 || ^24.11.0 || >=26.0' },
npm WARN EBADENGINE   current: { node: 'v20.19.2', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'postcss-minify-params@8.0.0',
npm WARN EBADENGINE   required: { node: '^22.11.0 || ^24.11.0 || >=26.0' },
npm WARN EBADENGINE   current: { node: 'v20.19.2', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'postcss-minify-selectors@8.0.1',
npm WARN EBADENGINE   required: { node: '^22.11.0 || ^24.11.0 || >=26.0' },
npm WARN EBADENGINE   current: { node: 'v20.19.2', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'postcss-normalize-charset@8.0.0',
npm WARN EBADENGINE   required: { node: '^22.11.0 || ^24.11.0 || >=26.0' },
npm WARN EBADENGINE   current: { node: 'v20.19.2', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'postcss-normalize-display-values@8.0.0',
npm WARN EBADENGINE   required: { node: '^22.11.0 || ^24.11.0 || >=26.0' },
npm WARN EBADENGINE   current: { node: 'v20.19.2', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'postcss-normalize-positions@8.0.0',
npm WARN EBADENGINE   required: { node: '^22.11.0 || ^24.11.0 || >=26.0' },
npm WARN EBADENGINE   current: { node: 'v20.19.2', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'postcss-normalize-repeat-style@8.0.0',
npm WARN EBADENGINE   required: { node: '^22.11.0 || ^24.11.0 || >=26.0' },
npm WARN EBADENGINE   current: { node: 'v20.19.2', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'postcss-normalize-string@8.0.0',
npm WARN EBADENGINE   required: { node: '^22.11.0 || ^24.11.0 || >=26.0' },
npm WARN EBADENGINE   current: { node: 'v20.19.2', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'postcss-normalize-timing-functions@8.0.0',
npm WARN EBADENGINE   required: { node: '^22.11.0 || ^24.11.0 || >=26.0' },
npm WARN EBADENGINE   current: { node: 'v20.19.2', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'postcss-normalize-unicode@8.0.0',
npm WARN EBADENGINE   required: { node: '^22.11.0 || ^24.11.0 || >=26.0' },
npm WARN EBADENGINE   current: { node: 'v20.19.2', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'postcss-normalize-url@8.0.0',
npm WARN EBADENGINE   required: { node: '^22.11.0 || ^24.11.0 || >=26.0' },
npm WARN EBADENGINE   current: { node: 'v20.19.2', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'postcss-normalize-whitespace@8.0.0',
npm WARN EBADENGINE   required: { node: '^22.11.0 || ^24.11.0 || >=26.0' },
npm WARN EBADENGINE   current: { node: 'v20.19.2', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'postcss-ordered-values@8.0.0',
npm WARN EBADENGINE   required: { node: '^22.11.0 || ^24.11.0 || >=26.0' },
npm WARN EBADENGINE   current: { node: 'v20.19.2', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'postcss-reduce-initial@8.0.0',
npm WARN EBADENGINE   required: { node: '^22.11.0 || ^24.11.0 || >=26.0' },
npm WARN EBADENGINE   current: { node: 'v20.19.2', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'postcss-reduce-transforms@8.0.0',
npm WARN EBADENGINE   required: { node: '^22.11.0 || ^24.11.0 || >=26.0' },
npm WARN EBADENGINE   current: { node: 'v20.19.2', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'postcss-svgo@8.0.0',
npm WARN EBADENGINE   required: { node: '^22.11.0 || ^24.11.0 || >=26.0' },
npm WARN EBADENGINE   current: { node: 'v20.19.2', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'postcss-unique-selectors@8.0.0',
npm WARN EBADENGINE   required: { node: '^22.11.0 || ^24.11.0 || >=26.0' },
npm WARN EBADENGINE   current: { node: 'v20.19.2', npm: '9.2.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'stylehacks@8.0.0',
npm WARN EBADENGINE   required: { node: '^22.11.0 || ^24.11.0 || >=26.0' },
npm WARN EBADENGINE   current: { node: 'v20.19.2', npm: '9.2.0' }
npm WARN EBADENGINE }

@drgrice1
Copy link
Copy Markdown
Member Author

I will update check_modules.pl. Note that nodesource provides a repository for debian to install newer versions of node. So I don't see this as really being an issue for debian users. I use node 24 with Ubuntu 26, even though the version of node in the Ubuntu repositories is only node 22.

This seems to be needed for the latest updates.
@Alex-Jordan Alex-Jordan merged commit 41edfe3 into openwebwork:WeBWorK-2.21 May 24, 2026
2 checks passed
@drgrice1 drgrice1 deleted the update-npm-dependencies branch May 24, 2026 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants