@serwist/next 9.0.0-preview.3 → 9.0.0-preview.4

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.
@@ -133,7 +133,7 @@ const defaultCache = [
133
133
  },
134
134
  {
135
135
  urlPattern: /\/_next\/data\/.+\/.+\.json$/i,
136
- handler: new StaleWhileRevalidate({
136
+ handler: new NetworkFirst({
137
137
  cacheName: "next-data",
138
138
  plugins: [
139
139
  new ExpirationPlugin({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serwist/next",
3
- "version": "9.0.0-preview.3",
3
+ "version": "9.0.0-preview.4",
4
4
  "type": "module",
5
5
  "description": "A module that integrates Serwist into your Next.js application.",
6
6
  "files": [
@@ -53,13 +53,13 @@
53
53
  "chalk": "5.3.0",
54
54
  "clean-webpack-plugin": "4.0.0",
55
55
  "fast-glob": "3.3.2",
56
- "@serwist/build": "9.0.0-preview.3",
57
- "@serwist/core": "9.0.0-preview.3",
58
- "@serwist/expiration": "9.0.0-preview.3",
59
- "@serwist/range-requests": "9.0.0-preview.3",
60
- "@serwist/strategies": "9.0.0-preview.3",
61
- "@serwist/webpack-plugin": "9.0.0-preview.3",
62
- "@serwist/window": "9.0.0-preview.3"
56
+ "@serwist/build": "9.0.0-preview.4",
57
+ "@serwist/core": "9.0.0-preview.4",
58
+ "@serwist/expiration": "9.0.0-preview.4",
59
+ "@serwist/range-requests": "9.0.0-preview.4",
60
+ "@serwist/strategies": "9.0.0-preview.4",
61
+ "@serwist/webpack-plugin": "9.0.0-preview.4",
62
+ "@serwist/window": "9.0.0-preview.4"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@types/node": "20.11.16",
@@ -70,15 +70,15 @@
70
70
  "type-fest": "4.10.2",
71
71
  "typescript": "5.4.0-dev.20240206",
72
72
  "webpack": "5.90.1",
73
- "@serwist/constants": "9.0.0-preview.3",
74
- "@serwist/sw": "9.0.0-preview.3",
75
- "@serwist/utils": "9.0.0-preview.3"
73
+ "@serwist/constants": "9.0.0-preview.4",
74
+ "@serwist/sw": "9.0.0-preview.4",
75
+ "@serwist/utils": "9.0.0-preview.4"
76
76
  },
77
77
  "peerDependencies": {
78
78
  "next": ">=14.0.0",
79
79
  "typescript": ">=5.0.0",
80
80
  "webpack": ">=5.9.0",
81
- "@serwist/sw": "9.0.0-preview.3"
81
+ "@serwist/sw": "9.0.0-preview.4"
82
82
  },
83
83
  "peerDependenciesMeta": {
84
84
  "@serwist/sw": {
@@ -131,7 +131,7 @@ export const defaultCache = [
131
131
  },
132
132
  {
133
133
  urlPattern: /\/_next\/data\/.+\/.+\.json$/i,
134
- handler: new StaleWhileRevalidate({
134
+ handler: new NetworkFirst({
135
135
  cacheName: "next-data",
136
136
  plugins: [
137
137
  new ExpirationPlugin({