Skip to content

Releases: mdrv/arc

v1.0.0 - Major Release: Package Rename

Choose a tag to compare

@mdrv mdrv released this 17 Jan 15:32

🎉 Major Release: v1.0.0

⚠️ BREAKING CHANGES

Package renamed from @mdsv/arc to @mdrv/arc

This is a major version bump due to the package name change to better match the username.

Migration Guide

Update your imports:

- import { createRouter } from '@mdsv/arc'
+ import { createRouter } from '@mdrv/arc'

Update your package.json:

- "@mdsv/arc": "^0.0.5"
+ "@mdrv/arc": "^1.0.0"

📦 What's Included

All features from v0.0.5 are preserved:

  • ✅ Svelte 5 client-side router
  • ✅ View Transition API support
  • ✅ Nested routes & layouts
  • ✅ Dynamic parameters & wildcards
  • ✅ Lazy loading
  • ✅ Navigation hooks
  • ✅ Comprehensive test suite (67+ passing tests)
  • ✅ Full TypeScript support

📝 Full Changelog

  • refactor: rename package from @mdsv/arc to @mdrv/arc
  • chore: bump version to 1.0.0

Note: This release only changes the package name. All functionality remains the same.

v0.0.5: Comprehensive Test Suite

Choose a tag to compare

@mdrv mdrv released this 17 Jan 08:13

🧪 Major Update: Comprehensive Test Suite

This release adds a robust test infrastructure and fixes routing bugs discovered during testing.

✨ Highlights

  • 67+ passing tests covering all core functionality
  • 98.5% success rate with <2 second execution time
  • 2 routing bugs fixed that were discovered during testing
  • New testing documentation page
  • 80%+ code coverage on utility functions

🧪 Test Infrastructure

  • Test Runner: Vitest with happy-dom
  • Test Types: Unit tests (integration tests planned)
  • Execution Time: ~1 second for full suite
  • Coverage Tool: Built-in v8 coverage

🐛 Bugs Fixed

  1. Wildcard route priority - Routes like /* now properly sort to end of route list
  2. Wildcard path resolution - Wildcard routes now correctly match URLs
  3. Test spy cleanup - Console spies no longer interfere across tests

📚 Test Coverage

  • ✅ Route matching and parameter extraction
  • ✅ Path utilities (join, constructPath, isActive)
  • ✅ Component resolution (lazy and eager loading)
  • ✅ Route validation and priority sorting
  • ✅ Location handling and navigation
  • ✅ Layout collection and hook configuration

📖 Documentation

  • Added /docs/testing page with full test documentation
  • Updated README with testing section
  • Created OpenSpec testing infrastructure spec
  • Documented testing best practices

🚀 Running Tests

# Run all tests
bun run test:run

# Watch mode
bun run test

# With coverage
bun run test:coverage

🔄 Migration Guide

No breaking changes - this release is fully backward compatible. No migration needed.

📦 What's Next

  • Integration tests for complete routing flows
  • Continuous integration (GitHub Actions)
  • Additional edge case coverage
  • E2E tests (optional future enhancement)

Full Changelog: v0.0.2...v0.0.5

v0.0.3 - Enhanced Documentation with Interactive Examples

Choose a tag to compare

@mdrv mdrv released this 17 Jan 07:22

What's New in v0.0.3

This release significantly enhances the documentation with interactive examples and comprehensive API reference.

New Documentation Pages

📚 Examples Page

Interactive demonstrations showcasing @mdsv/arc's key features:

  • TransitionDemo - Selectable transition types (fade, slide, scale, material) with live preview
  • NestedRoutesDemo - Persistent layouts with sidebar pattern showing how layouts can have both static and transitioning sections
  • DynamicParamsDemo - Route parameters in action with user and product detail pages
  • DirectionDemo - Direction-aware transitions that slide left for forward navigation and right for backward

📖 API Reference Page

Complete documentation of all public exports:

  • Core Router API (createRouter, Router component)
  • Navigation utilities (navigate, isActiveLink, route state)
  • View Transitions API (presets, direction detection, custom transitions)
  • Helper utilities (Loader, searchParams, Status, countProgress)
  • TypeScript types with usage examples

Bug Fixes

  • Fixed scale transition not working in TransitionDemo (was hardcoded to fly transition)

Documentation Improvements

  • All demos are self-contained and don't affect browser URL
  • Smooth visual transitions using Svelte's built-in transition system
  • Code snippets included with each example for easy reference
  • Enhanced navigation structure

Links

Technical Details

  • 54 files changed: 2,830 insertions, 706 deletions
  • 15 new demo component files
  • OpenSpec change proposal archived

Full Changelog: v0.0.2...v0.0.3