Releases: canjs/can-route
Releases · canjs/can-route
Prevent .register from reading route data
- Prevents
canRoute.register
from readingcanRoute.data
- Setting
data
before or afterregister
ing the routes.
Add a warning when .data is set after .register() is called
.register()
will read .data
when it’s called, so setting .data
later may have unintended consequences. The new warning lets you know when .data
is set after .register()
is called.
Use of ObservableObject for the default route.data
In 4.0 the default route.data
was a DefineMap. In 5.0 this is not an ObservableObject (from can-observable-object).
For most people no code changes are required. If your project must support IE11 then you'll need to create an alias to can-route/src/routedata-definemap
. With Steal that looks like this:
<script>
steal.config({
map: {
"can-route/src/routedata": "can-route/src/routedata-definemap"
}
});
</script>
Default route.data defines properties passed as defaults in route.register
Docco comments and QUNIT2 upgrade
- Fix docco comments
- Updates the tests to use QUnit@2.x.x.
Fix the deprecated group’s name in the docs
IE11 Test Consistency
Made tests more consistent in IE11 by resetting routes after each test and added IE11 to sauce labs suite.
IE 11 Compatibility
Documentation Overhaul
Extensive updates to documentation.