@nubjs/nub-win32-arm64 0.0.13 → 0.0.15

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.
Files changed (64) hide show
  1. package/bin/nub.exe +0 -0
  2. package/package.json +1 -1
  3. package/runtime/addons/nub-native.node +0 -0
  4. package/runtime/polyfills.cjs +178 -0
  5. package/runtime/preload-async-hooks.mjs +5 -6
  6. package/runtime/preload-common.cjs +548 -0
  7. package/runtime/preload.cjs +277 -0
  8. package/runtime/preload.mjs +22 -11
  9. package/runtime/transform-core.mjs +98 -199
  10. package/runtime/version.mjs +1 -1
  11. package/runtime/worker-polyfill.mjs +15 -2
  12. package/runtime/node_modules/@oxc-parser/binding-win32-arm64-msvc/README.md +0 -3
  13. package/runtime/node_modules/@oxc-parser/binding-win32-arm64-msvc/package.json +0 -39
  14. package/runtime/node_modules/@oxc-parser/binding-win32-arm64-msvc/parser.win32-arm64-msvc.node +0 -0
  15. package/runtime/node_modules/@oxc-parser/binding-win32-x64-msvc/README.md +0 -3
  16. package/runtime/node_modules/@oxc-parser/binding-win32-x64-msvc/package.json +0 -39
  17. package/runtime/node_modules/@oxc-parser/binding-win32-x64-msvc/parser.win32-x64-msvc.node +0 -0
  18. package/runtime/node_modules/@oxc-project/types/LICENSE +0 -22
  19. package/runtime/node_modules/@oxc-project/types/README.md +0 -3
  20. package/runtime/node_modules/@oxc-project/types/package.json +0 -26
  21. package/runtime/node_modules/@oxc-project/types/types.d.ts +0 -1912
  22. package/runtime/node_modules/@oxc-transform/binding-win32-arm64-msvc/README.md +0 -3
  23. package/runtime/node_modules/@oxc-transform/binding-win32-arm64-msvc/package.json +0 -41
  24. package/runtime/node_modules/@oxc-transform/binding-win32-arm64-msvc/transform.win32-arm64-msvc.node +0 -0
  25. package/runtime/node_modules/@oxc-transform/binding-win32-x64-msvc/README.md +0 -3
  26. package/runtime/node_modules/@oxc-transform/binding-win32-x64-msvc/package.json +0 -41
  27. package/runtime/node_modules/@oxc-transform/binding-win32-x64-msvc/transform.win32-x64-msvc.node +0 -0
  28. package/runtime/node_modules/oxc-parser/LICENSE +0 -22
  29. package/runtime/node_modules/oxc-parser/README.md +0 -167
  30. package/runtime/node_modules/oxc-parser/package.json +0 -153
  31. package/runtime/node_modules/oxc-parser/src-js/bindings.js +0 -601
  32. package/runtime/node_modules/oxc-parser/src-js/generated/constants.js +0 -105
  33. package/runtime/node_modules/oxc-parser/src-js/generated/deserialize/js.js +0 -5862
  34. package/runtime/node_modules/oxc-parser/src-js/generated/deserialize/js_range.js +0 -6403
  35. package/runtime/node_modules/oxc-parser/src-js/generated/deserialize/ts.js +0 -6154
  36. package/runtime/node_modules/oxc-parser/src-js/generated/deserialize/ts_range.js +0 -6723
  37. package/runtime/node_modules/oxc-parser/src-js/generated/lazy/constructors.js +0 -13875
  38. package/runtime/node_modules/oxc-parser/src-js/generated/lazy/type_ids.js +0 -191
  39. package/runtime/node_modules/oxc-parser/src-js/generated/lazy/walk.js +0 -5810
  40. package/runtime/node_modules/oxc-parser/src-js/generated/visit/keys.js +0 -220
  41. package/runtime/node_modules/oxc-parser/src-js/generated/visit/type_ids.js +0 -177
  42. package/runtime/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts +0 -387
  43. package/runtime/node_modules/oxc-parser/src-js/generated/visit/walk.js +0 -2455
  44. package/runtime/node_modules/oxc-parser/src-js/index.d.ts +0 -312
  45. package/runtime/node_modules/oxc-parser/src-js/index.js +0 -108
  46. package/runtime/node_modules/oxc-parser/src-js/raw-transfer/common.js +0 -301
  47. package/runtime/node_modules/oxc-parser/src-js/raw-transfer/eager.js +0 -255
  48. package/runtime/node_modules/oxc-parser/src-js/raw-transfer/lazy-common.js +0 -11
  49. package/runtime/node_modules/oxc-parser/src-js/raw-transfer/lazy.js +0 -162
  50. package/runtime/node_modules/oxc-parser/src-js/raw-transfer/node-array.js +0 -365
  51. package/runtime/node_modules/oxc-parser/src-js/raw-transfer/supported.js +0 -52
  52. package/runtime/node_modules/oxc-parser/src-js/raw-transfer/visitor.js +0 -127
  53. package/runtime/node_modules/oxc-parser/src-js/visit/index.js +0 -41
  54. package/runtime/node_modules/oxc-parser/src-js/visit/visitor.js +0 -405
  55. package/runtime/node_modules/oxc-parser/src-js/wasm.js +0 -13
  56. package/runtime/node_modules/oxc-parser/src-js/webcontainer-fallback.cjs +0 -21
  57. package/runtime/node_modules/oxc-parser/src-js/wrap.js +0 -57
  58. package/runtime/node_modules/oxc-transform/LICENSE +0 -22
  59. package/runtime/node_modules/oxc-transform/README.md +0 -84
  60. package/runtime/node_modules/oxc-transform/browser.js +0 -1
  61. package/runtime/node_modules/oxc-transform/index.d.ts +0 -658
  62. package/runtime/node_modules/oxc-transform/index.js +0 -598
  63. package/runtime/node_modules/oxc-transform/package.json +0 -114
  64. package/runtime/node_modules/oxc-transform/webcontainer-fallback.cjs +0 -21
