@angular/core 7.2.9 → 7.2.13

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 (35) hide show
  1. package/bundles/core-testing.umd.js +1 -1
  2. package/bundles/core-testing.umd.min.js +1 -1
  3. package/bundles/core-testing.umd.min.js.map +1 -1
  4. package/bundles/core.umd.js +4 -3
  5. package/bundles/core.umd.js.map +1 -1
  6. package/bundles/core.umd.min.js +2 -2
  7. package/bundles/core.umd.min.js.map +1 -1
  8. package/core.metadata.json +1 -1
  9. package/esm2015/src/change_detection/constants.js +2 -1
  10. package/esm2015/src/di/injector_compatibility.js +1 -1
  11. package/esm2015/src/metadata/directives.js +1 -1
  12. package/esm2015/src/metadata/ng_module.js +1 -1
  13. package/esm2015/src/render3/interfaces/renderer.js +2 -2
  14. package/esm2015/src/sanitization/url_sanitizer.js +2 -2
  15. package/esm2015/src/version.js +1 -1
  16. package/esm5/src/change_detection/constants.js +2 -1
  17. package/esm5/src/di/injector_compatibility.js +1 -1
  18. package/esm5/src/metadata/directives.js +1 -1
  19. package/esm5/src/metadata/ng_module.js +1 -1
  20. package/esm5/src/render3/interfaces/renderer.js +1 -1
  21. package/esm5/src/sanitization/url_sanitizer.js +2 -2
  22. package/esm5/src/version.js +1 -1
  23. package/fesm2015/core.js +5 -4
  24. package/fesm2015/core.js.map +1 -1
  25. package/fesm2015/testing.js +1 -1
  26. package/fesm5/core.js +4 -3
  27. package/fesm5/core.js.map +1 -1
  28. package/fesm5/testing.js +1 -1
  29. package/package.json +1 -1
  30. package/src/change_detection/constants.d.ts +1 -0
  31. package/src/di/injector_compatibility.d.ts +13 -7
  32. package/src/metadata/directives.d.ts +2 -2
  33. package/src/metadata/ng_module.d.ts +1 -1
  34. package/src/render3/interfaces/renderer.d.ts +1 -1
  35. package/testing.d.ts +1 -1
package/fesm5/testing.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v7.2.9
2
+ * @license Angular v7.2.13
3
3
  * (c) 2010-2019 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/core",
3
- "version": "7.2.9",
3
+ "version": "7.2.13",
4
4
  "description": "Angular - the core framework",
5
5
  "main": "./bundles/core.umd.js",
6
6
  "module": "./fesm5/core.js",
@@ -16,6 +16,7 @@ export declare enum ChangeDetectionStrategy {
16
16
  * Use the `CheckOnce` strategy, meaning that automatic change detection is deactivated
17
17
  * until reactivated by setting the strategy to `Default` (`CheckAlways`).
18
18
  * Change detection can still be explicitly invoked.
19
+ * This strategy applies to all child directives and cannot be overridden.
19
20
  */
20
21
  OnPush = 0,
21
22
  /**
@@ -36,18 +36,24 @@ export declare function injectInjectorOnly<T>(token: Type<T> | InjectionToken<T>
36
36
  export declare function injectInjectorOnly<T>(token: Type<T> | InjectionToken<T>, flags?: InjectFlags): T | null;
37
37
  /**
38
38
  * Injects a token from the currently active injector.
39
+ * Must be used in the context of a factory function such as one defined for an
40
+ * `InjectionToken`. Throws an error if not called from such a context.
39
41
  *
40
- * This function must be used in the context of a factory function such as one defined for an
41
- * `InjectionToken`, and will throw an error if not called from such a context.
42
+ * Within such a factory function, using this function to request injection of a dependency
43
+ * is faster and more type-safe than providing an additional array of dependencies
44
+ * (as has been common with `useFactory` providers).
45
+ *
46
+ * @param token The injection token for the dependency to be injected.
47
+ * @param flags Optional flags that control how injection is executed.
48
+ * The flags correspond to injection strategies that can be specified with
49
+ * parameter decorators `@Host`, `@Self`, `@SkipSef`, and `@Optional`.
50
+ * @returns True if injection is successful, null otherwise.
42
51
  *
43
52
  * @usageNotes
44
- * ### Example
45
53
  *
46
- * {@example core/di/ts/injector_spec.ts region='ShakeableInjectionToken'}
54
+ * ### Example
47
55
  *
48
- * Within such a factory function `inject` is utilized to request injection of a dependency, instead
49
- * of providing an additional array of dependencies as was common to do with `useFactory` providers.
50
- * `inject` is faster and more type-safe.
56
+ * {@example core/di/ts/injector_spec.ts region='ShakableInjectionToken'}
51
57
  *
52
58
  * @publicApi
53
59
  */
@@ -491,12 +491,12 @@ export interface Component extends Directive {
491
491
  animations?: any[];
492
492
  /**
493
493
  * An encapsulation policy for the template and CSS styles. One of:
494
- * - `ViewEncapsulation.Native`: Use shadow roots. This works
495
- * only if natively available on the platform.
494
+ * - `ViewEncapsulation.Native`: Deprecated. Use `ViewEncapsulation.ShadowDom` instead.
496
495
  * - `ViewEncapsulation.Emulated`: Use shimmed CSS that
497
496
  * emulates the native behavior.
498
497
  * - `ViewEncapsulation.None`: Use global CSS without any
499
498
  * encapsulation.
499
+ * - `ViewEncapsulation.ShadowDom`: Use Shadow DOM v1 to encapsulate styles.
500
500
  *
501
501
  * If not supplied, the value is taken from `CompilerOptions`. The default compiler option is
502
502
  * `ViewEncapsulation.Emulated`.
@@ -208,7 +208,7 @@ export interface NgModule {
208
208
  *
209
209
  * ### Example
210
210
  *
211
- * The following example allows MainModule to use anthing exported by
211
+ * The following example allows MainModule to use anything exported by
212
212
  * `CommonModule`:
213
213
  *
214
214
  * ```javascript
@@ -10,7 +10,7 @@
10
10
  * We do this by defining a subset of DOM API to be the renderer and than
11
11
  * use that time for rendering.
12
12
  *
13
- * At runtime we can than use the DOM api directly, in server or web-worker
13
+ * At runtime we can then use the DOM api directly, in server or web-worker
14
14
  * it will be easy to implement such API.
15
15
  */
16
16
  import { RendererStyleFlags2, RendererType2 } from '../../render/api';
package/testing.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v7.2.9
2
+ * @license Angular v7.2.13
3
3
  * (c) 2010-2019 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */