@nuxtjs/prismic 3.0.0 → 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/dist/module.json CHANGED
@@ -4,5 +4,5 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "3.0.0"
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",
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",
@@ -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 {