angular/packages/core/test
arturovt ec65663d5e refactor(core): replace Optional/SkipSelf deps with inject() flags (#63386)
This commit updates provider definitions that relied on the `deps` array
with `new Optional()` and `new SkipSelf()` to instead use the modern
`inject(..., { optional: true, skipSelf: true })` API.

Previously:
  deps: [[KeyValueDiffers, new SkipSelf(), new Optional()]]

Now:
  const parent = inject(KeyValueDiffers, { optional: true, skipSelf: true });

**Bundle size reduction**: `Optional` and `SkipSelf` are runtime values
created by `makeParamDecorator()`. Even in production builds, esbuild
and other bundlers must keep their factory code because they are
referenced with `new Optional()` / `new SkipSelf()`. With `inject()`,
those classes are no longer referenced, allowing them and the
`makeParamDecorator` scaffolding to be tree-shaken when unused.

As a result, production bundles can drop both `Optional`, `SkipSelf`, and
their supporting factory code when not used elsewhere, reducing code size
while keeping the same behavior.

PR Close #63386
2025-08-28 08:43:17 -07:00
..
acceptance build: rename defaults2.bzl to defaults.bzl (#63383) 2025-08-25 15:45:01 -07:00
authoring build: rename defaults2.bzl to defaults.bzl (#63383) 2025-08-25 15:45:01 -07:00
bundling refactor(core): replace Optional/SkipSelf deps with inject() flags (#63386) 2025-08-28 08:43:17 -07:00
change_detection refactor(core): convert scripts within packages/core/test to relative imports (#60227) 2025-03-25 10:58:00 -07:00
compiler build: rename defaults2.bzl to defaults.bzl (#63383) 2025-08-25 15:45:01 -07:00
debug build: migrate all ts_library in packages/core/test (#61472) 2025-05-20 10:00:43 +00:00
di refactor(core): include DI path into cyclic dependency error message (#50902) 2025-07-10 10:35:12 -07:00
dom build: migrate all ts_library in packages/core/test (#61472) 2025-05-20 10:00:43 +00:00
hydration fix(core): catch hydration marker with implicit body tag (#60429) 2025-03-19 15:51:36 +01:00
i18n refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
legacy_animation refactor(core): rename all animations package symbols (#62399) 2025-07-01 13:45:45 +00:00
linker refactor(core): include DI path into cyclic dependency error message (#50902) 2025-07-10 10:35:12 -07:00
metadata fix(core): properly recognize failed fetch responses when loading external resources in JIT (#62992) 2025-08-05 10:10:56 +02:00
reflection refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
render3 build: rename defaults2.bzl to defaults.bzl (#63383) 2025-08-25 15:45:01 -07:00
resource build: rename defaults2.bzl to defaults.bzl (#63383) 2025-08-25 15:45:01 -07:00
sanitization build: migrate all ts_library in packages/core/test (#61472) 2025-05-20 10:00:43 +00:00
signals build: rename defaults2.bzl to defaults.bzl (#63383) 2025-08-25 15:45:01 -07:00
strict_types build: rename defaults2.bzl to defaults.bzl (#63383) 2025-08-25 15:45:01 -07:00
testability refactor(core): convert scripts within packages/core/test to relative imports (#60227) 2025-03-25 10:58:00 -07:00
util refactor(core): convert scripts within packages/core/test to relative imports (#60227) 2025-03-25 10:58:00 -07:00
zone build: migrate all ts_library in packages/core/test (#61472) 2025-05-20 10:00:43 +00:00
application_config_spec.ts refactor(core): convert scripts within packages/core/test to relative imports (#60227) 2025-03-25 10:58:00 -07:00
application_init_spec.ts refactor(core): convert scripts within packages/core/test to relative imports (#60227) 2025-03-25 10:58:00 -07:00
application_module_spec.ts refactor(core): convert scripts within packages/core/test to relative imports (#60227) 2025-03-25 10:58:00 -07:00
application_ref_integration_spec.ts refactor(core): convert scripts within packages/core/test to relative imports (#60227) 2025-03-25 10:58:00 -07:00
application_ref_spec.ts refactor(platform-browser): replace isPlatformServer with ngServerMode (#59496) 2025-05-26 11:14:27 +00:00
BUILD.bazel build: rename defaults2.bzl to defaults.bzl (#63383) 2025-08-25 15:45:01 -07:00
change_detection_scheduler_spec.ts build: migrate all ts_library in packages/core/test (#61472) 2025-05-20 10:00:43 +00:00
component_fixture_spec.ts refactor(platform-browser): replace isPlatformServer with ngServerMode (#59496) 2025-05-26 11:14:27 +00:00
defer_fixture_spec.ts fix(core): unable to retrieve defer blocks in tests when component injects ViewContainerRef (#62156) 2025-06-23 14:24:46 +02:00
dev_mode_spec.ts refactor(core): convert scripts within packages/core/test to relative imports (#60227) 2025-03-25 10:58:00 -07:00
directive_lifecycle_integration_spec.ts refactor(core): convert scripts within packages/core/test to relative imports (#60227) 2025-03-25 10:58:00 -07:00
error_handler_spec.ts build: migrate to use web test runner rules (#62292) 2025-06-26 17:19:10 +00:00
event_emitter_spec.ts fix(core): async EventEmitter error should not prevent stability (#61028) 2025-04-29 22:14:15 -07:00
fake_async_spec.ts refactor(core): convert scripts within packages/core/test to relative imports (#60227) 2025-03-25 10:58:00 -07:00
forward_ref_integration_spec.ts build: migrate all ts_library in packages/core/test (#61472) 2025-05-20 10:00:43 +00:00
runtime_error_spec.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
test_bed_effect_spec.ts refactor(core): convert scripts within packages/core/test to relative imports (#60227) 2025-03-25 10:58:00 -07:00
test_bed_spec.ts refactor(core): add configurable behavior for animations to testbed (#62764) 2025-07-29 09:49:35 +00:00
transfer_state_spec.ts refactor(core): convert scripts within packages/core/test to relative imports (#60227) 2025-03-25 10:58:00 -07:00
util_spec.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00