svelte-routing
Advanced tools
Comparing version 2.11.0 to 2.12.0
# CHANGELOG | ||
# 2.12.0 | ||
- PR merged [#281](https://github.com/EmilTholin/svelte-routing/pull/281) | ||
- Issue fixed [#280](https://github.com/EmilTholin/svelte-routing/issues/280) | ||
- Update dependencies. | ||
# 2.11.0 | ||
- PR Merged [#277](https://github.com/EmilTholin/svelte-routing/pull/277) | ||
- PR merged [#277](https://github.com/EmilTholin/svelte-routing/pull/277) | ||
- Update dependencies. | ||
# 2.10.0 | ||
- PR Removed [#266](https://github.com/EmilTholin/svelte-routing/pull/266) | ||
- Issue Fixed [#273](https://github.com/EmilTholin/svelte-routing/issues/273) | ||
- PR removed [#266](https://github.com/EmilTholin/svelte-routing/pull/266) | ||
- Issue fixed [#273](https://github.com/EmilTholin/svelte-routing/issues/273) | ||
- Update dependencies. | ||
# 2.9.0 | ||
- PR Merged [#272](https://github.com/EmilTholin/svelte-routing/pull/272). | ||
- Issue Fixed [#271](https://github.com/EmilTholin/svelte-routing/issues/271). | ||
- PR merged [#272](https://github.com/EmilTholin/svelte-routing/pull/272). | ||
- Issue fixed [#271](https://github.com/EmilTholin/svelte-routing/issues/271). | ||
# 2.8.0 | ||
- PR Merged [#267](https://github.com/EmilTholin/svelte-routing/pull/267). | ||
- PR Merged [#270](https://github.com/EmilTholin/svelte-routing/pull/270). | ||
- Issue Fixed [#268](https://github.com/EmilTholin/svelte-routing/issues/268). | ||
- Issue Fixed [#269](https://github.com/EmilTholin/svelte-routing/issues/269). | ||
- PR merged [#267](https://github.com/EmilTholin/svelte-routing/pull/267). | ||
- PR merged [#270](https://github.com/EmilTholin/svelte-routing/pull/270). | ||
- Issue fixed [#268](https://github.com/EmilTholin/svelte-routing/issues/268). | ||
- Issue fixed [#269](https://github.com/EmilTholin/svelte-routing/issues/269). | ||
- Update dependencies. | ||
# 2.7.0 | ||
- PR Merged [#266](https://github.com/EmilTholin/svelte-routing/pull/266). | ||
- PR merged [#266](https://github.com/EmilTholin/svelte-routing/pull/266). | ||
- Update dependencies. | ||
@@ -29,4 +34,4 @@ | ||
- Issue Fixed [#262](https://github.com/EmilTholin/svelte-routing/issues/262). | ||
- PR Merged [#263](https://github.com/EmilTholin/svelte-routing/pull/263). | ||
- Issue fixed [#262](https://github.com/EmilTholin/svelte-routing/issues/262). | ||
- PR merged [#263](https://github.com/EmilTholin/svelte-routing/pull/263). | ||
- Update svelte version. | ||
@@ -36,3 +41,3 @@ | ||
- Issue Fixed [#260](https://github.com/EmilTholin/svelte-routing/issues/260). | ||
- Issue fixed [#260](https://github.com/EmilTholin/svelte-routing/issues/260). | ||
- Update svelte version. | ||
@@ -46,14 +51,14 @@ | ||
- Added Prettier. | ||
- Added View Transition (Experimental). | ||
- Added prettier. | ||
- Added view transition (Experimental). | ||
# 2.2.0 | ||
- PR Merged [#258](https://github.com/EmilTholin/svelte-routing/pull/258). | ||
- PR merged [#258](https://github.com/EmilTholin/svelte-routing/pull/258). | ||
# 2.1.0 | ||
- PR Merged [#256](https://github.com/EmilTholin/svelte-routing/pull/256). | ||
- PR Merged [#257](https://github.com/EmilTholin/svelte-routing/pull/257). | ||
- Issue Fixed [#254](https://github.com/EmilTholin/svelte-routing/issues/254). | ||
- PR merged [#256](https://github.com/EmilTholin/svelte-routing/pull/256). | ||
- PR merged [#257](https://github.com/EmilTholin/svelte-routing/pull/257). | ||
- Issue fixed [#254](https://github.com/EmilTholin/svelte-routing/issues/254). | ||
- Update svelte version. | ||
@@ -63,4 +68,4 @@ | ||
- PR Merged [#250](https://github.com/EmilTholin/svelte-routing/pull/250). | ||
- PR Merged [#247](https://github.com/EmilTholin/svelte-routing/pull/247). | ||
- PR merged [#250](https://github.com/EmilTholin/svelte-routing/pull/250). | ||
- PR merged [#247](https://github.com/EmilTholin/svelte-routing/pull/247). | ||
- Removing example folder. | ||
@@ -71,3 +76,3 @@ - Update svelte version. | ||
- PR Merged [#245](https://github.com/EmilTholin/svelte-routing/pull/245). | ||
- PR merged [#245](https://github.com/EmilTholin/svelte-routing/pull/245). | ||
- Update svelte version. | ||
@@ -77,3 +82,3 @@ | ||
- PR Merged [#243](https://github.com/EmilTholin/svelte-routing/pull/243). | ||
- PR merged [#243](https://github.com/EmilTholin/svelte-routing/pull/243). | ||
@@ -87,8 +92,8 @@ # 1.9.0 | ||
- Fixed. Sometimes navigate return info null. | ||
- Issue Fixed [#132](https://github.com/EmilTholin/svelte-routing/issues/132). | ||
- Issue fixed [#132](https://github.com/EmilTholin/svelte-routing/issues/132). | ||
# 1.8.8 | ||
- Issue Fixed [#242](https://github.com/EmilTholin/svelte-routing/issues/242). | ||
- PR Removed [#77](https://github.com/EmilTholin/svelte-routing/pull/77) | ||
- Issue fixed [#242](https://github.com/EmilTholin/svelte-routing/issues/242). | ||
- PR removed [#77](https://github.com/EmilTholin/svelte-routing/pull/77) | ||
Causing infinity loop in nested routes. | ||
@@ -102,3 +107,3 @@ | ||
- Issue Fixed [#242](https://github.com/EmilTholin/svelte-routing/issues/242). | ||
- Issue fixed [#242](https://github.com/EmilTholin/svelte-routing/issues/242). | ||
- Update svelte version. | ||
@@ -114,3 +119,3 @@ - Codebase improved. | ||
- Issue Fixed [#241](https://github.com/EmilTholin/svelte-routing/issues/241). | ||
- Issue fixed [#241](https://github.com/EmilTholin/svelte-routing/issues/241). | ||
@@ -125,3 +130,3 @@ # 1.8.3 | ||
- Lazyload component return type added. | ||
- Issue Fixed [#240](https://github.com/EmilTholin/svelte-routing/issues/240). | ||
- Issue fixed [#240](https://github.com/EmilTholin/svelte-routing/issues/240). | ||
@@ -161,17 +166,17 @@ # 1.8.0 | ||
- Update the dependencies. | ||
- PR Merged [#220](https://github.com/EmilTholin/svelte-routing/pull/220). | ||
- PR Merged [#210](https://github.com/EmilTholin/svelte-routing/pull/210). | ||
- PR Merged [#206](https://github.com/EmilTholin/svelte-routing/pull/206). | ||
- PR Merged [#192](https://github.com/EmilTholin/svelte-routing/pull/193). | ||
- PR Merged [#188](https://github.com/EmilTholin/svelte-routing/pull/188). | ||
- PR Merged [#175](https://github.com/EmilTholin/svelte-routing/pull/175). | ||
- PR Merged [#173](https://github.com/EmilTholin/svelte-routing/pull/173). | ||
- PR Merged [#158](https://github.com/EmilTholin/svelte-routing/pull/158). | ||
- PR Merged [#105](https://github.com/EmilTholin/svelte-routing/pull/105). | ||
- PR Merged [#95](https://github.com/EmilTholin/svelte-routing/pull/95). | ||
- PR Merged [#85](https://github.com/EmilTholin/svelte-routing/pull/85). | ||
- PR Merged [#77](https://github.com/EmilTholin/svelte-routing/pull/77). | ||
- PR merged [#220](https://github.com/EmilTholin/svelte-routing/pull/220). | ||
- PR merged [#210](https://github.com/EmilTholin/svelte-routing/pull/210). | ||
- PR merged [#206](https://github.com/EmilTholin/svelte-routing/pull/206). | ||
- PR merged [#192](https://github.com/EmilTholin/svelte-routing/pull/193). | ||
- PR merged [#188](https://github.com/EmilTholin/svelte-routing/pull/188). | ||
- PR merged [#175](https://github.com/EmilTholin/svelte-routing/pull/175). | ||
- PR merged [#173](https://github.com/EmilTholin/svelte-routing/pull/173). | ||
- PR merged [#158](https://github.com/EmilTholin/svelte-routing/pull/158). | ||
- PR merged [#105](https://github.com/EmilTholin/svelte-routing/pull/105). | ||
- PR merged [#95](https://github.com/EmilTholin/svelte-routing/pull/95). | ||
- PR merged [#85](https://github.com/EmilTholin/svelte-routing/pull/85). | ||
- PR merged [#77](https://github.com/EmilTholin/svelte-routing/pull/77). | ||
- PR/Issue [#200](https://github.com/EmilTholin/svelte-routing/pull/200), | ||
Tested & it's not relevant/exists. | ||
- Issue Fixed [#122](https://github.com/EmilTholin/svelte-routing/issues/122), | ||
- Issue fixed [#122](https://github.com/EmilTholin/svelte-routing/issues/122), | ||
[#4652](https://github.com/sveltejs/svelte/issues/4652). | ||
@@ -178,0 +183,0 @@ |
{ | ||
"name": "svelte-routing", | ||
"version": "2.11.0", | ||
"version": "2.12.0", | ||
"author": "Emil Tholin @EmilTholin", | ||
@@ -30,6 +30,6 @@ "license": "MIT", | ||
"devDependencies": { | ||
"svelte": "^4.2.8", | ||
"prettier": "^3.1.1", | ||
"svelte": "^4.2.10", | ||
"prettier": "^3.2.5", | ||
"prettier-plugin-svelte": "^3.1.2" | ||
} | ||
} |
import { readable } from "svelte/store"; | ||
import { RouteLocation } from "./Route"; | ||
import { RouterProps } from "./Router"; | ||
import { RouterContext } from "./RouterContext"; | ||
type LOCATION = RouteLocation; | ||
type ROUTER = RouterProps; | ||
type ROUTER = RouterContext; | ||
type HISTORY = Record<string | number, any>; | ||
export const useLocation: () => ReturnType<typeof readable<LOCATION>>; | ||
export const useRouter: () => ReturnType<typeof readable<ROUTER>>; | ||
export const useRouter: () => ROUTER; | ||
export const useHistory: () => ReturnType<typeof readable<HISTORY>>; |
53132
24
589