Skip to content

Releases: canjs/can-route

Prevent .register from reading route data

25 Nov 18:54
Compare
Choose a tag to compare
  • Prevents canRoute.register from reading canRoute.data
  • Setting data before or after registering the routes.

#256

Add a warning when .data is set after .register() is called

14 Nov 14:23
Compare
Choose a tag to compare

.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

04 Oct 17:50
Compare
Choose a tag to compare

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

17 Jun 15:16
Compare
Choose a tag to compare

Docco comments and QUNIT2 upgrade

28 May 19:45
Compare
Choose a tag to compare
  • Fix docco comments
  • Updates the tests to use QUnit@2.x.x.

#223 #242

Fix the deprecated group’s name in the docs

01 May 20:56
Compare
Choose a tag to compare

IE11 Test Consistency

28 Nov 00:19
Compare
Choose a tag to compare

Made tests more consistent in IE11 by resetting routes after each test and added IE11 to sauce labs suite.

#220

IE 11 Compatibility

08 Nov 20:24
Compare
Choose a tag to compare

Documentation Overhaul

08 Nov 18:44
Compare
Choose a tag to compare

Extensive updates to documentation.

Fixes bug with route.data properties not being defined in production

06 Nov 14:23
Compare
Choose a tag to compare