extreme-router 1.0.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 ADDED
@@ -0,0 +1,50 @@
1
+ extreme-router\CHANGELOG.md
2
+ # Changelog
3
+
4
+ All notable changes to this project will be documented in this file.
5
+
6
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
7
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
8
+
9
+ ## [Unreleased]
10
+
11
+ ### Added
12
+
13
+ ### Changed
14
+
15
+ ### Fixed
16
+
17
+ ## [1.0.0] - 2025-05-09
18
+
19
+ ### Added
20
+
21
+ - Initial implementation of the `Extreme` router class ([`src/router.ts`](c:\Users\lior3\Development\liodex\extreme-router\src\router.ts)).
22
+ - Support for static route registration and matching.
23
+ - Support for dynamic route registration and matching via a plugin system.
24
+ - Plugin registration mechanism (`router.use`).
25
+ - Route registration mechanism (`router.register`).
26
+ - Route unregistration mechanism (`router.unregister`) for static, dynamic, and optional parameter paths.
27
+ - Route matching mechanism (`router.match`).
28
+ - Route inspection mechanism (`inspect()` for retrieving a list of all registered routes).
29
+ - Built-in plugins: `param`, `wildcard`, `regexParam`, `extensionParam`, `groupParam`, `prefixGroup`, `optionalPrefixGroup`, `optionalParam` ([`index.ts`](c:\Users\lior3\Development\liodex\extreme-router\index.ts)).
30
+ - Support for optional parameters in routes (`router.register`).
31
+ - Configurable `storeFactory` for route stores.
32
+ - Comprehensive JSDoc/TSDoc comments for the `Extreme` router class and its public methods ([`src/router.ts`](c:\Users\lior3\Development\liodex\extreme-router\src\router.ts)).
33
+ - Development setup using Bun, ESLint, Prettier, Vitest, tsup, Husky, lint-staged.
34
+ - Benchmark scripts (`match`, `memory`, `stress`).
35
+ - Testing suite with coverage reporting.
36
+ - `README.md` with usage examples, API documentation, and development guidelines.
37
+ - `CONTRIBUTING.md` outlining contribution guidelines.
38
+ - `LICENSE` file (MIT).
39
+ - Scripts for generating bundle size and benchmark reports.
40
+
41
+ ### Changed
42
+
43
+ - Improved error handling with specific `ErrorTypes`.
44
+ - Refined plugin validation logic in `router.use`.
45
+ - Optimized dynamic node sorting by priority in `registerDynamicPath`.
46
+
47
+ ### Fixed
48
+
49
+ - Ensured correct handling of wildcard routes during matching.
50
+ - Addressed potential conflicts during dynamic route registration.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Lior Cohen
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.