Skip to content

Upgrading @angular/router 5 to 6

Unknown5.2.11 → 6.1.10

UnknownUpgrade verdict

DepDelta hasn't looked for this range's notes in its newest sources yet, so breaking changes can't be ruled out.

  • DepDelta hasn't finished looking for the notes in this range, so it can't rule out breaking changes yet.
  • Their commits are listed with this comparison.
Unknown for releases without notes

Releases without notes may still need changes. Check their commits before upgrading.

Generated by DepDelta from published .d.ts files. Not mixed with prose notes.

  • added: export * from './public_api'
  • removed: export * from './public_api'
  • removed: export { ROUTER_FORROOT_GUARD as ɵa } from './src/router_module'
  • removed: export { RouterInitializer as ɵg } from './src/router_module'
  • removed: export { Tree as ɵk } from './src/utils/tree'
  • removed: export { TreeNode as ɵl } from './src/utils/tree'
  • removed: export { getAppInitializer as ɵh } from './src/router_module'
  • removed: export { getBootstrapListener as ɵi } from './src/router_module'
  • removed: export { provideForRootGuard as ɵd } from './src/router_module'
  • removed: export { provideLocationStrategy as ɵc } from './src/router_module'
  • removed: export { provideRouterInitializer as ɵj } from './src/router_module'
  • removed: export { rootRoute as ɵf } from './src/router_module'
  • removed: export { routerNgProbeToken as ɵb } from './src/router_module'
  • removed: export { setupRouter as ɵe } from './src/router_module'
  • added: export * from './index'
  • added: export { ROUTER_FORROOT_GUARD as ɵangular_packages_router_router_a } from './src/router_module'
  • added: export { RouterInitializer as ɵangular_packages_router_router_h } from './src/router_module'
  • added: export { RouterScroller as ɵangular_packages_router_router_n } from './src/router_scroller'
  • added: export { Tree as ɵangular_packages_router_router_l } from './src/utils/tree'
  • added: export { TreeNode as ɵangular_packages_router_router_m } from './src/utils/tree'
  • added: export { createRouterScroller as ɵangular_packages_router_router_c } from './src/router_module'
  • added: export { getAppInitializer as ɵangular_packages_router_router_i } from './src/router_module'
  • added: export { getBootstrapListener as ɵangular_packages_router_router_j } from './src/router_module'
  • added: export { provideForRootGuard as ɵangular_packages_router_router_e } from './src/router_module'
  • added: export { provideLocationStrategy as ɵangular_packages_router_router_d } from './src/router_module'
  • added: export { provideRouterInitializer as ɵangular_packages_router_router_k } from './src/router_module'
  • added: export { rootRoute as ɵangular_packages_router_router_g } from './src/router_module'
  • added: export { routerNgProbeToken as ɵangular_packages_router_router_b } from './src/router_module'
  • added: export { setupRouter as ɵangular_packages_router_router_f } from './src/router_module'
  • added: class EmptyOutletComponent
  • removed: function copyConfig(r: Route): Route
  • added: function standardizeConfig(r: Route): Route
  • changed: readonly property RouterOutlet.activatedRouteData: { [name: string]: any } → readonly property RouterOutlet.activatedRouteData: Data
  • changed: type Event = RouterEvent | RouteConfigLoadStart | RouteConfigLoadEnd | ChildActivationStart | ChildActivationEnd | ActivationStart | ActivationEnd → type Event = RouterEvent | RouteConfigLoadStart | RouteConfigLoadEnd | ChildActivationStart | ChildActivationEnd | ActivationStart | ActivationEnd | Scroll
  • added: class Scroll
  • added: constructor NavigationStart(id: number, url: string, navigationTrigger?: 'imperative' | 'popstate' | 'hashchange', restoredState?: { navigationId: number } | null)
  • added: constructor Scroll(routerEvent: NavigationEnd, position: [number, number] | null, anchor: string | null)
  • added: method Scroll.toString(): string
  • added: property NavigationStart.navigationTrigger?: 'imperative' | 'popstate' | 'hashchange'
  • added: property NavigationStart.restoredState?: { navigationId: number } | null
  • added: readonly property Scroll.anchor: string | null
  • added: readonly property Scroll.position: [number, number] | null
  • added: readonly property Scroll.routerEvent: NavigationEnd
  • added: type NavigationTrigger = 'imperative' | 'popstate' | 'hashchange'
  • added: export { Scroll } from './events'
  • added: export { EmptyOutletComponent as ɵEmptyOutletComponent } from './components/empty_outlet'
  • changed: function recognize(rootComponentType: Type<any> | null, config: Routes, urlTree: UrlTree, url: string, paramsInheritanceStrategy?: ParamsInheritanceStrategy): Observable<RouterStateSnapshot> → function recognize(rootComponentType: Type<any> | null, config: Routes, urlTree: UrlTree, url: string, paramsInheritanceStrategy?: ParamsInheritanceStrategy, relativeLinkResolution?: 'legacy' | 'corrected'): Observable<RouterStateSnapshot>
  • added: property Router.malformedUriErrorHandler: (error: URIError, urlSerializer: UrlSerializer, url: string) => UrlTree
  • added: property Router.relativeLinkResolution: 'legacy' | 'corrected'
  • added: property Router.urlUpdateStrategy: 'deferred' | 'eager'
  • changed: function provideRouterInitializer(): (typeof RouterInitializer | { provide: InjectionToken<(() => void)[]>; multi: boolean; useFactory: (r: RouterInitializer) => any; deps: (typeof RouterInitializer)[] } | { provide: InjectionToken<(compRef: ComponentRef<any>) => void>; useFactory: (r: RouterInitializer) => any; deps: (typeof RouterInitializer)[] } | { provide: InjectionToken<((compRef: Component… → function provideRouterInitializer(): (typeof RouterInitializer | { provide: InjectionToken<(() => void)[]>; multi: boolean; useFactory: typeof getAppInitializer; deps: (typeof RouterInitializer)[]; useExisting?: undefined } | { provide: InjectionToken<(compRef: ComponentRef<any>) => void>; useFactory: typeof getBootstrapListener; deps: (typeof RouterInitializer)[]; multi?: undefined; useExisting?…
  • changed: static method RouterModule.forChild(routes: Routes): ModuleWithProviders → static method RouterModule.forChild(routes: Routes): ModuleWithProviders<RouterModule>
  • changed: static method RouterModule.forRoot(routes: Routes, config?: ExtraOptions): ModuleWithProviders → static method RouterModule.forRoot(routes: Routes, config?: ExtraOptions): ModuleWithProviders<RouterModule>
  • added: function createRouterScroller(router: Router, viewportScroller: ViewportScroller, config: ExtraOptions): RouterScroller
  • added: property ExtraOptions.anchorScrolling?: 'disabled' | 'enabled'
  • added: property ExtraOptions.malformedUriErrorHandler?: (error: URIError, urlSerializer: UrlSerializer, url: string) => UrlTree
  • added: property ExtraOptions.relativeLinkResolution?: 'legacy' | 'corrected'
  • added: property ExtraOptions.scrollOffset?: [number, number] | (() => [number, number])
  • added: property ExtraOptions.scrollPositionRestoration?: 'disabled' | 'enabled' | 'top'
  • added: property ExtraOptions.urlUpdateStrategy?: 'deferred' | 'eager'
  • added: class RouterScroller implements OnDestroy
  • added: constructor RouterScroller(router: Router, viewportScroller: ViewportScroller, options?: { scrollPositionRestoration?: 'disabled' | 'enabled' | 'top'; anchorScrolling?: 'disabled' | 'enabled' })
  • added: method RouterScroller.init(): void
  • added: method RouterScroller.ngOnDestroy(): void
  • added: readonly property RouterScroller.viewportScroller: ViewportScroller
  • changed: property UrlTree.queryParams: { [key: string]: string } → property UrlTree.queryParams: Params
  • added: export * from './public_api'
  • changed: static method RouterTestingModule.withRoutes(routes: Routes, config?: ExtraOptions): ModuleWithProviders → static method RouterTestingModule.withRoutes(routes: Routes, config?: ExtraOptions): ModuleWithProviders<RouterTestingModule>
  • removed: export * from './public_api'
  • added: export * from './index'
  • added: export * from './public_api'
  • removed: export * from './public_api'
  • added: export * from './index'