nitro-nightly 3.0.1-20251216-103458-5f200e48 → 3.0.1-20251216-115724-06dfda17
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/README.md +2 -0
- package/dist/_libs/@rollup/plugin-alias.mjs +1 -1
- package/dist/_libs/@rollup/plugin-commonjs.mjs +2 -2
- package/dist/_libs/@rollup/plugin-inject.mjs +1 -1
- package/dist/_libs/@rollup/plugin-json.mjs +1 -1
- package/dist/_libs/@rollup/plugin-node-resolve.mjs +1 -1
- package/dist/_libs/@rollup/plugin-replace.mjs +1 -1
- package/dist/_nitro.mjs +29 -6
- package/dist/types/index.d.mts +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
2
|
|
|
3
|
-
//#region node_modules/.pnpm/@rollup+plugin-alias@6.0.0_rollup@4.53.
|
|
3
|
+
//#region node_modules/.pnpm/@rollup+plugin-alias@6.0.0_rollup@4.53.5/node_modules/@rollup/plugin-alias/dist/index.js
|
|
4
4
|
function matches(pattern, importee) {
|
|
5
5
|
if (pattern instanceof RegExp) return pattern.test(importee);
|
|
6
6
|
if (importee.length < pattern.length) return false;
|
|
@@ -2327,7 +2327,7 @@ function walk(ast, { enter, leave }) {
|
|
|
2327
2327
|
}
|
|
2328
2328
|
|
|
2329
2329
|
//#endregion
|
|
2330
|
-
//#region node_modules/.pnpm/@rollup+pluginutils@5.3.0_rollup@4.53.
|
|
2330
|
+
//#region node_modules/.pnpm/@rollup+pluginutils@5.3.0_rollup@4.53.5/node_modules/@rollup/pluginutils/dist/es/index.js
|
|
2331
2331
|
var import_picomatch = /* @__PURE__ */ __toESM(require_picomatch(), 1);
|
|
2332
2332
|
const extractors = {
|
|
2333
2333
|
ArrayPattern(names, param) {
|
|
@@ -2611,7 +2611,7 @@ var require_is_reference = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2611
2611
|
}));
|
|
2612
2612
|
|
|
2613
2613
|
//#endregion
|
|
2614
|
-
//#region node_modules/.pnpm/@rollup+plugin-commonjs@29.0.0_rollup@4.53.
|
|
2614
|
+
//#region node_modules/.pnpm/@rollup+plugin-commonjs@29.0.0_rollup@4.53.5/node_modules/@rollup/plugin-commonjs/dist/es/index.js
|
|
2615
2615
|
var import_commondir = /* @__PURE__ */ __toESM(require_commondir(), 1);
|
|
2616
2616
|
var import_is_reference = /* @__PURE__ */ __toESM(require_is_reference(), 1);
|
|
2617
2617
|
var version = "29.0.0";
|
|
@@ -2,7 +2,7 @@ import { r as MagicString } from "../@pi0/vite-plugin-fullstack.mjs";
|
|
|
2
2
|
import { a as makeLegalIdentifier, n as attachScopes, o as walk, r as createFilter } from "./plugin-commonjs.mjs";
|
|
3
3
|
import { sep } from "path";
|
|
4
4
|
|
|
5
|
-
//#region node_modules/.pnpm/@rollup+plugin-inject@5.0.5_rollup@4.53.
|
|
5
|
+
//#region node_modules/.pnpm/@rollup+plugin-inject@5.0.5_rollup@4.53.5/node_modules/@rollup/plugin-inject/dist/es/index.js
|
|
6
6
|
var escape = function(str) {
|
|
7
7
|
return str.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&");
|
|
8
8
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as dataToEsm, r as createFilter } from "./plugin-commonjs.mjs";
|
|
2
2
|
|
|
3
|
-
//#region node_modules/.pnpm/@rollup+plugin-json@6.1.0_rollup@4.53.
|
|
3
|
+
//#region node_modules/.pnpm/@rollup+plugin-json@6.1.0_rollup@4.53.5/node_modules/@rollup/plugin-json/dist/es/index.js
|
|
4
4
|
function json(options) {
|
|
5
5
|
if (options === void 0) options = {};
|
|
6
6
|
var filter = createFilter(options.include, options.exclude);
|
|
@@ -1113,7 +1113,7 @@ var require_resolve = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1113
1113
|
}));
|
|
1114
1114
|
|
|
1115
1115
|
//#endregion
|
|
1116
|
-
//#region node_modules/.pnpm/@rollup+plugin-node-resolve@16.0.3_rollup@4.53.
|
|
1116
|
+
//#region node_modules/.pnpm/@rollup+plugin-node-resolve@16.0.3_rollup@4.53.5/node_modules/@rollup/plugin-node-resolve/dist/es/index.js
|
|
1117
1117
|
var import_cjs = /* @__PURE__ */ __toESM(require_cjs(), 1);
|
|
1118
1118
|
var import_is_module = /* @__PURE__ */ __toESM(require_is_module(), 1);
|
|
1119
1119
|
var import_resolve = /* @__PURE__ */ __toESM(require_resolve(), 1);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as MagicString } from "../@pi0/vite-plugin-fullstack.mjs";
|
|
2
2
|
import { r as createFilter } from "./plugin-commonjs.mjs";
|
|
3
3
|
|
|
4
|
-
//#region node_modules/.pnpm/@rollup+plugin-replace@6.0.3_rollup@4.53.
|
|
4
|
+
//#region node_modules/.pnpm/@rollup+plugin-replace@6.0.3_rollup@4.53.5/node_modules/@rollup/plugin-replace/dist/es/index.js
|
|
5
5
|
function escape(str) {
|
|
6
6
|
return str.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&");
|
|
7
7
|
}
|
package/dist/_nitro.mjs
CHANGED
|
@@ -15,7 +15,7 @@ import { createRequire } from "node:module";
|
|
|
15
15
|
import consola$1, { consola } from "consola";
|
|
16
16
|
import { Hookable, createDebugger } from "hookable";
|
|
17
17
|
import { existsSync, promises } from "node:fs";
|
|
18
|
-
import { joinURL, parseURL, withBase, withLeadingSlash, withTrailingSlash, withoutBase, withoutTrailingSlash } from "ufo";
|
|
18
|
+
import { joinURL, parseURL, withBase, withLeadingSlash, withQuery, withTrailingSlash, withoutBase, withoutTrailingSlash } from "ufo";
|
|
19
19
|
import { pathToFileURL } from "node:url";
|
|
20
20
|
import fsp, { readFile } from "node:fs/promises";
|
|
21
21
|
import { defu } from "defu";
|
|
@@ -23,8 +23,8 @@ import { runtimeDir } from "nitro/meta";
|
|
|
23
23
|
import { colors } from "consola/utils";
|
|
24
24
|
import { hash } from "ohash";
|
|
25
25
|
import zlib from "node:zlib";
|
|
26
|
+
import http from "node:http";
|
|
26
27
|
import { toRequest } from "h3";
|
|
27
|
-
import { ofetch } from "ofetch";
|
|
28
28
|
|
|
29
29
|
//#region src/config/defaults.ts
|
|
30
30
|
const NitroDefaults = {
|
|
@@ -1318,12 +1318,35 @@ async function _getTasksContext(opts) {
|
|
|
1318
1318
|
const buildInfo = JSON.parse(await readFile(buildInfoPath, "utf8"));
|
|
1319
1319
|
if (!buildInfo.dev?.pid || !buildInfo.dev?.workerAddress) throw new Error(`Missing dev server info in: \`${buildInfoPath}\` ${_devHint}`);
|
|
1320
1320
|
if (!_pidIsRunning(buildInfo.dev.pid)) throw new Error(`Dev server is not running (pid: ${buildInfo.dev.pid})`);
|
|
1321
|
+
const baseURL = `http://${buildInfo.dev.workerAddress.host || "localhost"}:${buildInfo.dev.workerAddress.port || "3000"}`;
|
|
1322
|
+
const socketPath = buildInfo.dev.workerAddress.socketPath;
|
|
1323
|
+
const devFetch = (path, options) => {
|
|
1324
|
+
return new Promise((resolve$1, reject) => {
|
|
1325
|
+
let url = withBase(path, baseURL);
|
|
1326
|
+
if (options?.query) url = withQuery(url, options.query);
|
|
1327
|
+
const request = http.request(url, {
|
|
1328
|
+
socketPath,
|
|
1329
|
+
method: options?.method,
|
|
1330
|
+
headers: {
|
|
1331
|
+
Accept: "application/json",
|
|
1332
|
+
"Content-Type": "application/json"
|
|
1333
|
+
}
|
|
1334
|
+
}, (response) => {
|
|
1335
|
+
if (!response.statusCode || response.statusCode >= 400 && response.statusCode < 600) {
|
|
1336
|
+
reject(new Error(response.statusMessage));
|
|
1337
|
+
return;
|
|
1338
|
+
}
|
|
1339
|
+
let data = "";
|
|
1340
|
+
response.on("data", (chunk) => data += chunk).on("end", () => resolve$1(JSON.parse(data))).on("error", (e) => reject(e));
|
|
1341
|
+
});
|
|
1342
|
+
request.on("error", (e) => reject(e));
|
|
1343
|
+
if (options?.body) request.write(JSON.stringify(options.body));
|
|
1344
|
+
request.end();
|
|
1345
|
+
});
|
|
1346
|
+
};
|
|
1321
1347
|
return {
|
|
1322
1348
|
buildInfo,
|
|
1323
|
-
devFetch
|
|
1324
|
-
baseURL: `http://${buildInfo.dev.workerAddress.host || "localhost"}:${buildInfo.dev.workerAddress.port || "3000"}`,
|
|
1325
|
-
socketPath: buildInfo.dev.workerAddress.socketPath
|
|
1326
|
-
})
|
|
1349
|
+
devFetch
|
|
1327
1350
|
};
|
|
1328
1351
|
}
|
|
1329
1352
|
function _pidIsRunning(pid) {
|
package/dist/types/index.d.mts
CHANGED
|
@@ -5,7 +5,6 @@ import { IncomingMessage, OutgoingMessage } from "node:http";
|
|
|
5
5
|
import { H3Core, HTTPError, HTTPEvent, HTTPHandler, HTTPMethod, Middleware, ProxyOptions } from "h3";
|
|
6
6
|
import { Duplex } from "node:stream";
|
|
7
7
|
import { ServerRequest, ServerRequest as ServerRequest$1 } from "srvx";
|
|
8
|
-
import { FetchOptions, FetchRequest, FetchResponse } from "ofetch";
|
|
9
8
|
import { Preset } from "unenv";
|
|
10
9
|
import { ConnectorName } from "db0";
|
|
11
10
|
import { BuiltinDriverName } from "unstorage";
|
|
@@ -13,6 +12,7 @@ import { JsxOptions, TransformOptions } from "oxc-transform";
|
|
|
13
12
|
import { MinifyOptions } from "oxc-minify";
|
|
14
13
|
import { InputOptions, OutputOptions } from "rollup";
|
|
15
14
|
import { Nitro as Nitro$1, RunnerMessageListener as RunnerMessageListener$1 } from "nitro/types";
|
|
15
|
+
import { FetchOptions, FetchRequest, FetchResponse } from "ofetch";
|
|
16
16
|
import { RollupCommonJSOptions } from "@rollup/plugin-commonjs";
|
|
17
17
|
import { C12InputConfig, ConfigWatcher, DotenvOptions, ResolvedConfig, WatchConfigOptions } from "c12";
|
|
18
18
|
import { ChokidarOptions } from "chokidar";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nitro-nightly",
|
|
3
|
-
"version": "3.0.1-20251216-
|
|
3
|
+
"version": "3.0.1-20251216-115724-06dfda17",
|
|
4
4
|
"description": "Build and Deploy Universal JavaScript Servers",
|
|
5
5
|
"homepage": "https://nitro.build",
|
|
6
6
|
"repository": "nitrojs/nitro",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@azure/functions": "^3.5.1",
|
|
78
78
|
"@azure/static-web-apps-cli": "^2.0.7",
|
|
79
|
-
"@cloudflare/workers-types": "^4.
|
|
79
|
+
"@cloudflare/workers-types": "^4.20251216.0",
|
|
80
80
|
"@deno/types": "^0.0.1",
|
|
81
81
|
"@hiogawa/vite-plugin-fullstack": "npm:@pi0/vite-plugin-fullstack@0.0.5-pr-1297",
|
|
82
82
|
"@netlify/edge-functions": "^3.0.3",
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
"react": "^19.2.3",
|
|
141
141
|
"rendu": "^0.0.7",
|
|
142
142
|
"rolldown": "1.0.0-beta.54",
|
|
143
|
-
"rollup": "^4.53.
|
|
143
|
+
"rollup": "^4.53.5",
|
|
144
144
|
"rou3": "^0.7.12",
|
|
145
145
|
"scule": "^1.3.0",
|
|
146
146
|
"semver": "^7.7.3",
|
|
@@ -168,8 +168,8 @@
|
|
|
168
168
|
"peerDependencies": {
|
|
169
169
|
"nf3": ">=0.3.1",
|
|
170
170
|
"rolldown": "*",
|
|
171
|
-
"rollup": "^4",
|
|
172
|
-
"vite": ">=7",
|
|
171
|
+
"rollup": "^4.53.5",
|
|
172
|
+
"vite": ">=7.3.0",
|
|
173
173
|
"xml2js": "^0.6.2"
|
|
174
174
|
},
|
|
175
175
|
"peerDependenciesMeta": {
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
"optional": true
|
|
190
190
|
}
|
|
191
191
|
},
|
|
192
|
-
"packageManager": "pnpm@10.
|
|
192
|
+
"packageManager": "pnpm@10.26.0",
|
|
193
193
|
"engines": {
|
|
194
194
|
"node": "^20.19.0 || >=22.12.0"
|
|
195
195
|
}
|