@typed/router 0.14.0 → 0.15.0
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.
- package/dist/Redirect.d.ts +7 -5
- package/dist/Redirect.d.ts.map +1 -1
- package/dist/cjs/Redirect.d.ts +7 -5
- package/dist/cjs/Redirect.d.ts.map +1 -1
- package/dist/cjs/router.d.ts +2 -2
- package/dist/cjs/router.d.ts.map +1 -1
- package/dist/cjs/router.js +1 -2
- package/dist/cjs/router.js.map +1 -1
- package/dist/router.d.ts +2 -2
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +1 -2
- package/dist/router.js.map +1 -1
- package/dist/tsconfig.cjs.build.tsbuildinfo +1 -1
- package/package.json +13 -13
- package/src/router.ts +4 -7
- package/tsconfig.build.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typed/router",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -19,20 +19,20 @@
|
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@effect/data": "^0.
|
|
23
|
-
"@effect/io": "^0.
|
|
24
|
-
"@typed/context": "0.
|
|
25
|
-
"@typed/dom": "8.
|
|
26
|
-
"@typed/
|
|
27
|
-
"@typed/
|
|
28
|
-
"@typed/
|
|
29
|
-
"@typed/
|
|
30
|
-
"@typed/
|
|
31
|
-
"@typed/
|
|
22
|
+
"@effect/data": "^0.16.0",
|
|
23
|
+
"@effect/io": "^0.35.1",
|
|
24
|
+
"@typed/context": "0.15.0",
|
|
25
|
+
"@typed/dom": "8.15.0",
|
|
26
|
+
"@typed/html": "3.15.0",
|
|
27
|
+
"@typed/navigation": "0.2.0",
|
|
28
|
+
"@typed/fx": "1.15.0",
|
|
29
|
+
"@typed/error": "0.15.0",
|
|
30
|
+
"@typed/route": "0.12.0",
|
|
31
|
+
"@typed/path": "0.5.0"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "781662109038798bdc35ec7a6de3551ec16aaa0a",
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
37
|
"sideEffects": false
|
|
38
|
-
}
|
|
38
|
+
}
|
package/src/router.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as Option from '@effect/data/Option'
|
|
|
2
2
|
import * as Effect from '@effect/io/Effect'
|
|
3
3
|
import * as Layer from '@effect/io/Layer'
|
|
4
4
|
import { Tag } from '@typed/context'
|
|
5
|
-
import {
|
|
5
|
+
import { DomServicesElementParams } from '@typed/dom'
|
|
6
6
|
import { Filtered } from '@typed/fx'
|
|
7
7
|
import * as Navigation from '@typed/navigation'
|
|
8
8
|
import { ParamsOf, PathJoin } from '@typed/path'
|
|
@@ -70,12 +70,9 @@ export function getCurrentPathFromUrl(url: URL): string {
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
export const dom = (
|
|
73
|
-
options?: Navigation.DomNavigationOptions,
|
|
74
|
-
): Layer.Layer<
|
|
75
|
-
Layer.provideMerge(
|
|
76
|
-
localStorage,
|
|
77
|
-
Layer.provideMerge(domServices, Layer.provideMerge(Navigation.dom(options), navigation)),
|
|
78
|
-
)
|
|
73
|
+
options?: Navigation.DomNavigationOptions & DomServicesElementParams,
|
|
74
|
+
): Layer.Layer<Navigation.NavigationServices, never, Navigation.Navigation | Router> =>
|
|
75
|
+
Layer.provideMerge(Navigation.dom(options), navigation)
|
|
79
76
|
|
|
80
77
|
export const memory = (
|
|
81
78
|
options: Navigation.MemoryNavigationOptions,
|