@angular/core 8.2.0 → 8.2.4

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 (53) hide show
  1. package/bundles/core-testing.umd.js +94 -1
  2. package/bundles/core-testing.umd.js.map +1 -1
  3. package/bundles/core-testing.umd.min.js +3 -2
  4. package/bundles/core-testing.umd.min.js.map +1 -1
  5. package/bundles/core.umd.js +427 -60
  6. package/bundles/core.umd.js.map +1 -1
  7. package/bundles/core.umd.min.js +136 -156
  8. package/bundles/core.umd.min.js.map +1 -1
  9. package/core.d.ts +18 -8
  10. package/core.metadata.json +1 -1
  11. package/esm2015/core.externs.js +4 -4
  12. package/esm2015/index.js +1 -1
  13. package/esm2015/public_api.js +1 -1
  14. package/esm2015/src/application_module.js +11 -2
  15. package/esm2015/src/application_ref.js +9 -5
  16. package/esm2015/src/core.js +3 -3
  17. package/esm2015/src/core_private_export.js +2 -1
  18. package/esm2015/src/core_render3_private_export.js +2 -2
  19. package/esm2015/src/event_emitter.js +9 -4
  20. package/esm2015/src/i18n/localization.js +6 -1
  21. package/esm2015/src/metadata/directives.js +1 -1
  22. package/esm2015/src/render3/i18n.js +6 -5
  23. package/esm2015/src/render3/index.js +2 -2
  24. package/esm2015/src/version.js +1 -1
  25. package/esm5/src/application_module.js +11 -2
  26. package/esm5/src/application_ref.js +8 -4
  27. package/esm5/src/core_private_export.js +2 -1
  28. package/esm5/src/core_render3_private_export.js +2 -2
  29. package/esm5/src/event_emitter.js +9 -4
  30. package/esm5/src/i18n/localization.js +5 -1
  31. package/esm5/src/metadata/directives.js +1 -1
  32. package/esm5/src/render3/i18n.js +6 -4
  33. package/esm5/src/render3/index.js +2 -2
  34. package/esm5/src/version.js +1 -1
  35. package/fesm2015/core.js +7363 -69
  36. package/fesm2015/core.js.map +1 -1
  37. package/fesm2015/testing.js +593 -2
  38. package/fesm2015/testing.js.map +1 -1
  39. package/fesm5/core.js +327 -58
  40. package/fesm5/core.js.map +1 -1
  41. package/fesm5/testing.js +15 -2
  42. package/fesm5/testing.js.map +1 -1
  43. package/package.json +1 -1
  44. package/schematics/migrations/static-queries/strategies/usage_strategy/usage_strategy.js +5 -5
  45. package/src/r3_symbols.d.ts +1 -1
  46. package/testing/testing.d.ts +1 -1
  47. package/testing.d.ts +1 -1
  48. package/schematics/migrations/injectable-pipe/angular/injectable_pipe_visitor.d.ts +0 -30
  49. package/schematics/migrations/injectable-pipe/angular/injectable_pipe_visitor.js +0 -68
  50. package/schematics/migrations/injectable-pipe/index.d.ts +0 -14
  51. package/schematics/migrations/injectable-pipe/index.js +0 -85
  52. package/schematics/migrations/injectable-pipe/util.d.ts +0 -19
  53. package/schematics/migrations/injectable-pipe/util.js +0 -44
package/fesm5/testing.js CHANGED
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license Angular v8.2.0
2
+ * @license Angular v8.2.4
3
3
  * (c) 2010-2019 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
