@wpnuxt/core 2.3.2 → 2.3.3

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.
@@ -1,5 +1,10 @@
1
1
  import { defineGraphqlClientOptions } from 'nuxt-graphql-middleware/client-options'
2
- import { useRoute } from '#imports'
2
+ // IMPORTANT: import useRoute from 'vue-router', NOT '#imports'.
3
+ // nuxt-graphql-middleware loads this file via its client-options loader, which
4
+ // pulls it into the server (Nitro) typecheck context where '#imports' resolves
5
+ // to nitro-imports and does NOT export useRoute -> TS2305 at typecheck.
6
+ // This has regressed twice already (see #269/#271). Do not "simplify" back to '#imports'.
7
+ import { useRoute } from 'vue-router'
3
8
 
4
9
  /**
5
10
  * WPNuxt default client options for nuxt-graphql-middleware.
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wpnuxt/core",
3
- "version": "2.3.2",
3
+ "version": "2.3.3",
4
4
  "configKey": "wpNuxt",
5
5
  "compatibility": {
6
6
  "nuxt": ">=4.0.0"
package/dist/module.mjs CHANGED
@@ -9,7 +9,7 @@ import ts from 'typescript';
9
9
  import { execSync } from 'node:child_process';
10
10
  import { consola } from 'consola';
11
11
 
12
- const version = "2.3.2";
12
+ const version = "2.3.3";
13
13
 
14
14
  const DEFAULT_CPT_EXCLUSIONS = [
15
15
  "Post",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wpnuxt/core",
3
- "version": "2.3.2",
3
+ "version": "2.3.3",
4
4
  "description": "Nuxt module for WordPress integration via GraphQL (WPGraphQL)",
5
5
  "keywords": [
6
6
  "nuxt",
@@ -48,24 +48,24 @@
48
48
  "access": "public"
49
49
  },
50
50
  "dependencies": {
51
- "@nuxt/kit": "^4.4.6",
51
+ "@nuxt/kit": "^4.4.7",
52
52
  "consola": "^3.4.2",
53
53
  "defu": "^6.1.7",
54
54
  "dompurify": "^3.4.7",
55
- "graphql": "^16.14.0",
55
+ "graphql": "^16.14.1",
56
56
  "nuxt-graphql-middleware": "5.4.0",
57
57
  "scule": "^1.3.0",
58
58
  "typescript": "^5.9.3"
59
59
  },
60
60
  "devDependencies": {
61
- "@nuxt/devtools": "4.0.0-alpha.6",
61
+ "@nuxt/devtools": "4.0.0-alpha.7",
62
62
  "@nuxt/module-builder": "^1.0.2",
63
- "@nuxt/schema": "^4.4.6",
63
+ "@nuxt/schema": "^4.4.7",
64
64
  "@nuxt/test-utils": "^4.0.3",
65
65
  "@types/node": "^25.9.1",
66
- "nuxt": "^4.4.6",
67
- "vitest": "^4.1.7",
68
- "vue-tsc": "^3.3.2"
66
+ "nuxt": "^4.4.7",
67
+ "vitest": "^4.1.8",
68
+ "vue-tsc": "^3.3.3"
69
69
  },
70
70
  "peerDependencies": {
71
71
  "nuxt": "^4.1.0"