@serwist/sw 8.0.3 → 8.0.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.
Files changed (2) hide show
  1. package/dist/index.old.d.cts +17 -0
  2. package/package.json +22 -17
@@ -0,0 +1,17 @@
1
+ import type { RuntimeCaching } from "@serwist/build";
2
+ import { type GoogleAnalyticsInitializeOptions } from "@serwist/google-analytics/initialize";
3
+ import { disableDevLogs } from "./disableDevLogs.js";
4
+ import { handlePrecaching, type HandlePrecachingOptions } from "./handlePrecaching.js";
5
+ import { registerRuntimeCaching } from "./registerRuntimeCaching.js";
6
+ export type SerwistOptions = HandlePrecachingOptions & {
7
+ skipWaiting?: boolean;
8
+ importScripts?: string[];
9
+ navigationPreload?: boolean;
10
+ cacheId?: string | undefined;
11
+ clientsClaim?: boolean;
12
+ runtimeCaching?: RuntimeCaching[];
13
+ offlineAnalyticsConfig?: GoogleAnalyticsInitializeOptions | boolean;
14
+ disableDevLogs?: boolean;
15
+ };
16
+ export declare const installSerwist: ({ precacheEntries, precacheOptions, cleanupOutdatedCaches, skipWaiting: shouldSkipWaiting, importScripts: scriptsToImport, navigationPreload, cacheId, clientsClaim: shouldClaimClients, runtimeCaching, offlineAnalyticsConfig, disableDevLogs: shouldDisableDevLogs, ...options }: SerwistOptions) => void;
17
+ export { disableDevLogs, handlePrecaching, registerRuntimeCaching };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serwist/sw",
3
- "version": "8.0.3",
3
+ "version": "8.0.4",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "This module makes it easy to get started with the Serwist service worker libraries.",
@@ -23,29 +23,34 @@
23
23
  "types": "./dist/index.d.ts",
24
24
  "exports": {
25
25
  ".": {
26
- "import": "./dist/index.js",
27
- "require": "./dist/index.old.cjs",
28
- "types": "./dist/index.d.ts"
26
+ "import": {
27
+ "types": "./dist/index.d.ts",
28
+ "default": "./dist/index.js"
29
+ },
30
+ "require": {
31
+ "types": "./dist/index.old.d.cts",
32
+ "default": "./dist/index.old.cjs"
33
+ }
29
34
  },
30
35
  "./package.json": "./package.json"
31
36
  },
32
37
  "dependencies": {
33
- "@serwist/background-sync": "8.0.3",
34
- "@serwist/broadcast-update": "8.0.3",
35
- "@serwist/cacheable-response": "8.0.3",
36
- "@serwist/core": "8.0.3",
37
- "@serwist/expiration": "8.0.3",
38
- "@serwist/google-analytics": "8.0.3",
39
- "@serwist/navigation-preload": "8.0.3",
40
- "@serwist/precaching": "8.0.3",
41
- "@serwist/range-requests": "8.0.3",
42
- "@serwist/routing": "8.0.3",
43
- "@serwist/strategies": "8.0.3"
38
+ "@serwist/background-sync": "8.0.4",
39
+ "@serwist/broadcast-update": "8.0.4",
40
+ "@serwist/cacheable-response": "8.0.4",
41
+ "@serwist/core": "8.0.4",
42
+ "@serwist/expiration": "8.0.4",
43
+ "@serwist/google-analytics": "8.0.4",
44
+ "@serwist/navigation-preload": "8.0.4",
45
+ "@serwist/precaching": "8.0.4",
46
+ "@serwist/range-requests": "8.0.4",
47
+ "@serwist/routing": "8.0.4",
48
+ "@serwist/strategies": "8.0.4"
44
49
  },
45
50
  "devDependencies": {
46
51
  "rollup": "3.28.1",
47
- "@serwist/build": "8.0.3",
48
- "@serwist/constants": "8.0.3"
52
+ "@serwist/build": "8.0.4",
53
+ "@serwist/constants": "8.0.4"
49
54
  },
50
55
  "scripts": {
51
56
  "build": "rimraf dist && cross-env NODE_ENV=production rollup --config rollup.config.js",