- Enhanced API documentation with detailed comments for better developer experience
- Added comprehensive test suite including functional tests, performance benchmarks, and HTTP server examples
- Fixed code style issues in test files to comply with Dart linting rules
- Improved pubspec.yaml with more descriptive information and optimized topics
- Added
caseSensitive
parameter tocreateRouter
function to configure case sensitivity for path matching (defaults totrue
) - Added
caseSensitive
property to theRouter
interface to indicate the router's case sensitivity setting - Parameter names (like
:ID
) maintain their original case even in case-insensitive mode
- Fixed duplicated results in
findAll
method by implementing a deduplication mechanism - Added configurable
anyMethodToken
parameter tocreateRouter
function with a default value of 'routerkit-method://any' - Enhanced wildcard and parameter matching with more reliable route priority handling
- Complete API restructuring from functional to object-oriented style
- Core operations are now methods of the Router class instead of standalone functions
- Removed exported operation functions such as addRoute, findRoute, etc.
- Introduced Router class as the main entry point
- Provided a more concise chainable API
- Optimized internal implementation with clearer code structure
Migrating from v4.x to v5.0.0:
import 'package:routingkit/routingkit.dart';
- const router = createRouter();
+ final router = createRouter<String>();
- addRoute(router, 'get', '/path', 'data');
+ router.add('get', '/path', 'data');
- findRoute(router, 'get', '/path');
+ router.find('get', '/path');
- findAllRoutes(router, 'get', '/path');
+ router.findAll('get', '/path');
- removeRoute(router, 'get', '/path');
+ router.remove('get', '/path');
- fix: fix: remove named wildcard routes
- chrome: bump lints from 4.0.0 to 5.1.0
- feat: Support nullable method.
- Find all (7d1e06b)
- Done (245ff49)
-
- (1fbcb5c)
- Seven Du [email protected]