Skip to content

feat: add @script-development/fs-router package#14

Merged
Goosterhof merged 2 commits into
mainfrom
feat/fs-router
Apr 8, 2026
Merged

feat: add @script-development/fs-router package#14
Goosterhof merged 2 commits into
mainfrom
feat/fs-router

Conversation

@Goosterhof
Copy link
Copy Markdown
Contributor

Summary

  • New @script-development/fs-router package — type-safe router service factory wrapping vue-router
  • Merges the best of kendo and BIO router implementations into a shared package
  • CRUD navigation shortcuts, middleware pipeline with unregister, custom RouterView/RouterLink components, generic Meta type for territory-specific route metadata

What's included

  • createRouterService<Routes>() factory with full type-safe route name inference
  • createCrudRoutes() / createNestedCrudRoutes() / createStandardRouteConfig() route factories
  • Custom RouterView (depth-aware key) and RouterLink (modifier-key passthrough)
  • Middleware registration (before/after) with unregister support
  • Current route computed refs: currentRouteId, currentRouteSlug, currentParentId, currentRouteQuery
  • Page detection: onPage, onCreatePage, onEditPage, onOverviewPage, onShowPage
  • routeExists, changeRouteQuery, goBack, getUrlForRouteName, install

Quality

  • 93 tests, 100% coverage (lines, branches, functions, statements)
  • 91.2% mutation score (threshold: 90%)
  • publint + attw: all green
  • oxlint: 0 issues

Test plan

  • npm run build — dual ESM + CJS output
  • npx tsc --noEmit — clean typecheck
  • npm run test:coverage — 100% coverage
  • npm run test:mutation — 91.2% mutation score
  • npm run lint:pkg — publint + attw pass
  • CI pipeline (8 gates)

🤖 Generated with Claude Code

Goosterhof and others added 2 commits April 8, 2026 11:10
Type-safe router service factory wrapping vue-router with CRUD navigation,
middleware pipeline with unregister support, and custom RouterView/RouterLink
components. Merges the best of kendo and BIO router implementations.

93 tests, 100% coverage, 91.2% mutation score.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Goosterhof Goosterhof merged commit 46427dd into main Apr 8, 2026
1 check passed
@Goosterhof Goosterhof deleted the feat/fs-router branch April 8, 2026 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant