angular/packages/common
Pawel Kozlowski 28a5925f53 fix(common): use === operator to match NgSwitch cases (#51504)
This change adjust the equality comparator used by NgSwitch - now it
defaults to === from previously used ==. This change is based on the
following reasoning:
- align behaviour with the built-in switch block);
- improve performance (avoid type coercion);
- enable better type-checking.

BREAKING CHANGE:

the NgSwitch directive now defaults to the === equality operator,
migrating from the previously used ==. NgSwitch expressions and / or
individual condition values need adjusting to this stricter equality
check. The added warning message should help pinpointing NgSwitch
usages where adjustements are needed.

Fixes #33873

PR Close #51504
2023-10-09 10:10:21 -07:00
..
http feat(http): allow customization of the HttpTransferCache. (#52029) 2023-10-06 12:12:47 -07:00
locales build: align with internal tsconfig options (#51728) 2023-09-12 11:39:42 -07:00
src fix(common): use === operator to match NgSwitch cases (#51504) 2023-10-09 10:10:21 -07:00
test fix(common): use === operator to match NgSwitch cases (#51504) 2023-10-09 10:10:21 -07:00
testing fix(common): remove code duplication between entry-points (#51500) 2023-08-29 17:55:34 +00:00
upgrade build: align with internal tsconfig options (#51728) 2023-09-12 11:39:42 -07:00
BUILD.bazel refactor: remove Angular Compatibility Compiler (ngcc) (#49101) 2023-02-16 16:01:17 -08:00
index.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
package.json build: remove support for Node.js v16 (#51755) 2023-09-13 10:49:06 -07:00
PACKAGE.md docs: add api doc to sub-packages (#33801) 2019-11-20 14:48:50 -08:00
public_api.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00