Skip to content

v2.0.0

Choose a tag to compare

@kiforks kiforks released this 11 May 19:17
· 18 commits to main since this release
68e993b

Major Changes

  • #8 40b26d8 Thanks @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.node raised from >=20.8.1 to >=22.22.1.
    • Prettier 3.4–3.7 no longer supported. Peer dependency prettier narrowed from ^3.4.0 to ^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, and picomatch.

    πŸ§ͺ 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 in index.js: all eight base Prettier options, every one of the ~22 importOrder groups, every one of the 24 attributeGroups, and the HTML β†’ Angular parser override. CI runs the suite on a Node 22.x / 24.x matrix.
    • Two new npm scripts: npm test and npm run test:update-snapshots (regenerates expected.* files when the config is intentionally changed).

    🧹 Internal

    • Removed dead lodash, @types/lodash, and npm-run-all devDependencies.
    • Dropped the unused prerelease npm script.
    • Modernized the husky 9 pre-commit hook.