7
- import { RendererFactory2, getDebugNode, InjectionToken, ɵstringify, ɵReflectionCapabilities, Directive, Component, Pipe, NgModule, COMPILER_OPTIONS, ɵcompileNgModuleDefs, ɵNgModuleFactory, ɵgetInjectableDef, ɵNG_COMPONENT_DEF, ɵRender3NgModuleRef, LOCALE_ID, ɵDEFAULT_LOCALE_ID, ɵsetLocaleId, ApplicationInitStatus, ɵRender3ComponentFactory, ɵcompileComponent, ɵNG_DIRECTIVE_DEF, ɵcompileDirective, ɵNG_PIPE_DEF, ɵcompilePipe, ɵpatchComponentDefWithScope, ɵNG_INJECTOR_DEF, ɵNG_MODULE_DEF, NgZone, Compiler, ɵtransitiveScopesFor, ModuleWithComponentFactories, ɵresetCompiledComponents, Injector, InjectFlags, ɵflushModuleScopingQueueAsMuchAsPossible, Injectable, ɵclearOverrides, ɵoverrideComponentView, ɵAPP_ROOT, ɵoverrideProvider, ɵivyEnabled, Optional, SkipSelf } from '@angular/core';
7
+ import { getDebugNode, RendererFactory2, InjectionToken, ɵstringify, ɵReflectionCapabilities, Directive, Component, Pipe, NgModule, ɵgetInjectableDef, ɵNG_COMPONENT_DEF, ɵRender3NgModuleRef, LOCALE_ID, ɵDEFAULT_LOCALE_ID, ɵsetLocaleId, ApplicationInitStatus, ɵRender3ComponentFactory, ɵcompileComponent, ɵNG_DIRECTIVE_DEF, ɵcompileDirective, ɵNG_PIPE_DEF, ɵcompilePipe, ɵtransitiveScopesFor, ɵpatchComponentDefWithScope, ɵNG_INJECTOR_DEF, ɵNG_MODULE_DEF, ɵcompileNgModuleDefs, NgZone, Compiler, COMPILER_OPTIONS, ɵNgModuleFactory, ModuleWithComponentFactories, Injector, InjectFlags, ɵresetCompiledComponents, ɵflushModuleScopingQueueAsMuchAsPossible, Injectable, ɵclearOverrides, ɵoverrideComponentView, ɵAPP_ROOT, Optional, SkipSelf, ɵoverrideProvider, ɵivyEnabled } from '@angular/core';
8
8
  import { __read, __extends, __spread, __awaiter, __generator, __values, __decorate } from 'tslib';
9
9
  import { ResourceLoader } from '@angular/compiler';
10
10
 
@@ -731,9 +731,19 @@ function resolveComponentResources(resourceResolver) {
731
731
  var componentResourceResolutionQueue = new Map();
732
732
  // Track when existing ngComponentDef for a Type is waiting on resources.
733
733
  var componentDefPendingResolution = new Set();
734
+ function maybeQueueResolutionOfComponentResources(type, metadata) {
735
+ if (componentNeedsResolution(metadata)) {
736
+ componentResourceResolutionQueue.set(type, metadata);
737
+ componentDefPendingResolution.add(type);
738
+ }
739
+ }
734
740
  function isComponentDefPendingResolution(type) {
735
741
  return componentDefPendingResolution.has(type);
736
742
  }
743
+ function componentNeedsResolution(component) {
744
+ return !!((component.templateUrl && !component.hasOwnProperty('template')) ||
745
+ component.styleUrls && component.styleUrls.length);
746
+ }
737
747
  function clearResolutionOfComponentResourcesQueue() {
738
748
  var old = componentResourceResolutionQueue;
739
749
  componentResourceResolutionQueue = new Map();
@@ -744,6 +754,9 @@ function restoreComponentResolutionQueue(queue) {
744
754
  queue.forEach(function (_, type) { return componentDefPendingResolution.add(type); });
745
755
  componentResourceResolutionQueue = queue;
746
756
  }
757
+ function isComponentResourceResolutionQueueEmpty() {
758
+ return componentResourceResolutionQueue.size === 0;
759
+ }
747
760
  function unwrapResponse(response) {
748
761
  return typeof response == 'string' ? response : response.text();
749
762
  }