Releases: misund/passes-wcag
Releases · misund/passes-wcag
v1.0.0-0
⚠️ BREAKING CHANGE
This release converts the package to ESM-only and TypeScript. Projects using require() will need to migrate to ESM or use dynamic imports.
After this release CommonJS is no longer supported. See ESM Module FAQ.
Migration Guide
For consumers using CommonJS (require):
// ❌ No longer works
const { passesWcagAa } = require('passes-wcag')
// ✅ Option 1: Convert to ESM
import { passesWcagAa } from 'passes-wcag'
// ✅ Option 2: Use dynamic import
const { passesWcagAa } = await import('passes-wcag')For consumers already using ESM:
No changes needed - the package now properly exports ESM with full TypeScript types.
What's Changed
Summary
This release modernizes the build tooling to current standards:
- Convert from JavaScript to TypeScript
- ESM module format (breaking change)
- TypeScript 5.9.2
- tsx for test execution
- Node.js 20, 22, 24 support
- get-contrast-ratio@1.0.0-1 (ESM version)
BREAKING
Build
- build(deps-dev): bump eslint from 9.32.0 to 9.37.0 by @dependabot[bot] in #372
- build(deps-dev): bump mocha from 11.7.1 to 11.7.4 by @dependabot[bot] in #371
- build(deps-dev): bump typescript from 5.9.2 to 5.9.3 by @dependabot[bot] in #375
- build(deps-dev): bump @eslint/js from 9.32.0 to 9.37.0 by @dependabot[bot] in #377
- build(deps-dev): bump tsx from 4.19.2 to 4.20.6 by @dependabot[bot] in #376
- build(deps-dev): bump @types/node from 22.10.5 to 24.7.1 by @dependabot[bot] in #374
Full Changelog: v0.3.0...v1.0.0-0
v0.3.0
v0.2.1
This is a security release.
Security patches
- build(deps): [security] bump lodash from 4.17.11 to 4.17.14 (#46) c23117f
- chore(package): [security] update get-contrast-ratio to 0.2.1 (#47) 6ff2524
Dependency updates
- chore(package): update @babel packages from 7.5.2 to 7.5.4 (#45) d93f6c9
- chore(package): update babel monorepo to 7.5.2 (#43) 97ffdac
- chore(package): update eslint-plugin-jsx-a11y to version 6.2.3 (#42) 9313f88
- chore(package): update eslint-config-airbnb to version 17.1.1 🚀 (#40) 5f62fd1
- chore(package): update eslint-plugin-import to version 2.18.0 🚀 (#36) 8be5fe6
- chore(package): update eslint-plugin-react to version 7.14.2 (#37) 8b1d590
- chore(package): update eslint to version 6.0.1 🚀 (#38) fa2daf7
- chore(package): update eslint to version 6.0.0 🚀 (#34) ef3e8c2
v0.2.0
Breaking changes
Patches
Dependency updates
- chore(package): update get-contrast-ratio from 0.1.4 to 0.2.0 🚀 (#32) b506ea7
- chore(package): update mocha from 5.2.0 to 6.1.4 (#30) bf1d09d
- chore(package): upgrade babel from 6.26.0 to 7.4.5 (#29) 570b12c
- Update eslint-plugin-import from 2.17.2 to 2.17.3 🚀 (#27) 1aa4691
- chore(package): update eslint-plugin-import to version 2.17.2 (#26) 07f5059
- Update eslint-plugin-react to the latest version 🚀 (#25) ab942d2
- chore(package): upgrade eslint from 5.0.1 to 5.16.0 (#23) 2ead494
- chore(package): update eslint-plugin-react to version 7.12.4 (#20) 1cf0c1c
- chore(package): update eslint-plugin-react to version 7.12.2 (#18) e3f0f83
v0.1.1
This release should give more precise calculations, after get-contrast-ratio fixed a bug in rounding.
Patches
- build: add prepublish script
- docs: add travis badge (#4)
Dependency upgrades
- chore(package): update eslint-plugin-react to version 7.9.1 (#2)
- Update eslint-plugin-import to the latest version rocket (#7)
- Update eslint-config-airbnb to the latest version rocket (#5)
- Update eslint-plugin-jsx-a11y to the latest version rocket (#9)
- Update eslint-plugin-jsx-a11y to the latest version rocket (#10)
- Update get-contrast-ratio to the latest version rocket (#12)
- Greenkeeper/eslint 5.0.1 (#13)
- Greenkeeper/eslint plugin react 7.11.1 (#14)
- Update eslint-config-airbnb to the latest version rocket (#11)