@@ -1,3 +0,0 @@
1
- # `@oxc-transform/binding-win32-arm64-msvc`
2
-
3
- This is the **aarch64-pc-windows-msvc** binary for `@oxc-transform/binding`
@@ -1,41 +0,0 @@
1
- {
2
- "name": "@oxc-transform/binding-win32-arm64-msvc",
3
- "version": "0.132.0",
4
- "cpu": [
5
- "arm64"
6
- ],
7
- "main": "transform.win32-arm64-msvc.node",
8
- "files": [
9
- "transform.win32-arm64-msvc.node"
10
- ],
11
- "description": "Oxc Transformer Node API",
12
- "keywords": [
13
- "babel",
14
- "javascript",
15
- "jsx",
16
- "oxc",
17
- "transform",
18
- "transformer",
19
- "tsx",
20
- "typescript"
21
- ],
22
- "author": "Boshen and oxc contributors",
23
- "homepage": "https://oxc.rs/docs/guide/usage/transformer",
24
- "license": "MIT",
25
- "engines": {
26
- "node": "^20.19.0 || >=22.12.0"
27
- },
28
- "repository": {
29
- "type": "git",
30
- "url": "git+https://github.com/oxc-project/oxc.git",
31
- "directory": "napi/transform"
32
- },
33
- "bugs": "https://github.com/oxc-project/oxc/issues",
34
- "publishConfig": {
35
- "registry": "https://registry.npmjs.org/",
36
- "access": "public"
37
- },
38
- "os": [
39
- "win32"
40
- ]
41
- }
@@ -1,3 +0,0 @@
1
- # `@oxc-transform/binding-win32-x64-msvc`
2
-
3
- This is the **x86_64-pc-windows-msvc** binary for `@oxc-transform/binding`
@@ -1,41 +0,0 @@
1
- {
2
- "name": "@oxc-transform/binding-win32-x64-msvc",
3
- "version": "0.132.0",
4
- "cpu": [
5
- "x64"
6
- ],
7
- "main": "transform.win32-x64-msvc.node",
8
- "files": [
9
- "transform.win32-x64-msvc.node"
10
- ],
11
- "description": "Oxc Transformer Node API",
12
- "keywords": [
13
- "babel",
14
- "javascript",
15
- "jsx",
16
- "oxc",
17
- "transform",
18
- "transformer",
19
- "tsx",
20
- "typescript"
21
- ],
22
- "author": "Boshen and oxc contributors",
23
- "homepage": "https://oxc.rs/docs/guide/usage/transformer",
24
- "license": "MIT",
25
- "engines": {
26
- "node": "^20.19.0 || >=22.12.0"
27
- },
28
- "repository": {
29
- "type": "git",
30
- "url": "git+https://github.com/oxc-project/oxc.git",
31
- "directory": "napi/transform"
32
- },
33
- "bugs": "https://github.com/oxc-project/oxc/issues",
34
- "publishConfig": {
35
- "registry": "https://registry.npmjs.org/",
36
- "access": "public"
37
- },
38
- "os": [
39
- "win32"
40
- ]
41
- }
@@ -1,22 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2024-present VoidZero Inc. & Contributors
4
- Copyright (c) 2023 Boshen
5
-
6
- Permission is hereby granted, free of charge, to any person obtaining a copy
7
- of this software and associated documentation files (the "Software"), to deal
8
- in the Software without restriction, including without limitation the rights
9
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- copies of the Software, and to permit persons to whom the Software is
11
- furnished to do so, subject to the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be included in all
14
- copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- SOFTWARE.
@@ -1,167 +0,0 @@
1
- # Oxc Parser
2
-
3
- See [usage instructions](https://oxc.rs/docs/guide/usage/parser).
4
-
5
- ## Features
6
-
7
- ### Supports WASM
8
-
9
- See https://stackblitz.com/edit/oxc-parser for usage example.
10
-
11
- ### ESTree
12
-
13
- When parsing JS or JSX files, the AST returned is fully conformant with the
14
- [ESTree standard](https://github.com/estree/estree), the same as produced by
15
- [Acorn](https://npmx.dev/package/acorn).
16
-
17
- When parsing TypeScript, the AST conforms to [@typescript-eslint/typescript-estree](https://npmx.dev/package/@typescript-eslint/typescript-estree)'s TS-ESTree format.
18
-
19
- If you need all ASTs in the same with-TS-properties format, use the `astType: 'ts'` option.
20
-
21
- The only differences between Oxc's AST and ESTree / TS-ESTree are:
22
-
23
- - Support for Stage 3 [decorators](https://github.com/tc39/proposal-decorators).
24
- - Support for Stage 3 ECMA features [`import defer`](https://github.com/tc39/proposal-defer-import-eval)
25
- and [`import source`](https://github.com/tc39/proposal-source-phase-imports).
26
- - In TS-ESTree AST, `import.defer(...)` and `import.source(...)` are represented as an `ImportExpression`
27
- with `'defer'` or `'source'` in `phase` field (as in ESTree spec), where TS-ESLint represents these
28
- as a `CallExpression` with `MetaProperty` as its `callee`.
29
- - Addition of a non-standard `hashbang` field to `Program`.
30
-
31
- That aside, the AST should completely align with Acorn's ESTree AST or TS-ESLint's TS-ESTree.
32
- Any deviation would be considered a bug.
33
-
34
- ### AST Types
35
-
36
- [@oxc-project/types](https://npmx.dev/package/@oxc-project/types) can be used. For example:
37
-
38
- ```typescript
39
- import { Statement } from "@oxc-project/types";
40
- ```
41
-
42
- ### Visitor
43
-
44
- An AST visitor is provided. See example below.
45
-
46
- This package also exports visitor keys which can be used with any other ESTree walker.
47
-
48
- ```js
49
- import { visitorKeys } from "oxc-parser";
50
- ```
51
-
52
- ### Fast Mode
53
-
54
- By default, Oxc parser does not produce semantic errors where symbols and scopes are needed.
55
-
56
- To enable semantic errors, apply the option `showSemanticErrors: true`.
57
-
58
- For example,
59
-
60
- ```js
61
- let foo;
62
- let foo;
63
- ```
64
-
65
- Does not produce any errors when `showSemanticErrors` is `false`, which is the default behavior.
66
-
67
- Fast mode is best suited for parser plugins, where other parts of your build pipeline has already checked for errors.
68
-
69
- Please note that turning off fast mode ​incurs​ a small performance overhead.
70
-
71
- ### Returns ESM information.
72
-
73
- It is likely that you are writing a parser plugin that requires ESM information.
74
-
75
- To avoid walking the AST again, Oxc Parser returns ESM information directly.
76
-
77
- This information can be used to rewrite import and exports with the help of [`magic-string`](https://npmx.dev/package/magic-string),
78
- without any AST manipulations.
79
-
80
- ```ts
81
- export interface EcmaScriptModule {
82
- /**
83
- * Has ESM syntax.
84
- *
85
- * i.e. `import` and `export` statements, and `import.meta`.
86
- *
87
- * Dynamic imports `import('foo')` are ignored since they can be used in non-ESM files.
88
- */
89
- hasModuleSyntax: boolean;
90
- /** Import statements */
91
- staticImports: Array<StaticImport>;
92
- /** Export statements */
93
- staticExports: Array<StaticExport>;
94
- /** Dynamic import expressions */
95
- dynamicImports: Array<DynamicImport>;
96
- /** Span positions of `import.meta` */
97
- importMetas: Array<Span>;
98
- }
99
- ```
100
-
101
- ## API
102
-
103
- ### Functions
104
-
105
- ```typescript
106
- // Synchronous parsing
107
- parseSync(filename: string, sourceText: string, options?: ParserOptions): ParseResult
108
-
109
- // Asynchronous parsing
110
- parse(filename: string, sourceText: string, options?: ParserOptions): Promise<ParseResult>
111
- ```
112
-
113
- Use `parseSync` for synchronous parsing. Use `parse` for asynchronous parsing, which can be beneficial in I/O-bound or concurrent scenarios, though it adds async overhead.
114
-
115
- ### Example
116
-
117
- ```javascript
118
- import { parseSync, Visitor } from "oxc-parser";
119
-
120
- const code = "const url: String = /* 🤨 */ import.meta.url;";
121
-
122
- // File extension is used to determine which dialect to parse source as.
123
- const filename = "test.tsx";
124
-
125
- const result = parseSync(filename, code);
126
- // Or use async version: const result = await parse(filename, code);
127
-
128
- // An array of errors, if any.
129
- console.log(result.errors);
130
-
131
- // AST and comments.
132
- console.log(result.program, result.comments);
133
-
134
- // ESM information - imports, exports, `import.meta`s.
135
- console.log(result.module);
136
-
137
- // Visit the AST
138
- const visitations = [];
139
-
140
- const visitor = new Visitor({
141
- VariableDeclaration(decl) {
142
- visitations.push(`enter ${decl.kind}`);
143
- },
144
- "VariableDeclaration:exit"(decl) {
145
- visitations.push(`exit ${decl.kind}`);
146
- },
147
- Identifier(ident) {
148
- visitations.push(ident.name);
149
- },
150
- });
151
-
152
- visitor.visit(result.program);
153
-
154
- // Logs: [ 'enter const', 'url', 'String', 'import', 'meta', 'url', 'exit const' ]
155
- console.log(visitations);
156
- ```
157
-
158
- ### Options
159
-
160
- All options are optional.
161
-
162
- - `lang`: `'js'` | `'jsx'` | `'ts'` | `'tsx'`. Set language of source. If omitted, language is deduced from file extension.
163
- - `sourceType`: `'script'` | `'module'` | `'unambiguous'`. Set source type. Defaults to `'module'`.
164
- - `astType`: `'js'` | `'ts'`. Set to `'ts'` if you want ASTs of plain JS/JSX files to contain TypeScript-specific properties.
165
- - `range`: `true` | `false`. If `true`, AST nodes contain a `range` field. Defaults to `false`.
166
- - `preserveParens`: `true` | `false`. If `true`, parenthesized expressions are represented by (non-standard) `ParenthesizedExpression` and `TSParenthesizedType` AST nodes. Defaults to `true`.
167
- - `showSemanticErrors`: `true` | `false`. If `true`, check file for semantic errors which parser does not otherwise emit e.g. `let x; let x;`. Has a small performance cost. Defaults to `false`.
@@ -1,153 +0,0 @@
1
- {
2
- "name": "oxc-parser",
3
- "version": "0.132.0",
4
- "description": "Oxc Parser Node API",
5
- "keywords": [
6
- "ast",
7
- "estree",
8
- "javascript",
9
- "oxc",
10
- "parser",
11
- "typescript"
12
- ],
13
- "homepage": "https://oxc.rs/docs/guide/usage/parser",
14
- "bugs": "https://github.com/oxc-project/oxc/issues",
15
- "license": "MIT",
16
- "author": "Boshen and oxc contributors",
17
- "repository": {
18
- "type": "git",
19
- "url": "git+https://github.com/oxc-project/oxc.git",
20
- "directory": "napi/parser"
21
- },
22
- "funding": {
23
- "url": "https://github.com/sponsors/Boshen"
24
- },
25
- "files": [
26
- "src-js/bindings.js",
27
- "src-js/index.d.ts",
28
- "src-js/index.js",
29
- "src-js/wasm.js",
30
- "src-js/webcontainer-fallback.cjs",
31
- "src-js/wrap.js",
32
- "src-js/generated/constants.js",
33
- "src-js/raw-transfer/common.js",
34
- "src-js/raw-transfer/eager.js",
35
- "src-js/raw-transfer/lazy-common.js",
36
- "src-js/raw-transfer/lazy.js",
37
- "src-js/raw-transfer/node-array.js",
38
- "src-js/raw-transfer/supported.js",
39
- "src-js/raw-transfer/visitor.js",
40
- "src-js/visit/index.js",
41
- "src-js/visit/visitor.js",
42
- "src-js/generated/deserialize/js.js",
43
- "src-js/generated/deserialize/js_range.js",
44
- "src-js/generated/deserialize/ts.js",
45
- "src-js/generated/deserialize/ts_range.js",
46
- "src-js/generated/lazy/constructors.js",
47
- "src-js/generated/lazy/type_ids.js",
48
- "src-js/generated/lazy/walk.js",
49
- "src-js/generated/visit/keys.js",
50
- "src-js/generated/visit/type_ids.js",
51
- "src-js/generated/visit/visitor.d.ts",
52
- "src-js/generated/visit/walk.js"
53
- ],
54
- "type": "module",
55
- "main": "src-js/index.js",
56
- "browser": "src-js/wasm.js",
57
- "publishConfig": {
58
- "access": "public",
59
- "registry": "https://registry.npmjs.org/"
60
- },
61
- "dependencies": {
62
- "@oxc-project/types": "^0.132.0"
63
- },
64
- "devDependencies": {
65
- "@codspeed/vitest-plugin": "^5.0.0",
66
- "@emnapi/core": "1.10.0",
67
- "@emnapi/runtime": "1.10.0",
68
- "@napi-rs/cli": "3.6.2",
69
- "@napi-rs/wasm-runtime": "1.1.4",
70
- "@types/node": "24.1.0",
71
- "@typescript-eslint/visitor-keys": "^8.54.0",
72
- "@vitest/browser": "4.1.6",
73
- "@vitest/browser-playwright": "4.1.6",
74
- "playwright": "^1.51.0",
75
- "publint": "0.3.21",
76
- "rolldown": "1.0.1",
77
- "tinypool": "^2.0.0",
78
- "vitest": "4.1.6"
79
- },
80
- "napi": {
81
- "binaryName": "parser",
82
- "dtsHeaderFile": "src-js/header.d.ts",
83
- "packageName": "@oxc-parser/binding",
84
- "targets": [
85
- "aarch64-apple-darwin",
86
- "aarch64-linux-android",
87
- "aarch64-pc-windows-msvc",
88
- "aarch64-unknown-linux-gnu",
89
- "aarch64-unknown-linux-musl",
90
- "aarch64-unknown-linux-ohos",
91
- "armv7-linux-androideabi",
92
- "armv7-unknown-linux-gnueabihf",
93
- "armv7-unknown-linux-musleabihf",
94
- "i686-pc-windows-msvc",
95
- "powerpc64le-unknown-linux-gnu",
96
- "riscv64gc-unknown-linux-gnu",
97
- "riscv64gc-unknown-linux-musl",
98
- "s390x-unknown-linux-gnu",
99
- "wasm32-wasip1-threads",
100
- "x86_64-apple-darwin",
101
- "x86_64-pc-windows-msvc",
102
- "x86_64-unknown-freebsd",
103
- "x86_64-unknown-linux-gnu",
104
- "x86_64-unknown-linux-musl"
105
- ],
106
- "wasm": {
107
- "browser": {
108
- "fs": false
109
- }
110
- }
111
- },
112
- "engines": {
113
- "node": "^20.19.0 || >=22.12.0"
114
- },
115
- "optionalDependencies": {
116
- "@oxc-parser/binding-darwin-arm64": "0.132.0",
117
- "@oxc-parser/binding-android-arm64": "0.132.0",
118
- "@oxc-parser/binding-win32-arm64-msvc": "0.132.0",
119
- "@oxc-parser/binding-linux-arm64-gnu": "0.132.0",
120
- "@oxc-parser/binding-linux-arm64-musl": "0.132.0",
121
- "@oxc-parser/binding-openharmony-arm64": "0.132.0",
122
- "@oxc-parser/binding-android-arm-eabi": "0.132.0",
123
- "@oxc-parser/binding-linux-arm-gnueabihf": "0.132.0",
124
- "@oxc-parser/binding-linux-arm-musleabihf": "0.132.0",
125
- "@oxc-parser/binding-win32-ia32-msvc": "0.132.0",
126
- "@oxc-parser/binding-linux-ppc64-gnu": "0.132.0",
127
- "@oxc-parser/binding-linux-riscv64-gnu": "0.132.0",
128
- "@oxc-parser/binding-linux-riscv64-musl": "0.132.0",
129
- "@oxc-parser/binding-linux-s390x-gnu": "0.132.0",
130
- "@oxc-parser/binding-wasm32-wasi": "0.132.0",
131
- "@oxc-parser/binding-darwin-x64": "0.132.0",
132
- "@oxc-parser/binding-win32-x64-msvc": "0.132.0",
133
- "@oxc-parser/binding-freebsd-x64": "0.132.0",
134
- "@oxc-parser/binding-linux-x64-gnu": "0.132.0",
135
- "@oxc-parser/binding-linux-x64-musl": "0.132.0"
136
- },
137
- "scripts": {
138
- "build-dev": "napi build --esm --platform --js bindings.js --dts index.d.ts --output-dir src-js",
139
- "build-test": "pnpm run build-dev --features tokens --profile coverage",
140
- "build": "pnpm run build-dev --features allocator --release",
141
- "postbuild": "publint",
142
- "postbuild-dev": "node scripts/patch.js",
143
- "build-wasi": "napi build --target wasm32-wasip1-threads",
144
- "build-wasm": "pnpm run build-wasm-dev --release",
145
- "build-wasm-dev": "pnpm run build-dev --target wasm32-wasip1-threads",
146
- "build-npm-dir": "rm -rf npm-dir && napi create-npm-dirs --npm-dir npm-dir && pnpm napi artifacts --npm-dir npm-dir --output-dir src-js",
147
- "build-browser-bundle": "node scripts/build-browser-bundle.js",
148
- "test": "pnpm run test-node run",
149
- "test-node": "vitest --dir ./test",
150
- "test-browser": "vitest -c vitest.config.browser.ts",
151
- "bench": "vitest bench --run ./bench.bench.js"
152
- }
153
- }