angular/packages/compiler-cli/test
Kristiyan Kostadinov 981c28c15f refactor(compiler-cli): do not emit signal unwrap calls in versions older than 17.2 (#54423)
In order to allow both signals and non-signals in two-way bindings, we have to pass the expression through `ɵunwrapWritableSignal`. The problem is that the language service uses a bundled compiler that is fairly new, but it may be compiling an older version of Angular that doesn't expose `ɵunwrapWritableSignal` (see https://github.com/angular/vscode-ng-language-service/issues/2001).

These changes add a `_angularCoreVersion` flag to the compiler which the language service can use to pass the parsed Angular version to the compiler which can then decide whether to emit the function.

PR Close #54423
2024-02-13 15:53:42 -08:00
..
compliance build: reuse fake core in type checking tests (#54344) 2024-02-08 19:21:47 +00:00
ngtsc refactor(compiler-cli): do not emit signal unwrap calls in versions older than 17.2 (#54423) 2024-02-13 15:53:42 -08:00
BUILD.bazel refactor(compiler-cli): add jit transform for model inputs (#54252) 2024-02-07 16:36:03 +00: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 refactor(core): address PR feedback (#54252) 2024-02-07 16:36:12 +00: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): add JIT transform for signal-based queries (#54257) 2024-02-06 16:04:10 +00: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