@angular/core 14.1.0-next.4 → 14.1.0-rc.0

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 (32) hide show
  1. package/esm2020/src/application_ref.mjs +10 -6
  2. package/esm2020/src/change_detection/change_detector_ref.mjs +1 -1
  3. package/esm2020/src/core.mjs +2 -2
  4. package/esm2020/src/debug/debug_node.mjs +2 -2
  5. package/esm2020/src/di/injector_token.mjs +2 -2
  6. package/esm2020/src/linker/ng_module_factory.mjs +2 -2
  7. package/esm2020/src/linker/view_container_ref.mjs +2 -2
  8. package/esm2020/src/render3/features/standalone_feature.mjs +2 -2
  9. package/esm2020/src/render3/index.mjs +2 -2
  10. package/esm2020/src/render3/instructions/change_detection.mjs +2 -20
  11. package/esm2020/src/render3/instructions/property_interpolation.mjs +2 -2
  12. package/esm2020/src/render3/interfaces/i18n.mjs +2 -2
  13. package/esm2020/src/render3/interfaces/styling.mjs +1 -1
  14. package/esm2020/src/render3/interfaces/view.mjs +1 -1
  15. package/esm2020/src/render3/ng_module_ref.mjs +12 -2
  16. package/esm2020/src/version.mjs +1 -1
  17. package/esm2020/src/zone/ng_zone.mjs +5 -1
  18. package/esm2020/testing/src/logger.mjs +3 -3
  19. package/esm2020/testing/src/ng_zone_mock.mjs +3 -3
  20. package/fesm2015/core.mjs +31 -32
  21. package/fesm2015/core.mjs.map +1 -1
  22. package/fesm2015/testing.mjs +21 -28
  23. package/fesm2015/testing.mjs.map +1 -1
  24. package/fesm2020/core.mjs +31 -32
  25. package/fesm2020/core.mjs.map +1 -1
  26. package/fesm2020/testing.mjs +21 -28
  27. package/fesm2020/testing.mjs.map +1 -1
  28. package/index.d.ts +27 -12
  29. package/package.json +1 -1
  30. package/schematics/migrations/typed-forms/util.js +2 -2
  31. package/schematics/utils/typescript/symbol.js +2 -2
  32. package/testing/index.d.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v14.1.0-next.4
