@serwist/routing 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 { HTTPMethod, NavigationRoute, NavigationRouteMatchOptions, RegExpRoute, Route } from "serwist";
2
+ import { Router, registerRoute, setCatchHandler, setDefaultHandler, unregisterRoute } from "serwist/legacy";
3
+ export { type HTTPMethod, NavigationRoute, type NavigationRouteMatchOptions, RegExpRoute, Route, Router, registerRoute, setCatchHandler, setDefaultHandler, unregisterRoute };
package/dist/index.mjs ADDED
@@ -0,0 +1,3 @@
1
+ import { NavigationRoute, RegExpRoute, Route } from "serwist";
2
+ import { Router, registerRoute, setCatchHandler, setDefaultHandler, unregisterRoute } from "serwist/legacy";
3
+ export { NavigationRoute, RegExpRoute, Route, Router, registerRoute, setCatchHandler, setDefaultHandler, unregisterRoute };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serwist/routing",
3
- "version": "9.5.7",
3
+ "version": "9.5.9",
4
4
  "type": "module",
5
5
  "description": "A service worker helper library to route request URLs to handlers.",
6
6
  "files": [
@@ -23,22 +23,21 @@
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
  "./package.json": "./package.json"
34
34
  },
35
35
  "dependencies": {
36
- "serwist": "9.5.7"
36
+ "serwist": "9.5.9"
37
37
  },
38
38
  "devDependencies": {
39
- "rollup": "4.59.0",
40
- "typescript": "5.9.3",
41
- "@serwist/configs": "9.5.7"
39
+ "tsdown": "0.21.10",
40
+ "typescript": "6.0.3"
42
41
  },
43
42
  "peerDependencies": {
44
43
  "typescript": ">=5.0.0"
@@ -49,7 +48,7 @@
49
48
  }
50
49
  },
51
50
  "scripts": {
52
- "build": "rimraf dist && NODE_ENV=production rollup --config rollup.config.js",
51
+ "build": "rimraf dist && NODE_ENV=production tsdown",
53
52
  "lint": "biome lint ./src",
54
53
  "typecheck": "tsc"
55
54
  }
package/dist/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export type { HTTPMethod, NavigationRouteMatchOptions } from "serwist";
2
- export { NavigationRoute, RegExpRoute, Route } from "serwist";
3
- export { Router, registerRoute, setCatchHandler, setDefaultHandler, unregisterRoute } from "serwist/legacy";
4
- //# 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,UAAU,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,eAAe,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC"}
package/dist/index.js DELETED
@@ -1,2 +0,0 @@
1
- export { NavigationRoute, RegExpRoute, Route } from 'serwist';
2
- export { Router, registerRoute, setCatchHandler, setDefaultHandler, unregisterRoute } from 'serwist/legacy';