angular/packages/core
Paul Gschwendtner a777bee3de refactor(migrations): improve element binding migration for input migration (#57645)
Currently we detect element bindings as normal references and inside
usages we simply unwrap its usages. This works, but breaks in situations
like the following:

- When the expressions are narrowed. Narrowing analysis does not support
  aliased inputs. E.g. `const {myInput: alias} = this`. We could add
  this, but it would complexify the logic.

- When binding patterns deeply access value properties directly. E.g.
  `const {myInput: {value}} = this;`

In addition, the current approach requires us to understand that aliases
may point to inputs. This means we need to check all identifiers if they
point to Angular inputs. We could optimize this, but it's much easier if
we can simply assume that we only need to "verify" identifiers that have
names of "known inputs". This would significantly speed up turnaround in
the language service integration.

In addition, it would be more _correct_, semantically to directly access
the value of the input at object expansion, versus later.

PR Close #57645
2024-09-03 14:29:55 -07:00
..
global docs(docs-infra): Add dev-mode only mention for core/global (#57365) 2024-08-29 10:17:35 -07:00
primitives fix(core): Do not bubble capture events. (#57476) 2024-08-23 14:46:54 -07:00
reference-manifests build: add target to generate api manifest (#52472) 2023-11-02 11:00:59 -07:00
rxjs-interop fix(core): tree shake dev mode error message (#57035) 2024-07-22 10:49:18 -07:00
schematics refactor(migrations): improve element binding migration for input migration (#57645) 2024-09-03 14:29:55 -07:00
src feat(core): introduce afterRenderEffect (#57549) 2024-09-03 10:40:45 -07:00
test feat(core): introduce afterRenderEffect (#57549) 2024-09-03 10:40:45 -07:00
testing fix(core): Fix fixture.detectChanges with autoDetect disabled and zoneless (#57416) 2024-08-27 13:12:44 -07:00
BUILD.bazel refactor(docs-infra): migrate api-gen from dev-infra into the repo (#57241) 2024-08-05 17:06:29 +00:00
index.ts refactor(core): made comment structure consistent in index.ts (#43684) 2021-10-21 18:39:58 +00:00
package.json build: update zone.js peer dependency for core package to 0.15.0 (#57431) 2024-08-21 13:17:52 -07:00
PACKAGE.md docs: add package doc files (#26047) 2018-10-05 15:42:14 -07:00
public_api.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00