Skip to content

v1.0.0

Choose a tag to compare

@github-actions github-actions released this 12 Feb 19:25

Main Changes

  • Move to ESM-only distribution (v1.0.0) by @DecimalTurn in #100

    This removes CommonJS and UMD builds. Users must use ESM or one of these migration paths:

    For ESM Users (Recommended)

    No changes needed - already fully supported.

    For CJS Users

    Option 1: Use recent Node.js with require(esm) support

    • Node.js v22.12.0+ or v23.3.0+ can directly require() ESM packages
    • No code changes needed

    Option 2: Use dynamic import in CJS

     // Instead of: const toml = require('@decimalturn/toml-patch');
     const toml = await import('@decimalturn/toml-patch');

    Option 3: Migrate to ESM
    Add "type": "module" to package.json and use ESM syntax.

    Option 4: Stay on v0.x
    Users on legacy Node.js versions can continue using v0.x releases.

    Compatibility

    • Modern bundlers: Fully compatible (Webpack 5+, Vite, Rollup, esbuild)
    • Node.js 22.12.0+/23.3.0+: Direct require() support for ESM
    • Node.js 12+: Dynamic import support
    • Node.js < 12: Must stay on v0.x (EOL since 2019)

Minor Changes

  • chore(deps): update dependency @decimalturn/toml-patch to v0.7.0 by @renovate[bot] in #99
  • chore(deps): update dependency glob to v13.0.2 by @renovate[bot] in #101

Full Changelog: v0.7.0...v1.0.0