Skip to content

Releases: EricSmekens/jsep

@jsep-plugin/comment-v1.0.2

17 Oct 19:22
Compare
Choose a tag to compare

@jsep-plugin/comment-v1.0.2 (2021-10-17)

Bug Fixes

  • // comments now works correctly across line feeds (82f0a78), closes #191
  • fix comment not gobbling spaces after the comment (3b57880), closes #191

@jsep-plugin/assignment-v1.1.0

17 Oct 19:25
Compare
Choose a tag to compare

@jsep-plugin/assignment-v1.1.0 (2021-10-17)

Bug Fixes

  • assignment operators in multiple operator expressions (592b422)

Features

  • expose plugin constants to support extensibility (6754d98)

v1.1.1

13 Oct 16:59
Compare
Choose a tag to compare

1.1.1 (2021-10-13)

Bug Fixes

  • literal 'raw' value now matches input string (432c514), closes #192

v1.1.0

03 Oct 20:39
Compare
Choose a tag to compare

1.1.0 (2021-10-03)

Features

  • add optional chaining support (?.) (56d1e3d)

@jsep-plugin/ternary-v1.0.1

03 Oct 20:40
Compare
Choose a tag to compare

@jsep-plugin/ternary-v1.0.1 (2021-10-03)

Bug Fixes

  • support nested ternaries with the object plugin loaded (cf37c29), closes #183

@jsep-plugin/object-v1.1.0

03 Oct 20:39
Compare
Choose a tag to compare

@jsep-plugin/object-v1.1.0 (2021-10-03)

Bug Fixes

  • add value key for IDENTIFIER object properties for consistency (486525d)
  • binary : operator should be greater than assignment operators (6b58011)

Features

  • add support for member expressions of an object { a: 1 }['a'] (b5bcc60)

v1.0.3

02 Sep 21:49
Compare
Choose a tag to compare

1.0.3 (2021-09-02)

Bug Fixes

v1.0.2

27 Aug 20:39
eaeac0f
Compare
Choose a tag to compare

Republish to include types.

v1.0.1

24 Aug 21:58
5703104
Compare
Choose a tag to compare

1.0.0 package missed out on a package.json for the CommonJS module configuration.
This is a republish that will support CommonJS.

v1.0.0

22 Aug 19:44
3b49b4c
Compare
Choose a tag to compare

We're current in progress of releasing the 1.0.0 version. We did encounter some publishing issues on the plugins, but they will follow up soon!

Rewrote to ESM, added a plugin system, and fixed numerous grammer issues

Breaking Changes

  • renamed build folder to dist (#130). The package file structure is now:
β”œβ”€β”€ CHANGELOG.md
β”œβ”€β”€ LICENSE
β”œβ”€β”€ README.md
β”œβ”€β”€ package.json
β”œβ”€β”€ dist
β”‚   β”œβ”€β”€ jsep.js
β”‚   β”œβ”€β”€ jsep.min.js
β”‚   β”œβ”€β”€ cjs
β”‚   β”‚   β”œβ”€β”€ jsep.cjs.js
β”‚   β”‚   β”œβ”€β”€ jsep.cjs.min.js
β”‚   β”œβ”€β”€ iife
β”‚   β”‚   β”œβ”€β”€ jsep.iife.js
β”‚   β”‚   β”œβ”€β”€ jsep.iife.min.js
  • Removed LogicalExpression and treat it as a BinaryExpression (#100)
  • Call arguments must be either all comma-separated or all space-separated, but not mixed

Added

  • Added a plugin system, including plugins for
    • arrow expressions (() => ...)
    • assigment and update expressions (a = 2, a++)
    • comments (/* .. */ and // ...)
    • new expressions (new Date())
    • object expressions ({a: 1, b})
    • regex support (/123/ig)
    • spread operator (fn(...a), [1, ...b], {...c})
    • template expressions (`hi ${name}`, msg`hig ${name}`)

Updated

  • (1, 2) now returns a SequenceExpression instead of throwing an Unclosed ( error
  • moved the ConditionExpression (ternary) into a plugin, but it is still included by default