@serwist/precaching 9.5.7 → 9.5.8

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,4 @@
1
+ import { CleanupResult, InstallResult, PrecacheEntry, PrecacheRouteOptions, PrecacheStrategy, UrlManipulation as urlManipulation } from "serwist";
2
+ import { cleanupOutdatedCaches } from "serwist/internal";
3
+ import { PrecacheController, PrecacheFallbackEntry, PrecacheFallbackPlugin, PrecacheFallbackPluginOptions, PrecacheRoute, addPlugins, addRoute, createHandlerBoundToURL, getCacheKeyForURL, matchPrecache, precache, precacheAndRoute } from "serwist/legacy";
4
+ export { type CleanupResult, type InstallResult, PrecacheController, type PrecacheEntry, type PrecacheFallbackEntry, PrecacheFallbackPlugin, type PrecacheFallbackPluginOptions, PrecacheRoute, type PrecacheRouteOptions, PrecacheStrategy, addPlugins, addRoute, cleanupOutdatedCaches, createHandlerBoundToURL, getCacheKeyForURL, matchPrecache, precache, precacheAndRoute, type urlManipulation };
package/dist/index.mjs ADDED
@@ -0,0 +1,4 @@
1
+ import { PrecacheStrategy } from "serwist";
2
+ import { cleanupOutdatedCaches } from "serwist/internal";
3
+ import { PrecacheController, PrecacheFallbackPlugin, PrecacheRoute, addPlugins, addRoute, createHandlerBoundToURL, getCacheKeyForURL, matchPrecache, precache, precacheAndRoute } from "serwist/legacy";
4
+ export { PrecacheController, PrecacheFallbackPlugin, PrecacheRoute, PrecacheStrategy, addPlugins, addRoute, cleanupOutdatedCaches, createHandlerBoundToURL, getCacheKeyForURL, matchPrecache, precache, precacheAndRoute };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serwist/precaching",
3
- "version": "9.5.7",
3
+ "version": "9.5.8",
4
4
  "type": "module",
5
5
  "description": "A module that efficiently precaches assets.",
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.8"
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,6 +0,0 @@
1
- export type { CleanupResult, InstallResult, PrecacheEntry, PrecacheRouteOptions, UrlManipulation as urlManipulation } from "serwist";
2
- export { PrecacheStrategy } from "serwist";
3
- export { cleanupOutdatedCaches } from "serwist/internal";
4
- export type { PrecacheFallbackEntry, PrecacheFallbackPluginOptions } from "serwist/legacy";
5
- export { addPlugins, addRoute, createHandlerBoundToURL, getCacheKeyForURL, matchPrecache, PrecacheController, PrecacheFallbackPlugin, PrecacheRoute, precache, precacheAndRoute, } from "serwist/legacy";
6
- //# 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,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,oBAAoB,EAAE,eAAe,IAAI,eAAe,EAAE,MAAM,SAAS,CAAC;AACrI,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,YAAY,EAAE,qBAAqB,EAAE,6BAA6B,EAAE,MAAM,gBAAgB,CAAC;AAC3F,OAAO,EACL,UAAU,EACV,QAAQ,EACR,uBAAuB,EACvB,iBAAiB,EACjB,aAAa,EACb,kBAAkB,EAClB,sBAAsB,EACtB,aAAa,EACb,QAAQ,EACR,gBAAgB,GACjB,MAAM,gBAAgB,CAAC"}
package/dist/index.js DELETED
@@ -1,3 +0,0 @@
1
- export { PrecacheStrategy } from 'serwist';
2
- export { cleanupOutdatedCaches } from 'serwist/internal';
3
- export { PrecacheController, PrecacheFallbackPlugin, PrecacheRoute, addPlugins, addRoute, createHandlerBoundToURL, getCacheKeyForURL, matchPrecache, precache, precacheAndRoute } from 'serwist/legacy';