Skip to content

2.0.0 (2024-02-19)

Choose a tag to compare

@medikoo medikoo released this 19 Feb 15:34
64085e2

⚠ BREAKING CHANGES

  • Main esniff interface changed from code, trigger, callback to code, executor where executor function is provided with emitter that provides access to internal parsing process
  • Property and variable names resolution now respects ES2015+ language rules instead of ES5
  • Utilties were moved:
    • ensure-string-literal.js -> utils/ensure-string-literal.js
    • is-string-literal.js -> utils/is-string-literal.js
    • is-var-name-valid.js -> utils/is-variable-name.js

Features

  • Replace parser with state machine based event driven variant (0d9bf17)
  • Support ES2015 template strings syntax (4016496)
  • Upgrade variable and property name patterns to ES2015+ (7f2f4ab)

Maintenance Improvements

  • Move basic utils into utils directory (afc6ddf)
  • Refactor stripComments to rely on main parser (6d2dd7f)
  • Rely on type package instead of es5-ext (2a79744)

Comparison since last release