angular/packages/common/http
Andrew Kushnir 59837f4749 refactor(platform-server): import xhr2 dynamically in the ServerXhr class (#50095)
This commit updates the `@angular/common/http` and `@angular/platform-server` packages to allow dynamic import of the `xhr2` dependency. The `xhr2` dependency has side-effects that rely on a global scope and as a result in some environments those side-effectful calls fail. With the changes from this PR, the import is delayed until it's actually needed, which gives a chance for the underlying platform to setup global scope (via shims) as needed.

Co-authored-by: alan-agius4 <17563226+alan-agius4@users.noreply.github.com>

PR Close #50095
2023-05-08 14:32:43 -07:00
..
src refactor(platform-server): import xhr2 dynamically in the ServerXhr class (#50095) 2023-05-08 14:32:43 -07:00
test fix(http): prevent headers from throwing an error when initializing numerical values (#49379) 2023-04-13 14:00:16 +00:00
testing refactor: update packages/common tests to work with ESM pipeline (#48521) 2022-12-19 19:50:42 +00:00
BUILD.bazel build: reformat BUILD files (#48181) 2022-11-22 21:22:34 +00:00
index.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
PACKAGE.md docs: add package doc files (#26047) 2018-10-05 15:42:14 -07:00
public_api.ts feat(platform-browser): enable HTTP request caching when using provideClientHydration (#49699) 2023-04-04 15:04:03 -07:00