routingkit 5.1.0 copy "routingkit: ^5.1.0" to clipboard
routingkit: ^5.1.0 copied to clipboard

Routing Kit - Lightweight and fast router. - A composable pure function routing kit.

5.1.0 #

New Features #

  • Added caseSensitive parameter to createRouter function to configure case sensitivity for path matching (defaults to true)
  • Added caseSensitive property to the Router interface to indicate the router's case sensitivity setting
  • Parameter names (like :ID) maintain their original case even in case-insensitive mode

5.0.1 #

Bug Fixes #

  • Fixed duplicated results in findAll method by implementing a deduplication mechanism
  • Added configurable anyMethodToken parameter to createRouter function with a default value of 'routerkit-method://any'
  • Enhanced wildcard and parameter matching with more reliable route priority handling

5.0.0 #

Breaking Changes #

  • 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.

New Features #

  • Introduced Router class as the main entry point
  • Provided a more concise chainable API
  • Optimized internal implementation with clearer code structure

Migration Guide #

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');

4.1.1 #

  • fix: fix: remove named wildcard routes
  • chrome: bump lints from 4.0.0 to 5.1.0

v4.1.0 #

  • feat: Support nullable method.

v4.0.0 #

compare changes

🩹 Fixes #

💅 Refactors #

✅ Tests #

❤️ Contributors #

4
likes
0
points
158
downloads

Publisher

verified publisherodroe.dev

Weekly Downloads

Routing Kit - Lightweight and fast router. - A composable pure function routing kit.

Repository (GitHub)
View/report issues

Topics

#router #routing #route #fast-router #routing-kit

Funding

Consider supporting this project:

github.com

License

unknown (license)

More

Packages that depend on routingkit