@kubb/agent 5.0.0-alpha.42 → 5.0.0-alpha.43

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.
@@ -1,6 +1,5 @@
1
1
  import { createRequire } from "node:module";
2
2
  import _createJiti from "../dist/jiti.cjs";
3
- import transform from "../dist/babel.cjs";
4
3
 
5
4
  function onError(err) {
6
5
  throw err; /* ↓ Check stack trace ↓ */
@@ -8,9 +7,17 @@ function onError(err) {
8
7
 
9
8
  const nativeImport = (id) => import(id);
10
9
 
10
+ let _transform;
11
+ function lazyTransform(...args) {
12
+ if (!_transform) {
13
+ _transform = createRequire(import.meta.url)("../dist/babel.cjs");
14
+ }
15
+ return _transform(...args);
16
+ }
17
+
11
18
  export function createJiti(id, opts = {}) {
12
19
  if (!opts.transform) {
13
- opts = { ...opts, transform };
20
+ opts = { ...opts, transform: lazyTransform };
14
21
  }
15
22
  return _createJiti(id, opts, {
16
23
  onError,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jiti",
3
- "version": "2.5.1",
3
+ "version": "2.6.1",
4
4
  "description": "Runtime typescript and ESM support for Node.js",
5
5
  "repository": "unjs/jiti",
6
6
  "license": "MIT",
@@ -48,9 +48,10 @@
48
48
  "register.cjs"
49
49
  ],
50
50
  "scripts": {
51
- "build": "pnpm clean && NODE_ENV=production pnpm webpack",
51
+ "bench": "node test/bench.mjs && deno -A test/bench.mjs && bun --bun test/bench.mjs",
52
+ "build": "pnpm clean && pnpm rspack",
52
53
  "clean": "rm -rf dist",
53
- "dev": "pnpm clean && pnpm webpack --watch",
54
+ "dev": "pnpm clean && pnpm rspack --watch",
54
55
  "jiti": "JITI_DEBUG=1 JITI_JSX=1 lib/jiti-cli.mjs",
55
56
  "lint": "eslint . && prettier -c src lib test stubs",
56
57
  "lint:fix": "eslint --fix . && prettier -w src lib test stubs",
@@ -66,9 +67,9 @@
66
67
  "test:types": "tsc --noEmit"
67
68
  },
68
69
  "devDependencies": {
69
- "@babel/core": "^7.28.0",
70
+ "@babel/core": "^7.28.4",
70
71
  "@babel/helper-module-imports": "^7.27.1",
71
- "@babel/helper-module-transforms": "^7.27.3",
72
+ "@babel/helper-module-transforms": "^7.28.3",
72
73
  "@babel/helper-plugin-utils": "^7.27.1",
73
74
  "@babel/helper-simple-access": "^7.27.1",
74
75
  "@babel/plugin-proposal-decorators": "^7.28.0",
@@ -80,55 +81,53 @@
80
81
  "@babel/plugin-transform-typescript": "^7.28.0",
81
82
  "@babel/preset-typescript": "^7.27.1",
82
83
  "@babel/template": "^7.27.2",
83
- "@babel/traverse": "^7.28.0",
84
- "@babel/types": "^7.28.1",
84
+ "@babel/traverse": "^7.28.4",
85
+ "@babel/types": "^7.28.4",
86
+ "@rspack/cli": "^1.5.8",
87
+ "@rspack/core": "^1.5.8",
85
88
  "@types/babel__core": "^7.20.5",
86
89
  "@types/babel__helper-module-imports": "^7.18.3",
87
90
  "@types/babel__helper-plugin-utils": "^7.10.3",
88
91
  "@types/babel__template": "^7.4.4",
89
- "@types/babel__traverse": "^7.20.7",
90
- "@types/node": "^24.1.0",
92
+ "@types/babel__traverse": "^7.28.0",
93
+ "@types/node": "^24.6.1",
91
94
  "@vitest/coverage-v8": "^3.2.4",
92
95
  "acorn": "^8.15.0",
93
96
  "babel-plugin-parameter-decorator": "^1.0.16",
94
97
  "changelogen": "^0.6.2",
95
- "config": "^4.0.1",
98
+ "config": "^4.1.1",
96
99
  "consola": "^3.4.2",
97
100
  "defu": "^6.1.4",
98
101
  "destr": "^2.0.5",
99
102
  "escape-string-regexp": "^5.0.0",
100
- "eslint": "^9.31.0",
103
+ "eslint": "^9.36.0",
101
104
  "eslint-config-unjs": "^0.5.0",
102
105
  "estree-walker": "^3.0.3",
103
106
  "etag": "^1.8.1",
104
107
  "fast-glob": "^3.3.3",
105
108
  "is-installed-globally": "^1.0.0",
106
- "mime": "^4.0.7",
107
- "mlly": "^1.7.4",
109
+ "mime": "^4.1.0",
110
+ "mlly": "^1.8.0",
108
111
  "moment-timezone": "^0.6.0",
109
- "nano-jsx": "^0.1.0",
112
+ "nano-jsx": "^0.2.0",
110
113
  "pathe": "^2.0.3",
111
- "pkg-types": "^2.2.0",
112
- "preact": "^10.26.9",
113
- "preact-render-to-string": "^6.5.13",
114
+ "pkg-types": "^2.3.0",
115
+ "preact": "^10.27.2",
116
+ "preact-render-to-string": "^6.6.2",
114
117
  "prettier": "^3.6.2",
115
- "react": "^19.1.0",
116
- "react-dom": "^19.1.0",
118
+ "react": "^19.1.1",
119
+ "react-dom": "^19.1.1",
117
120
  "reflect-metadata": "^0.2.2",
118
- "solid-js": "^1.9.7",
121
+ "solid-js": "^1.9.9",
119
122
  "std-env": "^3.9.0",
120
123
  "terser-webpack-plugin": "^5.3.14",
121
124
  "tinyexec": "^1.0.1",
122
- "ts-loader": "^9.5.2",
123
- "typescript": "^5.8.3",
125
+ "ts-loader": "^9.5.4",
126
+ "typescript": "^5.9.3",
124
127
  "vitest": "^3.2.4",
125
- "vue": "^3.5.18",
126
- "webpack": "^5.100.2",
127
- "webpack-bundle-analyzer": "^4.10.2",
128
- "webpack-cli": "^6.0.1",
129
- "webpack-license-plugin": "^4.5.1",
130
- "yoctocolors": "^2.1.1",
131
- "zod": "^4.0.5"
128
+ "vue": "^3.5.22",
129
+ "yoctocolors": "^2.1.2",
130
+ "zod": "^4.1.11"
132
131
  },
133
- "packageManager": "pnpm@10.6.1"
132
+ "packageManager": "pnpm@10.17.1"
134
133
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/agent-prod",
3
- "version": "5.0.0-alpha.42",
3
+ "version": "5.0.0-alpha.43",
4
4
  "type": "module",
5
5
  "private": true,
6
6
  "dependencies": {
@@ -13,7 +13,7 @@
13
13
  "chokidar": "5.0.0",
14
14
  "consola": "3.4.2",
15
15
  "fflate": "0.8.2",
16
- "jiti": "2.5.1",
16
+ "jiti": "2.6.1",
17
17
  "normalize-path": "3.0.0",
18
18
  "picomatch": "2.3.2",
19
19
  "readdirp": "5.0.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/agent",
3
- "version": "5.0.0-alpha.42",
3
+ "version": "5.0.0-alpha.43",
4
4
  "description": "Agent server for Kubb, enabling HTTP-based access to code generation capabilities.",
5
5
  "keywords": [
6
6
  "agent",
@@ -34,15 +34,15 @@
34
34
  "dependencies": {
35
35
  "@logtail/node": "^0.5.8",
36
36
  "consola": "^3.4.2",
37
- "jiti": "2.5.1",
37
+ "jiti": "^2.6.1",
38
38
  "remeda": "^2.33.7",
39
39
  "tinyexec": "^1.1.1",
40
40
  "unstorage": "^1.17.5",
41
41
  "ws": "^8.20.0",
42
- "@kubb/adapter-oas": "5.0.0-alpha.42",
43
- "@kubb/ast": "5.0.0-alpha.42",
44
- "@kubb/core": "5.0.0-alpha.42",
45
- "@kubb/parser-ts": "5.0.0-alpha.42"
42
+ "@kubb/adapter-oas": "5.0.0-alpha.43",
43
+ "@kubb/ast": "5.0.0-alpha.43",
44
+ "@kubb/core": "5.0.0-alpha.43",
45
+ "@kubb/parser-ts": "5.0.0-alpha.43"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/ws": "^8.18.1",