这是indexloc提供的服务,不要输入任何密码
Skip to content

Releases: misund/passes-wcag

v1.0.0-0

11 Oct 01:21
v1.0.0-0
ff7cfe0

Choose a tag to compare

v1.0.0-0 Pre-release
Pre-release

⚠️ 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

  • BREAKING: Convert to ESM-only, TypeScript, and upgrade build tools by @misund in #373

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

29 Jul 11:57
v0.3.0
e030a1d

Choose a tag to compare

Updates all the dependencies.

Switches from Travis to GitHub actions.
Switches from Dependabot-preview to Dependabot.

v0.2.1

17 Jul 10:36
de1f18e

Choose a tag to compare

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...v0.2.1

v0.2.0

04 Jun 12:33
dbfe8fc

Choose a tag to compare

Breaking changes

  • BREAKING: Drop node 9; add node 10+11 (#28) e127b4b

Patches

  • build: Add np for better release workflow (#31) 847ac62

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

21 Sep 10:27
3c5def7

Choose a tag to compare

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)