Skip to content

Commit e3aa190

Browse files
vsavkinIgorMinar
authored andcommitted
chore(router): update changelog
1 parent ef1eada commit e3aa190

File tree

2 files changed

+82
-105
lines changed

2 files changed

+82
-105
lines changed

CHANGELOG.md

Lines changed: 32 additions & 105 deletions
Original file line numberDiff line numberDiff line change
@@ -70,49 +70,6 @@
7070
* **platform-browser:** remove testing_e2e target ([#10029](https://github.com/angular/angular/issues/10029)) ([4a96505](https://github.com/angular/angular/commit/4a96505))
7171
* **platform-browser:** throw useful error on missing platform module. ([73f02c7](https://github.com/angular/angular/commit/73f02c7))
7272
* **platform-browser-dynamic:** Add [@Injectable](https://github.com/Injectable)() annotation to XHRImpl. ([7b31178](https://github.com/angular/angular/commit/7b31178))
73-
* **router:** absolute redirects should work with lazy loading ([3a307c2](https://github.com/angular/angular/commit/3a307c2))
74-
* **router:** add segmentPath to the link DSL ([4f17dbc](https://github.com/angular/angular/commit/4f17dbc))
75-
* **router:** advance query params and fragment after advanced routes ([06e4ca4](https://github.com/angular/angular/commit/06e4ca4))
76-
* **router:** back button does not work in IE11 and Safari ([f08060b](https://github.com/angular/angular/commit/f08060b))
77-
* **router:** configure DI correctly when using the old `provideRouter` function ([93ade74](https://github.com/angular/angular/commit/93ade74))
78-
* **router:** disallow root segments with matrix params ([34b3c53](https://github.com/angular/angular/commit/34b3c53))
79-
* **router:** do not fire events on 'duplicate' location events ([0b54e3c](https://github.com/angular/angular/commit/0b54e3c))
80-
* **router:** encode/decode params and path segments ([46e105f](https://github.com/angular/angular/commit/46e105f))
81-
* **router:** export navigation extras ([51e661e](https://github.com/angular/angular/commit/51e661e))
82-
* **router:** expose initalNavigation and dispose so they can be used with webworkers ([b77a4a4](https://github.com/angular/angular/commit/b77a4a4))
83-
* **router:** fix matrix params check to handle 'special' objects ([d2d36c6](https://github.com/angular/angular/commit/d2d36c6))
84-
* **router:** fix offline compilation by exporting provideLocationStrategy ([8dc82a0](https://github.com/angular/angular/commit/8dc82a0))
85-
* **router:** fix rollup config to properly set up rxjs ([1803ed2](https://github.com/angular/angular/commit/1803ed2))
86-
* **router:** fix RouterLinKActive to work with RouterLink ([f7a0e9e](https://github.com/angular/angular/commit/f7a0e9e))
87-
* **router:** fix type definition ([c586656](https://github.com/angular/angular/commit/c586656))
88-
* **router:** freeze params and queryParams to prevent common source of bugs ([0668ba5](https://github.com/angular/angular/commit/0668ba5))
89-
* **router:** handle lastPathIndex of empty-path routes ([7a4f662](https://github.com/angular/angular/commit/7a4f662))
90-
* **router:** handle router outlets in ngIf ([0c65d5c](https://github.com/angular/angular/commit/0c65d5c))
91-
* **router:** handle url fragments when no url segments present ([43437c1](https://github.com/angular/angular/commit/43437c1))
92-
* **router:** handle urls with only secondary top-level segments ([44709e0](https://github.com/angular/angular/commit/44709e0))
93-
* **router:** handle when both primary and secondary are empty-path and primary has a child ([2b63330](https://github.com/angular/angular/commit/2b63330))
94-
* **router:** lazily-loaded modules should use loaded injectors instead of the root one ([85be729](https://github.com/angular/angular/commit/85be729))
95-
* **router:** lazy loaded components should use loaded injector ([921a179](https://github.com/angular/angular/commit/921a179))
96-
* **router:** make an outlet to unregister itself when it is removed from the dom ([3e377f5](https://github.com/angular/angular/commit/3e377f5))
97-
* **router:** make router provides work with cli and offline compilation ([d15a1d6](https://github.com/angular/angular/commit/d15a1d6))
98-
* **router:** merge SystemJsAppModuleFactoryLoader and SystemJsAllModuleLoader ([0426325](https://github.com/angular/angular/commit/0426325))
99-
* **router:** navigation should not preserve query params and fragment by default ([23ee29b](https://github.com/angular/angular/commit/23ee29b))
100-
* **router:** provideRouter should use provideRoutes ([#10488](https://github.com/angular/angular/issues/10488)) ([2eda7a5](https://github.com/angular/angular/commit/2eda7a5))
101-
* **router:** relax type defintion of Route to improve dev ergonomics ([bb8b82b](https://github.com/angular/angular/commit/bb8b82b))
102-
* **router:** remove a circular dep ([6bfd514](https://github.com/angular/angular/commit/6bfd514))
103-
* **router:** remove private and internal annotations ([#9745](https://github.com/angular/angular/issues/9745)) ([dabf214](https://github.com/angular/angular/commit/dabf214))
104-
* **router:** remove private and internal annotations ([#9753](https://github.com/angular/angular/issues/9753)) ([137fff9](https://github.com/angular/angular/commit/137fff9))
105-
* **router:** remove the precompile warning ([fb2539e](https://github.com/angular/angular/commit/fb2539e))
106-
* **router:** route.parent should work for secondary children ([5a99393](https://github.com/angular/angular/commit/5a99393))
107-
* **router:** router link active should take all descendants into account ([8d90a5a](https://github.com/angular/angular/commit/8d90a5a))
108-
* **router:** routerLinkActive should only set classes after the router has successfully navigated ([db54a84](https://github.com/angular/angular/commit/db54a84))
109-
* **router:** support outlets in non-absolute positions ([afcb3c0](https://github.com/angular/angular/commit/afcb3c0))
110-
* **router:** throw when cannot parse a url ([27b87ef](https://github.com/angular/angular/commit/27b87ef))
111-
* **router:** update current state and url before activating components ([5cf5897](https://github.com/angular/angular/commit/5cf5897))
112-
* **router:** update dts files ([81d27da](https://github.com/angular/angular/commit/81d27da))
113-
* **router:** update dts files ([a415613](https://github.com/angular/angular/commit/a415613))
114-
* **router:** update links when query params change ([f65ebec](https://github.com/angular/angular/commit/f65ebec))
115-
* **router:** updates router module to be offline-compilation friendly ([72da547](https://github.com/angular/angular/commit/72da547))
11673
* **static_reflector:** report methods with decorators in `propMetadata` as well ([367f0fd](https://github.com/angular/angular/commit/367f0fd)), closes [#10308](https://github.com/angular/angular/issues/10308) [#10318](https://github.com/angular/angular/issues/10318)
11774
* **static_reflector:** resolve values of functions in the function context ([d6b65db](https://github.com/angular/angular/commit/d6b65db))
11875
* **SyncAsyncResult:** fix default async value ([#10013](https://github.com/angular/angular/issues/10013)) ([6d02d2f](https://github.com/angular/angular/commit/6d02d2f)), closes [#10013](https://github.com/angular/angular/issues/10013)
@@ -186,26 +143,6 @@
186143
* **NgStyle:** add support for the style.unit notation ([#10496](https://github.com/angular/angular/issues/10496)) ([8b18ef4](https://github.com/angular/angular/commit/8b18ef4)), closes [#10326](https://github.com/angular/angular/issues/10326)
187144
* **ngUpgrade:** add support for NgModules ([6b564ec](https://github.com/angular/angular/commit/6b564ec))
188145
* **NumberPipe:** add string support ([#10163](https://github.com/angular/angular/issues/10163)) ([f3dd91e](https://github.com/angular/angular/commit/f3dd91e)), closes [#10159](https://github.com/angular/angular/issues/10159)
189-
* **router:** activateroute should expose its route config ([2fdb39e](https://github.com/angular/angular/commit/2fdb39e))
190-
* **router:** add a validation to make sure pathMatch is set correctly ([3c3e9dd](https://github.com/angular/angular/commit/3c3e9dd))
191-
* **router:** add activate and deactivate events to RouterOutlet ([245b091](https://github.com/angular/angular/commit/245b091))
192-
* **router:** add isActive to router ([5162fb6](https://github.com/angular/angular/commit/5162fb6))
193-
* **router:** add parent, children, firstChild to ActivatedRoute ([550ab31](https://github.com/angular/angular/commit/550ab31))
194-
* **router:** add queryParams and fragment to every activated route ([422d380](https://github.com/angular/angular/commit/422d380))
195-
* **router:** add RouterAppModule ([8aa2a0c](https://github.com/angular/angular/commit/8aa2a0c))
196-
* **router:** add RouterTestModule ([72544ba](https://github.com/angular/angular/commit/72544ba))
197-
* **router:** add support for canActivateChild ([9e3d13f](https://github.com/angular/angular/commit/9e3d13f))
198-
* **router:** add support for lazily loaded modules ([8ebb8e4](https://github.com/angular/angular/commit/8ebb8e4))
199-
* **router:** add the ANALYZE_FOR_PRECOMPILE provider to make dev ergonomics better ([96a9e66](https://github.com/angular/angular/commit/96a9e66))
200-
* **router:** Allow navigation without updating the URL ([#9608](https://github.com/angular/angular/issues/9608)) ([63b82cd](https://github.com/angular/angular/commit/63b82cd))
201-
* **router:** empty-path routes should inherit matrix params ([a77db44](https://github.com/angular/angular/commit/a77db44))
202-
* **router:** guards and data resolvers can now return promises ([a5dc570](https://github.com/angular/angular/commit/a5dc570))
203-
* **router:** implement canLoad ([62e7c0f](https://github.com/angular/angular/commit/62e7c0f))
204-
* **router:** rename UrlPathWithParams into UrlSegment ([6f68330](https://github.com/angular/angular/commit/6f68330))
205-
* **router:** support sibling modules providing routes ([29caa37](https://github.com/angular/angular/commit/29caa37))
206-
* **router:** update routerLink DSL to handle aux routes ([ded518d](https://github.com/angular/angular/commit/ded518d))
207-
* **router:** update the example app to use lazily-loaded modules ([6fbe56d](https://github.com/angular/angular/commit/6fbe56d))
208-
* **Router:** add extra validation for when route was passed as Array ([#9942](https://github.com/angular/angular/issues/9942)) ([aa88438](https://github.com/angular/angular/commit/aa88438))
209146
* **security:** categorize <track src> as a regular URL. ([a441b5b](https://github.com/angular/angular/commit/a441b5b)), closes [#10089](https://github.com/angular/angular/issues/10089)
210147
* **security:** only warn when actually sanitizing HTML. ([#10272](https://github.com/angular/angular/issues/10272)) ([482c019](https://github.com/angular/angular/commit/482c019)), closes [#10206](https://github.com/angular/angular/issues/10206)
211148
* **security:** trust resource URLs as URLs. ([#10220](https://github.com/angular/angular/issues/10220)) ([51f3d22](https://github.com/angular/angular/commit/51f3d22))
@@ -215,7 +152,7 @@
215152

216153
### BREAKING CHANGES
217154

218-
* core:
155+
* core:
219156

220157
## Bootstrap changes
221158
```
@@ -241,15 +178,15 @@
241178
```
242179
* browser:
243180
- short form bootstrap does no longer allow
244-
to inject compiler internals (i.e. everything
181+
to inject compiler internals (i.e. everything
245182
from `@angular/compiler`). Inject `Compiler` instead.
246-
* core:
247-
- `ApplicationRef.waitForAsyncInitializers` is deprecated. Use
183+
* core:
184+
- `ApplicationRef.waitForAsyncInitializers` is deprecated. Use
248185
`AppInitStatus.donePromise` / `AppInitStatus.done` instead.
249-
* core:
186+
* core:
250187
- `ApplicationRef.registerBootstrapListener` is deprecated. Provide a multi
251188
provider for the new token `APP_BOOTSTRAP_LISTENER` instead.
252-
* core:
189+
* core:
253190
- `ApplicationRef.dispose` is deprecated. Destroy the module that was
254191
created during bootstrap instead by calling `NgModuleRef.destroy`.
255192
- `AplicationRef.registerDisposeListener` is deprecated.
@@ -262,17 +199,17 @@
262199
`PlatformRef.onDestroy` instead.
263200
- `PlaformRef.diposed` is deprecated. Use `PlatformRef.destroyed`
264201
instead.
265-
* testing:
202+
* testing:
266203
* `withProviders`, use `TestBed.withModule` instead
267204
* `addProviders`, use `TestBed.configureTestingModule` instead
268205
* `TestComponentBuilder`, use `TestBed.configureTestModule` / `TestBed.override...` / `TestBed.createComponent` instead.
269-
* core:
206+
* core:
270207
- ES5 users can no longer use the `View(…)` function to provide `ViewMetadata`.
271208
This mirrors the removal of the `@View` decorator a while ago.
272209
* core:
273210
- `bootstrapModule` and `bootstrapModuleFactory` have been moved to be members of `PlaformRef`.
274211
E.g. `platformBrowserDynamic().bootstrapModule(MyModule)`.
275-
* core:
212+
* core:
276213
- By default, Angular will error during parsing
277214
on unknown properties,
278215
even if they are on elements with a `-` in their name
@@ -290,15 +227,12 @@
290227
})
291228
export class MyAppModule{}
292229
```
293-
* core:
230+
* core:
294231
- `coreLoadAndBootstrap` and `coreBootstrap` can't be used any more (without migration support).
295232
Use `bootstrapModule` / `bootstrapModuleFactory` instead.
296233
- All Components listed in routes have to be part of the `declarations` of an NgModule.
297234
Either directly on the bootstrap module / lazy loaded module, or in an NgModule imported by them.
298-
* router:
299-
`UrlPathWithParams` => `UrlSegment`
300-
`UrlSegment` => `UrlSegmentGroup`
301-
* core:
235+
* core:
302236
- `ApplicationRef.run` is deprecated. Use `NgZone.run` directly
303237
- `ApplicationRef.injector` is deprecated. Inject an `Injector` or
304238
use `NgModuleRef.injector` instead
@@ -350,9 +284,9 @@
350284
- use `NgModuleFactoryLoader` for lazy loading.
351285
- Instead of `SystemJsComponentResolver`, create an `@NgModule` and use `SystemJsNgModuleLoader`.
352286
- Instead of `SystemJsCmpFactoryResolver`, create an `@NgModule` and use `SystemJsNgModuleFactoryLoader`
353-
* core:
287+
* core:
354288
- `lockRunMode` is deprecated and no more needed.
355-
* animations:
289+
* animations:
356290
- animation trigger expressions within the template that are assigned as
357291
an element attribute (e.g. `@prop`) are deprecated. Please use the
358292
Angular2 property binding syntax (e.g. `[@prop]`) when assigning
@@ -366,8 +300,8 @@
366300
<div [@trigger]="expression"></div>
367301
```
368302

369-
* forms:
370-
303+
* forms:
304+
371305
We have removed the deprecated form directives from the built-in platform directive list, so apps are not required to package forms with their app. This also makes forms friendly to offline compilation.
372306

373307
Instead, we have exposed three modules:
@@ -403,7 +337,7 @@
403337
})
404338
export class MyAppModule{}
405339
```
406-
* testing:
340+
* testing:
407341
- Application providers can no longer inject compiler internals (i.e. everything
408342
from `@angular/compiler`). Inject `Compiler` instead. This reflects the
409343
changes to `bootstrap` for module support (3f55aa609f60f130f1d69188ed057214b1267cb3).
@@ -412,65 +346,56 @@
412346
- Platform directives / pipes need to be provided via
413347
`configureModule` and can no longer be provided via the
414348
`PLATFORM_PIPES` / `PLATFORM_DIRECTIVES` tokens.
415-
- `setBaseTestProviders()` was renamed into `initTestEnvironment` and
349+
- `setBaseTestProviders()` was renamed into `initTestEnvironment` and
416350
now takes a `PlatformRef` and a factory for a
417351
`Compiler`.
418352
- E.g. for the browser platform:
419-
353+
420354
BEFORE:
421355
```
422356
import {setBaseTestProviders} from ‘@angular/core/testing’;
423357
import {TEST_BROWSER_DYNAMIC_PLATFORM_PROVIDERS,
424358
TEST_BROWSER_DYNAMIC_APPLICATION_PROVIDERS} from ‘@angular/platform-browser-dynamic/testing’;
425-
359+
426360
setBaseTestProviders(TEST_BROWSER_DYNAMIC_PLATFORM_PROVIDERS,
427-
TEST_BROWSER_DYNAMIC_APPLICATION_PROVIDERS);
361+
TEST_BROWSER_DYNAMIC_APPLICATION_PROVIDERS);
428362
```
429363
430364
AFTER:
431365
```
432366
import {TestBed} from ‘@angular/core/testing’;
433367
import {BrowserDynamicTestingModule, platformBrowserDynamicTesting} from ‘@angular/platform-browser-dynamic/testing’;
434-
368+
435369
TestBed.initTestEnvironment(
436370
BrowserDynamicTestingModule,
437371
platformBrowserDynamicTesting()
438372
);
439373
440374
```
441375
- E.g. for the server platform:
442-
376+
443377
BEFORE:
444378
```
445379
import {setBaseTestProviders} from ‘@angular/core/testing’;
446380
import {TEST_SERVER_PLATFORM_PROVIDERS,
447381
TEST_SERVER_APPLICATION_PROVIDERS} from ‘@angular/platform-server/testing/server’;
448-
382+
449383
setBaseTestProviders(TEST_SERVER_PLATFORM_PROVIDERS,
450-
TEST_SERVER_APPLICATION_PROVIDERS);
384+
TEST_SERVER_APPLICATION_PROVIDERS);
451385
```
452386
453387
AFTER:
454388
```
455389
import {TestBed} from ‘@angular/core/testing’;
456390
import {ServerTestingModule, serverTestingPlatform} from ‘@angular/platform-browser-dynamic/testing’;
457-
391+
458392
TestBed.initTestEnvironment(
459393
ServerTestingModule,
460394
serverTestingPlatform()
461395
);
462396
```
463397
464398
Related to #9726
465-
* router: Previously both imperative (router.navigate) and declarative (routerLink) navigations
466-
would preserve the current query params and fragment. This behavior turned out to
467-
be confusing. This commit changes it.
468-
469-
Now, neither is preserved by default. To preserve them, you need to do the following:
470-
471-
`router.naviage("newUrl", {preserveQueryParams: true, preserveFragment: true})`
472-
473-
`<a routerLink="newUrl" preserveQueryParams preserveFragment></a>`
474399
* ngUpgrade: UpgradeAdapter.addProvider are now deprecated in favor of passing in an NgModule into the adapter's constructor
475400
476401
Before:
@@ -512,7 +437,9 @@
512437
});
513438
```
514439

440+
### ROUTER CHANGE LOG
515441

442+
[You can find the router changelog here.](https://github.com/angular/angular/blob/master/modules/@angular/router/CHANGELOG.md)
516443

517444
<a name="2.0.0-rc.4"></a>
518445
# [2.0.0-rc.4](https://github.com/angular/angular/compare/2.0.0-rc.3...2.0.0-rc.4) (2016-06-30)
@@ -578,7 +505,7 @@
578505

579506
### BREAKING CHANGES
580507

581-
* http: The changes to Http's URLSearchParams serialization now
508+
* http: The changes to Http's URLSearchParams serialization now
582509
prevent encoding of these characters inside query parameters
583510
which were previously converted to percent-encoded values `@ : $ , ; + ; ? /`
584511

@@ -640,8 +567,8 @@
640567
stringifyElement,
641568
expect (and custom matchers for Jasmine)
642569
```
643-
* testing:
644-
570+
* testing:
571+
645572
Before:
646573

647574
expect(...).toThrowErrorWith(msg);
@@ -919,7 +846,7 @@ The likelihood of anyone actually depending on this property is very low.
919846
* HTML, style values, and URLs are now automatically sanitized. Values that do not match are escaped
920847
or ignored. When binding a URL or style property that would get ignored, bind to a value
921848
explicitly marked as safe instead by injection the DOM sanitization service:
922-
849+
923850
```
924851
class MyComponent {
925852
constructor(sanitizer: DomSanitizationService) {
@@ -930,7 +857,7 @@ The likelihood of anyone actually depending on this property is very low.
930857
}
931858
```
932859
933-
* `PLATFORM_PIPES` and `PLATFORM_DIRECTIVES` now are fields on `CompilerConfig`.
860+
* `PLATFORM_PIPES` and `PLATFORM_DIRECTIVES` now are fields on `CompilerConfig`.
934861
Instead of providing a binding to these tokens, provide a binding for `CompilerConfig` instead.
935862
936863
* `CompilerConfig` used to take positional arguments and now takes named arguments.

0 commit comments

Comments
 (0)