@serwist/broadcast-update 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,2 @@
1
+ import { BROADCAST_UPDATE_DEFAULT_HEADERS as defaultHeadersToCheck, BroadcastCacheUpdate, BroadcastCacheUpdateOptions, BroadcastMessage, BroadcastPayload, BroadcastPayloadGenerator, BroadcastUpdatePlugin, responsesAreSame } from "serwist";
2
+ export { BroadcastCacheUpdate, type BroadcastCacheUpdateOptions, type BroadcastMessage, type BroadcastPayload, type BroadcastPayloadGenerator, BroadcastUpdatePlugin, defaultHeadersToCheck, responsesAreSame };
package/dist/index.mjs ADDED
@@ -0,0 +1,2 @@
1
+ import { BROADCAST_UPDATE_DEFAULT_HEADERS as defaultHeadersToCheck, BroadcastCacheUpdate, BroadcastUpdatePlugin, responsesAreSame } from "serwist";
2
+ export { BroadcastCacheUpdate, BroadcastUpdatePlugin, defaultHeadersToCheck, responsesAreSame };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serwist/broadcast-update",
3
- "version": "9.5.7",
3
+ "version": "9.5.9",
4
4
  "type": "module",
5
5
  "description": "A module that uses the Broadcast Channel API to announce when a cached response has updated.",
6
6
  "files": [
@@ -23,21 +23,20 @@
23
23
  "repository": "https://github.com/serwist/serwist",
24
24
  "bugs": "https://github.com/serwist/serwist/issues",
25
25
  "homepage": "https://serwist.pages.dev",
26
- "main": "./dist/index.js",
27
- "types": "./dist/index.d.ts",
26
+ "main": "./dist/index.mjs",
27
+ "types": "./dist/index.d.mts",
28
28
  "exports": {
29
29
  ".": {
30
- "types": "./dist/index.d.ts",
31
- "default": "./dist/index.js"
30
+ "types": "./dist/index.d.mts",
31
+ "default": "./dist/index.mjs"
32
32
  }
33
33
  },
34
34
  "dependencies": {
35
- "serwist": "9.5.7"
35
+ "serwist": "9.5.9"
36
36
  },
37
37
  "devDependencies": {
38
- "rollup": "4.59.0",
39
- "typescript": "5.9.3",
40
- "@serwist/configs": "9.5.7"
38
+ "tsdown": "0.21.10",
39
+ "typescript": "6.0.3"
41
40
  },
42
41
  "peerDependencies": {
43
42
  "typescript": ">=5.0.0"
@@ -48,7 +47,7 @@
48
47
  }
49
48
  },
50
49
  "scripts": {
51
- "build": "rimraf dist && NODE_ENV=production rollup --config rollup.config.js",
50
+ "build": "rimraf dist && NODE_ENV=production tsdown",
52
51
  "lint": "biome lint ./src",
53
52
  "typecheck": "tsc"
54
53
  }
package/dist/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export type { BroadcastCacheUpdateOptions, BroadcastMessage, BroadcastPayload, BroadcastPayloadGenerator } from "serwist";
2
- export { BROADCAST_UPDATE_DEFAULT_HEADERS as defaultHeadersToCheck, BroadcastCacheUpdate, BroadcastUpdatePlugin, responsesAreSame, } from "serwist";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAQA,YAAY,EAAE,2BAA2B,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAC1H,OAAO,EACL,gCAAgC,IAAI,qBAAqB,EACzD,oBAAoB,EACpB,qBAAqB,EACrB,gBAAgB,GACjB,MAAM,SAAS,CAAC"}
package/dist/index.js DELETED
@@ -1 +0,0 @@
1
- export { BroadcastCacheUpdate, BroadcastUpdatePlugin, BROADCAST_UPDATE_DEFAULT_HEADERS as defaultHeadersToCheck, responsesAreSame } from 'serwist';