@angular/core 10.0.1 → 10.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/bundles/core-testing.umd.js +320 -271
  2. package/bundles/core-testing.umd.js.map +1 -1
  3. package/bundles/core-testing.umd.min.js +11 -25
  4. package/bundles/core-testing.umd.min.js.map +1 -1
  5. package/bundles/core.umd.js +834 -1043
  6. package/bundles/core.umd.js.map +1 -1
  7. package/bundles/core.umd.min.js +132 -286
  8. package/bundles/core.umd.min.js.map +1 -1
  9. package/core.d.ts +193 -183
  10. package/core.metadata.json +1 -1
  11. package/esm2015/core.js +11 -10
  12. package/esm2015/src/application_init.js +9 -5
  13. package/esm2015/src/application_tokens.js +16 -12
  14. package/esm2015/src/change_detection/change_detector_ref.js +6 -3
  15. package/esm2015/src/change_detection/constants.js +3 -1
  16. package/esm2015/src/core_render3_private_export.js +2 -2
  17. package/esm2015/src/di/injectable.js +1 -1
  18. package/esm2015/src/di/metadata.js +2 -2
  19. package/esm2015/src/interface/type.js +2 -2
  20. package/esm2015/src/linker/ng_module_factory.js +3 -5
  21. package/esm2015/src/linker/view_ref.js +3 -6
  22. package/esm2015/src/metadata/directives.js +1 -1
  23. package/esm2015/src/metadata/ng_module.js +1 -1
  24. package/esm2015/src/render3/definition.js +3 -11
  25. package/esm2015/src/render3/di.js +13 -5
  26. package/esm2015/src/render3/di_setup.js +5 -5
  27. package/esm2015/src/render3/features/inherit_definition_feature.js +1 -11
  28. package/esm2015/src/render3/features/ng_onchanges_feature.js +32 -22
  29. package/esm2015/src/render3/hooks.js +27 -23
  30. package/esm2015/src/render3/i18n.js +3 -3
  31. package/esm2015/src/render3/index.js +3 -3
  32. package/esm2015/src/render3/instructions/element.js +4 -4
  33. package/esm2015/src/render3/instructions/host_property.js +3 -3
  34. package/esm2015/src/render3/instructions/listener.js +3 -3
  35. package/esm2015/src/render3/instructions/shared.js +15 -26
  36. package/esm2015/src/render3/interfaces/definition.js +1 -1
  37. package/esm2015/src/render3/interfaces/node.js +1 -1
  38. package/esm2015/src/render3/jit/environment.js +3 -3
  39. package/esm2015/src/render3/util/discovery_utils.js +2 -2
  40. package/esm2015/src/render3/view_ref.js +3 -3
  41. package/esm2015/src/sanitization/html_sanitizer.js +3 -3
  42. package/esm2015/src/sanitization/inert_body.js +39 -82
  43. package/esm2015/src/util/ng_dev_mode.js +2 -2
  44. package/esm2015/src/version.js +1 -1
  45. package/esm2015/testing/src/fake_async_fallback.js +5 -1
  46. package/fesm2015/core.js +266 -309
  47. package/fesm2015/core.js.map +1 -1
  48. package/fesm2015/testing.js +5 -1
  49. package/fesm2015/testing.js.map +1 -1
  50. package/package.json +1 -1
  51. package/src/r3_symbols.d.ts +15 -17
  52. package/testing/testing.d.ts +1 -1
  53. package/testing.d.ts +1 -1
  54. package/esm2015/src/util/WrappedValue.js +0 -48
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/core",
3
- "version": "10.0.1",
3
+ "version": "10.0.5",
4
4
  "description": "Angular - the core framework",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v10.0.1
2
+ * @license Angular v10.0.5
3
3
  * (c) 2010-2020 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -18,10 +18,13 @@ declare interface AbstractType<T> extends Function {
18
18
  }
19
19
 
20
20
  /**
21
- * Base class for Angular Views, provides change detection functionality.
21
+ * Base class that provides change detection functionality.
22
22
  * A change-detection tree collects all views that are to be checked for changes.
23
23
  * Use the methods to add and remove views from the tree, initiate change-detection,
24
- * and explicitly mark views as _dirty_, meaning that they have changed and need to be rerendered.
24
+ * and explicitly mark views as _dirty_, meaning that they have changed and need to be re-rendered.
25
+ *
26
+ * @see [Using change detection hooks](guide/lifecycle-hooks#using-change-detection-hooks)
27
+ * @see [Defining custom change detection](guide/lifecycle-hooks#defining-custom-change-detection)
25
28
  *
26
29
  * @usageNotes
27
30
  *
@@ -691,25 +694,23 @@ declare abstract class NgModuleFactory_2<T> {
691
694
  }
692
695
 
693
696
  /**
694
- * Represents an instance of an NgModule created via a {@link NgModuleFactory}.
695
- *
696
- * `NgModuleRef` provides access to the NgModule Instance as well other objects related to this
697
- * NgModule Instance.
697
+ * Represents an instance of an `NgModule` created by an `NgModuleFactory`.
698
+ * Provides access to the `NgModule` instance and related objects.
698
699
  *
699
700
  * @publicApi
700
701
  */
