@nuxt/bridge-edge 3.0.0-27690335.da95eff → 3.0.0-27700335.6dfc006

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.
@@ -3,7 +3,7 @@ import hash from 'hash-sum';
3
3
  import { resolve } from 'pathe';
4
4
  import { genImport, genObjectFromRawEntries } from 'knitwork';
5
5
 
6
- const version = "3.0.0-27690335.da95eff";
6
+ const version = "3.0.0-27700335.6dfc006";
7
7
 
8
8
  const middlewareTemplate = {
9
9
  filename: "middleware.js",
@@ -4,7 +4,7 @@ import { logger, isIgnored } from '@nuxt/kit';
4
4
  import { findExports, sanitizeFilePath } from 'mlly';
5
5
  import { getPort } from 'get-port-please';
6
6
  import { joinURL, withoutLeadingSlash } from 'ufo';
7
- import { i as isCSS, h as hashId, u as uniq, g as generateDevSSRManifest, d as distDir, p as prepareManifests } from '../shared/bridge-edge.54ede1d7.mjs';
7
+ import { i as isCSS, h as hashId, u as uniq, g as generateDevSSRManifest, d as distDir, p as prepareManifests } from '../shared/bridge-edge.629ed96d.mjs';
8
8
  import { createUnplugin } from 'unplugin';
9
9
  import escapeRE from 'escape-string-regexp';
10
10
  import MagicString from 'magic-string';
@@ -22,6 +22,7 @@ import { defu } from 'defu';
22
22
  import 'node-fetch';
23
23
  import 'nitropack';
24
24
  import 'h3';
25
+ import 'vue-bundle-renderer';
25
26
  import 'path';
26
27
  import 'untyped';
27
28
  import 'crypto';
@@ -31,7 +32,6 @@ import 'util';
31
32
  import 'enhanced-resolve';
32
33
  import 'unimport';
33
34
  import 'scule';
34
- import 'vue-bundle-renderer';
35
35
 
36
36
  async function warmupViteServer(server, entries) {
37
37
  const warmedUrls = /* @__PURE__ */ new Set();
package/dist/module.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import 'module';
2
2
  import '@nuxt/kit';
3
- export { m as default } from './shared/bridge-edge.54ede1d7.mjs';
3
+ export { m as default } from './shared/bridge-edge.629ed96d.mjs';
4
4
  import 'fs';
5
5
  import 'url';
6
6
  import 'node-fetch';
@@ -10,6 +10,7 @@ import 'pathe';
10
10
  import 'nitropack';
11
11
  import 'h3';
12
12
  import 'defu';
13
+ import 'vue-bundle-renderer';
13
14
  import 'path';
14
15
  import 'mlly';
15
16
  import 'knitwork';
@@ -23,4 +24,3 @@ import 'util';
23
24
  import 'enhanced-resolve';
24
25
  import 'unimport';
25
26
  import 'scule';
26
- import 'vue-bundle-renderer';
@@ -9,6 +9,7 @@ import { dirname, join as join$1, resolve, normalize, isAbsolute, relative, pars
9
9
  import { createNitro, writeTypes, build, prepare, copyPublicAssets, prerender, createDevServer } from 'nitropack';
10
10
  import { dynamicEventHandler, toEventHandler } from 'h3';
11
11
  import { defu } from 'defu';
12
+ import { normalizeWebpackManifest, normalizeViteManifest } from 'vue-bundle-renderer';
12
13
  import { join } from 'path';
13
14
  import { findStaticImports, resolveImports, findExports } from 'mlly';
14
15
  import { genDynamicImport, genString } from 'knitwork';
@@ -22,7 +23,6 @@ import { promisify } from 'util';
22
23
  import enhancedResolve from 'enhanced-resolve';
23
24
  import { defineUnimportPreset, createUnimport, toImports } from 'unimport';
24
25
  import { camelCase } from 'scule';
25
- import { normalizeViteManifest, normalizeWebpackManifest } from 'vue-bundle-renderer';
26
26
 
27
27
  class AsyncLoadingPlugin {
28
28
  constructor(opts) {
@@ -343,7 +343,7 @@ async function setupNitroBridge() {
343
343
  await promises.writeFile(jsServerEntry.replace(/.js$/, ".mjs"), 'export { default } from "./server.cjs"', "utf8");
344
344
  } else if (name === "client") {
345
345
  const manifest = await promises.readFile(resolve(nuxt.options.buildDir, "dist/server/client.manifest.json"), "utf8");
346
- await promises.writeFile(resolve(nuxt.options.buildDir, "dist/server/client.manifest.mjs"), "export default " + manifest, "utf8");
346
+ await promises.writeFile(resolve(nuxt.options.buildDir, "dist/server/client.manifest.mjs"), "export default " + JSON.stringify(normalizeWebpackManifest(JSON.parse(manifest))), "utf8");
347
347
  }
348
348
  });
349
349
  const devMidlewareHandler = dynamicEventHandler();
@@ -387,7 +387,7 @@ async function setupNitroBridge() {
387
387
  if (nuxt.options._export || nuxt.options._legacyGenerate) {
388
388
  return;
389
389
  }
390
- const useClassicGeneration = process.argv.includes("--classic") || !nuxt.options.bridge.nitroGenerator;
390
+ const useClassicGeneration = process.argv.includes("--classic") || nuxt.options.bridge.nitroGenerator === false;
391
391
  if (useClassicGeneration && nuxt.options._generate) {
392
392
  const { Generator } = await tryImportModule("@nuxt/generator-edge") || await tryImportModule("@nuxt/generator");
393
393
  const generator = new Generator(nuxt);
@@ -406,12 +406,11 @@ async function setupNitroBridge() {
406
406
  }
407
407
  }
408
408
  });
409
- nuxt.options.nitro = nuxt.options.nitro || {};
410
409
  if (!nuxt.options.dev && nuxt.options._generate) {
411
410
  const routes2 = /* @__PURE__ */ new Set();
412
411
  nuxt.hook("build:extendRoutes", (pages) => {
413
412
  routes2.clear();
414
- for (const path of nuxt.options.nitro.prerender?.routes || []) {
413
+ for (const path of nitro.options.prerender?.routes || []) {
415
414
  routes2.add(path);
416
415
  }
417
416
  const processPages = (pages2, currentPath = "/") => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/bridge-edge",
3
- "version": "3.0.0-27690335.da95eff",
3
+ "version": "3.0.0-27700335.6dfc006",
4
4
  "repository": "nuxt/framework",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -32,6 +32,7 @@
32
32
  "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
33
33
  "@babel/plugin-proposal-optional-chaining": "^7.18.9",
34
34
  "@babel/plugin-transform-typescript": "^7.18.12",
35
+ "@nuxt/devalue": "^2.0.0",
35
36
  "@nuxt/kit": "^3.0.0-rc.8",
36
37
  "@nuxt/postcss8": "^1.1.3",
37
38
  "@nuxt/schema": "^3.0.0-rc.8",
@@ -49,11 +50,11 @@
49
50
  "fs-extra": "^10.1.0",
50
51
  "get-port-please": "^2.6.1",
51
52
  "globby": "^13.1.2",
52
- "h3": "^0.7.15",
53
+ "h3": "^0.7.16",
53
54
  "hash-sum": "^2.0.0",
54
55
  "knitwork": "^0.1.2",
55
56
  "magic-string": "^0.26.2",
56
- "mlly": "^0.5.13",
57
+ "mlly": "^0.5.14",
57
58
  "nitropack": "^0.4.24",
58
59
  "node-fetch": "^3.2.10",
59
60
  "nuxi": "^3.0.0-rc.8",
@@ -61,7 +62,7 @@
61
62
  "pathe": "^0.3.5",
62
63
  "perfect-debounce": "^0.1.3",
63
64
  "postcss": "^8",
64
- "postcss-import": "^14.1.0",
65
+ "postcss-import": "^15.0.0",
65
66
  "postcss-import-resolver": "^2.0.0",
66
67
  "postcss-preset-env": "^7.8.0",
67
68
  "postcss-url": "^10.1.3",
@@ -69,31 +70,31 @@
69
70
  "semver": "^7.3.7",
70
71
  "std-env": "^3.2.1",
71
72
  "ufo": "^0.8.5",
72
- "unctx": "^2.0.1",
73
+ "unctx": "^2.0.2",
73
74
  "unimport": "^0.6.7",
74
- "unplugin": "^0.9.3",
75
- "untyped": "^0.4.5",
75
+ "unplugin": "^0.9.5",
76
+ "untyped": "^0.4.7",
76
77
  "vite": "^2.9.14",
77
78
  "vue-bundle-renderer": "^0.4.2"
78
79
  },
79
80
  "devDependencies": {
80
- "@nuxt/bridge": "npm:@nuxt/bridge-edge@3.0.0-27690335.da95eff",
81
+ "@nuxt/bridge": "npm:@nuxt/bridge-edge@3.0.0-27700335.6dfc006",
81
82
  "@nuxt/test-utils": "npm:@nuxt/test-utils-edge@latest",
82
83
  "@nuxt/types": "^2.15.8",
83
- "@nuxtjs/eslint-config": "^10.0.0",
84
- "@nuxtjs/eslint-config-typescript": "^10.0.0",
84
+ "@nuxtjs/eslint-config": "^11.0.0",
85
+ "@nuxtjs/eslint-config-typescript": "^11.0.0",
85
86
  "@types/fs-extra": "^9.0.13",
86
87
  "@types/hash-sum": "^1.0.0",
87
88
  "@types/node-fetch": "^3.0.2",
88
89
  "@vueuse/head": "^0.7.9",
89
90
  "cross-env": "^7.0.3",
90
- "eslint": "^8.22.0",
91
+ "eslint": "^8.23.0",
91
92
  "eslint-plugin-jsdoc": "^39.3.6",
92
93
  "jiti": "^1.14.0",
93
94
  "nuxt": "^2",
94
95
  "unbuild": "0.8.9",
95
96
  "vitest": "^0.21.1",
96
- "vue": "^2.7.9",
97
+ "vue": "^2.7.10",
97
98
  "vue-router": "^3"
98
99
  },
99
100
  "engines": {