Zhicheng WANG
c3e9cb2608
Merge remote-tracking branch 'en/master' into aio
...
# Conflicts:
# aio/content/guide/angular-compiler-options.md
# aio/content/guide/aot-metadata-errors.md
# aio/content/guide/architecture-next-steps.md
# aio/content/guide/architecture.md
# aio/content/guide/browser-support.md
# aio/content/guide/cli-builder.md
# aio/content/guide/comparing-observables.md
# aio/content/guide/dependency-injection-providers.md
# aio/content/guide/deployment.md
# aio/content/guide/deprecations.md
# aio/content/guide/glossary.md
# aio/content/guide/ivy.md
# aio/content/guide/observables.md
# aio/content/guide/router.md
# aio/content/guide/static-query-migration.md
# aio/content/guide/template-typecheck.md
# aio/content/guide/transition-and-triggers.md
# aio/content/guide/updating-to-version-9.md
# aio/content/marketing/docs.md
# aio/content/navigation.json
# aio/content/tutorial/index.md
# aio/content/tutorial/toh-pt1.md
# aio/content/tutorial/toh-pt4.md
# aio/package.json
# aio/src/app/custom-elements/api/api-list.component.ts
# aio/src/app/layout/footer/footer.component.html
# aio/yarn.lock
# packages/common/src/pipes/number_pipe.ts
# packages/forms/src/directives/validators.ts
# packages/forms/src/model.ts
2020-02-05 12:08:32 +08:00
cexbrayat
c77cf717aa
test(common): unit test for http/testing expectOne with several requests ( #27005 )
...
PR Close #27005
2020-01-31 13:13:38 -08:00
cexbrayat
115b7e42c6
fix(common): http/testing expectOne lists the received requests if no matches ( #27005 )
...
Fixes #18013
Previously it was hard to debug an `expectOne` if the request had no match, as the error message was:
Expected one matching request for criteria "Match URL: /some-url?query=hello", found none.
This commit adds a bit more info to the error, by listing the actual requests received:
Expected one matching request for criteria "Match URL: /some-url?query=hello", found none. Requests received are: POST /some-url?query=world.
PR Close #27005
2020-01-31 13:13:37 -08:00
cexbrayat
a622a281d3
test(common): unit tests for http/testing expectOne ( #27005 )
...
PR Close #27005
2020-01-31 13:13:37 -08:00
cexbrayat
fcfce99e9e
fix(common): remove extra & in http params ( #34896 )
...
Previous to this commit, HTTP params like `{ a: '1', b: [], c: '3' }` resulted in a request like `a=1&&c=3` (note the double &&).
The ideal fix would probably be to stringify these params to `a=1&b=&c=3` like we do for empty string values. But that might be breaking as some APIs may rely on the absence of the parameter.
This fixes the issue in a compatible way by just removing the extra and unnecessary `&`, resulting in `a=1&c=3`.
PR Close #34896
2020-01-31 11:26:25 -08:00
Zhicheng WANG
8663fa04a8
Merge remote-tracking branch 'en/master' into aio
...
# Conflicts:
# .nvmrc
# aio/content/cli/index.md
# aio/content/guide/ajs-quick-reference.md
# aio/content/guide/animations.md
# aio/content/guide/aot-compiler.md
# aio/content/guide/app-shell.md
# aio/content/guide/architecture-components.md
# aio/content/guide/architecture-modules.md
# aio/content/guide/architecture-services.md
# aio/content/guide/architecture.md
# aio/content/guide/attribute-directives.md
# aio/content/guide/bazel.md
# aio/content/guide/bootstrapping.md
# aio/content/guide/browser-support.md
# aio/content/guide/build.md
# aio/content/guide/cheatsheet.md
# aio/content/guide/cli-builder.md
# aio/content/guide/comparing-observables.md
# aio/content/guide/complex-animation-sequences.md
# aio/content/guide/component-interaction.md
# aio/content/guide/component-styles.md
# aio/content/guide/creating-libraries.md
# aio/content/guide/dependency-injection-in-action.md
# aio/content/guide/dependency-injection-navtree.md
# aio/content/guide/dependency-injection-providers.md
# aio/content/guide/dependency-injection.md
# aio/content/guide/deployment.md
# aio/content/guide/deprecations.md
# aio/content/guide/displaying-data.md
# aio/content/guide/dynamic-component-loader.md
# aio/content/guide/dynamic-form.md
# aio/content/guide/elements.md
# aio/content/guide/entry-components.md
# aio/content/guide/feature-modules.md
# aio/content/guide/file-structure.md
# aio/content/guide/form-validation.md
# aio/content/guide/forms-overview.md
# aio/content/guide/forms.md
# aio/content/guide/frequent-ngmodules.md
# aio/content/guide/glossary.md
# aio/content/guide/hierarchical-dependency-injection.md
# aio/content/guide/http.md
# aio/content/guide/i18n.md
# aio/content/guide/ivy.md
# aio/content/guide/language-service.md
# aio/content/guide/lazy-loading-ngmodules.md
# aio/content/guide/lifecycle-hooks.md
# aio/content/guide/module-types.md
# aio/content/guide/ngmodule-api.md
# aio/content/guide/ngmodule-faq.md
# aio/content/guide/ngmodule-vs-jsmodule.md
# aio/content/guide/ngmodules.md
# aio/content/guide/npm-packages.md
# aio/content/guide/observables-in-angular.md
# aio/content/guide/observables.md
# aio/content/guide/pipes.md
# aio/content/guide/providers.md
# aio/content/guide/reactive-forms.md
# aio/content/guide/releases.md
# aio/content/guide/reusable-animations.md
# aio/content/guide/route-animations.md
# aio/content/guide/router.md
# aio/content/guide/rx-library.md
# aio/content/guide/schematics-authoring.md
# aio/content/guide/schematics-for-libraries.md
# aio/content/guide/schematics.md
# aio/content/guide/security.md
# aio/content/guide/service-worker-communications.md
# aio/content/guide/service-worker-config.md
# aio/content/guide/service-worker-devops.md
# aio/content/guide/service-worker-getting-started.md
# aio/content/guide/service-worker-intro.md
# aio/content/guide/set-document-title.md
# aio/content/guide/setup-local.md
# aio/content/guide/sharing-ngmodules.md
# aio/content/guide/singleton-services.md
# aio/content/guide/static-query-migration.md
# aio/content/guide/structural-directives.md
# aio/content/guide/styleguide.md
# aio/content/guide/template-syntax.md
# aio/content/guide/testing.md
# aio/content/guide/transition-and-triggers.md
# aio/content/guide/typescript-configuration.md
# aio/content/guide/universal.md
# aio/content/guide/updating.md
# aio/content/guide/upgrade-setup.md
# aio/content/guide/upgrade.md
# aio/content/guide/user-input.md
# aio/content/guide/using-libraries.md
# aio/content/guide/visual-studio-2015.md
# aio/content/guide/web-worker.md
# aio/content/guide/workspace-config.md
# aio/content/marketing/events.html
# aio/content/marketing/resources.json
# aio/content/navigation.json
# aio/content/start/data.md
# aio/content/start/deployment.md
# aio/content/start/forms.md
# aio/content/start/index.md
# aio/content/start/routing.md
# aio/content/tutorial/index.md
# aio/content/tutorial/toh-pt0.md
# aio/content/tutorial/toh-pt1.md
# aio/content/tutorial/toh-pt2.md
# aio/content/tutorial/toh-pt3.md
# aio/content/tutorial/toh-pt4.md
# aio/content/tutorial/toh-pt5.md
# aio/content/tutorial/toh-pt6.md
# aio/package.json
# aio/src/app/app.component.spec.ts
# aio/src/app/custom-elements/api/api-list.component.html
# aio/src/app/layout/doc-viewer/doc-viewer.component.ts
# aio/src/app/layout/mode-banner/mode-banner.component.ts
# aio/src/app/layout/nav-item/nav-item.component.html
# aio/src/app/shared/toc.service.ts
# aio/src/styles/0-base/_typography.scss
# aio/src/styles/2-modules/_api-pages.scss
# aio/tools/transforms/templates/api/lib/memberHelpers.html
# aio/yarn.lock
# packages/common/http/src/headers.ts
# packages/common/http/src/interceptor.ts
# packages/common/http/src/params.ts
# packages/common/http/src/response.ts
# packages/common/src/common_module.ts
# packages/common/src/directives/ng_for_of.ts
# packages/common/src/location/location.ts
# packages/common/src/pipes/date_pipe.ts
# packages/core/src/change_detection/pipe_transform.ts
# packages/core/src/di/injectable.ts
# packages/core/src/metadata/di.ts
# packages/core/src/metadata/directives.ts
# packages/core/src/metadata/ng_module.ts
# packages/core/src/render3/component_ref.ts
# packages/forms/src/directives/reactive_directives/form_control_name.ts
# packages/forms/src/form_builder.ts
# packages/forms/src/model.ts
# packages/forms/src/validators.ts
# packages/router/src/config.ts
# packages/router/src/directives/router_outlet.ts
# packages/router/src/events.ts
# packages/router/src/router.ts
# packages/router/src/router_module.ts
# packages/router/src/router_state.ts
# packages/router/src/shared.ts
2020-01-24 15:55:22 +08:00
Paul Gschwendtner
970b22f98e
test: setup circular dependency tests for all entry points ( #34774 )
...
Sets up circular dependency tests for all entry-points in the
project (except for the ones part of a deprecated package).
PR Close #34774
2020-01-23 11:36:40 -08:00
Greg Magolan
a28c02bf89
build: derive ts_library dep from jasmine_node_test boostrap label if it ends in _es5
( #34736 )
...
PR Close #34736
2020-01-15 14:58:07 -05:00
Greg Magolan
aee67f08d9
test: handle bootstrap templated_args in jasmine_node_test defaults.bzl ( #34736 )
...
PR Close #34736
2020-01-15 14:58:07 -05:00
Greg Magolan
dcff76e8b9
refactor: handle breaking changes in rules_nodejs 1.0.0 ( #34736 )
...
The major one that affects the angular repo is the removal of the bootstrap attribute in nodejs_binary, nodejs_test and jasmine_node_test in favor of using templated_args --node_options=--require=/path/to/script. The side-effect of this is that the bootstrap script does not get the require.resolve patches with explicitly loading the targets _loader.js file.
PR Close #34736
2020-01-15 14:58:07 -05:00
atscott
538d0446b5
Revert "refactor: handle breaking changes in rules_nodejs 1.0.0 ( #34589 )" ( #34730 )
...
This reverts commit 9bb349e1c8089ee29b82c7234a11ad4256f1d06f.
PR Close #34730
2020-01-10 14:12:15 -08:00
atscott
5e60215470
Revert "test: handle bootstrap templated_args in jasmine_node_test defaults.bzl ( #34589 )" ( #34730 )
...
This reverts commit da4782e67f662d37dccb89f9c642897c1266f4ce.
PR Close #34730
2020-01-10 14:12:15 -08:00
atscott
24679d8676
Revert "build: derive ts_library dep from jasmine_node_test boostrap label if it ends in _es5
( #34589 )" ( #34730 )
...
This reverts commit 79a0d007b4e892dd988a8ef697e6d3436ea8391c.
PR Close #34730
2020-01-10 14:12:14 -08:00
Greg Magolan
79a0d007b4
build: derive ts_library dep from jasmine_node_test boostrap label if it ends in _es5
( #34589 )
...
PR Close #34589
2020-01-10 08:32:00 -08:00
Greg Magolan
da4782e67f
test: handle bootstrap templated_args in jasmine_node_test defaults.bzl ( #34589 )
...
PR Close #34589
2020-01-10 08:31:59 -08:00
Greg Magolan
9bb349e1c8
refactor: handle breaking changes in rules_nodejs 1.0.0 ( #34589 )
...
The major one that affects the angular repo is the removal of the bootstrap attribute in nodejs_binary, nodejs_test and jasmine_node_test in favor of using templated_args --node_options=--require=/path/to/script. The side-effect of this is that the bootstrap script does not get the require.resolve patches with explicitly loading the targets _loader.js file.
PR Close #34589
2020-01-10 08:31:59 -08:00
skrikl
0254cba4b3
docs: Fix double 'as an' in description at line 2069 ( #34373 )
...
PR Close #34373
2020-01-07 10:29:41 -08:00
Paul Gschwendtner
6d3a25d897
ci: run acceptance tests on saucelabs with ivy ( #34277 )
...
Currently we only run Saucelabs on PRs using the legacy View Engine
build. Switching that build to Ivy is not trivial and there are various
options:
1. Updating the R3 switches to use POST_R3 by default. At first glance,
this doesn't look easy because the current ngtsc switch logic seems to
be unidirectional (only PRE_R3 to POST_R3).
2. Updating the legacy setup to run with Ivy. This sounds like the easiest
solution at first.. but it turns out to be way more complicated. Packages
would need to be built with ngtsc using legacy tools (i.e. first building
the compiler-cli; and then building packages) and View Engine only tests
would need to be determined and filtered out. Basically it will result in
re-auditing all test targets. This is contradictory to the fact that we have
this information in Bazel already.
3. Creating a new job that runs tests on Saucelabs with Bazel. We specify
fine-grained test targets that should run. This would be a good start
(e.g. acceptance tests) and also would mean that we do not continue maintaining
the legacy setup..
This commit implements the third option as it allows us to move forward
with the general Bazel migration. We don't want to spend too much time
on our legacy setup since it will be removed anyway in the future.
PR Close #34277
2019-12-16 07:43:41 -08:00
Judy Bogart
87994d2c03
docs: add api doc to sub-packages ( #33801 )
...
PR Close #33801
2019-11-20 14:48:50 -08:00
Greg Magolan
9a68f23dd2
build: ts_web_test & ts_web_test_suite deprecated in favor of karma_web_test & karma_web_test_suite ( #33802 )
...
This is a breaking change in nodejs rules 0.40.0 as part of the API review & cleanup for the 1.0 release. Their APIs are identical as ts_web_test was just karma_web_test without the config_file attribute.
PR Close #33802
2019-11-13 13:33:38 -08:00
Muhammad Umair
7b87392f47
docs: added value param wrt. method signature ( #32968 )
...
PR Close #32968
2019-11-06 19:51:19 +00:00
Judy Bogart
8321bd8a74
docs: clarify http header api doc ( #33038 )
...
PR Close #33038
2019-10-14 23:45:45 +00:00
Miško Hevery
0c69ec20c2
fix: google3 sync which requires type hints ( #33108 )
...
PR Close #33108
2019-10-11 12:09:20 -07:00
Danny Skoog
6ab5f3648a
refactor: utilize type narrowing ( #33075 )
...
PR Close #33075
2019-10-10 15:18:44 -07:00
Judy Bogart
9e7aa60ae7
docs: clarify http response type ( #32817 )
...
PR Close #32817
2019-10-01 11:00:36 -07:00
Zhicheng WANG
b6a5b3bc62
fix: Merge remote-tracking branch 'en/master' into aio
...
# Conflicts:
# aio/tools/transforms/templates/cli/cli-command.template.html
2019-10-01 10:35:26 +08:00
Mansour Fall
f5bec3ff50
feat(common): HttpParams fromObject accepts ReadonlyArray<string> ( #31072 )
...
Fixes #28452
PR Close #31072
2019-08-30 12:55:02 -07:00
Judy Bogart
27997a16c0
docs: http api doc edit ( #31613 )
...
PR Close #31613
2019-07-23 21:12:25 -07:00
Paul Gschwendtner
647d7bdd88
refactor: fix typescript strict flag failures in all tests ( #30993 )
...
Fixes all TypeScript failures caused by enabling the `--strict`
flag for test source files. We also want to enable the strict
options for tests as the strictness enforcement improves the
overall codehealth, unveiled common issues and additionally it
allows us to enable `strict` in the `tsconfig.json` that is picked
up by IDE's.
PR Close #30993
2019-07-18 14:21:26 -07:00
Paul Gschwendtner
0139b11227
refactor(common): ensure compatibility with typescript strict flag ( #30993 )
...
As part of FW-1265, the `@angular/common` package is made compatible
with the TypeScript `--strict` flag. Read more about the strict flag [here](https://www.typescriptlang.org/docs/handbook/compiler-options.html )
PR Close #30993
2019-07-18 14:21:26 -07:00
Santosh Yadav
5c18f23788
fix(common): expose the HttpUploadProgressEvent
interface as public API ( #30852 )
...
Fixes #30814
PR Close #30852
2019-06-07 08:47:47 -07:00
Zhicheng WANG
b046dfdb6e
fix: API 合并错误
...
fix: 暂时撤销对 HttpClient 的翻译,它的改动太大了
2019-06-06 21:38:21 +08:00
Alex Eagle
337b6fe003
build: remove unreferenced tsconfig-build.json files ( #30858 )
...
These are no longer needed since Bazel generates a tsconfig for each compilation
PR Close #30858
2019-06-05 09:03:36 -07:00
Zhicheng WANG
b813974ef6
fix: 修订了部分 API 文档
2019-06-05 07:43:23 +08:00
Zhicheng WANG
d5057aec3b
Merge remote-tracking branch 'en/master' into aio
2019-06-03 10:09:20 +08:00
JoostK
8e8e89a119
fix(common): prevent repeated application of HttpParams mutations ( #29045 )
...
Previously, an instance of HttpParams would retain its list of mutations
after they have been materialized as a result of a read operation. Not
only does this unnecessarily hold onto memory, more importantly does it
introduce a bug where branching of off a materialized instance would
reconsider the set of mutations that had already been applied, resulting
in repeated application of mutations.
This commit fixes the bug by clearing the list of pending mutations
after they have been materialized, such that they will not be considered
once again for branched off instances.
Fixes #20430
PR Close #29045
2019-04-23 08:43:54 -07:00
José I. Escudero
0cab43785b
docs: fixed typo on HttpParamsOptions ( #29930 )
...
PR Close #29930
2019-04-22 16:36:52 -07:00
Dave
76110d71d3
docs(http): add information about body content type to flush method for testing ( #29214 )
...
PR Close #29214
2019-04-01 11:03:49 -07:00
Vani
b17d1a9aa3
docs: update description text ( #28507 )
...
PR Close #28507
2019-03-27 09:57:36 -07:00
Vani
60f6d9e733
docs: fix lint error ( #28507 )
...
PR Close #28507
2019-03-27 09:57:36 -07:00
Vani
416b0d29b9
docs: add details to HttpUrlEncodingCodec API description ( #28507 )
...
PR Close #28507
2019-03-27 09:57:36 -07:00
Alan
941c99ad7f
build: turn off dts bundling for packages that still are not supported ( #29128 )
...
PR Close #29128
2019-03-07 10:47:20 -08:00
Alan
d5a8be76f2
build: enable bundle_dts for common package ( #28834 )
...
PR Close #28834
2019-03-06 10:59:18 -08:00
Greg Magolan
ea09430039
build: rules_nodejs 0.26.0 & use @npm instead of @ngdeps now that downstream angular build uses angular bundles ( #28871 )
...
PR Close #28871
2019-02-28 12:06:36 -08:00
Wassim Chegham
ce68b4d839
style: enforce buildifier lint on CI ( #28186 )
...
PR Close #28186
2019-02-26 16:57:41 -08:00
Greg Magolan
75357ecb32
build(bazel): run a number of web tests with karma_web_test in saucelabs in CircleCI ( #27721 )
...
PR Close #27721
2019-02-22 13:07:08 -08:00
Vani
65d839da03
docs(common): update docs for HttpClient methods ( #26143 )
...
PR Close #26143
2019-02-21 20:56:11 -08:00
Greg Magolan
67ad8a2632
build: move rxjs type reference to event emitter ( #28720 )
...
PR Close #28720
2019-02-19 16:28:14 -08:00
Greg Magolan
25aae64274
build(bazel): do not build rxjs from source under Bazel ( #28720 )
...
PR Close #28720
2019-02-19 16:28:14 -08:00
Zhicheng WANG
b035e68480
Merge remote-tracking branch 'en/master' into aio
...
# Conflicts:
# .travis.yml
# aio/content/guide/aot-compiler.md
# aio/content/guide/architecture.md
# aio/content/guide/build.md
# aio/content/guide/dependency-injection-in-action.md
# aio/content/guide/deployment.md
# aio/content/guide/elements.md
# aio/content/guide/file-structure.md
# aio/content/guide/glossary.md
# aio/content/guide/hierarchical-dependency-injection.md
# aio/content/guide/lifecycle-hooks.md
# aio/content/guide/ngmodule-faq.md
# aio/content/guide/pipes.md
# aio/content/guide/router.md
# aio/content/guide/rx-library.md
# aio/content/guide/service-worker-communications.md
# aio/content/guide/service-worker-config.md
# aio/content/guide/singleton-services.md
# aio/content/guide/template-syntax.md
# aio/content/guide/testing.md
# aio/content/guide/typescript-configuration.md
# aio/content/guide/universal.md
# aio/content/marketing/docs.md
# aio/content/marketing/features.html
# aio/content/tutorial/toh-pt0.md
# aio/content/tutorial/toh-pt6.md
# aio/package.json
# aio/src/app/layout/footer/footer.component.html
# aio/tools/transforms/templates/api/lib/memberHelpers.html
# aio/yarn.lock
# integration/cli-hello-world-ivy-minimal/src/polyfills.ts
# modules/benchmarks/e2e_test/largetable_perf.ts
# modules/benchmarks/e2e_test/largetable_spec.ts
# packages/animations/src/animation_metadata.ts
# packages/common/http/src/headers.ts
# packages/common/http/src/interceptor.ts
# packages/common/src/directives/ng_for_of.ts
# packages/common/src/directives/ng_if.ts
# packages/common/src/directives/ng_style.ts
# packages/common/src/directives/ng_switch.ts
# packages/core/src/change_detection/change_detection_util.ts
# packages/core/src/di/injectable.ts
# packages/core/src/interface/lifecycle_hooks.ts
# packages/core/src/linker/template_ref.ts
# packages/core/src/metadata/di.ts
# packages/core/src/metadata/directives.ts
# packages/core/src/metadata/ng_module.ts
# packages/core/src/render/api.ts
# packages/forms/src/form_providers.ts
# packages/forms/src/model.ts
# packages/router/src/config.ts
# packages/router/src/directives/router_link.ts
2019-02-17 00:00:16 +08:00