angular-docs-cn/packages
Vikram Subramanian 6b859daea4 fix(core): stop reusing provider definitions across NgModuleRef instances (#25022)
Fixes #25018.

Instantiating a NgModuleRef from NgModuleFactory reuses the NgModuleDefinition if it is already present. However the NgModuleDefinition has a providers array which modified when tree shakable providers are instantiated. This corrupts the provider definitions the next time the same factory is used to create a new NgModuleRef - Two provider definitions can end up with the same index anf the injector could potentially return a completely wrong object for a provider token.

This scenario is more likely on the server where the same NgModuleFactory is reused across requests.

The fix clones the cached NgModuleDefinition so that any tree shakable providers added later do not affect the cached copy.

PR Close #25022
2018-07-23 08:13:29 -07:00
..
animations fix(animations): @internal must use JSDoc tags. (#24928) 2018-07-18 18:18:04 -04:00
bazel build(bazel): turn on preserve-symlinks (#24881) 2018-07-20 10:37:30 -07:00
benchpress refactor: infer type for `it()` assertion functions (#19904) 2018-07-06 13:48:02 -07:00
common docs: more info on currency digits (#24661) 2018-07-20 10:33:06 -07:00
compiler fix(ivy): types in .d.ts files should account for generics (#24862) 2018-07-20 11:48:36 -07:00
compiler-cli fix(ivy): types in .d.ts files should account for generics (#24862) 2018-07-20 11:48:36 -07:00
core fix(core): stop reusing provider definitions across NgModuleRef instances (#25022) 2018-07-23 08:13:29 -07:00
docs
elements build(bazel): turn on preserve-symlinks (#24881) 2018-07-20 10:37:30 -07:00
examples docs: add api doc to commonly queried elements 2018-07-20 12:39:10 -07:00
forms feat(ivy): selector side of ModuleWithProviders via type metadata (#24862) 2018-07-20 11:48:35 -07:00
http test: make `NgMatchers` type-aware (#19904) 2018-07-06 13:48:02 -07:00
language-service fix(language-service): do not overwrite native `Reflect` (#24299) 2018-07-09 15:09:16 -07:00
platform-browser feat(ivy): selector side of ModuleWithProviders via type metadata (#24862) 2018-07-20 11:48:35 -07:00
platform-browser-dynamic ci(ivy): configure CI environments for Ivy JIT and AOT (#24309) 2018-06-08 13:34:27 -07:00
platform-server fix(animations): set animations styles properly on platform-server (#24624) 2018-06-25 07:58:11 -07:00
platform-webworker test(platform-webworker): avoid flakes due to existing `PlatformRef` (#24916) 2018-07-20 10:47:17 -07:00
platform-webworker-dynamic ci(ivy): configure CI environments for Ivy JIT and AOT (#24309) 2018-06-08 13:34:27 -07:00
router feat(ivy): selector side of ModuleWithProviders via type metadata (#24862) 2018-07-20 11:48:35 -07:00
service-worker fix(service-worker): don't include sourceMappingURL in ngsw-worker (#24877) 2018-07-20 11:49:46 -07:00
upgrade fix(ivy): allow building router with ngtsc (#24862) 2018-07-20 11:48:35 -07:00
BUILD.bazel
README.md
empty.ts
es6-subset.d.ts
goog.d.ts
license-banner.txt
rollup.config.js
system.d.ts
tsconfig-build.json build(bazel): Turning on strictPropertyInitialization for Angular. (#24572) 2018-06-25 07:57:13 -07:00
tsconfig-metadata.json
tsconfig.json build: upgrade jasmine (and related typings) to latest version (#19904) 2018-07-06 13:48:02 -07:00
types.d.ts build: upgrade jasmine (and related typings) to latest version (#19904) 2018-07-06 13:48:02 -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.

License: MIT