Releases: ui-router/angular-hybrid
8.0.0
8.0.0 (2019-06-25)
Compare @uirouter/angular-hybrid
versions 7.0.0 and 8.0.0
Features
- support Angular v8 (e8a8419)
7.0.0
7.0.0 (2019-02-12)
Compare @uirouter/angular-hybrid
versions 6.0.3 and 7.0.0
Bug Fixes
- angularjs: Get AngularJS reference using 'getAngularJSGlobal()' (d53d134), closes #240
- upgrade: Fix "no provider" error while injecting a falsy ng1 provider (1a06a9a)
BREAKING CHANGES
- angularjs: If 'angular' variable is not on the window, you must provide it using 'setAngularJSGlobal(angular);'.
https://github.com/ui-router/angular-hybrid/wiki/AngularJS-not-found-on-window
Updated @uirouter/angular
from 2.0.4 to 3.0.0
Compare @uirouter/angular
versions 2.0.4 and 3.0.0
Features
- angular: Updates for Angular 7 (7f3132a)
6.0.3
6.0.3 (2019-02-03)
Compare @uirouter/angular-hybrid
versions 6.0.2 and 6.0.3
Updated @uirouter/core
from 5.0.21 to 5.0.23
Compare @uirouter/core
versions 5.0.21 and 5.0.23
Bug Fixes
- lazyLoad: StateBuilder should not mutate the state declaration (1478a3c), closes /github.com/ui-router/core/commit/3cd5a2a#r31260154
- state: Update URL in response to ignored transition due to redirect (c64c252)
- test_downstream_projects: don't double build core while testing downstreams (148b16b)
- typescript: Fix typing of onChange callback in UrlService (961ed0f), closes #229
- typescript: Mark
params
as optional in StateService.href (614bfb4), closes #287 - vanilla: Fix baseHref parsing with chrome-extension:// urls (f11be4d), closes #304
Features
Updated @uirouter/angular
from 2.0.2 to 2.0.4
Compare @uirouter/angular
versions 2.0.2 and 2.0.4
Updated @uirouter/angularjs
from 1.0.20 to 1.0.22
6.0.2
6.0.2 (2018-08-12)
Compare @uirouter/angular-hybrid
versions 6.0.1 and 6.0.2
Updated @uirouter/core
from 5.0.20 to 5.0.21
Compare @uirouter/core
versions 5.0.20 and 5.0.21
Bug Fixes
- dynamic: Use 'find' from common.ts instead of Array.prototype.find (66a3244), closes #215
- url: When using html5Mode and no tag is present, default to '/' (23742e3), closes #223
Updated @uirouter/angular
from 2.0.1 to 2.0.2
Compare @uirouter/angular
versions 2.0.1 and 2.0.2
Updated @uirouter/angularjs
from 1.0.19 to 1.0.20
6.0.1
6.0.1 (2018-07-20)
Compare @uirouter/angular-hybrid
versions 6.0.0 and 6.0.1
Updated @uirouter/core
from 5.0.19 to 5.0.20
Compare @uirouter/core
versions 5.0.19 and 5.0.20
Bug Fixes
- params: When creating an array parameter from a custom type, copy the
raw
property (b6dd738), closes #178
Features
- dynamic: Support dynamic flag on a state declaration (3cd5a2a)
- transition: Added transition.paramsChanged() to get added/deleted/changed parameter values for a transition (10b7fde)
- view: Add _pluginapi._registeredUIView() to get a ui-view by id (6533b51)
Updated @uirouter/angular
from 2.0.0 to 2.0.1
Compare @uirouter/angular
versions 2.0.0 and 2.0.1
Updated @uirouter/angularjs
from 1.0.17 to 1.0.19
Compare @uirouter/angularjs
versions 1.0.17 and 1.0.19
Bug Fixes
- bundles: Do not run prettier against release/* bundles when publishing to bower (9b420fa)
- npm: Publish to the old angular-ui-router npm package too (8fc3bb2)
- resolve: Detect and honor strictDi in angularjs versions 1.3 and 1.4 (1368c18), closes #3678
- state: When creating absolute hrefs in hashbang mode, include the location.pathname (cd426e5), closes #3710
- uiview: Allow uiOnParamsChanged to work with states that have a componentProvider (fe91bd3), closes #3707
6.0.0
6.0.0 (2018-05-20)
Compare @uirouter/angular-hybrid
versions 5.0.0 and 6.0.0
Bug Fixes
- prettier: Use es5 compatible trailing comma setting (6421bf9)
- typings: Allow stateRegistry.register() and stateProvider.state() to take either Ng1 or Ng2StateDeclaration (c0e55ad), closes #147 #148
- upgrade: Fix "Trying to get the AngularJS injector before it being set" in child and lazy modules (f4bb925), closes #93
BREAKING CHANGES
- upgrade: In 5.0.0, we recommended
UIRouterUpgradeModule.forChild()
everywhere.
However, this could cause an error "Trying to get the AngularJS injector before it being set".
Now:
- Use
UIRouterUpgradeModule.forRoot()
in the root Angular module. - Use
UIRouterUpgradeModule.forChild()
for Angular feature modules and lazy loaded modules.
5.0.0
5.0.0 (2018-05-13)
Compare @uirouter/angular-hybrid
versions 4.0.1 and 5.0.0
Features
- angular: Drop Angular v4 support, add Angular v6 support (0fc6d72)
BREAKING CHANGES
- angular: RxJS v6 and Angular v5 or higher is now required to use this package.
If using Angular v5, you should update to "rxjs": "^6.0.0"
and also add "rxjs-compat": "^6.0.0"
.
Updated @uirouter/core
from 5.0.18 to 5.0.19
Compare @uirouter/core
versions 5.0.18 and 5.0.19
Bug Fixes
- enums: Workaround angular compiler export issue angular/angular#23759 (38d25fa)
Updated @uirouter/angular
from 1.1.0 to 2.0.0
Compare @uirouter/angular
versions 1.1.0 and 2.0.0
Features
- angular: Drop Angular v4 support, add Angular v6 support (cdf0273), closes #301
- core: Update core to 5.0.19, rx to 0.5.0 (be6de0d)
BREAKING CHANGES
- angular: RxJS v6 and Angular v5 or higher is now required to use this package.
If using Angular v5, you should update to "rxjs": "^6.0.0"
and also add "rxjs-compat": "^6.0.0"
.
Updated @uirouter/angularjs
from 1.0.16 to 1.0.17
4.0.1
4.0.1 (2018-05-03)
Compare @uirouter/angular-hybrid
versions 4.0.0 and 4.0.1
Bug Fixes
- README: Update bootstrap directions to avoid 'digest already in progress' errors (9df20f0)
Updated @uirouter/core
from 5.0.17 to 5.0.18
Compare @uirouter/core
versions 5.0.17 and 5.0.18
Bug Fixes
- angular: A hack to force the Angular compiler to import from module index (d56a2be)
- StateRegistry: Notify listeners of added states when there are orphans in the state queue (5a9bac9)
- transition: Fix typing of Transition.params() (ebea30e)
- transition: Normalize
error()
to always returnRejection
(9bcc5db)
Updated @uirouter/angular
from 1.0.1 to 1.1.0
Compare @uirouter/angular
versions 1.0.1 and 1.1.0
Bug Fixes
- uiSref: Ignore clicks if destination state is falsey (b599e72)
- uiView: Always inject and/or bind NOWAIT resolve as a Promise object. (42d739d)
Features
- uiView: Add uiOnParamsChanged support for routed components (45aa2aa)
Updated @uirouter/angularjs
from 1.0.15 to 1.0.16
Compare @uirouter/angularjs
versions 1.0.15 and 1.0.16
Bug Fixes
4.0.0
4.0.0 (2018-02-15)
Compare @uirouter/angular-hybrid
versions 3.1.10 and 4.0.0
Bug Fixes
- package: Move types/* dependencies to devDependencies (9c87ae6)
Features
- NgModule: Add UIRouterUpgradeModule.forChild() (a867ffb)
- typings: add types for hybrid state declaration (f5a6c73)
BREAKING CHANGES
- NgModule: - Remove standalone import of
UIRouterUpgradeModule
.
- Use
UIRouterUpgradeModule.forChild()
instead ofUIRouterModule.forChild()
. - Cast states as
NgHybridStateDeclaration
.
The angular-hybrid
library processes state's onEnter
/onExit
/onRetain
as AngularJS style injected functions. However, the typescript typings when using UIRouterModule.forChild()
were not compatible with AngularJS style injected callbacks. This release adds typings supporting AngularJS style callbacks on state declarations.
export const mystate: NgHybridStateDeclaration = { // cast
name: 'mystate',
url: '/mystate',
component: MyAngularComponent,
onEnter: myStateOnEnter,
};
myStateOnEnter.$inject = ['$state'];
export function myStateOnEnter($state) {
console.log('$state was injected', $state);
}
@NgModule({
imports: [
BrowserModule,
UpgradeModule,
// remove this: UIRouterUpgradeModule,
// remove this: UIRouterModule.forChild( ... ),
UIRouterUpgradeModule.forChild({ states: [mystate] }), // replace with this
]
})
3.1.10
3.1.10 (2018-02-12)
Compare @uirouter/angular-hybrid
versions 3.1.9 and 3.1.10
Updated @uirouter/core
from 5.0.16 to 5.0.17
Compare @uirouter/core
versions 5.0.16 and 5.0.17
Bug Fixes
- core: Fix leak of old transitions by mutating pathnode*.resolvables*.data (0a1f518)
Updated @uirouter/angular
from 1.0.0 to 1.0.1
Compare @uirouter/angular
versions 1.0.0 and 1.0.1
Bug Fixes
- package: update @uirouter/core to version 5.0.17 (f018f35)
- uiSrefActive: Support multiple active classes (e086700)
Updated @uirouter/angularjs
from 1.0.14 to 1.0.15
Compare @uirouter/angularjs
versions 1.0.14 and 1.0.15