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

v1.0.0-0

Pre-release
Pre-release

Choose a tag to compare

@misund misund released this 11 Oct 01:21
· 2 commits to main since this release
v1.0.0-0
ff7cfe0

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