Upgrading lint-staged 11 to 12
Breaking11.2.6 โ 12.5.0Breaking1Platform1New7Changed4Fixed32
1 breaking change and a platform requirement change.
- The package can no longer be loaded with require() in CommonJS code; you must use import instead, and you need a newer Node.js version.
- You must run a supported Node.js version: 12.20.0 or newer in the 12 line, 14.13.1 or newer in the 14 line, or 16.0.0 and above.
Requires Node.js ^12.20.0 || ^14.13.1 || >=16.0.0 from 12.0.0 (none stated before).
Adds lilconfig 2.0.5, object-inspect ^1.12.2, pidtree ^0.5.0, yaml ^1.10.2.
Drops cosmiconfig, enquirer, please-upgrade-node, stringify-object.
Installs 82 packages in all (was 84).
Also installs eastasianwidth.
No longer installs @babel/code-frame, @babel/helper-validator-identifier, @types/parse-json, ansi-colors, callsites, error-ex, get-own-enumerable-property-symbols, has-flag, import-fresh, is-arrayish, is-obj, is-regexp, js-tokens, json-parse-even-better-errors, lines-and-columns and 6 more.
Moves ansi-regex 5.0.1 โ 5.0.1, 6.5.0, ansi-styles 4.3.0 โ 4.3.0, 6.2.3, cli-truncate 2.1.0 โ 2.1.0, 3.1.0, colorette 1.4.0, 2.0.20 โ 2.0.20, commander 8.3.0 โ 9.5.0, emoji-regex 8.0.0 โ 8.0.0, 9.2.2, is-fullwidth-code-point 3.0.0 โ 3.0.0, 4.0.0, listr2 3.14.0 โ 4.0.5, slice-ansi 3.0.0, 4.0.0 โ 3.0.0, 4.0.0, 5.0.0, string-argv 0.3.1 โ 0.3.2, string-width 4.2.3 โ 4.2.3, 5.1.2, strip-ansi 6.0.1 โ 6.0.1, 7.2.0, supports-color 8.1.1 โ 9.4.0. Your build may pick other versions.
What you must change
lint-staged