Repository navigation
v1.2.0
Fixed
- The number pattern again — rewritten on word boundaries, with support for exponent notation (
1e-5).
Added
- An
exportsfield 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