@angular/core 8.0.0-rc.3 → 8.0.1
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.
- package/bundles/core-testing.umd.js +1 -24
- package/bundles/core-testing.umd.js.map +1 -1
- package/bundles/core-testing.umd.min.js +13 -13
- package/bundles/core-testing.umd.min.js.map +1 -1
- package/bundles/core.umd.js +123 -93
- package/bundles/core.umd.js.map +1 -1
- package/bundles/core.umd.min.js +116 -131
- package/bundles/core.umd.min.js.map +1 -1
- package/core.d.ts +32 -15
- package/core.metadata.json +1 -1
- package/esm2015/src/core_private_export.js +1 -1
- package/esm2015/src/di/injectable.js +1 -1
- package/esm2015/src/di/injector.js +3 -5
- package/esm2015/src/di/interface/defs.js +2 -2
- package/esm2015/src/di/jit/injectable.js +2 -2
- package/esm2015/src/metadata/di.js +1 -1
- package/esm2015/src/profile/profile.js +5 -1
- package/esm2015/src/profile/wtf_impl.js +2 -1
- package/esm2015/src/render3/component_ref.js +2 -4
- package/esm2015/src/render3/empty.js +5 -1
- package/esm2015/src/render3/index.js +1 -1
- package/esm2015/src/render3/instructions/all.js +2 -2
- package/esm2015/src/render3/instructions/projection.js +52 -13
- package/esm2015/src/render3/instructions/shared.js +7 -2
- package/esm2015/src/render3/interfaces/injector.js +3 -4
- package/esm2015/src/render3/interfaces/projection.js +1 -1
- package/esm2015/src/render3/jit/directive.js +2 -2
- package/esm2015/src/render3/jit/environment.js +13 -8
- package/esm2015/src/render3/jit/module.js +12 -9
- package/esm2015/src/render3/jit/pipe.js +2 -2
- package/esm2015/src/render3/node_selector_matcher.js +2 -27
- package/esm2015/src/render3/styling/class_and_style_bindings.js +2 -2
- package/esm2015/src/render3/util/misc_utils.js +8 -3
- package/esm2015/src/util/array_utils.js +16 -17
- package/esm2015/src/util/empty.js +5 -1
- package/esm2015/src/util/microtask.js +2 -2
- package/esm2015/src/util/ng_i18n_closure_mode.js +5 -1
- package/esm2015/src/version.js +1 -1
- package/esm2015/testing/src/r3_test_bed.js +1 -27
- package/esm2015/testing/src/test_bed.js +1 -18
- package/esm2015/testing/src/test_bed_common.js +1 -22
- package/esm5/src/core_private_export.js +1 -1
- package/esm5/src/di/injectable.js +1 -1
- package/esm5/src/di/injector.js +3 -4
- package/esm5/src/di/interface/defs.js +2 -2
- package/esm5/src/di/jit/injectable.js +2 -2
- package/esm5/src/metadata/di.js +1 -1
- package/esm5/src/profile/profile.js +5 -1
- package/esm5/src/profile/wtf_impl.js +1 -1
- package/esm5/src/render3/component_ref.js +2 -4
- package/esm5/src/render3/empty.js +5 -1
- package/esm5/src/render3/index.js +1 -1
- package/esm5/src/render3/instructions/projection.js +49 -14
- package/esm5/src/render3/instructions/shared.js +4 -2
- package/esm5/src/render3/interfaces/injector.js +3 -3
- package/esm5/src/render3/interfaces/projection.js +1 -1
- package/esm5/src/render3/jit/directive.js +2 -2
- package/esm5/src/render3/jit/environment.js +10 -8
- package/esm5/src/render3/jit/module.js +12 -9
- package/esm5/src/render3/jit/pipe.js +2 -2
- package/esm5/src/render3/node_selector_matcher.js +2 -23
- package/esm5/src/render3/styling/class_and_style_bindings.js +2 -2
- package/esm5/src/render3/util/misc_utils.js +8 -4
- package/esm5/src/util/array_utils.js +15 -16
- package/esm5/src/util/empty.js +5 -1
- package/esm5/src/util/microtask.js +2 -2
- package/esm5/src/util/ng_i18n_closure_mode.js +5 -1
- package/esm5/src/version.js +1 -1
- package/esm5/testing/src/r3_test_bed.js +1 -17
- package/esm5/testing/src/test_bed.js +1 -8
- package/esm5/testing/src/test_bed_common.js +1 -1
- package/fesm2015/core.js +133 -98
- package/fesm2015/core.js.map +1 -1
- package/fesm2015/testing.js +1 -44
- package/fesm2015/testing.js.map +1 -1
- package/fesm5/core.js +123 -93
- package/fesm5/core.js.map +1 -1
- package/fesm5/testing.js +1 -24
- package/fesm5/testing.js.map +1 -1
- package/package.json +2 -2
- package/schematics/migrations/injectable-pipe/index.js +7 -4
- package/schematics/migrations/move-document/index.js +7 -4
- package/schematics/migrations/static-queries/angular/directive_inputs.js +3 -2
- package/schematics/migrations/static-queries/angular/ng_query_visitor.d.ts +2 -0
- package/schematics/migrations/static-queries/angular/ng_query_visitor.js +21 -7
- package/schematics/migrations/static-queries/angular/query-definition.d.ts +9 -2
- package/schematics/migrations/static-queries/angular/query-definition.js +1 -1
- package/schematics/migrations/static-queries/index.d.ts +0 -5
- package/schematics/migrations/static-queries/index.js +105 -77
- package/schematics/migrations/static-queries/strategies/template_strategy/template_strategy.d.ts +2 -2
- package/schematics/migrations/static-queries/strategies/template_strategy/template_strategy.js +10 -19
- package/schematics/migrations/static-queries/strategies/test_strategy/test_strategy.d.ts +1 -1
- package/schematics/migrations/static-queries/strategies/test_strategy/test_strategy.js +2 -2
- package/schematics/migrations/static-queries/strategies/timing-strategy.d.ts +2 -2
- package/schematics/migrations/static-queries/strategies/timing-strategy.js +1 -1
- package/schematics/migrations/static-queries/strategies/usage_strategy/declaration_usage_visitor.d.ts +28 -5
- package/schematics/migrations/static-queries/strategies/usage_strategy/declaration_usage_visitor.js +107 -11
- package/schematics/migrations/static-queries/strategies/usage_strategy/usage_strategy.d.ts +6 -1
- package/schematics/migrations/static-queries/strategies/usage_strategy/usage_strategy.js +86 -66
- package/schematics/migrations/static-queries/transform.js +13 -10
- package/schematics/migrations/template-var-assignment/index.js +9 -7
- package/schematics/utils/ng_component_template.js +2 -1
- package/schematics/utils/project_tsconfig_paths.js +5 -3
- package/src/r3_symbols.d.ts +2 -2
- package/testing/testing.d.ts +5 -84
- package/testing/testing.metadata.json +1 -1
- package/testing.d.ts +1 -1
- package/schematics/utils/typescript/visit_nodes.d.ts +0 -13
- package/schematics/utils/typescript/visit_nodes.js +0 -26
package/fesm5/testing.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v8.0.
|
|
2
|
+
* @license Angular v8.0.1
|
|
3
3
|
* (c) 2010-2019 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -1784,10 +1784,6 @@ var TestBedRender3 = /** @class */ (function () {
|
|
|
1784
1784
|
_getTestBedRender3().overrideProvider(token, provider);
|
|
1785
1785
|
return TestBedRender3;
|
|
1786
1786
|
};
|
|
1787
|
-
TestBedRender3.deprecatedOverrideProvider = function (token, provider) {
|
|
1788
|
-
_getTestBedRender3().deprecatedOverrideProvider(token, provider);
|
|
1789
|
-
return TestBedRender3;
|
|
1790
|
-
};
|
|
1791
1787
|
TestBedRender3.get = function (token, notFoundValue, flags) {
|
|
1792
1788
|
if (notFoundValue === void 0) { notFoundValue = Injector.THROW_IF_NOT_FOUND; }
|
|
1793
1789
|
if (flags === void 0) { flags = InjectFlags.Default; }
|
|
@@ -1895,18 +1891,6 @@ var TestBedRender3 = /** @class */ (function () {
|
|
|
1895
1891
|
TestBedRender3.prototype.overrideProvider = function (token, provider) {
|
|
1896
1892
|
this.compiler.overrideProvider(token, provider);
|
|
1897
1893
|
};
|
|
1898
|
-
TestBedRender3.prototype.deprecatedOverrideProvider = function (token, provider) {
|
|
1899
|
-
// HACK: This is NOT the correct implementation for deprecatedOverrideProvider.
|
|
1900
|
-
// To implement it in a backward compatible way, we would need to record some state
|
|
1901
|
-
// so we know to prevent eager instantiation of NgModules. However, we don't plan
|
|
1902
|
-
// to implement this at all since the API is deprecated and scheduled for removal
|
|
1903
|
-
// in V8. This hack is here temporarily for Ivy testing until we transition apps
|
|
1904
|
-
// inside Google to the overrideProvider API. At that point, we will be able to
|
|
1905
|
-
// remove this method entirely. In the meantime, we can use overrideProvider to
|
|
1906
|
-
// test apps with Ivy that don't care about eager instantiation. This fixes 85%
|
|
1907
|
-
// of cases in our blueprint.
|
|
1908
|
-
this.overrideProvider(token, provider);
|
|
1909
|
-
};
|
|
1910
1894
|
TestBedRender3.prototype.createComponent = function (type) {
|
|
1911
1895
|
var _this = this;
|
|
1912
1896
|
var testComponentRenderer = this.get(TestComponentRenderer);
|
|
@@ -2189,10 +2173,6 @@ var TestBedViewEngine = /** @class */ (function () {
|
|
|
2189
2173
|
_getTestBedViewEngine().overrideProvider(token, provider);
|
|
2190
2174
|
return TestBedViewEngine;
|
|
2191
2175
|
};
|
|
2192
|
-
TestBedViewEngine.deprecatedOverrideProvider = function (token, provider) {
|
|
2193
|
-
_getTestBedViewEngine().deprecatedOverrideProvider(token, provider);
|
|
2194
|
-
return TestBedViewEngine;
|
|
2195
|
-
};
|
|
2196
2176
|
TestBedViewEngine.get = function (token, notFoundValue, flags) {
|
|
2197
2177
|
if (notFoundValue === void 0) { notFoundValue = Injector.THROW_IF_NOT_FOUND; }
|
|
2198
2178
|
if (flags === void 0) { flags = InjectFlags.Default; }
|
|
@@ -2442,9 +2422,6 @@ var TestBedViewEngine = /** @class */ (function () {
|
|
|
2442
2422
|
TestBedViewEngine.prototype.overrideProvider = function (token, provider) {
|
|
2443
2423
|
this.overrideProviderImpl(token, provider);
|
|
2444
2424
|
};
|
|
2445
|
-
TestBedViewEngine.prototype.deprecatedOverrideProvider = function (token, provider) {
|
|
2446
|
-
this.overrideProviderImpl(token, provider, /* deprecated */ true);
|
|
2447
|
-
};
|
|
2448
2425
|
TestBedViewEngine.prototype.overrideProviderImpl = function (token, provider, deprecated) {
|
|
2449
2426
|
if (deprecated === void 0) { deprecated = false; }
|
|
2450
2427
|
var def = null;
|