• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

thednp / vite-plugin-vanjs / 24991755734 / 1
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 27 Apr 2026 11:13AM UTC
Files 16
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

27 Apr 2026 11:11AM UTC coverage: 100.0%. Remained the same
24991755734.1

push

github

thednp
Changes:

Router

Breaking Changes:

- **`lazy()` is now async-first on both server and client.** Previously, the client returned a synchronous function with `van.state` for component/route, showing a "Loading.." placeholder. Now both server and client return the same `async () => ComponentModule` pattern with `.isLazy = true`. This unifies the API and eliminates the client-only "Loading.." state.
- **`executeLifecycle()` signature changed.** Now takes `(route, params)` directly instead of `({ route }, params)`. The `route` argument accepts a `RouteEntry`, a `{ preload, load }` object, or `null`.
- **`miniStore()` renamed to `microStore()`.** Same behavior, new name. Empty plain objects (like `params: {}`) are now assigned directly instead of being skipped.
- **`cache.mjs` replaced by `routeCache.mjs`.** Exports renamed from `cache`/`getCached` to `cacheRoute`/`getCachedRoute`.
- **Removed `DynamicModule` type.** Replaced by `LazyComponent` which uses `Promise<{ default?, Page?, route? }>`.

Added Features

- **`routerState.status`** — reactive status field: `"idle" | "pending" | "success" | "error"`. Set automatically during lifecycle execution. Initialized to `"success"` on server and during SSR hydration, `"idle"` for pure SPA.
- **`dataCache` module** — path-keyed data cache with LRU eviction. Exported as `* as dataCache` from `@vanjs/router`. Supports `get`, `set`, `has`, `del`, `clear`, `touch`, `toJSON`, `hydrateFromJSON`, `size`, `setMaxRoutes`. Data from `route.load()` return values is automatically cached.
- **`useRouteData()`** — convenience hook that returns the current route's cached data from `dataCache`.
- **`isCurrentLocation()`** — checks if the current pathname includes the given path segment (for nav highlighting of parent sections).
- **`isLazyComponent()`** — now checks both `.isLazy === true` and `AsyncFunction` constructor name, regardless of server/client context.
- **`extractParams()`** — now exported from `@vanjs/router` for ... (continued)

263 of 263 branches covered (100.0%)

Branch coverage included in aggregate %.

429 of 429 relevant lines covered (100.0%)

13.55 hits per line

Source Files on job 24991755734.1
  • Tree
  • List 16
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 24991755734
  • 3c6aed8f on github
  • Prev Job for on master (#24778044401.1)
  • Next Job for on master (#24994390755.1)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc