@nubjs/nub-darwin-x64 0.0.14 → 0.0.16

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 (76) hide show
  1. package/bin/nub +0 -0
  2. package/package.json +1 -1
  3. package/runtime/addons/nub-native.node +0 -0
  4. package/runtime/preload-async-hooks.mjs +5 -6
  5. package/runtime/preload.cjs +10 -6
  6. package/runtime/preload.mjs +22 -11
  7. package/runtime/transform-core.mjs +183 -521
  8. package/runtime/version.mjs +1 -1
  9. package/runtime/worker-polyfill.mjs +15 -2
  10. package/runtime/node_modules/@oxc-parser/binding-darwin-arm64/README.md +0 -3
  11. package/runtime/node_modules/@oxc-parser/binding-darwin-arm64/package.json +0 -39
  12. package/runtime/node_modules/@oxc-parser/binding-darwin-arm64/parser.darwin-arm64.node +0 -0
  13. package/runtime/node_modules/@oxc-parser/binding-darwin-x64/README.md +0 -3
  14. package/runtime/node_modules/@oxc-parser/binding-darwin-x64/package.json +0 -39
  15. package/runtime/node_modules/@oxc-parser/binding-darwin-x64/parser.darwin-x64.node +0 -0
  16. package/runtime/node_modules/@oxc-project/types/LICENSE +0 -22
  17. package/runtime/node_modules/@oxc-project/types/README.md +0 -3
  18. package/runtime/node_modules/@oxc-project/types/package.json +0 -26
  19. package/runtime/node_modules/@oxc-project/types/types.d.ts +0 -1912
  20. package/runtime/node_modules/@oxc-transform/binding-darwin-arm64/README.md +0 -3
  21. package/runtime/node_modules/@oxc-transform/binding-darwin-arm64/package.json +0 -41
  22. package/runtime/node_modules/@oxc-transform/binding-darwin-arm64/transform.darwin-arm64.node +0 -0
  23. package/runtime/node_modules/@oxc-transform/binding-darwin-x64/README.md +0 -3
  24. package/runtime/node_modules/@oxc-transform/binding-darwin-x64/package.json +0 -41
  25. package/runtime/node_modules/@oxc-transform/binding-darwin-x64/transform.darwin-x64.node +0 -0
  26. package/runtime/node_modules/get-tsconfig/LICENSE +0 -21
  27. package/runtime/node_modules/get-tsconfig/README.md +0 -268
  28. package/runtime/node_modules/get-tsconfig/dist/index.cjs +0 -7
  29. package/runtime/node_modules/get-tsconfig/dist/index.d.cts +0 -2116
  30. package/runtime/node_modules/get-tsconfig/dist/index.d.mts +0 -2116
  31. package/runtime/node_modules/get-tsconfig/dist/index.mjs +0 -7
  32. package/runtime/node_modules/get-tsconfig/package.json +0 -46
  33. package/runtime/node_modules/oxc-parser/LICENSE +0 -22
  34. package/runtime/node_modules/oxc-parser/README.md +0 -167
  35. package/runtime/node_modules/oxc-parser/package.json +0 -153
  36. package/runtime/node_modules/oxc-parser/src-js/bindings.js +0 -601
  37. package/runtime/node_modules/oxc-parser/src-js/generated/constants.js +0 -105
  38. package/runtime/node_modules/oxc-parser/src-js/generated/deserialize/js.js +0 -5862
  39. package/runtime/node_modules/oxc-parser/src-js/generated/deserialize/js_range.js +0 -6403
  40. package/runtime/node_modules/oxc-parser/src-js/generated/deserialize/ts.js +0 -6154
  41. package/runtime/node_modules/oxc-parser/src-js/generated/deserialize/ts_range.js +0 -6723
  42. package/runtime/node_modules/oxc-parser/src-js/generated/lazy/constructors.js +0 -13875
  43. package/runtime/node_modules/oxc-parser/src-js/generated/lazy/type_ids.js +0 -191
  44. package/runtime/node_modules/oxc-parser/src-js/generated/lazy/walk.js +0 -5810
  45. package/runtime/node_modules/oxc-parser/src-js/generated/visit/keys.js +0 -220
  46. package/runtime/node_modules/oxc-parser/src-js/generated/visit/type_ids.js +0 -177
  47. package/runtime/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts +0 -387
  48. package/runtime/node_modules/oxc-parser/src-js/generated/visit/walk.js +0 -2455
  49. package/runtime/node_modules/oxc-parser/src-js/index.d.ts +0 -312
  50. package/runtime/node_modules/oxc-parser/src-js/index.js +0 -108
  51. package/runtime/node_modules/oxc-parser/src-js/raw-transfer/common.js +0 -301
  52. package/runtime/node_modules/oxc-parser/src-js/raw-transfer/eager.js +0 -255
  53. package/runtime/node_modules/oxc-parser/src-js/raw-transfer/lazy-common.js +0 -11
  54. package/runtime/node_modules/oxc-parser/src-js/raw-transfer/lazy.js +0 -162
  55. package/runtime/node_modules/oxc-parser/src-js/raw-transfer/node-array.js +0 -365
  56. package/runtime/node_modules/oxc-parser/src-js/raw-transfer/supported.js +0 -52
  57. package/runtime/node_modules/oxc-parser/src-js/raw-transfer/visitor.js +0 -127
  58. package/runtime/node_modules/oxc-parser/src-js/visit/index.js +0 -41
  59. package/runtime/node_modules/oxc-parser/src-js/visit/visitor.js +0 -405
  60. package/runtime/node_modules/oxc-parser/src-js/wasm.js +0 -13
  61. package/runtime/node_modules/oxc-parser/src-js/webcontainer-fallback.cjs +0 -21
  62. package/runtime/node_modules/oxc-parser/src-js/wrap.js +0 -57
  63. package/runtime/node_modules/oxc-transform/LICENSE +0 -22
  64. package/runtime/node_modules/oxc-transform/README.md +0 -84
  65. package/runtime/node_modules/oxc-transform/browser.js +0 -1
  66. package/runtime/node_modules/oxc-transform/index.d.ts +0 -658
  67. package/runtime/node_modules/oxc-transform/index.js +0 -598
  68. package/runtime/node_modules/oxc-transform/package.json +0 -114
  69. package/runtime/node_modules/oxc-transform/webcontainer-fallback.cjs +0 -21
  70. package/runtime/node_modules/resolve-pkg-maps/LICENSE +0 -21
  71. package/runtime/node_modules/resolve-pkg-maps/README.md +0 -216
  72. package/runtime/node_modules/resolve-pkg-maps/dist/index.cjs +0 -1
  73. package/runtime/node_modules/resolve-pkg-maps/dist/index.d.cts +0 -11
  74. package/runtime/node_modules/resolve-pkg-maps/dist/index.d.mts +0 -11
  75. package/runtime/node_modules/resolve-pkg-maps/dist/index.mjs +0 -1
  76. package/runtime/node_modules/resolve-pkg-maps/package.json +0 -42
