meriyah 7.0.0 → 7.1.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.md +19 -0
- package/README.md +18 -1
- package/dist/meriyah.cjs +76 -38
- package/dist/meriyah.min.mjs +1 -1
- package/dist/meriyah.mjs +76 -39
- package/dist/meriyah.umd.js +76 -38
- package/dist/meriyah.umd.min.js +1 -1
- package/dist/types/common.d.ts +4 -3
- package/dist/types/errors.d.ts +1 -0
- package/dist/types/meriyah.d.ts +1 -0
- package/dist/types/parser/parser.d.ts +3 -3
- package/dist/types/token.d.ts +3 -3
- package/package.json +1 -66
package/dist/types/common.d.ts
CHANGED
|
@@ -72,10 +72,11 @@ export declare const enum Origin {
|
|
|
72
72
|
ForStatement = 32,
|
|
73
73
|
Export = 64
|
|
74
74
|
}
|
|
75
|
-
export declare const enum
|
|
75
|
+
export declare const enum AssignmentTargetKind {
|
|
76
76
|
None = 0,
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
Simple = 1,
|
|
78
|
+
Invalid = 2,
|
|
79
|
+
WebCompat = 4
|
|
79
80
|
}
|
|
80
81
|
export declare const enum DestructuringKind {
|
|
81
82
|
None = 0,
|
package/dist/types/errors.d.ts
CHANGED
package/dist/types/meriyah.d.ts
CHANGED
|
@@ -6,3 +6,4 @@ export declare function parseModule(source: string, options?: Omit<Options, 'sou
|
|
|
6
6
|
export declare function parse(source: string, options?: Options): Program;
|
|
7
7
|
export { type Options, version };
|
|
8
8
|
export type * as ESTree from './estree';
|
|
9
|
+
export { isParseError, type ParseError } from './errors';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AssignmentTargetKind, DestructuringKind, Flags, type Location } from '../common';
|
|
2
2
|
import { Errors } from '../errors';
|
|
3
3
|
import type * as ESTree from '../estree';
|
|
4
4
|
import { type NormalizedOptions, type Options } from '../options';
|
|
@@ -30,8 +30,8 @@ export declare class Parser {
|
|
|
30
30
|
currentChar: number;
|
|
31
31
|
exportedNames: Set<string>;
|
|
32
32
|
exportedBindings: Set<string>;
|
|
33
|
-
assignable:
|
|
34
|
-
destructible:
|
|
33
|
+
assignable: AssignmentTargetKind;
|
|
34
|
+
destructible: DestructuringKind;
|
|
35
35
|
leadingDecorators: {
|
|
36
36
|
start?: Location;
|
|
37
37
|
decorators: ESTree.Decorator[];
|
package/dist/types/token.d.ts
CHANGED
|
@@ -62,9 +62,9 @@ export declare const enum Token {
|
|
|
62
62
|
BitwiseXorAssign = 4194341,
|
|
63
63
|
BitwiseOrAssign = 4194342,
|
|
64
64
|
BitwiseAndAssign = 4194343,
|
|
65
|
-
LogicalOrAssign =
|
|
66
|
-
LogicalAndAssign =
|
|
67
|
-
CoalesceAssign =
|
|
65
|
+
LogicalOrAssign = 4718632,
|
|
66
|
+
LogicalAndAssign = 4718633,
|
|
67
|
+
CoalesceAssign = 4718634,
|
|
68
68
|
TypeofKeyword = 16863275,
|
|
69
69
|
DeleteKeyword = 16863276,
|
|
70
70
|
VoidKeyword = 16863277,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meriyah",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.1.0",
|
|
4
4
|
"description": "A 100% compliant, self-hosted javascript parser with high focus on both performance and stability",
|
|
5
5
|
"main": "dist/meriyah.cjs",
|
|
6
6
|
"module": "dist/meriyah.min.mjs",
|
|
@@ -52,72 +52,7 @@
|
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"access": "public"
|
|
54
54
|
},
|
|
55
|
-
"scripts": {
|
|
56
|
-
"build": "node scripts/build.mjs",
|
|
57
|
-
"lint": "npm run lint:eslint && npm run lint:types && npm run lint:prettier && npm run lint:cspell && npm run lint:knip",
|
|
58
|
-
"lint:eslint": "eslint",
|
|
59
|
-
"lint:prettier": "prettier . --check",
|
|
60
|
-
"lint:cspell": "cspell . --gitignore",
|
|
61
|
-
"lint:types": "tsc",
|
|
62
|
-
"lint:knip": "knip",
|
|
63
|
-
"fix": "npm run fix:eslint && npm run fix:prettier",
|
|
64
|
-
"fix:eslint": "eslint --fix",
|
|
65
|
-
"fix:prettier": "prettier . --write",
|
|
66
|
-
"test": "vitest",
|
|
67
|
-
"test:watch": "vitest --watch",
|
|
68
|
-
"test:unicode": "node scripts/generate-unicode.mjs --check",
|
|
69
|
-
"production-test": "npm run build && cross-env PRODUCTION_TEST=1 vitest test/production/production-tests.ts",
|
|
70
|
-
"prepare-nightly": "node scripts/bump-dev-version.mjs",
|
|
71
|
-
"coverage": "vitest --coverage",
|
|
72
|
-
"post_coverage": "cross-env cat ./coverage/lcov.info | coveralls",
|
|
73
|
-
"prepublishOnly": "npm run build",
|
|
74
|
-
"preversion": "npm test",
|
|
75
|
-
"version": "standard-changelog && git add CHANGELOG.md",
|
|
76
|
-
"postversion": "git push && git push --tags && npm publish",
|
|
77
|
-
"prepare": "husky",
|
|
78
|
-
"generate-unicode": "node scripts/generate-unicode.mjs",
|
|
79
|
-
"generate-test262-whitelist": "npm run build && node test262/generate-test262-whitelist.mjs"
|
|
80
|
-
},
|
|
81
|
-
"devDependencies": {
|
|
82
|
-
"@babel/code-frame": "^7.27.1",
|
|
83
|
-
"@eslint/js": "^9.30.0",
|
|
84
|
-
"@rollup/plugin-json": "^6.1.0",
|
|
85
|
-
"@rollup/plugin-terser": "^0.4.4",
|
|
86
|
-
"@stylistic/eslint-plugin": "^5.1.0",
|
|
87
|
-
"@types/babel__code-frame": "^7.0.6",
|
|
88
|
-
"@types/node": "^24.0.7",
|
|
89
|
-
"@unicode/unicode-17.0.0": "^1.6.10",
|
|
90
|
-
"@vitest/coverage-v8": "^3.2.4",
|
|
91
|
-
"acorn": "^8.15.0",
|
|
92
|
-
"coveralls": "^3.1.1",
|
|
93
|
-
"cross-env": "^7.0.3",
|
|
94
|
-
"cspell": "^9.1.2",
|
|
95
|
-
"eslint": "^9.30.0",
|
|
96
|
-
"eslint-import-resolver-typescript": "^4.4.4",
|
|
97
|
-
"eslint-plugin-import-x": "^4.16.1",
|
|
98
|
-
"eslint-plugin-n": "^17.20.0",
|
|
99
|
-
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
100
|
-
"eslint-plugin-unicorn": "^62.0.0",
|
|
101
|
-
"globals": "^16.2.0",
|
|
102
|
-
"husky": "^9.1.7",
|
|
103
|
-
"knip": "^5.61.3",
|
|
104
|
-
"lint-staged": "^16.1.2",
|
|
105
|
-
"outdent": "^0.8.0",
|
|
106
|
-
"prettier": "3.6.2",
|
|
107
|
-
"rollup": "^4.44.1",
|
|
108
|
-
"rollup-plugin-typescript2": "^0.36.0",
|
|
109
|
-
"standard-changelog": "^7.0.1",
|
|
110
|
-
"test262-parser-runner": "^0.5.0",
|
|
111
|
-
"test262-stream": "^1.4.0",
|
|
112
|
-
"typescript": "^5.8.3",
|
|
113
|
-
"typescript-eslint": "^8.35.0",
|
|
114
|
-
"vitest": "^3.2.4"
|
|
115
|
-
},
|
|
116
55
|
"engines": {
|
|
117
56
|
"node": ">=20.0.0"
|
|
118
|
-
},
|
|
119
|
-
"lint-staged": {
|
|
120
|
-
"*.{ts,mts,cts,js,mjs,cjs}": "eslint --fix",
|
|
121
|
-
"*": "prettier --write --ignore-unknown"
|
|
122
57
|
}
|
|
123
58
|
}
|