extreme-router 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.MD +15 -0
- package/README.md +661 -660
- package/dist/bundle-size.json +12 -12
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/docs/error-types.md +35 -35
- package/docs/examples/browser.md +130 -130
- package/docs/examples/server.bun.md +73 -73
- package/docs/examples/server.deno.md +71 -71
- package/docs/examples/server.node.md +102 -102
- package/docs/optional-parameters-priority.md +64 -64
- package/package.json +9 -9
package/CHANGELOG.MD
CHANGED
|
@@ -6,7 +6,22 @@ All notable changes to this project will be documented in this file.
|
|
|
6
6
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
7
7
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
8
8
|
|
|
9
|
+
## [1.2.0] - 2025-12-23
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- Introduced the `skipPluginValidation` option to the router constructor and for use with `router.use()`. When enabled (`true`), plugin validation is skipped during plugin registration, improving router initialization time. Defaults to `false`. **⚠️ WARNING:** This option should only be enabled when using official plugins or well validated custom plugins, as skipping validation can lead to runtime errors if plugins are malformed.
|
|
13
|
+
|
|
14
|
+
### Documentation
|
|
15
|
+
- Added comprehensive documentation for the `skipPluginValidation` option in the README, including safety warnings and usage guidelines.
|
|
16
|
+
- Added tests for the `skipPluginValidation` feature covering both constructor initialization and `use()` method usage.
|
|
17
|
+
|
|
18
|
+
## [1.1.1] - 2025-05-19
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
- Fixed a bug where a dynamic route's store was not correctly updated when `pluginMeta.override` was `true` and the global `allowRegisterUpdateExisting` option was `false`. Previously, an existing dynamic route's store was never updated due to the use of the nullish coalescing operator (`??`) when assigning the store.
|
|
22
|
+
|
|
9
23
|
## [1.1.0] - 2025-05-18
|
|
24
|
+
|
|
10
25
|
### Added
|
|
11
26
|
- Introduced the `allowRegisterUpdateExisting` option to the router constructor. When enabled (`true`), invoking `router.register()` on an already registered path will return the existing store instance for that path instead of throwing an error, allowing the store's data to be updated. When disabled (`false`, default), attempting to register an existing path will throw an error as before.
|
|
12
27
|
|