@wpnuxt/core 2.0.0-beta.4 → 2.0.0-beta.5
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/module.json +1 -1
- package/dist/module.mjs +7 -1
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import { parse, GraphQLError, visit, print } from 'graphql';
|
|
|
8
8
|
import { execSync } from 'node:child_process';
|
|
9
9
|
import { consola } from 'consola';
|
|
10
10
|
|
|
11
|
-
const version = "2.0.0-beta.
|
|
11
|
+
const version = "2.0.0-beta.5";
|
|
12
12
|
|
|
13
13
|
function createModuleError(module, message) {
|
|
14
14
|
return new Error(formatErrorMessage(module, message));
|
|
@@ -1063,6 +1063,12 @@ async function registerModules(nuxt, resolver, wpNuxtConfig, mergedQueriesFolder
|
|
|
1063
1063
|
DateTime: "string",
|
|
1064
1064
|
ID: "string"
|
|
1065
1065
|
},
|
|
1066
|
+
// Use Record<string, unknown> instead of the default 'object' for unselected
|
|
1067
|
+
// union/interface members. This makes inline fragment types (e.g. ACF relationship
|
|
1068
|
+
// fields) usable without manual type assertions. See: #245
|
|
1069
|
+
output: {
|
|
1070
|
+
emptyObject: "Record<string, unknown>"
|
|
1071
|
+
},
|
|
1066
1072
|
// Pass auth headers for schema download when token is configured
|
|
1067
1073
|
...wpNuxtConfig.schemaAuthToken && {
|
|
1068
1074
|
urlSchemaOptions: {
|