{"action":"published","release":{"url":"https://api.github.com/repos/angular-ui/ui-router/releases/3555479","assets_url":"https://api.github.com/repos/angular-ui/ui-router/releases/3555479/assets","upload_url":"https://uploads.github.com/repos/angular-ui/ui-router/releases/3555479/assets{?name,label}","html_url":"https://github.com/angular-ui/ui-router/releases/tag/1.0.0-beta.1","id":3555479,"tag_name":"1.0.0-beta.1","target_commitish":"master","name":"UI-Router 1.0 beta release","draft":false,"author":{"login":"christopherthielen","id":2053478,"avatar_url":"https://avatars.githubusercontent.com/u/2053478?v=3","gravatar_id":"","url":"https://api.github.com/users/christopherthielen","html_url":"https://github.com/christopherthielen","followers_url":"https://api.github.com/users/christopherthielen/followers","following_url":"https://api.github.com/users/christopherthielen/following{/other_user}","gists_url":"https://api.github.com/users/christopherthielen/gists{/gist_id}","starred_url":"https://api.github.com/users/christopherthielen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christopherthielen/subscriptions","organizations_url":"https://api.github.com/users/christopherthielen/orgs","repos_url":"https://api.github.com/users/christopherthielen/repos","events_url":"https://api.github.com/users/christopherthielen/events{/privacy}","received_events_url":"https://api.github.com/users/christopherthielen/received_events","type":"User","site_admin":false},"prerelease":false,"created_at":"2016-06-30T01:47:01Z","published_at":"2016-06-30T01:52:41Z","assets":[],"tarball_url":"https://api.github.com/repos/angular-ui/ui-router/tarball/1.0.0-beta.1","zipball_url":"https://api.github.com/repos/angular-ui/ui-router/zipball/1.0.0-beta.1","body":"<a name=\"1.0.0-beta.1\"></a>\r\n# [1.0.0-beta.1](https://github.com/angular-ui/ui-router/compare/1.0.0-alpha.5...v1.0.0-beta.1) (2016-06-30)\r\n\r\n# UI-Router 1.0 is in beta\r\n\r\n## UI-Router has a new home!\r\n\r\nhttps://ui-router.github.io/new-ui-router-site/\r\n\r\n\r\n# BREAKING CHANGES\r\n\r\nThese breaking changes are for users upgrading from a previous alpha, not from 0.x legacy series.\r\nThis list is extensive, but typical users won't be affected by most of these changes.\r\n\r\nThe most common breaks will be #1 and #2\r\n\r\n1) BC-BREAK: renamed all Ui* (lowercase 'i') symbols to UI* (uppercase 'I') for more consistent naming.\r\n   - UiView -> UIView\r\n   - UiSref -> UISref (and related directives)\r\n   - UiInjector -> UIInjector\r\n\r\n2) BC-BREAK: Transition Hooks are no longer injected (onBefore/onStart/onExit/onRetain/onEnter/onFinish/onSuccess/onError)\r\n\r\n   Previously, a hook like `['$state', ($state) => $state.target('foo')]` would get `$state` injected.\r\n   Now, all hooks receive two parameters:\r\n   - transition: the current Transition, which has an `injector()` function\r\n   - state: for onEnter/onRetain/onExit hooks only, the State which the hook is being run for. This value will be null for onBefore/onStart/onFinish/onSuccess/onError hooks.\r\n\r\n   Refactor your hooks\r\n   from: `['$state', 'mySvc', ($state, mySvc) => mySvc.foo() ? $state.target('foo')] : true`\r\n   to: `(trans) => trans.injector().get('mySvc').foo() ? trans.router.stateService.target('foo') : true`\r\n\r\n   Note: for backwards compatiblity, angular 1 onEnter/onExit/onRetain hooks are still injected\r\n\r\n3) BC-BREAK: - The (internal API) State object's .resolve property is now an array of Resolvables, built from your state definitions by the StateBuilder\r\n\r\n4) BC-BREAK: - Removed the default resolve called `$resolve$`, which was added in a previous alpha\r\n\r\n5) BC-BREAK: - `Transition.addResolves()`  replaced with `Transition.addResolvable()`\r\n\r\n6) BC-BREAK: remove `ResolveContext.getResolvables()` in favor of `.getToken()`` and `.getResolvable()`\r\n\r\n7) BC-BREAK: remove `ResolveContext.invokeLater()` and `.invokeNow()`\r\n\r\n8) BC-BREAK: remove support for `JIT` resolves.  This also eliminated the need for the `loadAllControllerLocals` hook which was also removed\r\n\r\n9) BC-BREAK: Replaced `ViewConfig.node` with `ViewConfig.path`. Angular 1's `$(element).data('$uiView')` is affected.\r\n   Previously the .node was the node for the view. Now the last element in the path is the node for the view.\r\n\r\n10) BC-BREAK: Nodes no longer have (stateful) `.resolveContext` properties. Instead, a new ResolveContext is wrapped over a Path of Nodes.  Removed `PathFactory.bindResolveContexts()`.\r\n\r\n11) BC-BREAK: ResolveContext.resolvePath returns a promise for resolved data as an array of tuples, instead of a promise for an object of resolved data.  Removed `ResolveContext.resolvePathElement()`.\r\n\r\n12) BC-BREAK: Removed ResolvePolicy enum in favor of the ResolvePolicy interface `{ when: \"\", async: \"\" }`\r\n\r\n13) BC-BREAK: renamed `ResolveContext.isolateRootTo` to `subContext`\r\n\r\n14) BC-BREAK: rename `UIRouterGlobals` class to `Globals`; add `UIRouterGlobals` back as an interface\r\n\r\n15) BC-BREAK: Moved `defaultErrorHandler` from `TransitionService` to `StateService`\r\n\r\n\r\n### Features\r\n\r\n* **Resolve:** Switch state.resolve to be an array of Resolvables ([6743a60](https://github.com/angular-ui/ui-router/commit/6743a60))\r\n* **Resolve:** support ng2-like provide object literals.  Support injection of arbitrary tokens, not just strings. ([a7e5ea6](https://github.com/angular-ui/ui-router/commit/a7e5ea6))\r\n* **Resolve:** support ng2-like provide object literals ([a7e5ea6](https://github.com/angular-ui/ui-router/commit/a7e5ea6))\r\n* **Transition:** expose the current `UiRouter` object as a public property ([52f1308](https://github.com/angular-ui/ui-router/commit/52f1308))\r\n* **redirectTo:** Process `redirectTo` property of a state as a redirect string/object/hook function ([6becb12](https://github.com/angular-ui/ui-router/commit/6becb12)), closes [#27](https://github.com/angular-ui/ui-router/issues/27) [#948](https://github.com/angular-ui/ui-router/issues/948)\r\n* **rejectFactory:** separate transition aborted and transition errored reject types ([55995fd](https://github.com/angular-ui/ui-router/commit/55995fd))\r\n* **ParamType:** allow a custom parameter Type to specify a default value for a parameter's `dynamic` property\r\n* **Resolvable:** Added a new Resolve Policy 'RXWAIT'.  If an Observable is returned, pass the observable as the value, but also wait for it to emit its first value\r\n\r\n### Bug Fixes\r\n\r\n* **ng2.pushState:** Properly match urls when base path set ([b9be2dc](https://github.com/angular-ui/ui-router/commit/b9be2dc)), closes [#2745](https://github.com/angular-ui/ui-router/issues/2745)\r\n* **ng2.UIRouterConfig:** Allow new UIRouter() to finish before configuring it ([a151f71](https://github.com/angular-ui/ui-router/commit/a151f71))\r\n* **ng2.UiView:** fix input resolve binding ([4f53f81](https://github.com/angular-ui/ui-router/commit/4f53f81))\r\n* **ng2.UIView:** Make routed to component appear *inside* UIView, not next to it. ([558fc80](https://github.com/angular-ui/ui-router/commit/558fc80))\r\n* **redirect:** fix bug where redirected transitions with reload: true got wrong resolve values copied ([bd0e3a3](https://github.com/angular-ui/ui-router/commit/bd0e3a3))\r\n* **Rejection:** Silence \"Error: Uncaught (in Exception)\" ([38432f4](https://github.com/angular-ui/ui-router/commit/38432f4)), closes [#2676](https://github.com/angular-ui/ui-router/issues/2676)\r\n* **Trace:** Fix error in console after $trace.enable() ([013c77a](https://github.com/angular-ui/ui-router/commit/013c77a)), closes [#2752](https://github.com/angular-ui/ui-router/issues/2752)\r\n* **ng2.UIView:** Trigger change detection once for routed components\r\n\r\n\r\n"}}
{"actor":{"display_login":"christopherthielen"}}