@@ -9,4 +9,4 @@
9
9
  // previously lived as a literal inside preload.mjs, which `make version` patched,
10
10
  // while the worker carried a hand-maintained "…-compat" copy that `make version`
11
11
  // never touched — a latent staleness bug this module closes.)
12
- export const NUB_VERSION = "0.0.14";
12
+ export const NUB_VERSION = "0.0.16";
@@ -13,8 +13,21 @@
13
13
  // the child crashes (observed against test-esm-loader-chaining). `process
14
14
  // .getBuiltinModule` fetches the real builtin synchronously off the loader
15
15
  // graph, bypassing the user chain entirely — same fix transform-core.mjs uses.
16
- const { Worker: NodeWorker, parentPort, isMainThread } = process.getBuiltinModule("node:worker_threads");
17
- const { fileURLToPath } = process.getBuiltinModule("node:url");
16
+ // `process.getBuiltinModule` doesn't exist below Node 22.3 / 20.16 / 18.20.4 (it
17
+ // threw `TypeError: ... is not a function` there). Fall back to a createRequire
18
+ // bootstrapped from a single static `node:module` import. The actual builtins below
19
+ // are still fetched through `__getBuiltin` — getBuiltinModule on new Node, CJS
20
+ // `__require` on old — and BOTH bypass the user ESM loader chain (the whole reason
21
+ // this file avoids a static `import` of node:worker_threads). Only the bootstrap
22
+ // touches node:module, which user loader hooks don't intercept (unlike the mockable
23
+ // node:worker_threads the chaining test targets), so the bypass guarantee holds.
24
+ import { createRequire as __bootstrapCreateRequire } from "node:module";
25
+ const __getBuiltin =
26
+ typeof process.getBuiltinModule === "function"
27
+ ? (id) => process.getBuiltinModule(id)
28
+ : ((__r) => (id) => __r(id))(__bootstrapCreateRequire(import.meta.url));
29
+ const { Worker: NodeWorker, parentPort, isMainThread } = __getBuiltin("node:worker_threads");
30
+ const { fileURLToPath } = __getBuiltin("node:url");
18
31
 
