v1.0.0
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
buildfolder todist(#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
LogicalExpressionand treat it as aBinaryExpression(#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}`)
- arrow expressions (
Updated
(1, 2)now returns a SequenceExpression instead of throwing anUnclosed (error- moved the ConditionExpression (ternary) into a plugin, but it is still included by default