@prismicio/svelte 2.2.1-pr.45.fc3c86f → 2.2.2-canary.3811bd6

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.
@@ -36,7 +36,7 @@ export type RedirectToPreviewURLConfig = {
36
36
  * @example
37
37
  *
38
38
  * ```typescript
39
- * import { createClient } from "../lib/prismicio.js";
39
+ * import { createClient } from "$lib/prismicio.js";
40
40
  * import { redirectToPreviewURL } from "@prismicio/svelte/kit";
41
41
  *
42
42
  * export async function GET({ fetch, request }) {
@@ -8,7 +8,7 @@ import * as prismic from "@prismicio/client";
8
8
  * @example
9
9
  *
10
10
  * ```typescript
11
- * import { createClient } from "../lib/prismicio.js";
11
+ * import { createClient } from "$lib/prismicio.js";
12
12
  * import { redirectToPreviewURL } from "@prismicio/svelte/kit";
13
13
  *
14
14
  * export async function GET({ fetch, request }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prismicio/svelte",
3
- "version": "2.2.1-pr.45.fc3c86f",
3
+ "version": "2.2.2-canary.3811bd6",
4
4
  "description": "Svelte components to present Prismic content.",
5
5
  "keywords": [
6
6
  "typescript",
@@ -55,29 +55,29 @@
55
55
  "test": "npm run lint && npm run types && npm run unit && npm run build"
56
56
  },
57
57
  "dependencies": {
58
- "@prismicio/simulator": "^0.2.2",
58
+ "@prismicio/simulator": "^0.2.4",
59
59
  "esm-env": "^1.2.2"
60
60
  },
61
61
  "devDependencies": {
62
- "@prismicio/client": "^7.21.8",
62
+ "@prismicio/client": "^7.22.1",
63
63
  "@prismicio/mock": "^0.7.2",
64
- "@sveltejs/kit": "^2.57.0",
65
- "@sveltejs/package": "^2.5.7",
66
- "@sveltejs/vite-plugin-svelte": "^7.0.0",
67
- "@testing-library/svelte": "^5.3.1",
64
+ "@sveltejs/kit": "^2.70.3",
65
+ "@sveltejs/package": "^3.0.0",
66
+ "@sveltejs/vite-plugin-svelte": "^7.3.1",
67
+ "@testing-library/svelte": "^5.4.2",
68
68
  "@trivago/prettier-plugin-sort-imports": "^6.0.2",
69
- "@types/node": "^25.5.2",
70
- "@vitest/coverage-v8": "^4.1.3",
71
- "globals": "^17.4.0",
72
- "happy-dom": "^20.8.9",
73
- "oxlint": "^1.59.0",
74
- "prettier": "^3.8.1",
75
- "prettier-plugin-jsdoc": "^1.8.0",
76
- "prettier-plugin-svelte": "^3.5.1",
69
+ "@types/node": "^26.6.4",
70
+ "@vitest/coverage-v8": "^5.0.3",
71
+ "globals": "^17.13.0",
72
+ "happy-dom": "^20.14.5",
73
+ "oxlint": "^1.86.0",
74
+ "prettier": "^3.9.9",
75
+ "prettier-plugin-jsdoc": "^1.8.1",
76
+ "prettier-plugin-svelte": "^3.5.2",
77
77
  "standard-version": "^9.5.0",
78
- "svelte": "^5.55.2",
79
- "typescript": "^6.0.2",
80
- "vitest": "^4.1.3"
78
+ "svelte": "^5.57.1",
79
+ "typescript": "^6.0.3",
80
+ "vitest": "^5.0.3"
81
81
  },
82
82
  "peerDependencies": {
83
83
  "@prismicio/client": ">=7",
@@ -90,7 +90,7 @@
90
90
  }
91
91
  },
92
92
  "engines": {
93
- "node": ">=20"
93
+ "node": ">=22"
94
94
  },
95
95
  "publishConfig": {
96
96
  "access": "public"
package/src/types.ts CHANGED
@@ -185,8 +185,7 @@ type SliceLikeGraphQL<SliceType extends string = string> = {
185
185
  * @typeParam SliceType - Type name of the Slice.
186
186
  */
187
187
  type SliceLike<SliceType extends string = string> = (
188
- | SliceLikeRestV2<SliceType>
189
- | SliceLikeGraphQL<SliceType>
188
+ SliceLikeRestV2<SliceType> | SliceLikeGraphQL<SliceType>
190
189
  ) & {
191
190
  /**
192
191
  * If `true`, this Slice has been modified from its original value using a