angular-docs-cn/packages
Andrew Kushnir 6cff877f4f perf(core): make DI decorators tree-shakable when used for `useFactory` deps config (#40145)
This commit updates the logic that calculates `useFactory` function arguments to avoid relying on `instanceof`
checks (thus always retaining symbols) and relies on flags that DI decorators contain (as a monkey-patched property).

Another perf benefit is having less megamorphic reads while calculating args for the `useFactory` call: we used to
check whether a token has `ngMetadataName` property 4 times (in worst case), now we have just 1 megamorphic read in
all cases.

Closes #40143.

PR Close #40145
2021-01-13 14:08:45 -08:00
..
animations fix(animations): implement getPosition in browser animation builder (#39983) 2020-12-08 16:24:41 -08:00
bazel Revert "build: update bazel rules_nodejs to 2.3.2 (#40367)" (#40395) 2021-01-11 12:51:11 -08:00
benchpress build: support building with TypeScript 4.1 (#39571) 2020-11-25 11:10:01 -08:00
common fix(router): Router should focus element after scrolling (#40241) 2021-01-05 09:48:48 -08:00
compiler refactor(compiler-cli): include `template` source directly inside declaration object (#40383) 2021-01-11 15:37:12 -08:00
compiler-cli fix(compiler-cli): report non-template diagnostics (#40331) 2021-01-13 10:55:04 -08:00
core perf(core): make DI decorators tree-shakable when used for `useFactory` deps config (#40145) 2021-01-13 14:08:45 -08:00
docs docs(di): fix typo in advanced di doc (#36634) 2020-05-01 09:50:28 -07:00
elements fix(elements): update the view of an `OnPush` component when inputs change (#39452) 2020-11-06 09:31:46 -08:00
examples fix(core): Allow passing AbstractType to the inject function (#37958) 2020-11-24 10:42:21 -08:00
forms fix(forms): handle standalone `<form>` tag correctly in `NgControlStatusGroup` directive (#40344) 2021-01-08 09:44:42 -08:00
language-service fix(compiler-cli): report non-template diagnostics (#40331) 2021-01-13 10:55:04 -08:00
localize docs: update JSDOC comment for the ArbTranslationSerializer (#40354) 2021-01-11 10:40:24 -08:00
misc/angular-in-memory-web-api docs: import in-memory-web-api readme (#40203) 2021-01-08 09:45:41 -08:00
platform-browser fix(animations): implement getPosition in browser animation builder (#39983) 2020-12-08 16:24:41 -08:00
platform-browser-dynamic docs: update links to use HTTPS as protocol (#39718) 2020-11-20 12:52:16 -08:00
platform-server build: support building with TypeScript 4.1 (#39571) 2020-11-25 11:10:01 -08:00
private/testing build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
router refactor(router): refactor and simplify router RxJS chains (#40290) 2021-01-11 15:30:55 -08:00
service-worker refactor(service-worker): remove work-around for Chrome code highlighting bug (#40234) 2021-01-11 10:42:50 -08:00
upgrade fix(upgrade): fix HMR for hybrid applications (#40045) 2020-12-10 13:40:53 -08:00
zone.js fix(zone.js): fix typo in zone_externs (#40348) 2021-01-08 09:47:46 -08:00
BUILD.bazel build: replace @types/trusted-types dep with minimal type defs (#39211) 2020-10-15 09:08:00 -07: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 fix(platform-webworker): remove platform-webworker and platform-webworker-dynamic (#38846) 2020-09-30 09:13:59 -04:00
empty.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
goog.d.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
license-banner.txt build: bump year (#34651) 2020-01-13 07:21:43 -08:00
system.d.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
tsconfig-build-no-strict.json
tsconfig-build.json
tsconfig-test.json
tsconfig.json fix(platform-webworker): remove platform-webworker and platform-webworker-dynamic (#38846) 2020-09-30 09:13:59 -04:00
types.d.ts build: replace @types/trusted-types dep with minimal type defs (#39211) 2020-10-15 09:08:00 -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