Navigation v4.0.0
·
7546 commits
to master
since this release
New
- #96 Changed build task to use rollup instead of browserify
- #102 Allowed construction of navigation links with pre-populated crumb trails (fluent navigation)
Fixed
- #95 Improved performance of navigation link construction
- #104 Removed byte order mark from npm package entry point
Changed
If you don’t use the crumb trail then this is a non-breaking release
- #111 Passed new navigation data to
truncateCrumbTrail
- #112 Removed automatic crumb trail truncation. You can use the following to revert to the previous crumb trail truncation behaviour:
for(var key in stateNavigator.states) {
stateNavigator.states[key].truncateCrumbTrail = function(state, data, crumbs) {
var newCrumbs = [];
for (var i = 0; i < crumbs.length; i++) {
if (crumbs[i].state === state)
break;
newCrumbs.push(crumbs[i]);
}
return newCrumbs;
}
}