Releases: ui-router/angular-hybrid
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
Bug Fixes
3.1.9
3.1.9 (2018-01-31)
Compare @uirouter/angular-hybrid versions 3.1.8 and 3.1.9
Bug Fixes
- greenkeeper: pin angular dev deps to 4.x, update ui-router deps, update rollup config (c157551)
Updated @uirouter/core from 5.0.11 to 5.0.16
Compare @uirouter/core versions 5.0.11 and 5.0.16
Bug Fixes
- browserLocation: Use location.pathname (not href) or '/' when no base tag found (db461d6)
- browserLocationConfig: If no base href found, use location.href (not empty string) (0251424)
- common: Fix signature of for objects (make target optional) (61d0afc)
- core: Fix memory leak of resolve data from ALL transitions ever (7f2aed1)
- pathNode: add backwards compat for PathNode.clone(). Add retainedWithToParams to treeChanges interface. (4833a32)
- pushStateLocation: Fix URLs: add slash between base and path when necessary (bfa5755)
- pushStateLocation: When url is "" or "/", use baseHref for pushState (042a950)
- resolve: Add onFinish hook to resolve any dynamicly added resolvables (7d1ca54)
- trace: Fix null reference in uiview name sort function (59cb067)
- treeChanges: apply toParams to 'retained' path (#72) (cf63d11)
- urlRouter: Update query params when resetting url via .update() (7664cd0)
Features
- common: Add map-in-place support to map() (12bc7d8)
- common: Add onEvict() callback registry for queues with max length (c19d007)
- view: Add onSync callback API to plugin API (9544ae5)
Updated @uirouter/angular from 1.0.0-rc.1 to 1.0.0
Compare @uirouter/angular versions 1.0.0-rc.1 and 1.0.0
Bug Fixes
- hooks: Use an APP_INITIALIZER to sync/listen to the URL (f1d390f)
- package: Bump dependency on uirouter/publish-scripts to fix npm install (1a026d2)
- package: update @uirouter/core to version 5.0.13 (90aa1d4)
Features
Updated @uirouter/angularjs from 1.0.11 to 1.0.14
Compare @uirouter/angularjs versions 1.0.11 and 1.0.14
Bug Fixes
- location: allow empty string param: Ng1LocationServices.url('') (01bbaf0)
- onEnter: Do not inject child-state data into ng1 onEnter hooks (cdec6a0)
- package: update @uirouter/core to version 5.0.13 (6c63f2d)
- travis: regenerate and encrypt secret (c718ce5)
- uiSrefActive: don't match fuzzy on lazy loaded future states (01430ee)
Features
- uiSrefActive: Support arrays of globs for ng-class style (b215343)
3.1.8
3.1.8 (2017-12-07)
Compare @uirouter/angular-hybrid versions 3.1.7 and 3.1.8
Bug Fixes
- types: Add types/angular and types/jquery as top level dependency. (f00d5cf), closes #58
- uiView: Use useFactory instead of useValue when to prevent object re-use within PARENT_INJECT for different UIViews (3087be9)
Features
- angular-hybrid: Fix peer dependencies. Update package deps. (d09949d)
Updated @uirouter/angular from 1.0.0-beta.9 to 1.0.0-rc.1
Compare @uirouter/angular versions 1.0.0-beta.9 and 1.0.0-rc.1
Bug Fixes
- package: Rebuild uirouter/angular using angular 4.4.6 (a39aed8)
- package.json: npm shrinkwarp with angular 5 (477d0f7)
- uiView: Fix animations :enter trigger by using markForCheck (3d7ce44)
Features
- directives: Export directives using
exportAs:for use as template variables (3d532b6) - lazyLoad: Allow loadChildren for non-future states. (ac3cdef)
- uiView: add getter for state which is filling the uiview (e7cb5f1)
Updated @uirouter/angularjs from 1.0.9 to 1.0.11
Compare @uirouter/angularjs versions 1.0.9 and 1.0.11
Bug Fixes
3.1.7
3.1.7 (2017-10-17)
Compare @uirouter/angular-hybrid versions 3.1.5 and 3.1.7
Updated @uirouter/core from 5.0.10 to 5.0.11
Compare @uirouter/core versions 5.0.10 and 5.0.11
Bug Fixes
Updated @uirouter/angular from 1.0.0-beta.8 to 1.0.0-beta.9
Compare @uirouter/angular versions 1.0.0-beta.8 and 1.0.0-beta.9
Features
- UIRouterModule: Add
initialproperty toforRootto specify the initial route. (b7b5e4f)
Updated @uirouter/angularjs from 1.0.8 to 1.0.9
3.1.5
3.1.5 (2017-10-07)
Compare @uirouter/angular-hybrid versions 3.1.4 and 3.1.5
Updates:
@uirouter/angularjsto 1.0.8@uirouter/angularto 1.0.0-beta.8@uirouter/coreto 5.0.10