2
+ * @license Angular v14.1.0-rc.0
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -366,7 +366,7 @@ function fakeAsync(fn) {
366
366
  *
367
367
  * @publicApi
368
368
  */
369
- function tick$1(millis = 0, tickOptions = {
369
+ function tick(millis = 0, tickOptions = {
370
370
  processNewMacroTasksSynchronously: true
371
371
  }) {
372
372
  if (fakeAsyncTestModule) {
@@ -9284,7 +9284,7 @@ function isClassProvider(value) {
9284
9284
  * @publicApi
9285
9285
  */
9286
9286
  const INJECTOR = new InjectionToken('INJECTOR',
9287
- // Dissable tslint because this is const enum which gets inlined not top level prop access.
9287
+ // Disable tslint because this is const enum which gets inlined not top level prop access.
9288
9288
  // tslint:disable-next-line: no-toplevel-property-access
9289
9289
  -1 /* InjectorMarkers.Injector */);
9290
9290
 
@@ -14642,23 +14642,6 @@ function markDirty(component) {
14642
14642
  ngDevMode && assertDefined(rootView[CONTEXT], 'rootContext should be defined');
14643
14643
  scheduleTick(rootView[CONTEXT], 1 /* RootContextFlags.DetectChanges */);
14644
14644
  }
14645
- /**
14646
- * Used to perform change detection on the whole application.
14647
- *
14648
- * This is equivalent to `detectChanges`, but invoked on root component. Additionally, `tick`
14649
- * executes lifecycle hooks and conditionally checks components based on their
14650
- * `ChangeDetectionStrategy` and dirtiness.
14651
- *
14652
- * The preferred way to trigger change detection is to call `markDirty`. `markDirty` internally
14653
- * schedules `tick` using a scheduler in order to coalesce multiple `markDirty` calls into a
14654
- * single change detection run. By default, the scheduler is `requestAnimationFrame`, but can
14655
- * be changed when calling `renderComponent` and providing the `scheduler` option.
14656
- */
14657
- function tick(component) {
14658
- const rootView = getRootView(component);
14659
- const rootContext = rootView[CONTEXT];
14660
- tickRootContext(rootContext);
14661
- }
14662
14645
 
14663
14646
  /**
14664
14647
  * @license
@@ -15908,7 +15891,7 @@ function ɵɵpropertyInterpolate8(propName, prefix, v0, i0, v1, i1, v2, i2, v3,
15908
15891
  * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.
15909
15892
  *
15910
15893
  * @param propName The name of the property to update.
15911
- * @param values The collection of values and the strings inbetween those values, beginning with a
15894
+ * @param values The collection of values and the strings in between those values, beginning with a
15912
15895
  * string prefix and ending with a string suffix.
15913
15896
  * (e.g. `['prefix', value0, '-', value1, '-', value2, ..., value99, 'suffix']`)
15914
15897
  * @param sanitizer An optional sanitizer function
@@ -18975,7 +18958,7 @@ var I18nCreateOpCode;
18975
18958
  */
18976
18959
  I18nCreateOpCode[I18nCreateOpCode["SHIFT"] = 2] = "SHIFT";
18977
18960
  /**
18978
- * Should the node be appended to parent imedditatly after creation.
18961
+ * Should the node be appended to parent immediately after creation.
18979
18962
  */
18980
18963
  I18nCreateOpCode[I18nCreateOpCode["APPEND_EAGERLY"] = 1] = "APPEND_EAGERLY";
18981
18964
  /**
@@ -21216,7 +21199,7 @@ class NgModuleRef$1 {
21216
21199
  * JIT mode. See [JIT API changes due to ViewEngine deprecation](guide/deprecations#jit-api-changes)
21217
21200
  * for additional context. Angular provides APIs that accept NgModule classes directly (such as
21218
21201
  * [PlatformRef.bootstrapModule](api/core/PlatformRef#bootstrapModule) and
21219
- * [createNgModuleRef](api/core/createNgModuleRef)), consider switching to those APIs instead of
21202
+ * [createNgModule](api/core/createNgModule)), consider switching to those APIs instead of
21220
21203
  * using factory-based ones.
21221
21204
  */
21222
21205
  class NgModuleFactory$1 {
@@ -21404,7 +21387,7 @@ class Version {
21404
21387
  /**
21405
21388
  * @publicApi
21406
21389
  */
21407
- const VERSION = new Version('14.1.0-next.4');
21390
+ const VERSION = new Version('14.1.0-rc.0');
21408
21391
 
21409
21392
  /**
21410
21393
  * @license
@@ -22007,14 +21990,24 @@ class ComponentRef extends ComponentRef$1 {
22007
21990
  */
22008
21991
  /**
22009
21992
  * Returns a new NgModuleRef instance based on the NgModule class and parent injector provided.
21993
+ *
22010
21994
  * @param ngModule NgModule class.
22011
21995
  * @param parentInjector Optional injector instance to use as a parent for the module injector. If
22012
21996
  * not provided, `NullInjector` will be used instead.
21997
+ * @returns NgModuleRef that represents an NgModule instance.
21998
+ *
22013
21999
  * @publicApi
22014
22000
  */
22015
- function createNgModuleRef(ngModule, parentInjector) {
22001
+ function createNgModule(ngModule, parentInjector) {
22016
22002
  return new NgModuleRef(ngModule, parentInjector !== null && parentInjector !== void 0 ? parentInjector : null);
22017
22003
  }
22004
+ /**
22005
+ * The `createNgModule` function alias for backwards-compatibility.
22006
+ * Please avoid using it directly and use `createNgModule` instead.
22007
+ *
22008
+ * @deprecated Use `createNgModule` instead.
22009
+ */
22010
+ const createNgModuleRef = createNgModule;
22018
22011
  class NgModuleRef extends NgModuleRef$1 {
22019
22012
  constructor(ngModuleType, _parent) {
22020
22013
  super();
@@ -22167,7 +22160,7 @@ StandaloneService.ɵprov = ɵɵdefineInjectable({
22167
22160
  /**
22168
22161
  * A feature that acts as a setup code for the {@link StandaloneService}.
22169
22162
  *
22170
- * The most important responsaibility of this feature is to expose the "getStandaloneInjector"
22163
+ * The most important responsibility of this feature is to expose the "getStandaloneInjector"
22171
22164
  * function (an entry points to a standalone injector creation) on a component definition object. We
22172
22165
  * go through the features infrastructure to make sure that the standalone injector creation logic
22173
22166
  * is tree-shakable and not included in applications that don't use standalone components.
@@ -23629,7 +23622,7 @@ const R3ViewContainerRef = class ViewContainerRef extends VE_ViewContainerRef {
23629
23622
  // so that a component can use DI tokens provided in MgModules. For this reason, we can not
23630
23623
  // rely on the provided injector, since it might be detached from the DI tree (for example, if
23631
23624
  // it was created via `Injector.create` without specifying a parent injector, or if an
23632
- // injector is retrieved from an `NgModuleRef` created via `createNgModuleRef` using an
23625
+ // injector is retrieved from an `NgModuleRef` created via `createNgModule` using an
23633
23626
  // NgModule outside of a module tree). Instead, we always use `ViewContainerRef`'s parent
23634
23627
  // injector, which is normally connected to the DI tree, which includes module injector
23635
23628
  // subtree.
@@ -26661,5 +26654,5 @@ const __core_private_testing_placeholder__ = '';
26661
26654
  * Generated bundle index. Do not edit.
26662
26655
  */
26663
26656
 
26664
- export { ComponentFixture, ComponentFixtureAutoDetect, ComponentFixtureNoNgZone, InjectSetupWrapper, TestBed, TestComponentRenderer, __core_private_testing_placeholder__, async, discardPeriodicTasks, fakeAsync, flush, flushMicrotasks, getTestBed, inject, resetFakeAsyncZone, tick$1 as tick, waitForAsync, withModule, MetadataOverrider as ɵMetadataOverrider };
26657
+ export { ComponentFixture, ComponentFixtureAutoDetect, ComponentFixtureNoNgZone, InjectSetupWrapper, TestBed, TestComponentRenderer, __core_private_testing_placeholder__, async, discardPeriodicTasks, fakeAsync, flush, flushMicrotasks, getTestBed, inject, resetFakeAsyncZone, tick, waitForAsync, withModule, MetadataOverrider as ɵMetadataOverrider };
26665
26658
  //# sourceMappingURL=testing.mjs.map