Skip to content

Releases: ui-router/angular-hybrid

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

  • 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

  • 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
  ]
})

3.1.10

12 Feb 17:51
Compare
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