pixijs / filters

Collection of community-authored custom display filters for PixiJS
https://pixijs.io/filters/docs/
MIT License
967 stars 158 forks source link

Deprecation Warning: `utils.hex2rgb` when using PixiJS filters with PixiJS v7.2.0+ #387

Closed Julien-Marcou closed 3 months ago

Julien-Marcou commented 1 year ago

PixiJS filters are using deprecated utils functions like hex2rgb, which prints deprecation warnings into the console:

PixiJS Deprecation Warning: utils.hex2rgb is deprecated, use Color#toRgbArray instead
Deprecated since v7.2.0

It wouls be nice to see an updated version of PixiJS filters without these warnings 🙂

bigtimebuddy commented 1 year ago

Yeah, something that uses Color. These filters need updating

FloodGames commented 1 year ago

This whole package needs some love?

Can't even get past. "npm run build" after "npm install"

npm ERR! code 1
npm ERR! path C:\GIT\filters\node_modules\canvas
npm ERR! command failed

I would be interested in trying to update some packages without breaking everything, if I get it up and running.


npm run clean did seem to help, along with removing package-lock.json

npm WARN deprecated readdir-scoped-modules@1.1.0: This functionality has been moved to @npmcli/fs
npm WARN deprecated mkdirp-promise@5.0.1: This package is broken and no longer maintained. 'mkdirp' itself supports promises now, please switch to that.
npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated read-package-tree@5.3.1: The functionality that this package provided is now in @npmcli/arborist
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
npm WARN deprecated @evocateur/npm-registry-fetch@4.0.0: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated node-fetch-npm@2.0.4: This module is not used anymore, npm uses minipass-fetch for its fetch implementation now
npm WARN deprecated @evocateur/libnpmaccess@3.1.2: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated @evocateur/libnpmpublish@1.2.2: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated @evocateur/pacote@9.6.5: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated open-sans-fonts@1.6.2: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
FloodGames commented 1 year ago

I'm trying https://github.com/pixijs/filters/pull/389

bigtimebuddy commented 3 months ago

This project will not be updating v7 deprecations, closing for now.