Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
"type": "module",
"version": "2.1.3",
"private": true,
"packageManager": "pnpm@11.1.3",
"packageManager": "pnpm@11.5.0",
"engines": {
"node": "^22.19.0 || ^24.11.0 || >=26.0.0"
},
"scripts": {
"build": "pnpm -r run build",
"build:debug": "NUXT_DEBUG_BUILD=true pnpm -r run build",
Expand Down Expand Up @@ -69,7 +72,6 @@
"@nuxt/devtools": "catalog:dev",
"chokidar": "catalog:dev",
"esbuild": "catalog:bundling",
"nitropack": "catalog:bundling",
"nuxt": "catalog:bundling",
"rollup": "catalog:bundling",
"semver": "catalog:deps",
Expand Down
13 changes: 8 additions & 5 deletions packages/node-modules-inspector/src/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const headers: Record<string, string> = isWebContainer

export default defineNuxtConfig({
ssr: false,
spaLoadingTemplate: false,

modules: [
'@vueuse/nuxt',
Expand Down Expand Up @@ -45,6 +46,10 @@ export default defineNuxtConfig({
clientNodeCompat: true,
},

future: {
compatibilityVersion: 5,
},

features: {
inlineStyles: false,
},
Expand Down Expand Up @@ -74,11 +79,10 @@ export default defineNuxtConfig({
headers,
},
},
sourceMap: false,
sourcemap: false,
},

app: {
baseURL: './',
head: {
title: 'Node Modules Inspector',
charset: 'utf-8',
Expand Down Expand Up @@ -107,7 +111,6 @@ export default defineNuxtConfig({
},

vite: {
base: './',
define: {
'import.meta.env.BACKEND': JSON.stringify(backend),
},
Expand Down Expand Up @@ -154,7 +157,7 @@ export default defineNuxtConfig({
},

devtools: {
enabled: false,
enabled: true,
},

typescript: {
Expand All @@ -172,5 +175,5 @@ export default defineNuxtConfig({
},
},

compatibilityDate: '2024-07-17',
compatibilityDate: '2026-05-29',
})
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import process from 'node:process'
import { consola } from 'consola'
import { createH3DevframeHost, createHostContext, startHttpAndWs } from 'devframe/node'
import { getRandomPort } from 'get-port-please'
import { defineEventHandler } from 'h3'
import devframe from '../../node/devframe'

consola.restoreAll()
Expand Down Expand Up @@ -49,7 +50,7 @@ function getServer() {
return _serverPromise
}

export default eventHandler(async () => {
export default defineEventHandler(async () => {
const { port, jsonSerializableMethods } = await getServer()
return { backend: 'websocket', websocket: port, jsonSerializableMethods }
})
8 changes: 4 additions & 4 deletions packages/node-modules-tools/src/json-parse-stream.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import StreamJSON from 'stream-json'
import { parser as createParser } from 'stream-json'
import Assembler from 'stream-json/assembler.js'

export class JsonParseStreamError extends Error {
Expand All @@ -14,7 +14,7 @@ export function parseJsonStream<T>(
stream: NodeJS.ReadableStream,
): Promise<T> {
const assembler = new Assembler()
const parser = StreamJSON.parser.asStream()
const parser = createParser.asStream()

return new Promise<T>((resolve) => {
parser.on('data', (chunk) => {
Expand All @@ -23,7 +23,7 @@ export function parseJsonStream<T>(
})
stream.pipe(parser)
parser.on('end', () => {
resolve(assembler.current)
resolve(assembler.current as T)
})
})
}
Expand All @@ -33,7 +33,7 @@ export function parseJsonStreamWithConcatArrays<T>(
sourceName: string,
): Promise<T[]> {
const assembler = new Assembler()
const parser = StreamJSON.parser.asStream({
const parser = createParser.asStream({
jsonStreaming: true,
})

Expand Down
13 changes: 13 additions & 0 deletions patches/@nuxt__nitro-server-nightly@5.0.0-29666842.2bab300c.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/dist/index.mjs b/dist/index.mjs
index 0e04d33a5c9cd0e31d4da72203d4963572005c4a..c80632ceede7f64b5e37d89c19183d4c6a793fa4 100644
--- a/dist/index.mjs
+++ b/dist/index.mjs
@@ -665,7 +665,7 @@ async function bundle(nuxt) {
base: nitroConfig.serverDir,
watchOptions: { ignored: [isIgnored] }
};
- const cacheDriverPath = join(distDir, "runtime/utils/cache-driver.js");
+ const cacheDriverPath = join(distDir, "runtime/utils/cache-driver.mjs");
const cacheDriverOption = isWindows ? pathToFileURL(cacheDriverPath).href : cacheDriverPath;
if (nuxt.options.dev) {
const payloadCacheDir = resolve(nuxt.options.buildDir, "cache/nuxt/payload");
Loading
Loading