Matthieu Riegler
e52338466f
refactor(common): trim undefined from locale data. ( #63520 )
...
This is an optimization to shave of unecessary data.
fixes #42315
PR Close #63520
2025-09-17 14:57:16 +00:00
Kristiyan Kostadinov
8f59295019
refactor(core): remove unnecessary deps arrays ( #63823 )
...
We don't need to use the `deps` array syntax anymore since we have the `inject` function. These changes clean up the relevant usages.
PR Close #63823
2025-09-16 16:51:52 +00:00
SkyZeroZx
3327de1b88
docs: add documentation for NG02802 warning about HttpTransferCache headers ( #63802 )
...
add documentation for NG02802 warning about HttpTransferCache headers
PR Close #63802
2025-09-15 15:38:24 +00:00
Matthieu Riegler
7a4b225c57
refactor(common): improve typing of ngComponentOutletContent ( #63674 )
...
Dropping `any` in favor of `Node` for better type safety and clarity.
BREAKING CHANGE: `ngComponentOutletContent` is now of type `Node[][] | undefined` instead of `any[][] | undefined`.
fixes #63538
PR Close #63674
2025-09-10 22:26:27 +00:00
Matthieu Riegler
5220cea223
build: add a noDuplicateEnumValue rule ( #63483 )
...
It caught several legitimate issues.
In the cases I wasn't sure, I just disabled the rule.
fixes #45843
PR Close #63483
2025-09-10 22:16:10 +00:00
Andrew Scott
c3576506b3
refactor(core): Update tests for zoneless by default ( #63668 )
...
This updates tests and examples only to prepare for zoneless by default.
These changes were identified and made as part of #63382 . Anything that
failed gets `provideZoneChangeDetection` unless the fixes were easily
and quickly determined.
It also adds the zoneless provider to the `initTestEnvironment` calls
for tests in this repo to prevent regressions before #63382 is merged.
PR Close #63668
2025-09-09 14:41:56 -07:00
Matthieu Riegler
7aa9350dc7
build: use cldr typings ( #63519 )
...
This replaces an `any`.
PR Close #63519
2025-09-02 16:50:34 +00:00
Andrew Scott
c795960ada
feat(common): Add experimental support for the Navigation API ( #63406 )
...
The navigation API is part of interop 2025. You can find the
implementation status for each major browser here:
https://wpt.fyi/results/navigation-api?label=master&label=experimental&aligned&view=interop&q=label%3Ainterop-2025-navigation
https://developer.mozilla.org/en-US/docs/Web/API/Navigation_API
BREAKING CHANGE: (test only) - `TestBed` now provides a fake `PlatformLocation`
implementation that supports the Navigation API. This may break some
tests, though we have not observed any failures internally. You can revert to the
old default for `TestBed` by providing the `MockPlatformLocation` from
`@angular/common/testing` in your providers:
`{provide: PlatformLocation, useClass: MockPlatformLocation}`
PR Close #63406
2025-08-28 11:48:03 -07:00
Hongxu Xu
1f4c5f72aa
refactor(bazel): reduce build deps ( #63348 )
...
clean up deps in bazel build scripts
PR Close #63348
2025-08-28 09:16:10 -07:00
SkyZeroZx
07e678872f
feat(http): Add reponseType property to HttpResponse and HttpErrorResponse ( #63043 )
...
Add support for the Fetch API's responseType property in HttpResponse and HttpErrorResponse when using HttpClient with the withFetch provider.
PR Close #63043
2025-08-28 08:34:56 -07:00
Matthieu Riegler
6489af7678
refactor(http): rework the HttpEvent union to improve narrowing. ( #63267 )
...
Prior to this change, `HttpProgressEvent` could not be narrowed to `HttpDownloadProgressEvent` or `HttpUploadProgressEvent`
PR Close #63267
2025-08-27 11:25:02 -07:00
Joey Perrott
b4ae94d5ef
refactor: remove TODOs which have been corrected ( #63421 )
...
Remove TODOs which were addressed but the comment was not removed
PR Close #63421
2025-08-27 11:23:57 -07:00
Joey Perrott
2fcafb65c5
build: rename defaults2.bzl to defaults.bzl ( #63383 )
...
Use defaults.bzl for the common macros
PR Close #63383
2025-08-25 15:45:01 -07:00
arturovt
1ebba5442f
refactor(common): drop X-Request-URL ( #61943 )
...
This commit drops the `X-Request-URL` header. It was a non-standard HTTP response header, deprecated long ago and never part of any official specification. Modern browsers now expose the final URL via the `XMLHttpRequest.responseURL` property, as defined in the WHATWG spec.
PR Close #61943
2025-08-25 08:45:19 -07:00
Joey Perrott
3df1dccebe
refactor: various build and import specificer fixes for strict deps ( #63323 )
...
Change direct deps in bazel targets and import specifiers within files to maintain strict deps requirements ahead of enabling strict deps tests in the repo
PR Close #63323
2025-08-22 14:45:00 -07:00
Matthieu Riegler
25f593ce2a
refactor(common): removengModuleFactory input of NgComponentOutlet ( #62838 )
...
This was deprecated by #44815
BREAKING CHANGE: NgModuleFactory has been removed, use NgModule instead.
PR Close #62838
2025-08-20 13:27:18 +00:00
Joey Perrott
718bfd2fb7
build: move from using WORKSPACE to MODULE.bazel ( #63246 )
...
Update to use MODULE.bazel
PR Close #63246
2025-08-20 08:26:17 +00:00
Matthieu Riegler
4bed062bc9
feat(http): Provide http services in root ( #56212 )
...
The changes introduced in this commit allows to use the HttpClient without the provider function.
PR Close #56212
2025-08-14 13:04:35 +02:00
Joey Perrott
ecc86e2986
build: explicitly include types for locales in @angular/common/locales ( #63030 )
...
Include the d.ts files for each local in the @angular/common/locales files
PR Close #63030
2025-08-06 11:44:33 -07:00
Joey Perrott
fa8d8b8396
build: migrate all npm packages to use new rules_js based npm_package rule ( #62954 )
...
Use a common rule for all npm_packages
PR Close #62954
2025-08-05 19:08:45 +00:00
Vincent
e5d6fb5825
fix(http): Reset headers, progress, and statusCode when using set() in HttpResource ( #62873 )
...
Currently, those values aren't reset, which means they are out of sync with the new value
PR Close #62873
2025-08-01 08:08:52 +00:00
Joey Perrott
cbc258eec8
build: remove ts_project_interop infrastructure ( #62908 )
...
Remove the interop macros and final usages
PR Close #62908
2025-07-31 09:12:58 +00:00
SkyZeroZx
245494ad29
fix(http): add missing http options allowed in fetch API ( #62881 )
...
The addBody function was not preserving all fetch API options like integrity and referrer when creating request options for POST/PUT/PATCH requests. This caused these options to be stripped out during request construction.
PR Close #62881
2025-07-30 14:07:41 +00:00
Joey Perrott
793ff35602
build: move http_server and generate_api_docs into defaults2.bzl ( #62878 )
...
Move http_server and generate_api_docs into defaults2.bzl as they are rules_js compliant
PR Close #62878
2025-07-29 16:53:54 +00:00
Matthieu Riegler
5f759999a8
refactor(common): replace aio links to adev ( #62839 )
...
The is a doc change + a minor test change (to remove test logs that mention aio)
PR Close #62839
2025-07-29 09:55:26 +00:00
Joey Perrott
32c00ab416
build: standardize usage of js_binary ( #62860 )
...
Remove usages of nodejs_binary and use a commonly defined js_binary macro
PR Close #62860
2025-07-29 06:43:44 +02:00
Joey Perrott
caee6ff8e7
build: remove all usages of @bazel/runfiles ( #62804 )
...
Remove usages of @bazel/runfiles throughout the repository
PR Close #62804
2025-07-25 10:04:55 +02:00
SkyZeroZx
0984b30388
feat(http): Add redirected property to HttpResponse and HttpErrorResponse ( #62675 )
...
Add support for the Fetch API's redirected property in HttpResponse and HttpErrorResponse when using HttpClient with the withFetch provider.
The redirected property indicates whether the response was the result of an HTTP redirect, providing valuable information for security, debugging, and conditional logic.
PR Close #62675
2025-07-24 13:19:22 +00:00
Sebastian Barfurth
1b73c23597
fix(http): propagate plain errors when parsing fails ( #62765 )
...
The fetch backend now propagates the plain body when parsing the body fails.
This replicates the behavior of the XHR backend introduced in #19773 .
The current state completely obfuscates errors of the "wrong" response type.
However, it's not uncommon for successful requests to return one type and
errors to return another type. Propagating the plain error allows downstream
error consumers to reason about the error body and decide how to parse it
depending on application needs.
PR Close #62765
2025-07-24 09:23:24 +00:00
Joey Perrott
8bf97d1370
build: remove all usages of the interop_deps attr for ts_project and ng_project ( #62732 )
...
Remove all of the usages of interop_deps as attributes in the repo
PR Close #62732
2025-07-21 13:03:09 -04:00
Joey Perrott
23d58777b4
build: migrate to new toolchain usage for api goldens ( #62688 )
...
Migrate api golden usage to be based on rules_js toolchain implementation
PR Close #62688
2025-07-17 18:13:42 -04:00
Vincent
1408baff45
fix(http): Add missing timeout and transferCache options to HttpClient ( #62586 )
...
The `timeout` option is implemented in the different HTTP backends, but the option is not actually passed to the backends. `transferCache` is also missing in one signature. This commit adds both options to `HttpClient`.
Fixes #62581
PR Close #62586
2025-07-14 15:45:25 -07:00
Kristiyan Kostadinov
745ea44394
feat(core): support TypeScript 5.9 ( #62541 )
...
Updates the repo to support TypeScript 5.9 and expands the allowed version range.
PR Close #62541
2025-07-14 14:04:58 -07:00
SkyZeroZx
be811fee79
feat(http): add referrer & integrity support for fetch requests in httpResource ( #62461 )
...
This commit adds support for the Fetch API's referrer & integrity options when using httpResource with the withFetch provider
PR Close #62461
2025-07-14 11:40:54 -07:00
SkyZeroZx
3c1f5857ac
refactor(http): use RuntimeError for invalid timeout error ( #62490 )
...
Replace generic Error with RuntimeError
PR Close #62490
2025-07-11 10:38:56 -07:00
Alan Agius
75a5d08c5e
fix(http): do not display warnings Angular detected that a HttpClient request with the keepalive option was sent using XHR when option is not true ( #62536 )
...
Currently, this warning is always displayed as the option defaults to false. We update the logic to only display the warning when it's true.
PR Close #62536
2025-07-09 12:45:27 -07:00
SkyZeroZx
1cf9d9064c
feat(http): Add support for fetch referrer & integrity options in HttpClient ( #62417 )
...
Enhances Angular HttpClient requests with Fetch API referrer and integrity options to optimize security
PR Close #62417
2025-07-03 08:07:36 +00:00
Joey Perrott
4fae4dbba8
build: migrate adev to use packaged version of @angular/* packages ( #62413 )
...
Use the packaged versions of the packages instead of the local ts_project dependencies to prevent multiple versions of the deps to enter test bundles
PR Close #62413
2025-07-02 16:10:25 +00:00
SkyZeroZx
b6ef42843c
feat(http): add credentials support for fetch requests in httpResource ( #62390 )
...
This commit adds support for the Fetch API's credentials option when using httpResource with the withFetch provider
PR Close #62390
2025-07-01 13:37:56 +00:00
SkyZeroZx
cfbbb08437
feat(http): add warning when withCredentials overrides explicit credentials ( #62383 )
...
This will prevent confusion and accidentally overriding of credentials.
PR Close #62383
2025-07-01 09:21:35 +00:00
SkyZeroZx
f0965c7acd
feat(http): Add support for fetch credentials options in HttpClient ( #62354 )
...
Extend Angular's HttpClient to accept the 'credentials' option from the Fetch API.
PR Close #62354
2025-06-30 10:04:55 +00:00
SkyZeroZx
27b7ec0a62
feat(http): add mode & redirect for fetch request in httpResource ( #62337 )
...
This commit adds support for the Fetch API's mode & redirect options when using httpResource with the withFetch provider
PR Close #62337
2025-06-27 15:01:52 +00:00
SkyZeroZx
87322449a3
feat(http): add support for fetch mode and redirect options in HttpClient ( #62315 )
...
Add support for mode and redirect options in Angular's HttpClient based on fech provider to enable control CORS behavior and redirect handling
PR Close #62315
2025-06-27 13:16:25 +00:00
Matthieu Riegler
aa861c42ff
feat(http): add timeout option on httpResource. ( #62326 )
...
This uses the option that was introduction on the HttpClient
PR Close #62326
2025-06-27 11:21:59 +00:00
Vincent
c4cffe2063
feat(http): Add timeout option to HTTP requests ( #57194 )
...
Add timeout option to both XHR and fetch backends.
PR Close #57194
2025-06-27 09:56:25 +00:00
SkyZeroZx
55fa38a1e5
feat(http): add cache & priority support for fetch requests in httpResource ( #62301 )
...
This commit adds support for the Fetch API's cache & priority options when using httpResource with the withFetch provider
PR Close #62301
2025-06-27 09:51:31 +00:00
Joey Perrott
b84859073b
build: migrate to use web test runner rules ( #62292 )
...
Migrate karma tests throughout the repo to use the new web test runner based rule instead
PR Close #62292
2025-06-26 17:19:10 +00:00
arturovt
13875d0140
refactor(common): remove redundant ɵloadImpl check in client bundles ( #62191 )
...
In this commit, the conditional branching around `ɵloadImpl` is removed from client-side code, as `ɵloadImpl` is never defined in client bundles. This makes the logic simpler and improves tree-shaking, allowing the `from()` import to be dropped from the common bundle in browser builds.
PR Close #62191
2025-06-26 12:02:51 +00:00
Tristan Bastian
58aedc37d1
feat(common): add support for a custom EnvironmentInjector to NgComponentOutlet directive ( #54764 )
...
Signed-off-by: Tristan Bastian <tristan.bastian@cumulocity.com >
PR Close #54764
2025-06-25 17:02:19 +00:00
Mansi Shrivastava
7426dbbd56
refactor(common): allow HttpErrorResponse with successful status codes ( #61107 )
...
This adds the ability to mock out errors even when successful status codes are returned.
Fixes #26161
PR Close #61107
2025-06-25 17:01:18 +00:00