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

@jsep-plugin/assignment

Package Overview
Dependencies
Maintainers
4
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jsep-plugin/assignment - npm Package Versions

1.3.0

Diff

Changelog

Source

1.3.0 (2022-02-28)

Bug Fixes

  • types for optional member expression now in generic baseType (79fb0dc), closes #200

Features

  • assignment right-to-left and precedence with ternary (e5652eb), closes #189
  • simplify ternary since to stop handling ':' binary operator (4196623)
smekkie
published 1.2.1 •

smekkie
published 1.2.0 •

Changelog

Source

1.2.0 (2021-10-31)

Features

  • add right-associative support for binary operators (2da8834), closes #195
smekkie
published 1.2.0-beta.1 •

smekkie
published 1.1.0 •

Changelog

Source

1.1.0 (2021-10-03)

Features

  • add optional chaining support (?.) (56d1e3d)
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.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
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