angular/packages/compiler-cli/src/ngtsc
JoostK 7d88700933 fix(compiler-cli): accept inheriting the constructor from a class in a library (#48156)
The stricter checks under `strictInjectionParameters` in Angular 15 now enforce that
an inherited constructor must be compatible with DI, based on whether all parameters
are valid injection tokens. There is an issue when the constructor is inherited from
a class in a declaration file though, as information on the usage of `@Inject()` is
not present within a declaration file. This means that this stricter check cannot be
accurately performed, resulting in false positives.

This commit disables the stricter check to behave the same as it did prior to
Angular 15, therefore avoiding the false positive.

Fixes #48152

PR Close #48156
2022-11-23 12:10:37 -08:00
..
annotations fix(compiler-cli): accept inheriting the constructor from a class in a library (#48156) 2022-11-23 12:10:37 -08:00
core fix(compiler-cli): exclude abstract classes from strictInjectionParameters requirement (#44615) 2022-10-10 21:46:25 +00:00
cycles refactor: replace deprecated String.prototype.substr() (#45397) 2022-03-24 11:48:09 -07:00
diagnostics fix(compiler-cli): implement more host directive validations as diagnostics (#47768) 2022-10-17 12:12:22 +02:00
entry_point build: switch devmode output to es2015 (#44505) 2022-01-05 23:20:20 +00:00
file_system refactor(compiler-cli): use mkdirSync recursive option instead of custom implementation (#47678) 2022-10-13 13:51:03 -07:00
imports refactor(compiler): replace most usages of getMutableClone (#47167) 2022-08-22 10:40:50 -07:00
incremental docs: fixed typos (#47008) 2022-08-01 11:15:54 -07:00
indexer refactor(compiler): add support for host directives (#46868) 2022-08-22 16:00:35 -07:00
logging build: switch devmode output to es2015 (#44505) 2022-01-05 23:20:20 +00:00
metadata refactor(compiler): Add getPotentialPipes API method. (#48090) 2022-11-17 11:00:50 -08:00
partial_evaluator feat(core): support TypeScript 4.8 (#47038) 2022-08-16 16:02:47 +00:00
perf feat(language-service): support fix the component missing member (#46764) 2022-08-02 11:58:21 -07:00
program_driver fix(compiler-cli): use @ts-ignore. (#47636) 2022-10-05 13:37:11 -07:00
reflection refactor(compiler): replace most usages of getMutableClone (#47167) 2022-08-22 10:40:50 -07:00
resource refactor(compiler): clean up workarounds for TypeScript 4.5 (#44477) 2021-12-14 16:14:02 -05:00
scope refactor(compiler): add support for host directives (#46868) 2022-08-22 16:00:35 -07:00
shims perf(compiler-cli): minimize filesystem calls when generating shims (#47682) 2022-10-07 09:10:34 -07:00
sourcemaps refactor: replace deprecated String.prototype.substr() (#45397) 2022-03-24 11:48:09 -07:00
testing feat(compiler-cli): standalone types imported into NgModule scopes (#44973) 2022-03-29 13:06:26 -07:00
transform feat(core): support TypeScript 4.8 (#47038) 2022-08-16 16:02:47 +00:00
translator docs: fix spelling (#46713) 2022-07-08 20:54:52 +00:00
ts_compatibility feat(core): drop support for TypeScript 4.6 and 4.7 (#47690) 2022-10-10 16:18:56 +00:00
typecheck refactor(language-service): make selector nullable (#48193) 2022-11-23 09:27:03 -08:00
util refactor(compiler): replace most usages of getMutableClone (#47167) 2022-08-22 10:40:50 -07:00
xi18n refactor(compiler-cli): support xi18n in ngtsc (#42485) 2021-06-21 16:50:28 +00:00
program.ts refactor(compiler-cli): update emit signature to support for strongly typed emitCallback (#47893) 2022-11-01 04:44:28 -07:00
tsc_plugin.ts build: migrate more usages from @bazel/typescript to @bazel/concatjs (#45431) 2022-03-25 12:18:34 -07:00