@nuxtjs/prismic 3.0.0-rc.9 → 3.0.1

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/README.md CHANGED
@@ -26,7 +26,7 @@ Easily connect your Nuxt.js application to your content hosted on [Prismic][pris
26
26
  ## Install
27
27
 
28
28
  ```bash
29
- npm install --save-dev @nuxtjs/prismic@rc # or yarn add --dev @nuxtjs/prismic@rc
29
+ npm install --save-dev @nuxtjs/prismic # or yarn add --dev @nuxtjs/prismic
30
30
  ```
31
31
 
32
32
  Then, add `@nuxtjs/prismic` to the `modules` section of your Nuxt config and configure your Prismic API endpoint:
@@ -68,8 +68,8 @@ Whether you're helping us fix bugs, improve the docs, or spread the word, we'd l
68
68
 
69
69
  <!-- TODO: Replace link with a more useful one if available -->
70
70
 
71
- [nuxt-docs]: https://v3.prismic.nuxtjs.org
72
- [prismic-docs]: https://prismic.io/docs/technical-reference/prismicio-vue?version=v3
71
+ [nuxt-docs]: https://prismic.nuxtjs.org
72
+ [prismic-docs]: https://prismic.io/docs/technical-reference/prismicio-vue?version=v4
73
73
  [changelog]: ./CHANGELOG.md
74
74
  [contributing]: ./CONTRIBUTING.md
75
75
 
package/dist/module.json CHANGED
@@ -4,5 +4,5 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "3.0.0-rc.9"
7
+ "version": "3.0.1"
8
8
  }
@@ -47,6 +47,8 @@ export default defineNuxtPlugin((nuxtApp) => {
47
47
  defer: true
48
48
  }]
49
49
  });
50
+ } else {
51
+ useCookie("io.prismic.preview").value = null;
50
52
  }
51
53
  return {
52
54
  provide: { prismic: prismicPlugin }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxtjs/prismic",
3
- "version": "3.0.0-rc.9",
3
+ "version": "3.0.1",
4
4
  "description": "Easily connect your Nuxt 3 application to your content hosted on Prismic",
5
5
  "keywords": [
6
6
  "nuxt",
@@ -50,7 +50,7 @@
50
50
  "unit:watch": "vitest watch"
51
51
  },
52
52
  "dependencies": {
53
- "@nuxt/kit": "^3.5.2",
53
+ "@nuxt/kit": "^3.5.3",
54
54
  "@prismicio/client": "^7.0.1",
55
55
  "@prismicio/vue": "^4.0.0",
56
56
  "consola": "^3.1.0",
@@ -60,9 +60,9 @@
60
60
  "@nuxt/module-builder": "^0.4.0",
61
61
  "@nuxtjs/eslint-config-typescript": "^12.0.0",
62
62
  "@vitest/coverage-c8": "^0.31.4",
63
- "eslint": "^8.41.0",
63
+ "eslint": "^8.42.0",
64
64
  "mock-fs": "^5.2.0",
65
- "nuxt": "^3.5.2",
65
+ "nuxt": "^3.5.3",
66
66
  "standard-version": "^9.5.0",
67
67
  "typescript": "^5.1.3",
68
68
  "vitest": "^0.31.4"
@@ -73,6 +73,9 @@ export default defineNuxtPlugin((nuxtApp) => {
73
73
  defer: true
74
74
  }]
75
75
  })
76
+ } else {
77
+ // TODO: We might want to let user disable this behavior because it might have unexpected side effects
78
+ useCookie('io.prismic.preview').value = null
76
79
  }
77
80
 
78
81
  return {