包详细信息

acorn-stage3

acornjs620.9kMIT4.0.0

Support for stage 3 proposals in acorn

自述文件

stage 3 proposal support for Acorn

NPM version

This is a plugin for Acorn - a tiny, fast JavaScript parser, written completely in JavaScript.

It implements support for all missing ECMAScript stage 3 proposals. Neither loose mode nor walk are currently supported.

Usage

This module provides a plugin that can be used to extend the Acorn Parser class:

const {Parser} = require('acorn');
const stage3 = require('acorn-stage3');
Parser.extend(stage3).parse('100_000n');

License

This plugin is released under an MIT License.

更新日志

4.0.0 (2020-08-13)

  • Require acorn ^7.4 or ^8

3.1.0 (2020-08-13)

  • Mark as supporting acorn@8

3.0.0 (2020-06-11)

  • Require acorn ^7.2
  • Remove BigInt, import.meta, dynamic import and export * as ns from "mod", all are supported by acorn >= 7.2

2.1.0 (2020-05-04)

  • Add back numeric separators, they are stage 3 again
  • Add logical-assignments

2.0.0 (2019-02-09)

  • Require acorn >= 6.1.0

1.0.0 (2018-10-24)

  • Add export * as ns from "mod" support
  • Update acorn-bigint and acorn-import-meta

0.7.0 (2018-10-01)

  • Update to new acorn 6 interface
  • Change license to MIT
  • Add static class features support
  • Remove numeric separators, they are stage 2

0.6.0 (2018-02-27)

  • Update to acorn 5.5.0
  • Remove acorn-parse-regexp (superseded by acorn 5.5.0)

0.5.0 (2018-02-03)

  • Update to acorn 5.4.1
  • Remove rest and spread properties and async iteration support, since acorn does that now
  • Add stage 4 regular expression proposal support
  • Add JSON superset support

0.4.0 (2018-01-13)

  • Update to acorn 5.3.0
  • Add private and public class instance fields support
  • Add private methods, getters and setters support

0.3.0 (2017-12-26)

  • Add optional catch binding support
  • Add import.meta support

0.2.0 (2017-12-20)

  • Add BigInt support
  • Add numeric separator support

0.1.0 (2017-12-17)

Initial release with async iteration, dynamic import and rest and spread properties support