Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jsep

Package Overview
Dependencies
Maintainers
3
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsep - npm Package Versions

134

1.1.1

Diff

Changelog

Source

1.1.1 (2021-10-13)

Bug Fixes

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

Changelog

Source

1.1.0 (2021-10-03)

Features

  • add optional chaining support (?.) (56d1e3d)
smekkie
published 1.0.3 •

Changelog

Source

1.0.3 (2021-09-02)

Bug Fixes

smekkie
published 1.0.2 •

Changelog

Source

1.0.2 - 2021-08-26

Republish to include types.

smekkie
published 1.0.1 •

Changelog

Source

1.0.1 - 2021-08-24

Fixed support for CommonJS modules. This is only a republish.

smekkie
published 1.0.1-beta •

smekkie
published 1.0.1-alpha •

smekkie
published 1.0.0 •

Changelog

Source

1.0.0 - 2021-08-22

Rewrote to ESM, added a plugin system, and fixed numerous grammar issues. For most standard use-cases, this release should not be a breaking change, as every effort was made to maintain compatibility.

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
  • unary expressions with no argument now throw missing unaryOp argument
  • binary expressions now require the left-hand side to exist
  • conditional (ternary) expressions with no condition now throw unexpected "?"
  • . now throws unexpected .
  • ()() now throws unexpected "("
  • a.this, a.true, a.false, a.null now match esprima and treat the property as an identifier instead of a literal or ThisExpression

Added

  • Added a plugin system, including plugins for
    • arrow expressions (() => ...)
    • assigment and update expressions (a = 2, a++)
    • async/await (await a.find(async (v1, v2) => await v1(v2)))
    • 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
smekkie
published 0.4.0 •

Changelog

Source

0.4.0 - 2021-03-21

Added

  • You can add or remove additional valid identifier chars.
  • Support for gobble properties from array/strings. e.g. ([1].length)

Updated

  • Updated several dependancies for audit fixes.
smekkie
published 0.3.5 •

Changelog

Source

0.3.5 - 2018-08-23

Updated

  • Development dependencies update for audit fixes.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc