simple_routes 2.0.4
simple_routes: ^2.0.4 copied to clipboard
Simple, declarative route and navigation management for go_router.
CHANGELOG #
2.0.4 9/29/2025 #
- Add support for go_router <17.0.0
2.0.3 5/20/2025 #
- Bump version to remove extra "+" tag
2.0.2 5/13/2025 #
- Update Flutter version to 3.29.3
- Update dependencies
2.0.1 5/25/2024 #
- Remove unused extensions
- Update missing info in documentation
2.0.0 5/23/2024 #
New major version release! See the release candidate notes below.
2.0.0-rc.3 #
- Fixed typos in README
- Improved location matcher section of README
2.0.0-rc.2 #
- Get rid of the
pathproperty override and, instead, supply the path segment into thesuperctor - Change extensions (ended up not using them, removed in 2.0.1)
- Eliminated the
goPathproperty (use thepathproperty instead) - Improved example and documentation
2.0.0-rc.1 #
- Change location helpers (
isCurrentRoute,isParentRoute,isActive) to accept aGoRouterStateinstead of aBuildContext - Change the
DataRouteparametersandqueryproperties fromMap<Enum, String>toMap<String, String> - Rename
DataRoutetoSimpleDataRoute - Rename
Enum#prefixedtoEnum#templateto be more clear - Remove the
GoRouterStateextension methods as they were not providing much value
1.1.3 #
- Improvements made to the README
1.1.2 #
- Update go_router
1.1.1 #
- Fix a typo in the "go-router" topic in the pubspec file
1.1.0 #
- Fix typos in README and example project
- Fix a bug in the
fullPathmethod causing duplicate leading slashes in some scenarios - Add support for returning values when using the
pushmethod - Move
mocktailto the dev dependencies - Add topics to the
pubspec.yamlforpub.dev - Upgrade fvm Flutter version and add entry to .gitignore
1.0.0 #
- First stable release!
- No changes from 1.0.0-beta.9 except to move from beta to stable
1.0.0-beta.9 #
- Rename
joinSegmentstofromSegments - Only use the duplicate segment detection when in debug mode
- Improve the duplicate segment error message
1.0.0-beta.8 #
- Hide the full path template and expose a
fullPathmethod on both route classes
1.0.0-beta.7 #
- Improve migration guide
- Improve README
1.0.0-beta.6 #
- Rename
fullPathproperty tofullPathTemplate - Rename
generatetopopulatedWith - Add
joinSegmentsmethod to base class and removetoPathextension method - Add and improve doc comments
1.0.0-beta.5 #
- Add
isActivemethod
1.0.0-beta.2 4 #
Minor fixes to documentation.
1.0.0-beta.1 #
We have finally reached a stable release! 🎉
Granted, this is just a beta release for the moment, we are confident that it is stable enough to be classified as version 1.
This release includes a significant rework of the API to improve the developer experience and standardize our package conventions.
Please see the Migration Guide for information on how to migrate your code to this version from the pre-release versions.
New Features #
- Path parameters are now injected automatically, based on the
parametersproperty - Query parameters are now appended automatically, based on the
queryproperty - Extra data is now injected automatically, based on the
extraproperty - Automatic leading-slash management - no more worrying about whether or not to add a leading slash to your route's
path - Get the full path of a
DataRoute, with all template parameters populated, using the newgeneratemethod
Breaking Changes #
This release includes a few breaking changes.
- The
queryparameter of thegomethod has been removed - The
pushargument of thegomethod has been removed - A new
goPathproperty has been added to theSimpleRouteclass and should be used when defining yourGoRoutes - The
injectmethod has been removed from theDataRouteclass - The helper methods have all been removed in favor of extensions and class methods
0.0.11 #
- Update GoRouter to ^12.0.0
0.0.10 #
- Attempt to fix release workflow (again)
0.0.9 #
- Add support for pushing routes
0.0.8 #
- Version bump for release workflow fixes
0.0.7 #
- Add
isCurrentRoutemethod - Add
isAncestormethod - Update description in pubspec.yaml
- Update README
0.0.6 #
- Add automated release workflow
- Update go_router to ^11.1.1
0.0.5 #
- Fix several small issues in README
0.0.4 #
Breaking Change
- Change
gomethod to use named parameters fordataandquery
Instead of writing:
const MyRoute().go(
context,
const MyRouteData('some-value'),
{'key': 'value'},
);
You will now need to write it as:
const MyRoute().go(
context,
data: const MyRouteData('some-value'),
query: {'key': 'value'},
);
0.0.3 #
- Add support for injecting query parameters into route paths
- Add helper method for extracting query param map from GoRouterState
- Fix bug in route data factory
- Add and improve tests
0.0.2 #
- Improve README
- Remove static route getter from example for consistency
0.0.1 #
Initial Release
- SimpleRoute and DataRoute base classes for routes
pathand generatedfullPathproperties for route configurationgomethod for navigation via go_router
- SimpleRouteData base class for route data
injectmethod for injecting route data into the route path
- ChildRoute interface for structuring route hierarchy
- SimpleRouteDataFactory base class
fromStatemethod for extracting route data from aGoRouterStatecontainsDatamethod for validatingGoRouterStatehas all necessary data componentscontainsKeyhelper for checking the existence of a parameter key in aGoRouterState
- Utility functions:
joinwithPrefixsetParamextension