parcel-bundler / parcel

The zero configuration build tool for the web. πŸ“¦πŸš€

Home Page:https://parceljs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

To update svgo to version 3.0 in @parcel/optimizer-htmlnano.

zbmovo opened this issue Β· comments

πŸ› bug report

The deprecated warning for stable@0.1.8 is displayed during Parcel installation.

Downloading @parcel/rust@2.12.0: 65.58 MB/65.58 MB, done
Downloading @swc/core-win32-x64-msvc@1.4.16: 16.65 MB/16.65 MB, done
 WARN  1 deprecated subdependencies found: stable@0.1.8  <-----------
Packages: +172
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 210, reused 0, downloaded 172, added 172, done
node_modules/.pnpm/@swc+core@1.4.16_@swc+helpers@0.5.10/node_modules/@swc/core: Running postinstall script, done in 69ms
node_modules/.pnpm/msgpackr-extract@3.0.2/node_modules/msgpackr-extract: Running install script, done in 153ms
node_modules/.pnpm/lmdb@2.8.5/node_modules/lmdb: Running install script, done in 188ms

devDependencies:
+ parcel 2.12.0

 WARN  Issues with peer dependencies found
.
└─┬ parcel 2.12.0
  └─┬ @parcel/config-default 2.12.0
    └─┬ @parcel/optimizer-htmlnano 2.12.0
      └─┬ htmlnano 2.1.0
        └── βœ• unmet peer svgo@^3.0.2: found 2.8.0 in @parcel/optimizer-htmlnano

Done in 10.3s

πŸŽ› Configuration (.babelrc, package.json, cli command)

pnpm i parcel -D

πŸ€” Expected Behavior

Do not display the deprecated warning.

😯 Current Behavior

The console outputs "WARN 1 deprecated subdependencies found: stable@0.1.8."

πŸ’ Possible Solution

The svgo version used here is v2.4.0, and its dependency, stable v0.1.8, has been deprecated. It's now possible to update to the latest version of svgo, v3.2.0, to address the deprecation warning encountered during Parcel installation.

🌍 Your Environment

Software Version(s)
Parcel ^2.12.0
Node v20.11.0
pnpm v9.0.4
Operating System windows 10