Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency routingkit to v5 #147

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 3, 2025

This PR contains the following updates:

Package Type Update Change
routingkit dependencies major ^4.1.0 -> ^5.0.0

Release Notes

medz/routingkit (routingkit)

v5.1.1

Compare Source

Documentation
  • Improved pubspec.yaml with more descriptive information and optimized topics

v5.1.0

Compare Source

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

v5.0.1

Compare Source

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

v5.0.0

Compare Source

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

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link

stackblitz bot commented Mar 3, 2025

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link

netlify bot commented Mar 3, 2025

Deploy Preview for spry-framework ready!

Name Link
🔨 Latest commit e3e4517
🔍 Latest deploy log https://app.netlify.com/sites/spry-framework/deploys/67c5cea7e64a2e0008065055
😎 Deploy Preview https://deploy-preview-147--spry-framework.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants