v2.0.0
Major Changes
-
#8
40b26d8Thanks @kiforks! - Modernize the package β bump dependencies to latest, drop Node 20 support,
and add a snapshot test suite.π₯ Breaking changes
- Node 20 no longer supported.
engines.noderaised from>=20.8.1to>=22.22.1. - Prettier 3.4β3.7 no longer supported. Peer dependency
prettiernarrowed from^3.4.0to^3.8.0.
π¦ Dependencies
- Prettier β 3.8.3
@ianvs/prettier-plugin-sort-importsβ 4.7.1@prettier/plugin-oxcβ 0.1.4 (required transitively by the sort-imports plugin's parser getters even when unused)prettier-plugin-ember-template-tagβ 2.1.5 (same reason)
π Security
- Patched transitive vulnerabilities in
brace-expansion,minimatch, andpicomatch.
π§ͺ Quality
- Added a fixture-based snapshot test suite using the native Node test runner (zero deps, no Vitest/Jest). Each test case lives in its own folder following
tests/fixtures/{category}/{category}-{rule}/{category}-{rule}.{input,expected}.{ext}. Coverage targets every rule declared inindex.js: all eight base Prettier options, every one of the ~22importOrdergroups, every one of the 24attributeGroups, and the HTML β Angular parser override. CI runs the suite on a Node 22.x / 24.x matrix. - Two new npm scripts:
npm testandnpm run test:update-snapshots(regeneratesexpected.*files when the config is intentionally changed).
π§Ή Internal
- Removed dead
lodash,@types/lodash, andnpm-run-alldevDependencies. - Dropped the unused
prereleasenpm script. - Modernized the husky 9 pre-commit hook.
- Node 20 no longer supported.