@real-router/svelte 0.23.0 → 0.24.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/README.md CHANGED
@@ -381,30 +381,6 @@ The action automatically adds `role="link"` + `tabindex="0"` to non-interactive
381
381
 
382
382
  > **Hash asymmetry vs `<Link hash>`:** `createLinkAction` does **not** accept a `hash` parameter; `<Link hash="x">` does (#532). Use `<Link>` when a hash-aware variant is needed (tab-style UIs, same-route different-fragment navigation through `navigateWithHash`). For pure `use:link` callers, attach a click handler that calls `router.navigate(name, params, undefined, { force: true, hash: "x" })` manually if hash control is required.
383
383
 
384
- ## Reactive Primitives
385
-
386
- ### `createReactiveSource`
387
-
388
- Public building block that bridges any `RouterSource<T>` to Svelte's reactivity system. Returns a `{ current: T }` getter object that lazily subscribes via `createSubscriber`.
389
-
390
- ```svelte
391
- <script lang="ts">
392
- import { createReactiveSource, useRouter } from "@real-router/svelte";
393
- import { createActiveRouteSource } from "@real-router/sources";
394
-
395
- const router = useRouter();
396
- const isActive = createReactiveSource(
397
- createActiveRouteSource(router, "users.profile", {})
398
- );
399
- </script>
400
-
401
- {#if isActive.current}
402
- <span class="badge">Active</span>
403
- {/if}
404
- ```
405
-
406
- Use cases: custom active route indicators, domain-specific composables, integration with other reactive primitives.
407
-
408
384
  ## Svelte-Specific Patterns
409
385
 
410
386
  ### Reading .current in Reactive Contexts
@@ -569,7 +545,7 @@ Full documentation: [Wiki](https://github.com/greydragon888/real-router/wiki)
569
545
 
570
546
  24 runnable examples — each is a standalone Vite app. Run: `cd examples/web/svelte/basic && pnpm dev`
571
547
 
572
- **Core:** [basic](../../examples/web/svelte/basic) · [nested-routes](../../examples/web/svelte/nested-routes) · [auth-guards](../../examples/web/svelte/auth-guards) · [data-loading](../../examples/web/svelte/data-loading) · [lazy-loading](../../examples/web/svelte/lazy-loading) · [async-guards](../../examples/web/svelte/async-guards) · [hash-routing](../../examples/web/svelte/hash-routing) · [persistent-params](../../examples/web/svelte/persistent-params) · [error-handling](../../examples/web/svelte/error-handling) · [dynamic-routes](../../examples/web/svelte/dynamic-routes) · [link-action](../../examples/web/svelte/link-action) · [lazy-loading-svelte](../../examples/web/svelte/lazy-loading-svelte) · [snippets-routing](../../examples/web/svelte/snippets-routing) · [reactive-source](../../examples/web/svelte/reactive-source) · [search-schema](../../examples/web/svelte/search-schema) · [combined](../../examples/web/svelte/combined)
548
+ **Core:** [basic](../../examples/web/svelte/basic) · [nested-routes](../../examples/web/svelte/nested-routes) · [auth-guards](../../examples/web/svelte/auth-guards) · [data-loading](../../examples/web/svelte/data-loading) · [lazy-loading](../../examples/web/svelte/lazy-loading) · [async-guards](../../examples/web/svelte/async-guards) · [hash-routing](../../examples/web/svelte/hash-routing) · [persistent-params](../../examples/web/svelte/persistent-params) · [error-handling](../../examples/web/svelte/error-handling) · [dynamic-routes](../../examples/web/svelte/dynamic-routes) · [link-action](../../examples/web/svelte/link-action) · [lazy-loading-svelte](../../examples/web/svelte/lazy-loading-svelte) · [snippets-routing](../../examples/web/svelte/snippets-routing) · [search-schema](../../examples/web/svelte/search-schema) · [combined](../../examples/web/svelte/combined)
573
549
 
574
550
  **Animations:** [motion-animations](../../examples/web/svelte/animation-examples/motion-animations) · [page-animations](../../examples/web/svelte/animation-examples/page-animations) · [route-animations](../../examples/web/svelte/animation-examples/route-animations) · [view-transitions](../../examples/web/svelte/animation-examples/view-transitions)
575
551
 
package/dist/index.d.ts CHANGED
@@ -2,7 +2,6 @@ export { default as RouteView } from "./components/RouteView.svelte";
2
2
  export { default as Link } from "./components/Link.svelte";
3
3
  export { default as Lazy } from "./components/Lazy.svelte";
4
4
  export { default as RouterErrorBoundary } from "./components/RouterErrorBoundary.svelte";
5
- export { createReactiveSource } from "./createReactiveSource.svelte";
6
5
  export { useRouter } from "./composables/useRouter.svelte";
7
6
  export { useNavigator } from "./composables/useNavigator.svelte";
8
7
  export { useRouteUtils } from "./composables/useRouteUtils.svelte";
package/dist/index.js CHANGED
@@ -3,8 +3,6 @@ export { default as RouteView } from "./components/RouteView.svelte";
3
3
  export { default as Link } from "./components/Link.svelte";
4
4
  export { default as Lazy } from "./components/Lazy.svelte";
5
5
  export { default as RouterErrorBoundary } from "./components/RouterErrorBoundary.svelte";
6
- // Reactive Primitives
7
- export { createReactiveSource } from "./createReactiveSource.svelte";
8
6
  // Composables
9
7
  export { useRouter } from "./composables/useRouter.svelte";
10
8
  export { useNavigator } from "./composables/useNavigator.svelte";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@real-router/svelte",
3
- "version": "0.23.0",
3
+ "version": "0.24.0",
4
4
  "type": "module",
5
5
  "description": "Svelte 5 integration for Real-Router",
6
6
  "svelte": "./dist/index.js",