nuxt-skew-protection 1.4.4 → 1.5.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.
Files changed (33) hide show
  1. package/dist/module.d.mts +2 -2
  2. package/dist/module.json +1 -1
  3. package/dist/module.mjs +310 -242
  4. package/dist/runtime/adapters/ably/index.d.ts +2 -2
  5. package/dist/runtime/adapters/ably/index.js +7 -1
  6. package/dist/runtime/adapters/ably/node.d.ts +2 -0
  7. package/dist/runtime/adapters/ably/types.d.ts +3 -0
  8. package/dist/runtime/adapters/ably/types.js +2 -0
  9. package/dist/runtime/adapters/ably/web.d.ts +2 -5
  10. package/dist/runtime/adapters/ably/web.js +1 -1
  11. package/dist/runtime/adapters/index.js +1 -1
  12. package/dist/runtime/adapters/pusher/index.d.ts +2 -2
  13. package/dist/runtime/adapters/pusher/index.js +7 -1
  14. package/dist/runtime/adapters/pusher/types.d.ts +1 -0
  15. package/dist/runtime/adapters/pusher/web.d.ts +2 -8
  16. package/dist/runtime/adapters/types.d.ts +7 -5
  17. package/dist/runtime/adapters/types.js +1 -0
  18. package/dist/runtime/app/types.d.ts +1 -1
  19. package/dist/runtime/app/utils/create-skew-connection.js +5 -3
  20. package/dist/runtime/server/imports/cookie.d.ts +2 -2
  21. package/dist/runtime/server/imports/cookie.js +5 -1
  22. package/dist/runtime/server/middleware/vercel-skew.js +4 -1
  23. package/dist/runtime/server/plugins/html-cache-headers.d.ts +18 -0
  24. package/dist/runtime/server/plugins/html-cache-headers.js +35 -0
  25. package/dist/runtime/server/routes/__skew/sse.js +0 -2
  26. package/dist/runtime/server/routes/__skew/ws.js +1 -1
  27. package/dist/runtime/server/utils/cloudflare-asset-fetch.js +5 -2
  28. package/dist/runtime/server/utils/html-cache-policy.d.ts +212 -0
  29. package/dist/runtime/server/utils/html-cache-policy.js +131 -0
  30. package/dist/runtime/server/utils/vercel-cookie-path.d.ts +2 -0
  31. package/dist/runtime/server/utils/vercel-cookie-path.js +3 -0
  32. package/dist/runtime/types.d.ts +5 -2
  33. package/package.json +9 -9
package/dist/module.d.mts CHANGED
@@ -58,8 +58,8 @@ interface ModuleOptions {
58
58
  /**
59
59
  * Bundle old deployment assets to support users on previous versions.
60
60
  * When enabled, old build assets are stored and served to users who haven't refreshed.
61
- * @default true
62
- * @note Automatically disabled when using CDN URL
61
+ * @default true, or false when native Vercel Skew Protection is active
62
+ * @note Automatically disabled when using a CDN URL or native Vercel Skew Protection
63
63
  */
64
64
  bundleAssets?: boolean;
65
65
  /**
package/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "nuxt": ">=4.0.0"
5
5
  },
6
6
  "configKey": "skewProtection",
7
- "version": "1.4.4",
7
+ "version": "1.5.1",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.3",
10
10
  "unbuild": "3.6.1"