@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wpnuxt/core",
3
- "version": "2.0.0-beta.4",
3
+ "version": "2.0.0-beta.5",
4
4
  "configKey": "wpNuxt",
5
5
  "compatibility": {
6
6
  "nuxt": ">=3.17.0"
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.4";
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: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wpnuxt/core",
3
- "version": "2.0.0-beta.4",
3
+ "version": "2.0.0-beta.5",
4
4
  "description": "Nuxt module for WordPress integration via GraphQL (WPGraphQL)",
5
5
  "keywords": [
6
6
  "nuxt",