goldstein 7.1.0 → 7.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ 2026.02.12, v7.2.0
2
+
3
+ feature:
4
+ - e8cb35f goldstein: import with attributes
5
+
1
6
  2026.02.12, v7.1.0
2
7
 
3
8
  feature:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "goldstein",
3
- "version": "7.1.0",
3
+ "version": "7.2.0",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "JavaScript with no limits",
@@ -74,9 +74,7 @@ export default function keywordExportNoConst(Parser) {
74
74
  this.unexpected();
75
75
 
76
76
  node.source = this.parseExprAtom();
77
-
78
- if (this.options.ecmaVersion >= 16)
79
- node.attributes = this.parseWithClause();
77
+ node.attributes = this.parseWithClause();
80
78
  } else {
81
79
  for (let i = 0, list = node.specifiers; i < list.length; ++i) {
82
80
  // check for keywords used as local names
@@ -18,6 +18,7 @@ export default function keywordImport(Parser) {
18
18
 
19
19
  if (this.type === tokTypes.string) {
20
20
  node.source = this.parseLiteral(this.value);
21
+ node.attributes = this.parseWithClause();
21
22
  } else if (this.type === tokTypes.name) {
22
23
  const {value} = this;
23
24