Skip to content

Commit 340d0ea

Browse files
committed
10.0.0
1 parent 680e862 commit 340d0ea

File tree

2 files changed

+19
-17
lines changed

2 files changed

+19
-17
lines changed

CHANGELOG.md

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,22 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

8-
## [10.0.0] - 2025-05-02
9-
10-
- Update dependency [path-to-regexp](https://www.npmjs.com/package/path-to-regexp) to version 8.2.0 from 6.2.0.
11-
- Primarily inlcluds [major changes from 7.0](https://github.com/pillarjs/path-to-regexp/releases/tag/v7.0.0)
8+
## [10.0.0] - 2025-05-05
9+
10+
- Updated [path-to-regexp](https://www.npmjs.com/package/path-to-regexp) from v6.2.0 to v8.2.0.
11+
See [changelog](https://github.com/pillarjs/path-to-regexp/releases)
12+
(BREAKING CHANGE [#218](https://github.com/kriasoft/universal-router/pull/218))
13+
- Since [Path To RegExp does not provide an ESM version](https://github.com/pillarjs/path-to-regexp/issues/346),
14+
it is now bundled into the Universal Router package:
15+
```diff
16+
- const pathToRegexp = require('path-to-regexp')
17+
+ import * as pathToRegexp from 'universal-router/path-to-regexp'
18+
```
19+
- The import path for generating URLs has changed:
20+
```diff
21+
- import generateUrls from 'universal-router/generateUrls'
22+
+ import generateUrls from 'universal-router/generate-urls'
23+
```
1224

1325
## [9.2.1] - 2024-11-22
1426

@@ -310,7 +322,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
310322

311323
- Small bug fixes and improvements
312324

313-
[unreleased]: https://github.com/kriasoft/universal-router/compare/v9.2.1...HEAD
325+
[unreleased]: https://github.com/kriasoft/universal-router/compare/v10.0.0...HEAD
326+
[10.0.0]: https://github.com/kriasoft/universal-router/compare/v9.2.1...v10.0.0
314327
[9.2.1]: https://github.com/kriasoft/universal-router/compare/v9.2.0...v9.2.1
315328
[9.2.0]: https://github.com/kriasoft/universal-router/compare/v9.1.0...v9.2.0
316329
[9.1.0]: https://github.com/kriasoft/universal-router/compare/v9.0.1...v9.1.0

README.md

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -51,21 +51,10 @@ Using [npm](https://www.npmjs.com/package/universal-router):
5151
npm install universal-router --save
5252
```
5353

54-
Or using a [CDN](https://en.wikipedia.org/wiki/Content_delivery_network) like
55-
[unpkg.com](https://unpkg.com/universal-router/universal-router.min.js) or
56-
[jsDelivr](https://cdn.jsdelivr.net/npm/universal-router/universal-router.min.js)
57-
with the following script tag:
58-
59-
```html
60-
<script src="https://unpkg.com/universal-router/universal-router.min.js"></script>
61-
```
62-
63-
You can find the library in `window.UniversalRouter`.
64-
6554
## How does it look like?
6655

6756
```js
68-
import UniversalRouter from 'universal-router'
57+
import UniversalRouter from 'https://esm.sh/universal-router'
6958

7059
const routes = [
7160
{

0 commit comments

Comments
 (0)