angular/packages/core
arturovt f1b8ac6150 refactor(common): move ngServerMode check outside tap() to enable tree-shaking (#62238)
In this commit, the `ngServerMode` check is moved outside the RxJS `pipe()` to ensure that server-only logic is excluded from client bundles. Previously, the `tap()` operator and its closure were always included in the output, even though `ngServerMode` was false on the client and the side effect was never triggered.

By guarding the observable chain earlier, this reduces the RxJS stack frame depth, which simplifies debugging by avoiding unnecessary operator noise in client-side stack traces.

The resulting logic is also easier to reason about and avoids evaluating `HttpResponse` instances where not needed.

PR Close #62238
2025-06-25 11:13:21 +00:00
..
global refactor(docs-infra): use interpolation instead of innerHTML for better perf (#58913) 2024-11-27 10:59:18 +01:00
primitives refactor(core): update FakeNavigation to the latest spec (#62017) 2025-06-19 15:10:41 +02:00
rxjs-interop build: migrate to using new jasmine_test (#62086) 2025-06-18 08:27:26 +02:00
schematics build: migrate to using new jasmine_test (#62131) 2025-06-19 10:06:27 +02:00
src fix(core): avoid injecting ErrorHandler from a destroyed injector (#61886) 2025-06-24 14:13:34 +00:00
test refactor(common): move ngServerMode check outside tap() to enable tree-shaking (#62238) 2025-06-25 11:13:21 +00:00
testing feat(core): support bindings in TestBed (#62040) 2025-06-17 11:49:27 +02:00
BUILD.bazel refactor: use zone.js from npm instead of packages/zone.js throughout repo (#61977) 2025-06-10 12:02:03 -07:00
index.ts refactor: update packages/core:{core,src} to ts_project (#61275) 2025-05-14 12:01:51 +00:00
package.json fix(core): mark zone.js as an optional peer dependency (#61616) 2025-05-22 12:14:06 -07:00
PACKAGE.md
public_api.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
tsconfig-build.json build: migrate more targets of @angular/core to ts_project (#61370) 2025-05-16 11:02:07 +00:00
tsconfig-test.json build: migrate more targets of @angular/core to ts_project (#61370) 2025-05-16 11:02:07 +00:00