701
702
  declare abstract class NgModuleRef<T> {
702
703
  /**
703
- * The injector that contains all of the providers of the NgModule.
704
+ * The injector that contains all of the providers of the `NgModule`.
704
705
  */
705
706
  abstract get injector(): Injector;
706
707
  /**
707
- * The ComponentFactoryResolver to get hold of the ComponentFactories
708
+ * The resolver that can retrieve the component factories
708
709
  * declared in the `entryComponents` property of the module.
709
710
  */
710
711
  abstract get componentFactoryResolver(): ComponentFactoryResolver;
711
712
  /**
712
- * The NgModule instance.
713
+ * The `NgModule` instance.
713
714
  */
714
715
  abstract get instance(): T;
715
716
  /**
@@ -717,7 +718,7 @@ declare abstract class NgModuleRef<T> {
717
718
  */
718
719
  abstract destroy(): void;
719
720
  /**
720
- * Allows to register a callback that will be called when the module is destroyed.
721
+ * Registers a callback to be executed when the module is destroyed.
721
722
  */
722
723
  abstract onDestroy(callback: () => void): void;
723
724
  }
@@ -835,7 +836,7 @@ declare type StaticProvider = ValueProvider | ExistingProvider | StaticClassProv
835
836
  *
836
837
  * Represents a type that a Component or other object is instances of.
837
838
  *
838
- * An example of a `Type` is `MyCustomComponent` class, which in JavaScript is be represented by
839
+ * An example of a `Type` is `MyCustomComponent` class, which in JavaScript is represented by
839
840
  * the `MyCustomComponent` constructor function.
840
841
  *
841
842
  * @publicApi
@@ -888,12 +889,9 @@ declare interface ValueSansProvider {
888
889
  }
889
890
 
890
891
  /**
891
- * Represents an Angular [view](guide/glossary#view),
892
- * specifically the [host view](guide/glossary#view-tree) that is defined by a component.
893
- * Also serves as the base class
894
- * that adds destroy methods for [embedded views](guide/glossary#view-tree).
892
+ * Represents an Angular [view](guide/glossary#view "Definition").
895
893
  *
896
- * @see `EmbeddedViewRef`
894
+ * @see {@link ChangeDetectorRef#usage-notes Change detection usage}
897
895
  *
898
896
  * @publicApi
899
897
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v10.0.1
2
+ * @license Angular v10.0.5
3
3
  * (c) 2010-2020 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/testing.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v10.0.1
2
+ * @license Angular v10.0.5
3
3
  * (c) 2010-2020 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,48 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- /**
9
- * Indicates that the result of a {@link Pipe} transformation has changed even though the
10
- * reference has not changed.
11
- *
12
- * Wrapped values are unwrapped automatically during the change detection, and the unwrapped value
13
- * is stored.
14
- *
15
- * Example:
16
- *
17
- * ```
18
- * if (this._latestValue === this._latestReturnedValue) {
19
- * return this._latestReturnedValue;
20
- * } else {
21
- * this._latestReturnedValue = this._latestValue;
22
- * return WrappedValue.wrap(this._latestValue); // this will force update
23
- * }
24
- * ```
25
- *
26
- * @publicApi
27
- */
28
- export class WrappedValue {
29
- constructor(value) {
30
- this.wrapped = value;
31
- }
32
- /** Creates a wrapped value. */
33
- static wrap(value) {
34
- return new WrappedValue(value);
35
- }
36
- /**
37
- * Returns the underlying value of a wrapped value.
38
- * Returns the given `value` when it is not wrapped.
39
- **/
40
- static unwrap(value) {
41
- return WrappedValue.isWrapped(value) ? value.wrapped : value;
42
- }
43
- /** Returns true if `value` is a wrapped value. */
44
- static isWrapped(value) {
45
- return value instanceof WrappedValue;
46
- }
47
- }
48
- //# sourceMappingURL=data:application/json;base64,ey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