Skip to content

Releases: ui-router/angular-hybrid

9.0.0

02 Oct 23:02
Compare
Choose a tag to compare

9.0.0 (2019-10-02)

Compare @uirouter/angular-hybrid versions 8.0.0 and 9.0.0

Bug Fixes

  • travis: remove explicit call to xvfb (3b124cc)
  • travis: use service: xvfb instead of launching it manually. install libgconf debian package (e85f678)

Features

  • update ui-router/angular dependency that supports angular 8 (b97af69)

Updated @uirouter/core from 5.0.23 to 6.0.1

Compare @uirouter/core versions 5.0.23 and 6.0.1

Bug Fixes

  • resolve: remove unnecessary generics from CustomAsyncPolicy (#452) (61f4ee9)
  • travis: use service: xvfb instead of launching it manually. install libgconf debian package (ac1ef4b)

Features

  • resolve: Remove RXWAIT async policy in favour of allowing user defined async policy function (#366) (0ad87f6)

BREAKING CHANGES

  • resolve: RXWAIT async policy has been removed, but it never worked in the first place

Updated @uirouter/angular from 3.0.0 to 5.0.0

Compare @uirouter/angular versions 3.0.0 and 5.0.0

Bug Fixes

  • travis: use service: xvfb instead of launching it manually. install libgconf debian package (309fc9b)

Chores

Features

  • uirouter: Add support for Angular 8 (c141d95)

BREAKING CHANGES

  • package: Removed RXWAIT async policy (which was broken) in favor of supporting custom resolve policies. Added a custom RXWAIT policy to uirouter/rx which is included in uirouter/angular

Updated @uirouter/angularjs from 1.0.22 to 1.0.23

Compare @uirouter/angularjs versions 1.0.22 and 1.0.23

Bug Fixes

  • stateFilters: Export each function individually (978b882)
  • travis: Fix travis build (dc0f58a)
  • types: Remove @types/jquery from devDependencies, upgrade @types/angular (b12bc84)
  • viewDirective: add check for componentProvider, avoid extra trigger for $onInit (fixing #3735) (#3779) (c3e87ad)

8.0.0

25 Jun 18:38
Compare
Choose a tag to compare

8.0.0 (2019-06-25)

Compare @uirouter/angular-hybrid versions 7.0.0 and 8.0.0

Features

7.0.0

12 Feb 01:24
Compare
Choose a tag to compare

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

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

03 Feb 22:06
Compare
Choose a tag to compare

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

Features

  • TransitionHook: Pass in transition to HookMatchCriteria (#255) (926705e)

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

Compare @uirouter/angularjs versions 1.0.20 and 1.0.22

6.0.2

12 Aug 01:02
Compare
Choose a tag to compare

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

Compare @uirouter/angularjs versions 1.0.19 and 1.0.20

6.0.1

20 Jul 17:18
Compare
Choose a tag to compare

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

20 May 03:49
Compare
Choose a tag to compare

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

13 May 18:13
Compare
Choose a tag to compare

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

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

Compare @uirouter/angularjs versions 1.0.16 and 1.0.17

4.0.1

03 May 17:28
Compare
Choose a tag to compare

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 return Rejection (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

  • docs: downgrade to @types/angular@1.6.25 to fix typings error when generating docs (5850136)

4.0.0

03 May 17:26
Compare
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
  ]
})