Skip to content

v1.0.3 - ESM Compatibility Fix and Issue in npm

Latest

Choose a tag to compare

@Kledenai Kledenai released this 19 Apr 19:01

[1.0.3] - 2025-04-19

Added

  • Introduced tsup as the new build system, enabling simultaneous generation of ES Modules (.js) and CommonJS (.cjs) outputs for broader compatibility.
  • Updated the TypeScript compiler configuration to target modern ECMAScript ("module": "ES2022", "target": "ES2022"), aligning with the "type": "module" declaration in package.json.
  • Enabled native support for named ESM imports, allowing seamless usage like import { validate } from 'jsonverify' in modern environments.

Fixed

  • Resolved compatibility issues in ES Module-based projects caused by previous CommonJS-only output, which led to runtime import errors.
  • Standardized internal module resolution and import paths for consistent behavior across both Node.js ESM and CJS runtimes.