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

thednp / vite-plugin-vanjs / 24991755734
100%

Build:
DEFAULT BRANCH: master
Ran 27 Apr 2026 11:13AM UTC
Jobs 1
Files 16
Run time 1min
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

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 %.

24 of 24 new or added lines in 2 files covered. (100.0%)

429 of 429 relevant lines covered (100.0%)

13.55 hits per line

Jobs
ID Job ID Ran Files Coverage
1 24991755734.1 27 Apr 2026 11:13AM UTC 16
100.0
GitHub Action Run
Source Files on build 24991755734
  • 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 Repo
  • 3c6aed8f on github
  • Prev Build on master (#24778044401)
  • Next Build on master (#24994390755)
  • 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