@serwist/next 9.0.0-preview.17 → 9.0.0-preview.18

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.
@@ -1,6 +1,5 @@
1
- import { ExpirationPlugin } from '@serwist/expiration';
2
- import { RangeRequestsPlugin } from '@serwist/range-requests';
3
- import { CacheFirst, StaleWhileRevalidate, NetworkFirst } from '@serwist/strategies';
1
+ import { ExpirationPlugin, RangeRequestsPlugin } from '@serwist/sw/plugins';
2
+ import { CacheFirst, StaleWhileRevalidate, NetworkFirst } from '@serwist/sw/strategies';
4
3
 
5
4
  const PAGES_CACHE_NAME = {
6
5
  rscPrefetch: "pages-rsc-prefetch",
@@ -1 +1 @@
1
- {"version":3,"file":"defaultCache.d.ts","sourceRoot":"","sources":["../../src/worker/defaultCache.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAIlD;;;;;GAKG;AACH,eAAO,MAAM,YAAY,EAAE,cAAc,EAiQlC,CAAC"}
1
+ {"version":3,"file":"defaultCache.d.ts","sourceRoot":"","sources":["../../src/worker/defaultCache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAMlD;;;;;GAKG;AACH,eAAO,MAAM,YAAY,EAAE,cAAc,EAiQlC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serwist/next",
3
- "version": "9.0.0-preview.17",
3
+ "version": "9.0.0-preview.18",
4
4
  "type": "module",
5
5
  "description": "A module that integrates Serwist into your Next.js application.",
6
6
  "files": [
@@ -65,13 +65,11 @@
65
65
  "chalk": "5.3.0",
66
66
  "glob": "10.3.10",
67
67
  "zod": "3.22.4",
68
- "@serwist/build": "9.0.0-preview.17",
69
- "@serwist/core": "9.0.0-preview.17",
70
- "@serwist/expiration": "9.0.0-preview.17",
71
- "@serwist/range-requests": "9.0.0-preview.17",
72
- "@serwist/strategies": "9.0.0-preview.17",
73
- "@serwist/webpack-plugin": "9.0.0-preview.17",
74
- "@serwist/window": "9.0.0-preview.17"
68
+ "@serwist/build": "9.0.0-preview.18",
69
+ "@serwist/core": "9.0.0-preview.18",
70
+ "@serwist/sw": "9.0.0-preview.18",
71
+ "@serwist/webpack-plugin": "9.0.0-preview.18",
72
+ "@serwist/window": "9.0.0-preview.18"
75
73
  },
76
74
  "devDependencies": {
77
75
  "@types/node": "20.11.30",
@@ -82,19 +80,14 @@
82
80
  "type-fest": "4.13.1",
83
81
  "typescript": "5.5.0-dev.20240323",
84
82
  "webpack": "5.91.0",
85
- "@serwist/constants": "9.0.0-preview.17",
86
- "@serwist/sw": "9.0.0-preview.17",
87
- "@serwist/utils": "9.0.0-preview.17"
83
+ "@serwist/constants": "9.0.0-preview.18",
84
+ "@serwist/utils": "9.0.0-preview.18"
88
85
  },
89
86
  "peerDependencies": {
90
87
  "next": ">=14.0.0",
91
- "typescript": ">=5.0.0",
92
- "@serwist/sw": "9.0.0-preview.17"
88
+ "typescript": ">=5.0.0"
93
89
  },
94
90
  "peerDependenciesMeta": {
95
- "@serwist/sw": {
96
- "optional": true
97
- },
98
91
  "typescript": {
99
92
  "optional": true
100
93
  }
@@ -1,7 +1,6 @@
1
- import { ExpirationPlugin } from "@serwist/expiration";
2
- import { RangeRequestsPlugin } from "@serwist/range-requests";
3
- import { CacheFirst, NetworkFirst, StaleWhileRevalidate } from "@serwist/strategies";
4
1
  import type { RuntimeCaching } from "@serwist/sw";
2
+ import { ExpirationPlugin, RangeRequestsPlugin } from "@serwist/sw/plugins";
3
+ import { CacheFirst, NetworkFirst, StaleWhileRevalidate } from "@serwist/sw/strategies";
5
4
 
6
5
  import { PAGES_CACHE_NAME } from "./constants.js";
7
6