angular-cn/packages
Jason Aden fa974c7d4e fix(router): fix URL serialization so special characters are only encoded where needed (#22337)
This change brings Angular largely in line with how AngularJS previously serialized URLs. This is based on RFC 3986 and resolves issues such as the above #10280 where URLs could be parsed, re-serialized, then parsed again producing a different result on the second parsing.

Adjustments to be aware of in this commit:

* URI fragments will now serialize the same as query strings
* In the URI path or segments (portion prior to query string and/or fragment), the plus sign (`+`) and ampersand (`&`) will appear decoded
* In the URL path or segments, parentheses values (`(` and `)`) will now appear percent encoded as `%28` and `%29` respectively
* In the URL path or segments, semicolons will be encoded in their percent encoding `%3B`

NOTE: Parentheses and semicolons denoting auxillary routes or matrix params will still appear in their decoded form -- only parentheses and semicolons used as values in a segment or key/value pair for matrix params will be encoded.

While these changes are not considered breaking because applications should be decoding URLs and key/value pairs, it is possible that some unit tests will break if comparing hard-coded URLs in tests since that hard coded string will represent the old encoding. Therefore we are releasing this fix in the upcoming Angular v6 rather than adding it to a patch for v5.

Fixes: #10280

PR Close #22337
2018-03-06 06:58:08 -08:00
..
animations release: add ng update package group metadata to angular (#22482) 2018-02-28 14:57:53 -08:00
bazel build: update to latest bazel rules (#22558) 2018-03-02 13:27:25 -08:00
benchpress fix(benchpress): should still support selenium_webdriver < 3.6.0 (#21477) 2018-01-11 10:53:44 -08:00
common release: add ng update package group metadata to angular (#22482) 2018-02-28 14:57:53 -08:00
compiler docs(compiler): fix a line about ivy library (#22579) 2018-03-05 21:25:43 -08:00
compiler-cli fix(compiler): allow tree-shakeable injectables to depend on string tokens (#22376) 2018-03-01 08:15:13 -08:00
core feat(ivy): add support for the ngProjectAs attribute (#22498) 2018-03-06 06:55:51 -08:00
docs refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
examples fix(core): export inject() from @angular/core (#22389) 2018-02-28 10:44:37 -08:00
forms release: add ng update package group metadata to angular (#22482) 2018-02-28 14:57:53 -08:00
http release: add ng update package group metadata to angular (#22482) 2018-02-28 14:57:53 -08:00
language-service release: add ng update package group metadata to angular (#22482) 2018-02-28 14:57:53 -08:00
platform-browser release: add ng update package group metadata to angular (#22482) 2018-02-28 14:57:53 -08:00
platform-browser-dynamic release: add ng update package group metadata to angular (#22482) 2018-02-28 14:57:53 -08:00
platform-server release: add ng update package group metadata to angular (#22482) 2018-02-28 14:57:53 -08:00
platform-webworker release: add ng update package group metadata to angular (#22482) 2018-02-28 14:57:53 -08:00
platform-webworker-dynamic release: add ng update package group metadata to angular (#22482) 2018-02-28 14:57:53 -08:00
router fix(router): fix URL serialization so special characters are only encoded where needed (#22337) 2018-03-06 06:58:08 -08:00
service-worker build: update to latest bazel rules (#22558) 2018-03-02 13:27:25 -08:00
upgrade release: add ng update package group metadata to angular (#22482) 2018-02-28 14:57:53 -08:00
BUILD.bazel feat(bazel): introduce a binary stamping feature (#22176) 2018-02-15 14:08:53 -08:00
README.md Revert "docs: Remove unneeded file (#18106)" 2017-07-20 16:46:47 -05:00
empty.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
es6-subset.d.ts build: switch from npm to yarn (#19328) 2017-09-22 13:20:52 -07:00
goog.d.ts fix(compiler): add typings for `COMPILED`. 2017-09-29 09:26:38 -07:00
license-banner.txt docs(common): update copyright years (#21232) 2018-01-04 17:45:36 -05:00
rollup.config.js refactor: make all rollup config ES5 compatible (#20028) 2017-10-30 23:09:17 -04:00
system.d.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
tsconfig-build.json build: update to latest bazel rules (#22127) 2018-02-09 17:21:54 -08:00
tsconfig-metadata.json refactor(compiler): bump metadata version to 4 (#19338) 2017-09-26 13:31:59 -07:00
tsconfig.json refactor(bazel): convert most ts_library to ng_module (#22176) 2018-02-15 14:08:53 -08:00
types.d.ts build: add bazel test rules for remainder of packages (#21053) 2017-12-22 13:10:51 -08:00

README.md

Angular

The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.

License: MIT