UNPKG

@curi/svelte

Version:

Curi integration with Svelte

39 lines (21 loc) 1.04 kB
## 1.0.0-beta.6 * Update to Svelte v2 minimum dependency. * Remove `<script>` builds. ## 1.0.0-beta.5 * Add `hash`, `query`, and `state` props to `<Link>`, remove `details`. * Add `curiStore` function to automatically sync router and store. This can create a new store or update an existing store. ## 1.0.0-beta.4 * Keep router on its own in the store as `$router`. ## 1.0.0-beta.3 * `$curi.router` not `$curi.config`. ## 1.0.0-beta.2 * Bump Svelte version (`1.48` had breaking changes) * Removed source maps from `dist` ## 1.0.0-beta.1 * Include Svelte `.html` components in `dist` folder so users can import them instead of the pre-built modules. (`import Link from '@curi/svelte/dist/Link.html'`) ## 1.0.0-beta.0 * This package now relies on the user using `svelte/store` to make the Curi config available to components (`new Store({ curi: { config }})`) ## 1.0.0-alpha.5 * `<Link>` uses `history.navigate`, not `history.update`. ## 1.0.0-alpha.3 * Only call `history.update` for left, non-modified `<Link>` clicks.