angular/packages/common/test
Paul Gschwendtner 7426948ff6 refactor(common): update NgTemplateOutlet to no longer rely on context swapping (#51887)
The context of an embedded view ref at some point was switched from a
getter to an actual assignable property. This is something we reverted
with the previous commit as it introduces additional complexity for our
generated code (in terms of closures capturing the `ctx`).

This change impacted the template outlet code because we actively relied
on swapping out the full context if the user changes it. Previousl,
before we allowed to swap out the context (in v16), we mutated the
initial view context if it didn't change structurally- and in other
cases the view was re-created. We improved this performance aspect with
the changes to allow for the context to be swapped out + actually also
fixed a bug where the initial context object was mutated and the user
could observe this change.

This commit adjusts for context not being replacable- while still
keeping the bugs fixed and preserving the performance wins of not
having to destroy/re-create the view whenever the context changes.

Benchmarks: https://hackmd.io/J0Ci_JzxQ0K1AA1omXhIQQ

PR Close #51887
2023-10-04 08:14:35 -07:00
..
directives refactor(common): update NgTemplateOutlet to no longer rely on context swapping (#51887) 2023-10-04 08:14:35 -07:00
i18n build(common): update CLDR to version 41 (#45714) 2022-04-29 12:20:08 -04:00
image_loaders fix(common): invalid ImageKit transformation (#49201) 2023-03-27 08:33:22 -07:00
location fix(common): make Location.normalize() return the correct path when the base path contains characters that interfere with regex syntax. (#49181) 2023-02-27 10:02:33 -08:00
pipes fix(common): untrack subscription and unsubscription in async pipe (#50522) 2023-05-31 12:38:30 -07:00
BUILD.bazel refactor: update packages/common tests to work with ESM pipeline (#48521) 2022-12-19 19:50:42 +00:00
cookie_spec.ts test: clean up internal testing utilities (#42177) 2021-05-26 20:07:25 +00:00
viewport_scroller_spec.ts refactor: remove unnecessary test support check utilities (#47543) 2023-01-24 21:06:09 +00:00