Skip to content

Releases: ui-router/angular-hybrid

4.0.0

03 May 17:26

Choose a tag to compare

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 of UIRouterModule.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

12 Feb 17:51

Choose a tag to compare

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

31 Jan 00:50

Choose a tag to compare

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

  • uiSref: Add support for ctrl/middle-clicking on a uiSref generated URL (#175) (973924a)

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

07 Dec 02:50

Choose a tag to compare

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

  • artifactory: Add trailing newline to package.json to work around artifactory issue (#3551) (d09a345), closes #3550
  • uiView: Fix cfg.getTemplate is undefined (f4d99b0)

3.1.7

17 Oct 22:08

Choose a tag to compare

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

  • ie9: make console.bind work in ie9 (#85) (318214b)

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 initial property to forRoot to specify the initial route. (b7b5e4f)

Updated @uirouter/angularjs from 1.0.8 to 1.0.9

Compare @uirouter/angularjs versions 1.0.8 and 1.0.9

3.1.5

07 Oct 19:36

Choose a tag to compare

3.1.5 (2017-10-07)

Compare @uirouter/angular-hybrid versions 3.1.4 and 3.1.5

Updates:

  • @uirouter/angularjs to 1.0.8
  • @uirouter/angular to 1.0.0-beta.8
  • @uirouter/core to 5.0.10

Bug Fixes

  • hybrid: Do not import angular/upgrade (eb83724)
  • typings: Fix typing error in uiRouterUpgradeFactory (f361d7a)

3.1.4

07 Oct 19:37

Choose a tag to compare

3.1.4 (2017-08-15)

  • fix(package): Fix manifest -- location of es6 modules is lib/index not lib-esm/index (040722c)

3.1.3

07 Oct 19:37

Choose a tag to compare

3.1.3 (2017-08-13)

  • fix(build): Depend on NPM packages instead of git tags (b9261af)
  • Create README.md (d59d2f9)
  • chore(): update changelog (e4d29d4)
  • chore(example): Added minimal example (a8ee08f)

3.1.2

14 Jun 03:45

Choose a tag to compare

3.1.2 (2017-06-12)

Rebuilt with newer snapshots of @uirouter/angular and @uirouter/angularjs

  • chore(example): Added minimal example (425815d)

3.1.1

08 Jun 18:55

Choose a tag to compare

3.1.1 (2017-05-22)

Fix missing dev dependency from 3.1.0 release

  • chore(deps): Add @angular/compiler-cli (7a893ba)