@nuxt/bridge-edge 3.6.1-29314769.d06c200 → 3.6.1-29470385.9a26e7f

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.
@@ -7,7 +7,7 @@ import { genObjectFromRawEntries, genDynamicImport } from 'knitwork';
7
7
  import fse from 'fs-extra';
8
8
  import { debounce } from 'perfect-debounce';
9
9
  import { isIgnored, logger } from '@nuxt/kit';
10
- import { g as generateDevSSRManifest, i as isCSS, h as hashId, u as uniq } from '../shared/bridge-edge.DfLAC_Lt.mjs';
10
+ import { g as generateDevSSRManifest, i as isCSS, h as hashId, u as uniq } from '../shared/bridge-edge.BZPN7TY0.mjs';
11
11
  import { c as createIsExternal } from './vite.mjs';
12
12
  import 'h3';
13
13
  import 'node-fetch';
@@ -3,7 +3,7 @@ import hash from 'hash-sum';
3
3
  import { resolve } from 'pathe';
4
4
  import { genObjectFromRawEntries, genImport } from 'knitwork';
5
5
 
6
- const version = "3.6.1-29314769.d06c200";
6
+ const version = "3.6.1-29470385.9a26e7f";
7
7
 
8
8
  const middlewareTemplate = {
9
9
  filename: "middleware.js",
@@ -147,7 +147,7 @@ const publicPathTemplate = {
147
147
  }
148
148
  };
149
149
 
