NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #1525 most downloaded on npm
Detect global variables in JavaScript using acorn
Last release 4 years ago
no release in 18 months
Release timing varies
gaps range from 9 days to 2.5 years
Some releases are documented
notes for 7 of 25 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
27 releases · first in 2014
The body of switch statement is a block scope
The body of switch statement is a block scope (#67)
In this example:
switch (3) {
case 3:
let a;
}
a; // this 'a' is a globalThe a at the bottom is global, even though a variable called a was declared inside the switch statement.
Nothing published for this version
One column per quarter.
Set default ecmaVersion to "latest"
You can now override the default options passed to the acorn parser: (#64)
cons defaults = {
allowReturnOutsideFunction: true,
allowImportExportEverywhere: true,
allowHashBang: true,
ecmaVersion: "latest"
}Nothing published for this version
Updates acorn and acorn-walk to v7
Updates acorn and acorn-walk to v7
Nothing published for this version
fix add pattern destructuring support to the catch handler
catch handlerfix handle variable names that exist in Object.prototype
Fix: Classes are now correctly block-scoped rather than function/module scoped
Fix destructuring rest args now declares the local variable name
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →