angular-cn/packages
Paul Gschwendtner c6ecdc9a81 feat(core): undecorated-classes-with-decorated-fields migration should handle classes with lifecycle hooks (#36921)
As of v10, undecorated classes using Angular features are no longer
supported. In v10, we plan on removing the undecorated classes
compatibility code in ngtsc. This means that old patterns for
undecorated classes will result in compilation errors.

We had a migration for this in v9 already, but it looks like
the migration does not handle cases where classes uses lifecycle
hooks. This is handled in the ngtsc compatibility code, and we
should handle it similarly in migrations too.

This has not been outlined in the migration plan initially,
but an appendix has been added for v10 to the plan document.

https://hackmd.io/vuQfavzfRG6KUCtU7oK_EA?both.

Note: The migration is unable to determine whether a given undecorated
class that only defines `ngOnDestroy` is a directive or an actual
service. This means that in some cases the migration cannot do
more than adding a TODO and printing an failure.

Certainly there are more ways to determine the type of such classes,
but it would involve metadata and NgModule analysis. This is out of
scope for this migration.

PR Close #36921
2020-05-06 15:06:10 -07:00
..
animations build: simplify package.jsons for all of our packages (#36944) 2020-05-06 13:54:26 -07:00
bazel test: disable ng_package tests in ivy test jobs (#36944) 2020-05-06 13:54:27 -07:00
benchpress release(benchpress): bump version of benchpress to 0.2.0 (#36457) 2020-04-22 17:10:28 -04:00
common build: simplify package.jsons for all of our packages (#36944) 2020-05-06 13:54:26 -07:00
compiler build: simplify package.jsons for all of our packages (#36944) 2020-05-06 13:54:26 -07:00
compiler-cli feat(ngcc): support for new APF where `module` points to esm2015 output (#36944) 2020-05-06 13:54:26 -07:00
core feat(core): undecorated-classes-with-decorated-fields migration should handle classes with lifecycle hooks (#36921) 2020-05-06 15:06:10 -07:00
docs docs(di): fix typo in advanced di doc (#36634) 2020-05-01 09:50:28 -07:00
elements build: simplify package.jsons for all of our packages (#36944) 2020-05-06 13:54:26 -07:00
examples build: reformat repo to new clang@1.4.0 (#36613) 2020-04-14 12:08:36 -07:00
forms build: simplify package.jsons for all of our packages (#36944) 2020-05-06 13:54:26 -07:00
language-service test(language-service): [ivy] Add mock service to overwrite files (#36923) 2020-05-05 17:52:12 -07:00
localize build: simplify package.jsons for all of our packages (#36944) 2020-05-06 13:54:26 -07:00
platform-browser refactor: disable sanitization for [style] and [style.prop] bindings (#35621) 2020-05-06 15:00:22 -07:00
platform-browser-dynamic build: simplify package.jsons for all of our packages (#36944) 2020-05-06 13:54:26 -07:00
platform-server build: simplify package.jsons for all of our packages (#36944) 2020-05-06 13:54:26 -07:00
platform-webworker build: simplify package.jsons for all of our packages (#36944) 2020-05-06 13:54:26 -07:00
platform-webworker-dynamic build: simplify package.jsons for all of our packages (#36944) 2020-05-06 13:54:26 -07:00
private/testing build: reformat repo to new clang@1.4.0 (#36613) 2020-04-14 12:08:36 -07:00
router build: simplify package.jsons for all of our packages (#36944) 2020-05-06 13:54:26 -07:00
service-worker build: simplify package.jsons for all of our packages (#36944) 2020-05-06 13:54:26 -07:00
upgrade build: simplify package.jsons for all of our packages (#36944) 2020-05-06 13:54:26 -07:00
zone.js revert: "feat(dev-infra): exposed new rule 'component_benchmark' via dev_infra (#36434)" (#36798) 2020-04-24 11:03:38 -07:00
BUILD.bazel build: reference zone.js from source directly instead of npm. (#33046) 2019-11-06 00:48:34 +00:00
README.md docs: add doc reference to npm package readme (#33911) 2019-11-20 14:46:23 -08:00
circular-deps-test.conf.js build: move circular deps golden to a subfolder (#36630) 2020-04-22 17:11:20 -04:00
empty.ts
goog.d.ts fix(ivy): use goog.LOCALE for Closure Compiler to define default LOCALE_ID (#31519) 2019-07-16 13:02:10 -04:00
license-banner.txt build: bump year (#34651) 2020-01-13 07:21:43 -08:00
system.d.ts build: no longer run tslint from within gulp task (#35800) 2020-03-03 09:20:49 -08:00
tsconfig-build-no-strict.json refactor(core): ensure compatibility with typescript strict flag (#30993) 2019-07-18 14:21:25 -07:00
tsconfig-build.json refactor(core): ensure compatibility with typescript strict flag (#30993) 2019-07-18 14:21:25 -07:00
tsconfig-test.json refactor: fix typescript strict flag failures in all tests (#30993) 2019-07-18 14:21:26 -07:00
tsconfig.json revert: "feat(dev-infra): exposed new rule 'component_benchmark' via dev_infra (#36434)" (#36798) 2020-04-24 11:03:38 -07:00
types.d.ts build: reformat repo to new clang@1.4.0 (#36613) 2020-04-14 12:08:36 -07:00

README.md

Angular

The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.

Usage information and reference details can be found in Angular documentation.

License: MIT