Update acorn and increase default ecmaVersion#16
Update acorn and increase default ecmaVersion#16Gudahtt wants to merge 1 commit intobrowserify:mainfrom
acorn and increase default ecmaVersion#16Conversation
`acorn` has been updated to v8.5, and `acorn-walk` has been updated to v8.2. These versions include many new bug fixes and features, including the features currently being added by this package using plugins. These features are supported by `acorn` only when `ecmaVersion` is set to "2022", so the default `ecmaVersion` has been set to `2022`. Since the plugins are no longer needed, they have been removed, along with all related build steps and documentation.
| test('does not change main acorn module', function (t) { | ||
| t.throws(function () { | ||
| baseAcorn.parse('var a = 10n') | ||
| baseAcorn.parse('#!/usr/bin/env node\nconsole.log("ok")', { ecmaVersion: 2021 }) |
There was a problem hiding this comment.
This was updated to use a hashbang as an example of something the main acorn module would not support by default.
acorn requires that ecmaVersion is set (as of v8), so that had to be included.
| node_modules | ||
| package-lock.json | ||
|
|
||
| lib/* |
There was a problem hiding this comment.
It didn't seem necessary to ignore this directory, since it's not used anymore. It was only used for the plugins.
|
This is a pretty substantial change, since arguably bringing these plugins in was the main purpose of this package. If they're not needed anymore, why use this package at all, v.s. using It is unfortunate that the default |
|
@goto-bus-stop Is this library not maintained anymore? I volunteer to maintain it, since it's a core dependency in https://github.com/staltz/noderify |
acornhas been updated to v8.5, andacorn-walkhas been updated to v8.2. These versions include many new bug fixes and features, including the features currently being added by this package using plugins. These features are supported byacornonly whenecmaVersionis set to "2022", so the defaultecmaVersionhas been set to2022.Since the plugins are no longer needed, they have been removed, along with all related build steps and documentation.