@nubjs/nub-linux-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 (70) 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-linux-x64-gnu/README.md +0 -3
  11. package/runtime/node_modules/@oxc-parser/binding-linux-x64-gnu/package.json +0 -42
  12. package/runtime/node_modules/@oxc-parser/binding-linux-x64-gnu/parser.linux-x64-gnu.node +0 -0
  13. package/runtime/node_modules/@oxc-project/types/LICENSE +0 -22
  14. package/runtime/node_modules/@oxc-project/types/README.md +0 -3
  15. package/runtime/node_modules/@oxc-project/types/package.json +0 -26
  16. package/runtime/node_modules/@oxc-project/types/types.d.ts +0 -1912
  17. package/runtime/node_modules/@oxc-transform/binding-linux-x64-gnu/README.md +0 -3
  18. package/runtime/node_modules/@oxc-transform/binding-linux-x64-gnu/package.json +0 -44
  19. package/runtime/node_modules/@oxc-transform/binding-linux-x64-gnu/transform.linux-x64-gnu.node +0 -0
  20. package/runtime/node_modules/get-tsconfig/LICENSE +0 -21
  21. package/runtime/node_modules/get-tsconfig/README.md +0 -268
  22. package/runtime/node_modules/get-tsconfig/dist/index.cjs +0 -7
  23. package/runtime/node_modules/get-tsconfig/dist/index.d.cts +0 -2116
  24. package/runtime/node_modules/get-tsconfig/dist/index.d.mts +0 -2116
  25. package/runtime/node_modules/get-tsconfig/dist/index.mjs +0 -7
  26. package/runtime/node_modules/get-tsconfig/package.json +0 -46
  27. package/runtime/node_modules/oxc-parser/LICENSE +0 -22
  28. package/runtime/node_modules/oxc-parser/README.md +0 -167
  29. package/runtime/node_modules/oxc-parser/package.json +0 -153
  30. package/runtime/node_modules/oxc-parser/src-js/bindings.js +0 -601
  31. package/runtime/node_modules/oxc-parser/src-js/generated/constants.js +0 -105
  32. package/runtime/node_modules/oxc-parser/src-js/generated/deserialize/js.js +0 -5862
  33. package/runtime/node_modules/oxc-parser/src-js/generated/deserialize/js_range.js +0 -6403
  34. package/runtime/node_modules/oxc-parser/src-js/generated/deserialize/ts.js +0 -6154
  35. package/runtime/node_modules/oxc-parser/src-js/generated/deserialize/ts_range.js +0 -6723
  36. package/runtime/node_modules/oxc-parser/src-js/generated/lazy/constructors.js +0 -13875
  37. package/runtime/node_modules/oxc-parser/src-js/generated/lazy/type_ids.js +0 -191
  38. package/runtime/node_modules/oxc-parser/src-js/generated/lazy/walk.js +0 -5810
  39. package/runtime/node_modules/oxc-parser/src-js/generated/visit/keys.js +0 -220
  40. package/runtime/node_modules/oxc-parser/src-js/generated/visit/type_ids.js +0 -177
  41. package/runtime/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts +0 -387
  42. package/runtime/node_modules/oxc-parser/src-js/generated/visit/walk.js +0 -2455
  43. package/runtime/node_modules/oxc-parser/src-js/index.d.ts +0 -312
  44. package/runtime/node_modules/oxc-parser/src-js/index.js +0 -108
  45. package/runtime/node_modules/oxc-parser/src-js/raw-transfer/common.js +0 -301
  46. package/runtime/node_modules/oxc-parser/src-js/raw-transfer/eager.js +0 -255
  47. package/runtime/node_modules/oxc-parser/src-js/raw-transfer/lazy-common.js +0 -11
  48. package/runtime/node_modules/oxc-parser/src-js/raw-transfer/lazy.js +0 -162
  49. package/runtime/node_modules/oxc-parser/src-js/raw-transfer/node-array.js +0 -365
  50. package/runtime/node_modules/oxc-parser/src-js/raw-transfer/supported.js +0 -52
  51. package/runtime/node_modules/oxc-parser/src-js/raw-transfer/visitor.js +0 -127
  52. package/runtime/node_modules/oxc-parser/src-js/visit/index.js +0 -41
  53. package/runtime/node_modules/oxc-parser/src-js/visit/visitor.js +0 -405
  54. package/runtime/node_modules/oxc-parser/src-js/wasm.js +0 -13
  55. package/runtime/node_modules/oxc-parser/src-js/webcontainer-fallback.cjs +0 -21
  56. package/runtime/node_modules/oxc-parser/src-js/wrap.js +0 -57
  57. package/runtime/node_modules/oxc-transform/LICENSE +0 -22
  58. package/runtime/node_modules/oxc-transform/README.md +0 -84
  59. package/runtime/node_modules/oxc-transform/browser.js +0 -1
  60. package/runtime/node_modules/oxc-transform/index.d.ts +0 -658
  61. package/runtime/node_modules/oxc-transform/index.js +0 -598
  62. package/runtime/node_modules/oxc-transform/package.json +0 -114
  63. package/runtime/node_modules/oxc-transform/webcontainer-fallback.cjs +0 -21
  64. package/runtime/node_modules/resolve-pkg-maps/LICENSE +0 -21
  65. package/runtime/node_modules/resolve-pkg-maps/README.md +0 -216
  66. package/runtime/node_modules/resolve-pkg-maps/dist/index.cjs +0 -1
  67. package/runtime/node_modules/resolve-pkg-maps/dist/index.d.cts +0 -11
  68. package/runtime/node_modules/resolve-pkg-maps/dist/index.d.mts +0 -11
  69. package/runtime/node_modules/resolve-pkg-maps/dist/index.mjs +0 -1
  70. 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-linux-x64-gnu`
2
-
3
- This is the **x86_64-unknown-linux-gnu** binary for `@oxc-parser/binding`
@@ -1,42 +0,0 @@
1
- {
2
- "name": "@oxc-parser/binding-linux-x64-gnu",
3
- "version": "0.132.0",
4
- "cpu": [
5
- "x64"
6
- ],
7
- "main": "parser.linux-x64-gnu.node",
8
- "files": [
9
- "parser.linux-x64-gnu.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
- "linux"
38
- ],
39
- "libc": [
40
- "glibc"
41
- ]
42
- }
@@ -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
- }