Upgrading @angular/router 4 to 5
Unknown4.4.7 → 5.2.11
UnknownUpgrade verdict
None of the 48 releases in this range publish notes, so breaking changes can't be ruled out.
In plain terms
- Some releases in this range publish no notes, so DepDelta can't rule out breaking changes.
- DepDelta found no commit log for them either.
Must act Unknown for releases without notes
Releases without notes may still need changes. Check their commits before upgrading.
API changes
Generated by DepDelta from published .d.ts files. Not mixed with prose notes.
- added:
function copyConfig(r: Route): Route
- removed:
readonly property RouterOutlet.locationFactoryResolver: ComponentFactoryResolver - removed:
readonly property RouterOutlet.locationInjector: Injector
- removed:
constructor NavigationStart(id: number, url: string) - removed:
property GuardsCheckEnd.id: number - removed:
property GuardsCheckEnd.url: string - removed:
property GuardsCheckStart.id: number - removed:
property GuardsCheckStart.url: string - removed:
property NavigationCancel.id: number - removed:
property NavigationCancel.url: string - removed:
property NavigationEnd.id: number - removed:
property NavigationEnd.url: string - removed:
property NavigationError.id: number - removed:
property NavigationError.url: string - removed:
property NavigationStart.id: number - removed:
property NavigationStart.url: string - removed:
property ResolveEnd.id: number - removed:
property ResolveEnd.url: string - removed:
property ResolveStart.id: number - removed:
property ResolveStart.url: string - removed:
property RoutesRecognized.id: number - removed:
property RoutesRecognized.url: string - changed:
class GuardsCheckEnd → class GuardsCheckEnd extends RouterEvent - changed:
class GuardsCheckStart → class GuardsCheckStart extends RouterEvent - changed:
class NavigationCancel → class NavigationCancel extends RouterEvent - changed:
class NavigationEnd → class NavigationEnd extends RouterEvent - changed:
class NavigationError → class NavigationError extends RouterEvent - changed:
class NavigationStart → class NavigationStart extends RouterEvent - changed:
class ResolveEnd → class ResolveEnd extends RouterEvent - changed:
class ResolveStart → class ResolveStart extends RouterEvent - changed:
class RoutesRecognized → class RoutesRecognized extends RouterEvent - changed:
type Event = NavigationStart | NavigationEnd | NavigationCancel | NavigationError | RoutesRecognized | RouteConfigLoadStart | RouteConfigLoadEnd | GuardsCheckStart | Guards… → type Event = RouterEvent | RouteConfigLoadStart | RouteConfigLoadEnd | ChildActivationStart | ChildActivationEnd | ActivationStart | ActivationEnd - added:
class ActivationEnd - added:
class ActivationStart - added:
class ChildActivationEnd - added:
class ChildActivationStart - added:
class RouterEvent - added:
constructor ActivationEnd(snapshot: ActivatedRouteSnapshot) - added:
constructor ActivationStart(snapshot: ActivatedRouteSnapshot) - added:
constructor ChildActivationEnd(snapshot: ActivatedRouteSnapshot) - added:
constructor ChildActivationStart(snapshot: ActivatedRouteSnapshot) - added:
constructor RouterEvent(id: number, url: string) - added:
method ActivationEnd.toString(): string - added:
method ActivationStart.toString(): string - added:
method ChildActivationEnd.toString(): string - added:
method ChildActivationStart.toString(): string - added:
property ActivationEnd.snapshot: ActivatedRouteSnapshot - added:
property ActivationStart.snapshot: ActivatedRouteSnapshot - added:
property ChildActivationEnd.snapshot: ActivatedRouteSnapshot - added:
property ChildActivationStart.snapshot: ActivatedRouteSnapshot - added:
property RouterEvent.id: number - added:
property RouterEvent.url: string
- added:
export { ActivationEnd } from './events' - added:
export { ActivationStart } from './events' - added:
export { ChildActivationEnd } from './events' - added:
export { ChildActivationStart } from './events' - added:
export { RouterEvent } from './events'
- added:
class PreActivation - added:
constructor PreActivation(future: RouterStateSnapshot, curr: RouterStateSnapshot, moduleInjector: Injector, forwardEvent?: ((evt: Event) => void) | undefined) - added:
method PreActivation.checkGuards(): Observable<boolean> - added:
method PreActivation.initialize(parentContexts: ChildrenOutletContexts): void - added:
method PreActivation.isActivating(): boolean - added:
method PreActivation.isDeactivating(): boolean - added:
method PreActivation.resolveData(paramsInheritanceStrategy: 'emptyOnly' | 'always'): Observable<any>
- changed:
function recognize(rootComponentType: Type<any> | null, config: Routes, urlTree: UrlTree, url: string): Observable<RouterStateSnapshot> → function recognize(rootComponentType: Type<any> | null, config: Routes, urlTree: UrlTree, url: string, paramsInheritanceStrategy?: ParamsInheritanceStrategy): Observable<RouterStateSnapshot>
- removed:
class PreActivation - removed:
constructor PreActivation(future: RouterStateSnapshot, curr: RouterStateSnapshot, moduleInjector: Injector) - removed:
method PreActivation.checkGuards(): Observable<boolean> - removed:
method PreActivation.isActivating(): boolean - removed:
method PreActivation.isDeactivating(): boolean - removed:
method PreActivation.resolveData(): Observable<any> - removed:
method PreActivation.traverse(parentContexts: ChildrenOutletContexts): void - added:
property Router.onSameUrlNavigation: 'reload' | 'ignore' - added:
property Router.paramsInheritanceStrategy: 'emptyOnly' | 'always'
- changed:
constructor RouterConfigLoader(loader: NgModuleFactoryLoader, compiler: Compiler, onLoadStartListener?: (r: Route) => void, onLoadEndListener?: (r: Route) => void) → constructor RouterConfigLoader(loader: NgModuleFactoryLoader, compiler: Compiler, onLoadStartListener?: ((r: Route) => void) | undefined, onLoadEndListener?: ((r: Route) => void) | undefined)
- 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: ComponentRef<… → 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… - added:
property ExtraOptions.onSameUrlNavigation?: 'reload' | 'ignore' - added:
property ExtraOptions.paramsInheritanceStrategy?: 'emptyOnly' | 'always'
- added:
type ParamsInheritanceStrategy = 'emptyOnly' | 'always'
- removed:
function encode(s: string): string - added:
function decodeQuery(s: string): string - added:
function encodeUriFragment(s: string): string - added:
function encodeUriQuery(s: string): string - added:
function encodeUriSegment(s: string): string
- added:
function nodeChildrenAsMap<T extends { outlet: string }>(node: TreeNode<T> | null): { [outlet: string]: TreeNode<T> }
- removed:
export * from './testing/index' - added:
export * from './testing/testing'
- removed:
export * from './src/testing'
- added:
export * from './src/testing'
- changed:
static method RouterTestingModule.withRoutes(routes: Routes): ModuleWithProviders → static method RouterTestingModule.withRoutes(routes: Routes, config?: ExtraOptions): ModuleWithProviders - added:
function setupTestingRouter(urlSerializer: UrlSerializer, contexts: ChildrenOutletContexts, location: Location, loader: NgModuleFactoryLoader, compiler: Compiler, injector: Injector, routes: Route[][], opts?: ExtraOptions, urlHandlingStrategy?: UrlHandlingStrategy): Router
- added:
export * from './public_api'
- removed:
export * from './upgrade/index' - added:
export * from './upgrade/upgrade'
- removed:
export * from './src/upgrade'
- added:
export * from './src/upgrade'
- changed:
const RouterUpgradeInitializer: { provide: InjectionToken<((compRef: ComponentRef<any>) => void)[]>; multi: boolean; useFactory: (ngUpgrade: UpgradeModule) => () => void; deps: typeof Upgrade… → const RouterUpgradeInitializer: { provide: InjectionToken<((compRef: ComponentRef<any>) => void)[]>; multi: boolean; useFactory: (ngUpgrade: UpgradeModule) => () => void; deps: (typeof Upgrad…
- added:
export * from './public_api'