150
- const module = defineNuxtModule({
150
+ const module$1 = defineNuxtModule({
151
151
  meta: {
152
152
  name: "nuxt-bridge:vite",
153
153
  configKey: "vite"
@@ -202,4 +202,4 @@ const module = defineNuxtModule({
202
202
  }
203
203
  });
204
204
 
205
- export { module as default };
205
+ export { module$1 as default };
@@ -2,7 +2,7 @@ import { normalize, resolve, isAbsolute, join } from 'pathe';
2
2
  import { logger, isIgnored } from '@nuxt/kit';
3
3
  import { resolve as resolve$1, findExports, sanitizeFilePath } from 'mlly';
4
4
  import { joinURL, withoutLeadingSlash, withTrailingSlash } from 'ufo';
5
- import { d as distDir, t as transpile, i as isCSS, p as prepareManifests, a as pkgDir } from '../shared/bridge-edge.DfLAC_Lt.mjs';
5
+ import { d as distDir, t as transpile, i as isCSS, p as prepareManifests, a as pkgDir } from '../shared/bridge-edge.BZPN7TY0.mjs';
6
6
  import createVuePlugin from '@vitejs/plugin-vue2';
7
7
  import { getPort } from 'get-port-please';
8
8
  import { toNodeListener, createApp, defineEventHandler, defineLazyEventHandler, eventHandler, createError } from 'h3';
@@ -560,8 +560,8 @@ function defaultExportPlugin() {
560
560
  }
561
561
  const code = await fse.readFile(removePrefix(id), "utf8");
562
562
  const s = new MagicString(code);
563
- const exports = findExports(code);
564
- if (!exports.find((i) => i.names.includes("default"))) {
563
+ const exports$1 = findExports(code);
564
+ if (!exports$1.find((i) => i.names.includes("default"))) {
565
565
  s.append("\n\nexport default () => {}");
566
566
  }
567
567
  return {
package/dist/module.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import '@nuxt/kit';
2
2
  import 'h3';
3
- export { m as default } from './shared/bridge-edge.DfLAC_Lt.mjs';
3
+ export { m as default } from './shared/bridge-edge.BZPN7TY0.mjs';
4
4
  import 'fs';
5
5
  import 'url';
6
6
  import 'node-fetch';
@@ -352,9 +352,10 @@ async function setupNitroBridge() {
352
352
  return;
353
353
  }
354
354
  if (name === "server") {
355
- const jsServerEntry = resolve(nuxt.options.buildDir, "dist/server/server.js");
356
- await promises.writeFile(jsServerEntry.replace(/.js$/, ".cjs"), 'module.exports = require("./server.js")', "utf8");
357
- await promises.writeFile(jsServerEntry.replace(/.js$/, ".mjs"), 'export { default } from "./server.cjs"', "utf8");
355
+ const serverDir = resolve(nuxt.options.buildDir, "dist/server");
356
+ await promises.writeFile(resolve(serverDir, "package.json"), JSON.stringify({ type: "commonjs" }), "utf8");
357
+ await promises.writeFile(resolve(serverDir, "server.cjs"), 'module.exports = require("./server.js")', "utf8");
358
+ await promises.writeFile(resolve(serverDir, "server.mjs"), 'export { default } from "./server.cjs"', "utf8");
358
359
  } else if (name === "client" && nuxt.options.dev) {
359
360
  const manifest = await promises.readFile(resolve(nuxt.options.buildDir, "dist/server/client.manifest.json"), "utf8");
360
361
  await promises.writeFile(resolve(nuxt.options.buildDir, "dist/server/client.manifest.mjs"), "export default " + JSON.stringify(normalizeWebpackManifest(JSON.parse(manifest)), null, 2), "utf8");
@@ -1221,8 +1222,8 @@ async function scanForComposables(dir, ctx) {
1221
1222
  files.map(async (path) => {
1222
1223
  filterInPlace(dynamicImports, (i) => i.from !== path);
1223
1224
  const code = await promises.readFile(path, "utf-8");
1224
- const exports = findExports(code);
1225
- const defaultExport = exports.find((i) => i.type === "default");
1225
+ const exports$1 = findExports(code);
1226
+ const defaultExport = exports$1.find((i) => i.type === "default");
1226
1227
  if (defaultExport) {
1227
1228
  let name = parse$1(path).name;
1228
1229
  if (name === "index") {
@@ -1230,7 +1231,7 @@ async function scanForComposables(dir, ctx) {
1230
1231
  }
1231
1232
  dynamicImports.push({ name: "default", as: camelCase(name), from: path });
1232
1233
  }
1233
- for (const exp of exports) {
1234
+ for (const exp of exports$1) {
1234
1235
  if (exp.type === "named") {
1235
1236
  for (const name of exp.names) {
1236
1237
  dynamicImports.push({ name, as: name, from: path });
@@ -1905,7 +1906,7 @@ const ImportMetaPlugin = createUnplugin(() => {
1905
1906
  };
1906
1907
  });
1907
1908
 
1908
- const module = defineNuxtModule({
1909
+ const module$1 = defineNuxtModule({
1909
1910
  meta: {
1910
1911
  name: "nuxt-bridge",
1911
1912
  configKey: "bridge"
@@ -2050,4 +2051,4 @@ const module = defineNuxtModule({
2050
2051
  }
2051
2052
  });
2052
2053
 
2053
- export { pkgDir as a, distDir as d, generateDevSSRManifest as g, hashId as h, isCSS as i, module as m, prepareManifests as p, transpile as t, uniq as u };
2054
+ export { pkgDir as a, distDir as d, generateDevSSRManifest as g, hashId as h, isCSS as i, module$1 as m, prepareManifests as p, transpile as t, uniq as u };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/bridge-edge",
3
- "version": "3.6.1-29314769.d06c200",
3
+ "version": "3.6.1-29470385.9a26e7f",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/bridge.git"
@@ -21,26 +21,26 @@
21
21
  "dependencies": {
22
22
  "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
23
23
  "@babel/plugin-proposal-optional-chaining": "^7.21.0",
24
- "@babel/plugin-transform-typescript": "^7.28.0",
25
- "@nuxt/bridge-schema": "npm:@nuxt/bridge-schema-edge@3.6.1-29314769.d06c200",
24
+ "@babel/plugin-transform-typescript": "^7.28.5",
25
+ "@nuxt/bridge-schema": "npm:@nuxt/bridge-schema-edge@3.6.1-29470385.9a26e7f",
26
26
  "@nuxt/devalue": "^2.0.2",
27
- "@nuxt/kit": "3.19.2",
28
- "@nuxt/schema": "3.19.2",
27
+ "@nuxt/kit": "3.20.2",
28
+ "@nuxt/schema": "3.20.2",
29
29
  "@nuxt/ui-templates": "^1.3.4",
30
- "@rollup/plugin-replace": "^6.0.2",
30
+ "@rollup/plugin-replace": "^6.0.3",
31
31
  "@unhead/ssr": "^1.11.20",
32
32
  "@unhead/vue": "^1.11.20",
33
33
  "@vitejs/plugin-legacy": "^7.2.1",
34
- "@vitejs/plugin-vue2": "^2.3.3",
34
+ "@vitejs/plugin-vue2": "^2.3.4",
35
35
  "acorn": "^8.15.0",
36
36
  "cookie-es": "^2.0.0",
37
37
  "defu": "^6.1.4",
38
38
  "destr": "^2.0.5",
39
- "enhanced-resolve": "^5.18.3",
40
- "esbuild-loader": "^4.3.0",
39
+ "enhanced-resolve": "^5.18.4",
40
+ "esbuild-loader": "^4.4.2",
41
41
  "escape-string-regexp": "^5.0.0",
42
42
  "estree-walker": "^3.0.3",
43
- "exsolve": "^1.0.7",
43
+ "exsolve": "^1.0.8",
44
44
  "externality": "^1.0.2",
45
45
  "fs-extra": "^10.1.0",
46
46
  "get-port-please": "^3.2.0",
@@ -48,39 +48,39 @@
48
48
  "hash-sum": "^2.0.0",
49
49
  "hookable": "5.5.3",
50
50
  "klona": "^2.0.6",
51
- "knitwork": "^1.2.0",
52
- "magic-string": "^0.30.19",
51
+ "knitwork": "^1.3.0",
52
+ "magic-string": "^0.30.21",
53
53
  "mlly": "^1.8.0",
54
54
  "mocked-exports": "^0.1.1",
55
- "nitropack": "^2.12.6",
55
+ "nitropack": "^2.13.0",
56
56
  "node-fetch": "^3.3.2",
57
57
  "nypm": "^0.6.2",
58
- "ofetch": "^1.4.1",
58
+ "ofetch": "^1.5.1",
59
59
  "ohash": "^2.0.11",
60
60
  "pathe": "^2.0.3",
61
61
  "perfect-debounce": "^2.0.0",
62
62
  "pkg-types": "^2.3.0",
63
63
  "postcss-import-resolver": "^2.0.0",
64
64
  "scule": "^1.3.0",
65
- "std-env": "^3.9.0",
66
- "terser": "^5.44.0",
67
- "ufo": "^1.6.1",
68
- "unimport": "^5.3.0",
65
+ "std-env": "^3.10.0",
66
+ "terser": "^5.44.1",
67
+ "ufo": "^1.6.2",
68
+ "unimport": "^5.6.0",
69
69
  "unplugin": "^1.16.1",
70
70
  "untyped": "^2.0.0",
71
- "vite": "~7.1.7",
72
- "vite-node": "^3.2.4",
73
- "vue-bundle-renderer": "^2.1.2"
71
+ "vite": "~7.3.1",
72
+ "vite-node": "^5.2.0",
73
+ "vue-bundle-renderer": "^2.2.0"
74
74
  },
75
75
  "devDependencies": {
76
- "@babel/core": "^7.28.4",
76
+ "@babel/core": "^7.28.5",
77
77
  "@types/estree": "^1.0.8",
78
78
  "@types/fs-extra": "^9.0.13",
79
79
  "@types/hash-sum": "^1.0.2",
80
80
  "@types/webpack": "^4.41.40",
81
81
  "@vue/compiler-sfc": "^2.7.16",
82
- "@vue/reactivity": "^3.5.21",
83
- "rollup": "^4.52.0",
82
+ "@vue/reactivity": "^3.5.26",
83
+ "rollup": "^4.55.1",
84
84
  "unbuild": "3.6.1",
85
85
  "vue": "^2.7.16",
86
86
  "vue-meta": "^2.4.0",