@nuxt/bridge-edge 3.0.0-27737014.fcf636d → 3.0.0-27747000.69db93e
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/dist/chunks/module.mjs
CHANGED
|
@@ -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-
|
|
6
|
+
const version = "3.0.0-27747000.69db93e";
|
|
7
7
|
|
|
8
8
|
const middlewareTemplate = {
|
|
9
9
|
filename: "middleware.js",
|
package/dist/chunks/vite.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { resolve, join, isAbsolute } from 'pathe';
|
|
|
2
2
|
import { logger, isIgnored } from '@nuxt/kit';
|
|
3
3
|
import { findExports, sanitizeFilePath } from 'mlly';
|
|
4
4
|
import { joinURL, withoutLeadingSlash, withTrailingSlash, withLeadingSlash } from 'ufo';
|
|
5
|
-
import { i as isCSS, p as prepareManifests, h as hashId, u as uniq, g as generateDevSSRManifest, d as distDir } from '../shared/bridge-edge.
|
|
5
|
+
import { i as isCSS, p as prepareManifests, h as hashId, u as uniq, g as generateDevSSRManifest, d as distDir } from '../shared/bridge-edge.4227836b.mjs';
|
|
6
6
|
import createVuePlugin from '@vitejs/plugin-vue2';
|
|
7
7
|
import escapeRE from 'escape-string-regexp';
|
|
8
8
|
import { getPort } from 'get-port-please';
|
package/dist/module.mjs
CHANGED
|
@@ -711,7 +711,9 @@ async function setupAppBridge(_options) {
|
|
|
711
711
|
});
|
|
712
712
|
}
|
|
713
713
|
});
|
|
714
|
-
|
|
714
|
+
nuxt.hook("modules:done", () => {
|
|
715
|
+
nuxt.options.plugins.unshift({ src: resolve(distDir, "runtime/config.plugin.mjs") });
|
|
716
|
+
});
|
|
715
717
|
addPlugin({
|
|
716
718
|
src: resolve(distDir, "runtime/error.plugin.server.mjs"),
|
|
717
719
|
mode: "server"
|
|
@@ -1071,20 +1073,6 @@ const importsModule = defineNuxtModule({
|
|
|
1071
1073
|
}
|
|
1072
1074
|
},
|
|
1073
1075
|
async setup(options, nuxt) {
|
|
1074
|
-
nuxt.hooks.deprecateHooks({
|
|
1075
|
-
"autoImports:sources": {
|
|
1076
|
-
to: "imports:sources",
|
|
1077
|
-
message: "`autoImports:sources` hook is deprecated. Use `addImportsSources()` from `@nuxt/kit` or `imports:dirs` with latest Nuxt Bridge."
|
|
1078
|
-
},
|
|
1079
|
-
"autoImports:dirs": {
|
|
1080
|
-
to: "imports:dirs",
|
|
1081
|
-
message: "`autoImports:dirs` hook is deprecated. Use `addImportsDir()` from `@nuxt/kit` or `imports:dirs` with latest Nuxt Bridge."
|
|
1082
|
-
},
|
|
1083
|
-
"autoImports:extend": {
|
|
1084
|
-
to: "imports:extend",
|
|
1085
|
-
message: "`autoImports:extend` hook is deprecated. Use `addImports()` from `@nuxt/kit` or `imports:extend` with latest Nuxt Bridge."
|
|
1086
|
-
}
|
|
1087
|
-
});
|
|
1088
1076
|
await nuxt.callHook("imports:sources", options.presets);
|
|
1089
1077
|
options.presets.forEach((i) => {
|
|
1090
1078
|
if (typeof i !== "string" && i.names && !i.imports) {
|
|
@@ -1461,6 +1449,20 @@ const module = defineNuxtModule({
|
|
|
1461
1449
|
await setupCAPIBridge(opts.capi === true ? {} : opts.capi);
|
|
1462
1450
|
}
|
|
1463
1451
|
if (opts.imports ?? opts.autoImports) {
|
|
1452
|
+
nuxt.hooks.deprecateHooks({
|
|
1453
|
+
"autoImports:sources": {
|
|
1454
|
+
to: "imports:sources",
|
|
1455
|
+
message: "`autoImports:sources` hook is deprecated. Use `addImportsSources()` from `@nuxt/kit` or `imports:dirs` with latest Nuxt Bridge."
|
|
1456
|
+
},
|
|
1457
|
+
"autoImports:dirs": {
|
|
1458
|
+
to: "imports:dirs",
|
|
1459
|
+
message: "`autoImports:dirs` hook is deprecated. Use `addImportsDir()` from `@nuxt/kit` or `imports:dirs` with latest Nuxt Bridge."
|
|
1460
|
+
},
|
|
1461
|
+
"autoImports:extend": {
|
|
1462
|
+
to: "imports:extend",
|
|
1463
|
+
message: "`autoImports:extend` hook is deprecated. Use `addImports()` from `@nuxt/kit` or `imports:extend` with latest Nuxt Bridge."
|
|
1464
|
+
}
|
|
1465
|
+
});
|
|
1464
1466
|
nuxt.hook("modules:done", () => installModule(importsModule));
|
|
1465
1467
|
}
|
|
1466
1468
|
if (opts.vite) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/bridge-edge",
|
|
3
|
-
"version": "3.0.0-
|
|
3
|
+
"version": "3.0.0-27747000.69db93e",
|
|
4
4
|
"repository": "nuxt/framework",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
|
|
33
33
|
"@babel/plugin-proposal-optional-chaining": "^7.18.9",
|
|
34
|
-
"@babel/plugin-transform-typescript": "^7.19.
|
|
34
|
+
"@babel/plugin-transform-typescript": "^7.19.3",
|
|
35
35
|
"@nuxt/devalue": "^2.0.0",
|
|
36
36
|
"@nuxt/kit": "3.0.0-rc.11",
|
|
37
37
|
"@nuxt/postcss8": "^1.1.3",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"h3": "^0.7.21",
|
|
54
54
|
"hash-sum": "^2.0.0",
|
|
55
55
|
"knitwork": "^0.1.2",
|
|
56
|
-
"magic-string": "^0.26.
|
|
56
|
+
"magic-string": "^0.26.5",
|
|
57
57
|
"mlly": "^0.5.16",
|
|
58
58
|
"nitropack": "^0.5.4",
|
|
59
59
|
"node-fetch": "^3.2.10",
|
|
@@ -72,14 +72,14 @@
|
|
|
72
72
|
"terser": "^5.15.0",
|
|
73
73
|
"ufo": "^0.8.5",
|
|
74
74
|
"unctx": "^2.0.2",
|
|
75
|
-
"unimport": "^0.6.
|
|
75
|
+
"unimport": "^0.6.8",
|
|
76
76
|
"unplugin": "^0.9.6",
|
|
77
77
|
"untyped": "^0.5.0",
|
|
78
|
-
"vite": "~3.1.
|
|
78
|
+
"vite": "~3.1.4",
|
|
79
79
|
"vue-bundle-renderer": "^0.4.3"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
-
"@nuxt/bridge": "npm:@nuxt/bridge-edge@3.0.0-
|
|
82
|
+
"@nuxt/bridge": "npm:@nuxt/bridge-edge@3.0.0-27747000.69db93e",
|
|
83
83
|
"@nuxt/test-utils": "npm:@nuxt/test-utils-edge@latest",
|
|
84
84
|
"@nuxt/types": "^2.15.8",
|
|
85
85
|
"@nuxtjs/eslint-config": "^11.0.0",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"@types/fs-extra": "^9.0.13",
|
|
88
88
|
"@types/hash-sum": "^1.0.0",
|
|
89
89
|
"@types/node-fetch": "^3.0.2",
|
|
90
|
-
"@vueuse/head": "^0.
|
|
90
|
+
"@vueuse/head": "^0.8.2",
|
|
91
91
|
"cross-env": "^7.0.3",
|
|
92
92
|
"eslint": "^8.24.0",
|
|
93
93
|
"eslint-plugin-jsdoc": "^39.3.6",
|