angular/packages/compiler-cli/test
Paul Gschwendtner 6219341d26 fix(compiler-cli): report errors when initializer APIs are used on private fields (#54981)
This commit ensures that the new APIs like `input`, `model`, `output`,
or signal-based queries are not accidentally used on fields that have a
problematic visibility/access level that won't work.

For example, queries defined using a private identifier (e.g. `#bla`)
will not be accessible by the Angular runtime and therefore _dont_ work.

This commit ensures:

- `input` is only declared via public and protected fields.
- `output` is only declared via public and protected fields.
- `model` is only declared via public and protected fields.
- signal queries are only declared via public, protected and TS private
  fields (`private` works, while `#bla` does not).

Fixes #54863.

PR Close #54981
2024-03-27 09:54:45 -07:00
..
compliance refactor(compiler): pass default content to projection instruction (#54854) 2024-03-26 09:17:58 -07:00
ngtsc fix(compiler-cli): report errors when initializer APIs are used on private fields (#54981) 2024-03-27 09:54:45 -07:00
BUILD.bazel fix(compiler-cli): identify aliased initializer functions (#54609) 2024-02-26 18:27:15 -08:00
downlevel_decorators_transform_spec.ts refactor(compiler-cli): add transform to support signal input in JIT (#53808) 2024-01-10 12:21:05 +00:00
extract_i18n_spec.ts build: switch devmode output to es2015 (#44505) 2022-01-05 23:20:20 +00:00
initializer_api_transforms_spec.ts test(compiler-cli): add unit tests for output() JIT transform (#54841) 2024-03-15 15:14:32 -07:00
mocks.ts build: align with internal tsconfig options (#51728) 2023-09-12 11:39:42 -07:00
perform_compile_spec.ts build: align with internal tsconfig options (#51728) 2023-09-12 11:39:42 -07:00
perform_watch_spec.ts perf(compiler-cli): minimize filesystem calls when generating shims (#47682) 2022-10-07 09:10:34 -07:00
signal_queries_metadata_transform_spec.ts refactor(compiler-cli): switch jit transforms to use new import manager (#54819) 2024-03-15 15:09:40 -07:00
test_support.ts refactor: fix a number of typos throughout the codebase (#52249) 2023-10-25 16:51:24 -07:00
typescript_support_spec.ts fix(compiler-cli): handle pre-release versions when checking version (#44109) 2021-11-09 20:54:45 +00:00
version_helpers_spec.ts refactor(compiler-cli): move version number helpers out of diagnostics subfolder (#44269) 2021-12-01 10:36:30 -08:00