Skip to content

v1.2.0

Choose a tag to compare

@GulomovCreative GulomovCreative released this 12 Sep 11:17
· 74 commits to master since this release

Fixed

  • The number pattern again — rewritten on word boundaries, with support for exponent notation (1e-5).

Added

  • An exports field in the package manifest, intended to enable ESM imports.

Warning

The exports field did not work as intended. It pointed straight at the JSON file, which silently overrode main: require('modx-tmlanguage') began returning the parsed grammar object instead of the path string it had returned in 1.1.2 and earlier, so fs.readFileSync(require('modx-tmlanguage')) broke. ESM import did not work either — importing JSON requires a type attribute. Both are fixed in 2.0.0, which is published under a new name, @gulomov/modx-tmlanguage.

Full changelog: v1.1.2...v1.2.0