Skip to content

Commit

Permalink
fix: export RouterType as a value instead of being a type
Browse files Browse the repository at this point in the history
  • Loading branch information
RiadhAdrani committed Jan 7, 2024
1 parent 6b3608b commit 63bae0d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,42 @@ All notable changes to this project will be documented in this file.

## Unreleased

### Fixed

- exporting `RouterType` as a value instead of a type.

## 0.0.4 - 2024-01-04

### Added

- improved documentation

### Fixed

- restored `Router.getSearchParams`.
- navigating causing `onChanged` hook to be called even when url is unchanged.
- `Router.getParams` now encodes params value before storing them.

## 0.0.3 - 2024-01-02

### Changed

- simplified how the router work.

## 0.0.2 - 2023-12-28

### Added

- `toHref` method allowing the creation of a valid `href` from a path or a `NamedDestination`.

### Fixed

- improved `navigate()` with the existance of a `base`.

## 0.0.1 - 2023-12-08

### Added

- export `RouterInstance` class.
- export `types`.
- export `isUrlNavigatable` method.
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ export const isUrlNavigatable = (url: string): boolean => {
return url.startsWith('/');
};

export { Router } from './class.js';
export { Router, RouterType } from './class.js';

export type {
RouterType,
RouterConfig,
IndexRawRoute,
CatchRawRoute,
Expand Down

0 comments on commit 63bae0d

Please sign in to comment.