@angular/core 20.1.0-next.1 → 20.1.0-next.2
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/api.d-Dwpmmn5j.d.ts +1 -1
- package/chrome_dev_tools_performance.d-Dk_7kdX9.d.ts +1 -1
- package/discovery.d-AiW64LSq.d.ts +1 -1
- package/event_dispatcher.d-BReQpZfC.d.ts +1 -1
- package/fesm2022/attribute-BWp59EjE.mjs +1 -1
- package/fesm2022/core.mjs +14 -16
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/{debug_node-CGQXW8qF.mjs → debug_node-BFi6TVHr.mjs} +10 -13
- package/fesm2022/debug_node-BFi6TVHr.mjs.map +1 -0
- package/fesm2022/primitives/di.mjs +1 -1
- package/fesm2022/primitives/event-dispatch.mjs +1 -1
- package/fesm2022/primitives/signals.mjs +1 -1
- package/fesm2022/{resource-CIODajJI.mjs → resource-BwChsGJq.mjs} +3 -3
- package/fesm2022/{resource-CIODajJI.mjs.map → resource-BwChsGJq.mjs.map} +1 -1
- package/fesm2022/{root_effect_scheduler-BvK6bnZD.mjs → root_effect_scheduler-BkoRKl64.mjs} +10 -3
- package/fesm2022/{root_effect_scheduler-BvK6bnZD.mjs.map → root_effect_scheduler-BkoRKl64.mjs.map} +1 -1
- package/fesm2022/rxjs-interop.mjs +3 -3
- package/fesm2022/signal-nCiHhWf6.mjs +1 -1
- package/fesm2022/testing.mjs +7 -7
- package/fesm2022/testing.mjs.map +1 -1
- package/fesm2022/untracked-DmD_2MlC.mjs +1 -1
- package/fesm2022/weak_ref-BaIq-pgY.mjs +1 -1
- package/graph.d-BcIOep_B.d.ts +1 -1
- package/index.d.ts +1 -4
- package/package.json +2 -2
- package/primitives/di/index.d.ts +1 -1
- package/primitives/event-dispatch/index.d.ts +1 -1
- package/primitives/signals/index.d.ts +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/bundles/apply_import_manager-BsIRDO9W.cjs +1 -1
- package/schematics/bundles/checker-CY7a8ko8.cjs +2 -2
- package/schematics/bundles/cleanup-unused-imports.cjs +31 -17
- package/schematics/bundles/compiler_host-DNYQkH4l.cjs +1 -1
- package/schematics/bundles/control-flow-migration.cjs +1 -1
- package/schematics/bundles/document-core.cjs +1 -1
- package/schematics/bundles/imports-CIX-JgAN.cjs +1 -1
- package/schematics/bundles/index-BJ3PYYwQ.cjs +1 -1
- package/schematics/bundles/index-BUgQDm-J.cjs +11 -11
- package/schematics/bundles/inject-flags.cjs +1 -1
- package/schematics/bundles/inject-migration.cjs +7 -2
- package/schematics/bundles/leading_space-D9nQ8UQC.cjs +1 -1
- package/schematics/bundles/migrate_ts_type_references-MBd4NBjn.cjs +1 -1
- package/schematics/bundles/ng_decorators-B5HCqr20.cjs +1 -1
- package/schematics/bundles/nodes-B16H9JUd.cjs +1 -1
- package/schematics/bundles/output-migration.cjs +1 -1
- package/schematics/bundles/project_paths-C5Df24y1.cjs +1 -1
- package/schematics/bundles/project_tsconfig_paths-CDVxT6Ov.cjs +1 -1
- package/schematics/bundles/property_name-BBwFuqMe.cjs +1 -1
- package/schematics/bundles/route-lazy-loading.cjs +1 -1
- package/schematics/bundles/self-closing-tags-migration.cjs +1 -1
- package/schematics/bundles/signal-input-migration.cjs +1 -1
- package/schematics/bundles/signal-queries-migration.cjs +1 -1
- package/schematics/bundles/signals.cjs +1 -1
- package/schematics/bundles/standalone-migration.cjs +1 -1
- package/schematics/bundles/symbol-VPWguRxr.cjs +1 -1
- package/schematics/bundles/test-bed-get.cjs +1 -1
- package/signal.d-BcmOdASA.d.ts +1 -1
- package/testing/index.d.ts +13 -4
- package/weak_ref.d-eGOEP9S1.d.ts +1 -1
- package/fesm2022/debug_node-CGQXW8qF.mjs.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.1.0-next.
|
|
2
|
+
* @license Angular v20.1.0-next.2
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import { Observable, ReplaySubject } from 'rxjs';
|
|
8
8
|
import { takeUntil } from 'rxjs/operators';
|
|
9
|
-
import { assertInInjectionContext, inject, DestroyRef, RuntimeError, Injector, assertNotInReactiveContext, signal, PendingTasks } from './root_effect_scheduler-
|
|
10
|
-
import { getOutputDestroyRef, effect, untracked, computed, resource, encapsulateResourceError } from './resource-
|
|
9
|
+
import { assertInInjectionContext, inject, DestroyRef, RuntimeError, Injector, assertNotInReactiveContext, signal, PendingTasks } from './root_effect_scheduler-BkoRKl64.mjs';
|
|
10
|
+
import { getOutputDestroyRef, effect, untracked, computed, resource, encapsulateResourceError } from './resource-BwChsGJq.mjs';
|
|
11
11
|
import './primitives/di.mjs';
|
|
12
12
|
import './signal-nCiHhWf6.mjs';
|
|
13
13
|
import '@angular/core/primitives/di';
|
package/fesm2022/testing.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.1.0-next.
|
|
2
|
+
* @license Angular v20.1.0-next.2
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import * as i0 from '@angular/core';
|
|
8
|
-
import { NgZone, Injectable, DeferBlockState, triggerResourceLoading, renderDeferBlockState, getDeferBlocks, DeferBlockBehavior, NoopNgZone, ApplicationRef, getDebugNode, RendererFactory2, Directive, Component, Pipe, NgModule, ReflectionCapabilities, depsTracker, isComponentDefPendingResolution, resolveComponentResources, NgModuleRef, ApplicationInitStatus, LOCALE_ID, DEFAULT_LOCALE_ID, setLocaleId, ComponentFactory, getAsyncClassMetadataFn, compileComponent, compileDirective, compilePipe, patchComponentDefWithScope, compileNgModuleDefs, clearResolutionOfComponentResourcesQueue, restoreComponentResolutionQueue, internalProvideZoneChangeDetection, ChangeDetectionSchedulerImpl, COMPILER_OPTIONS, generateStandaloneInDeclarationsError, transitiveScopesFor, Compiler, DEFER_BLOCK_CONFIG, NgModuleFactory, ModuleWithComponentFactories, resetCompiledComponents, ɵsetUnknownElementStrictMode as _setUnknownElementStrictMode, ɵsetUnknownPropertyStrictMode as _setUnknownPropertyStrictMode, ɵgetUnknownElementStrictMode as _getUnknownElementStrictMode, ɵgetUnknownPropertyStrictMode as _getUnknownPropertyStrictMode, flushModuleScopingQueueAsMuchAsPossible, setAllowDuplicateNgModuleIdsForTest } from './debug_node-
|
|
8
|
+
import { NgZone, Injectable, DeferBlockState, triggerResourceLoading, renderDeferBlockState, getDeferBlocks, DeferBlockBehavior, NoopNgZone, ApplicationRef, getDebugNode, RendererFactory2, Directive, Component, Pipe, NgModule, ReflectionCapabilities, depsTracker, isComponentDefPendingResolution, resolveComponentResources, NgModuleRef, ApplicationInitStatus, LOCALE_ID, DEFAULT_LOCALE_ID, setLocaleId, ComponentFactory, getAsyncClassMetadataFn, compileComponent, compileDirective, compilePipe, patchComponentDefWithScope, compileNgModuleDefs, clearResolutionOfComponentResourcesQueue, restoreComponentResolutionQueue, internalProvideZoneChangeDetection, ChangeDetectionSchedulerImpl, COMPILER_OPTIONS, generateStandaloneInDeclarationsError, transitiveScopesFor, Compiler, DEFER_BLOCK_CONFIG, NgModuleFactory, ModuleWithComponentFactories, resetCompiledComponents, ɵsetUnknownElementStrictMode as _setUnknownElementStrictMode, ɵsetUnknownPropertyStrictMode as _setUnknownPropertyStrictMode, ɵgetUnknownElementStrictMode as _getUnknownElementStrictMode, ɵgetUnknownPropertyStrictMode as _getUnknownPropertyStrictMode, flushModuleScopingQueueAsMuchAsPossible, setAllowDuplicateNgModuleIdsForTest } from './debug_node-BFi6TVHr.mjs';
|
|
9
9
|
import { Subscription } from 'rxjs';
|
|
10
|
-
import { inject as inject$1, EnvironmentInjector, ErrorHandler, CONTAINER_HEADER_OFFSET, InjectionToken, PendingTasksInternal, ZONELESS_ENABLED, ChangeDetectionScheduler, EffectScheduler, stringify, getInjectableDef, resolveForwardRef, NG_COMP_DEF, NG_DIR_DEF, NG_PIPE_DEF, NG_INJ_DEF, NG_MOD_DEF, ENVIRONMENT_INITIALIZER, Injector, isEnvironmentProviders, INTERNAL_APPLICATION_ERROR_HANDLER, runInInjectionContext } from './root_effect_scheduler-
|
|
10
|
+
import { inject as inject$1, EnvironmentInjector, ErrorHandler, CONTAINER_HEADER_OFFSET, InjectionToken, PendingTasksInternal, ZONELESS_ENABLED, ChangeDetectionScheduler, EffectScheduler, stringify, getInjectableDef, resolveForwardRef, NG_COMP_DEF, NG_DIR_DEF, NG_PIPE_DEF, NG_INJ_DEF, NG_MOD_DEF, ENVIRONMENT_INITIALIZER, Injector, isEnvironmentProviders, INTERNAL_APPLICATION_ERROR_HANDLER, runInInjectionContext } from './root_effect_scheduler-BkoRKl64.mjs';
|
|
11
11
|
import { ResourceLoader } from '@angular/compiler';
|
|
12
12
|
import './signal-nCiHhWf6.mjs';
|
|
13
13
|
import '@angular/core/primitives/signals';
|
|
@@ -1834,8 +1834,8 @@ class TestBedImpl {
|
|
|
1834
1834
|
static runInInjectionContext(fn) {
|
|
1835
1835
|
return TestBedImpl.INSTANCE.runInInjectionContext(fn);
|
|
1836
1836
|
}
|
|
1837
|
-
static createComponent(component) {
|
|
1838
|
-
return TestBedImpl.INSTANCE.createComponent(component);
|
|
1837
|
+
static createComponent(component, options) {
|
|
1838
|
+
return TestBedImpl.INSTANCE.createComponent(component, options);
|
|
1839
1839
|
}
|
|
1840
1840
|
static resetTestingModule() {
|
|
1841
1841
|
return TestBedImpl.INSTANCE.resetTestingModule();
|
|
@@ -2029,7 +2029,7 @@ class TestBedImpl {
|
|
|
2029
2029
|
overrideTemplate(component, template) {
|
|
2030
2030
|
return this.overrideComponent(component, { set: { template, templateUrl: null } });
|
|
2031
2031
|
}
|
|
2032
|
-
createComponent(type) {
|
|
2032
|
+
createComponent(type, options) {
|
|
2033
2033
|
const testComponentRenderer = this.inject(TestComponentRenderer);
|
|
2034
2034
|
const rootElId = `root${_nextRootElementId++}`;
|
|
2035
2035
|
testComponentRenderer.insertRootElement(rootElId);
|
|
@@ -2043,7 +2043,7 @@ class TestBedImpl {
|
|
|
2043
2043
|
}
|
|
2044
2044
|
const componentFactory = new ComponentFactory(componentDef);
|
|
2045
2045
|
const initComponent = () => {
|
|
2046
|
-
const componentRef = componentFactory.create(Injector.NULL, [], `#${rootElId}`, this.testModuleRef);
|
|
2046
|
+
const componentRef = componentFactory.create(Injector.NULL, [], `#${rootElId}`, this.testModuleRef, undefined, options?.bindings);
|
|
2047
2047
|
return this.runInInjectionContext(() => new ComponentFixture(componentRef));
|
|
2048
2048
|
};
|
|
2049
2049
|
const noNgZone = this.inject(ComponentFixtureNoNgZone, false);
|