@serwist/sw 9.5.7 → 9.5.9

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.
@@ -0,0 +1,3 @@
1
+ import { RuntimeCaching, disableDevLogs } from "serwist";
2
+ import { FallbackEntry, FallbacksOptions, HandlePrecachingOptions, InstallSerwistOptions, InstallSerwistOptions as SerwistOptions, fallbacks, handlePrecaching, installSerwist, registerRuntimeCaching } from "serwist/legacy";
3
+ export { type FallbackEntry, type FallbacksOptions, type HandlePrecachingOptions, type InstallSerwistOptions, type RuntimeCaching, type SerwistOptions, disableDevLogs, fallbacks, handlePrecaching, installSerwist, registerRuntimeCaching };
package/dist/index.mjs ADDED
@@ -0,0 +1,3 @@
1
+ import { disableDevLogs } from "serwist";
2
+ import { fallbacks, handlePrecaching, installSerwist, registerRuntimeCaching } from "serwist/legacy";
3
+ export { disableDevLogs, fallbacks, handlePrecaching, installSerwist, registerRuntimeCaching };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serwist/sw",
3
- "version": "9.5.7",
3
+ "version": "9.5.9",
4
4
  "type": "module",
5
5
  "description": "A service worker helper module.",
6
6
  "files": [
@@ -21,22 +21,21 @@
21
21
  "repository": "https://github.com/serwist/serwist",
22
22
  "bugs": "https://github.com/serwist/serwist/issues",
23
23
  "homepage": "https://serwist.pages.dev",
24
- "main": "./dist/index.js",
25
- "types": "./dist/index.d.ts",
24
+ "main": "./dist/index.mjs",
25
+ "types": "./dist/index.d.mts",
26
26
  "exports": {
27
27
  ".": {
28
- "types": "./dist/index.d.ts",
29
- "default": "./dist/index.js"
28
+ "types": "./dist/index.d.mts",
29
+ "default": "./dist/index.mjs"
30
30
  },
31
31
  "./package.json": "./package.json"
32
32
  },
33
33
  "dependencies": {
34
- "serwist": "9.5.7"
34
+ "serwist": "9.5.9"
35
35
  },
36
36
  "devDependencies": {
37
- "rollup": "4.59.0",
38
- "typescript": "5.9.3",
39
- "@serwist/configs": "9.5.7"
37
+ "tsdown": "0.21.10",
38
+ "typescript": "6.0.3"
40
39
  },
41
40
  "peerDependencies": {
42
41
  "typescript": ">=5.0.0"
@@ -47,7 +46,7 @@
47
46
  }
48
47
  },
49
48
  "scripts": {
50
- "build": "rimraf dist && NODE_ENV=production rollup --config rollup.config.js",
49
+ "build": "rimraf dist && NODE_ENV=production tsdown",
51
50
  "lint": "biome lint ./src",
52
51
  "typecheck": "tsc"
53
52
  }
package/dist/index.d.ts DELETED
@@ -1,5 +0,0 @@
1
- export type { RuntimeCaching } from "serwist";
2
- export { disableDevLogs } from "serwist";
3
- export type { FallbackEntry, FallbacksOptions, HandlePrecachingOptions, InstallSerwistOptions, InstallSerwistOptions as SerwistOptions, } from "serwist/legacy";
4
- export { fallbacks, handlePrecaching, installSerwist, registerRuntimeCaching, } from "serwist/legacy";
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,YAAY,EACV,aAAa,EACb,gBAAgB,EAChB,uBAAuB,EACvB,qBAAqB,EACrB,qBAAqB,IAAI,cAAc,GACxC,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,SAAS,EACT,gBAAgB,EAChB,cAAc,EACd,sBAAsB,GACvB,MAAM,gBAAgB,CAAC"}
package/dist/index.js DELETED
@@ -1,2 +0,0 @@
1
- export { disableDevLogs } from 'serwist';
2
- export { fallbacks, handlePrecaching, installSerwist, registerRuntimeCaching } from 'serwist/legacy';