19
32
  // `ErrorEvent` only became a global in Node 26. On the 22/24 floor it is
20
33
  // undefined, so `new ErrorEvent(...)` below would throw a ReferenceError inside
@@ -1,3 +0,0 @@
1
- # `@oxc-parser/binding-darwin-arm64`
2
-
3
- This is the **aarch64-apple-darwin** binary for `@oxc-parser/binding`
@@ -1,39 +0,0 @@
1
- {
2
- "name": "@oxc-parser/binding-darwin-arm64",
3
- "version": "0.132.0",
4
- "cpu": [
5
- "arm64"
6
- ],
7
- "main": "parser.darwin-arm64.node",
8
- "files": [
9
- "parser.darwin-arm64.node"
10
- ],
11
- "description": "Oxc Parser Node API",
12
- "keywords": [
13
- "ast",
14
- "estree",
15
- "javascript",
16
- "oxc",
17
- "parser",
18
- "typescript"
19
- ],
20
- "author": "Boshen and oxc contributors",
21
- "homepage": "https://oxc.rs/docs/guide/usage/parser",
22
- "license": "MIT",
23
- "engines": {
24
- "node": "^20.19.0 || >=22.12.0"
25
- },
26
- "repository": {
27
- "type": "git",
28
- "url": "git+https://github.com/oxc-project/oxc.git",
29
- "directory": "napi/parser"
30
- },
31
- "bugs": "https://github.com/oxc-project/oxc/issues",
32
- "publishConfig": {
33
- "registry": "https://registry.npmjs.org/",
34
- "access": "public"
35
- },
36
- "os": [
37
- "darwin"
38
- ]
39
- }
@@ -1,3 +0,0 @@
1
- # `@oxc-parser/binding-darwin-x64`
2
-
3
- This is the **x86_64-apple-darwin** binary for `@oxc-parser/binding`
@@ -1,39 +0,0 @@
1
- {
2
- "name": "@oxc-parser/binding-darwin-x64",
3
- "version": "0.132.0",
4
- "cpu": [
5
- "x64"
6
- ],
7
- "main": "parser.darwin-x64.node",
8
- "files": [
9
- "parser.darwin-x64.node"
10
- ],
11
- "description": "Oxc Parser Node API",
12
- "keywords": [
13
- "ast",
14
- "estree",
15
- "javascript",
16
- "oxc",
17
- "parser",
18
- "typescript"
19
- ],
20
- "author": "Boshen and oxc contributors",
21
- "homepage": "https://oxc.rs/docs/guide/usage/parser",
22
- "license": "MIT",
23
- "engines": {
24
- "node": "^20.19.0 || >=22.12.0"
25
- },
26
- "repository": {
27
- "type": "git",
28
- "url": "git+https://github.com/oxc-project/oxc.git",
29
- "directory": "napi/parser"
30
- },
31
- "bugs": "https://github.com/oxc-project/oxc/issues",
32
- "publishConfig": {
33
- "registry": "https://registry.npmjs.org/",
34
- "access": "public"
35
- },
36
- "os": [
37
- "darwin"
38
- ]
39
- }
@@ -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,3 +0,0 @@
1
- # Oxc Types
2
-
3
- Typescript definitions for Oxc AST nodes.
@@ -1,26 +0,0 @@
1
- {
2
- "name": "@oxc-project/types",
3
- "version": "0.132.0",
4
- "description": "Types for Oxc AST nodes",
5
- "keywords": [
6
- "AST",
7
- "Parser"
8
- ],
9
- "homepage": "https://oxc.rs",
10
- "bugs": "https://github.com/oxc-project/oxc/issues",
11
- "license": "MIT",
12
- "author": "Boshen and oxc contributors",
13
- "repository": {
14
- "type": "git",
15
- "url": "git+https://github.com/oxc-project/oxc.git",
16
- "directory": "npm/oxc-types"
17
- },
18
- "funding": {
19
- "url": "https://github.com/sponsors/Boshen"
20
- },
21
- "files": [
22
- "types.d.ts"
23
- ],
24
- "type": "module",
25
- "types": "types.d.ts"
26
- }