OLD | NEW |
(Empty) | |
| 1 ## app-router change log |
| 2 |
| 3 #### v2.4.0 |
| 4 - Adding globstar `**` support. |
| 5 - Adding relative paths `users/:userId` which is the same as `/**/users/:userId`
. |
| 6 |
| 7 #### v2.3.2 |
| 8 - Fixed bug where calling `router.go('/path')` on the current path wouldn't relo
ad the page. |
| 9 - Switched `router.go('/path')` to fire a `popstate` event instead of directly c
alling `stateChange()` in order to support multiple routers on the same page. |
| 10 |
| 11 #### v2.3.1 |
| 12 - Fixing bug where `router.go('/path')` would replace state instead of push stat
e. |
| 13 |
| 14 #### v2.3.0 |
| 15 - Adding `typecast="auto|string"` option on the `app-router`. Path variables and
query parameters are typecast to numbers, booleans, and unescaped strings by de
fault. Now you can get the raw string with `typecast="string"`. |
| 16 - Optimized hash fragment changes so that if only the hash fragment changes it w
ill scroll to the fragment and not reload the entire page. |
| 17 |
| 18 #### v2.2.1 |
| 19 - Fixing bug where the `before-data-binding` event wasn't using the updated mode
l if the entire model was replaced. |
| 20 |
| 21 #### v2.2.0 |
| 22 - Added ability to scroll to hash fragment on navigation. For example, `http://e
xample.com/#/page1#middle` will now scroll to an element with `id="middle"` or `
name="middle"`. |
| 23 |
| 24 #### v2.1.0 |
| 25 - Added data binding to `<template>` tags when Polymer (`TemplateBinding.js`) is
present. |
| 26 - Added `bindRouter` attribute to pass the router to the `app-route`'s page. |
| 27 - Added `before-data-binding` event to add properties to a model before it's bou
nd to the route's custom element or template. |
| 28 - Fixed a `core-animated-pages` bug where multiple URLs matched the same `app-ro
ute` (ex: `path="/page/:num"` and paths `/page/1`, `/page/2`). |
| 29 |
| 30 #### v2.0.4 |
| 31 - The move from `platform.js` to `webcomponents.js` removed the `URL()` construc
tor polyfill. The v2.0.3 fix created a bug in Safari when parsing the URL. This
fixes Safari. |
| 32 |
| 33 #### v2.0.3 |
| 34 - The move from `platform.js` to `webcomponents.js` removed the `URL()` construc
tor polyfill https://github.com/Polymer/webcomponentsjs/issues/53. IE doesn't su
pport the `URL()` constructor yet so this fix is adding URL parse support for IE
. |
| 35 |
| 36 #### v2.0.2 |
| 37 - Fixing [issue 19](https://github.com/erikringsmuth/app-router/issues/19) using
best effort approach. Use `template.createInstance()` if Polymer is loaded, oth
erwise use `document.importNode()`. |
| 38 |
| 39 #### v2.0.1 |
| 40 - Fixing bug where multiple `<app-route>`s had an `active` attribute. |
| 41 |
| 42 #### v2.0.0 |
| 43 New features |
| 44 |
| 45 - Added support for `<core-animated-pages>`. Example: set up the router like `<a
pp-router core-animated-pages transitions="hero-transition cross-fade">` then in
clude the `hero` and `cross-fade` attributes on the elements you want transition
ed. |
| 46 |
| 47 Breaking changes |
| 48 |
| 49 - Previously the active route's content was under an `<active-route>` element. N
ow the content for the route is under it's `<app-route>` element. This changed t
o support `<core-animated-pages>`. |
| 50 - The `<active-route>` element and `router.activeRouteContent` have been removed
. |
| 51 - Removed the `shadow` attribute from the `<app-router>`. This was applied to th
e `<active-route>` element which no longer exists. |
| 52 |
| 53 #### v1.0.0 |
| 54 Breaking changes |
| 55 |
| 56 - `pathType="auto|hash|regular"` has been replaced with `mode="auto|hash|pushsta
te"` for redirects, `router.go(path, options)`, and testing routes. |
| 57 |
| 58 New features |
| 59 |
| 60 - Added support for redirects with `<app-route path="..." redirect="/other/path"
></app-route>`. |
| 61 - Added `router.go(path, options)`. Example: `document.querySelector('app-router
').go('/home', {replace: true})`. |
| 62 - Note: If you're using redirects or `go()` you should specify the mode with `<a
pp-router mode="pushstate|hash"></app-router>`. Leaving the mode as `auto` (the
default) will change the hash, even if you wanted it to change the real path wit
h pushstate. |
| 63 |
| 64 #### v0.9.0 |
| 65 - Refactor `parseUrl()` to use the native `URL()` constructor and return additio
nal information about the hash path. |
| 66 - Cleaned up `testRoute()` and `routeArguments()` with additional information fr
om `parseUrl()`. |
| 67 - Moved utility functions to `AppRouter.util`. |
| 68 |
| 69 #### v0.8.1 |
| 70 - Fixed bug where the regular path was being used when `pathType="hash"` was set
on the router. |
| 71 |
| 72 #### v0.8.0 |
| 73 - `template` no longer required on inline template routes. |
| 74 - Only use `app-route`s that are direct children of the router by replacing `que
rySelector()` with `firstElementChild` and iterating with `nextSibling`. |
| 75 - Took internal functions off the public API and simplified parameters. |
| 76 |
| 77 #### v0.7.0 |
| 78 - Added the `pathType` attribute to the router. The options are `auto`, `hash`,
and `regular`. |
OLD | NEW |