Skip to content

Commit 3693687

Browse files
JeanMecheatscott
authored andcommitted
refactor(core): remove createNgModuleRef
`createNgModuleRef` was aliased to `createNgModule` BREAKING CHANGE: `createNgModuleRef` was removed, use `createNgModule` instead
1 parent 9fe820d commit 3693687

File tree

2 files changed

+72
-79
lines changed

2 files changed

+72
-79
lines changed

goldens/public-api/core/index.api.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -481,9 +481,6 @@ export function createEnvironmentInjector(providers: Array<Provider | Environmen
481481
// @public
482482
export function createNgModule<T>(ngModule: Type<T>, parentInjector?: Injector): NgModuleRef<T>;
483483

484-
// @public @deprecated
485-
export const createNgModuleRef: typeof createNgModule;
486-
487484
// @public
488485
export function createPlatform(injector: Injector): PlatformRef;
489486

packages/core/src/core.ts

Lines changed: 72 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -17,121 +17,117 @@ export * from './authoring';
1717
// JSCompiler's conformance requirement for inferred const exports. See:
1818
// https://docs.google.com/document/d/1RXb1wYwsbJotO1KBgSDsAtKpduGmIHod9ADxuXcAvV4/edit?tab=t.0
1919
export {input} from './authoring/input/input';
20-
export {contentChild, contentChildren, viewChild, viewChildren} from './authoring/queries';
2120
export {model} from './authoring/model/model';
21+
export {contentChild, contentChildren, viewChild, viewChildren} from './authoring/queries';
2222

23-
export * from './metadata';
24-
export * from './version';
25-
export {TypeDecorator} from './util/decorators';
26-
export * from './di';
2723
export {
28-
BootstrapOptions,
29-
ApplicationRef,
30-
APP_BOOTSTRAP_LISTENER,
31-
} from './application/application_ref';
32-
export {PlatformRef} from './platform/platform_ref';
24+
AnimationCallbackEvent,
25+
AnimationFunction,
26+
MAX_ANIMATION_TIMEOUT,
27+
} from './animation/interfaces';
28+
export {ApplicationConfig, mergeApplicationConfig} from './application/application_config';
3329
export {
34-
createPlatform,
35-
createPlatformFactory,
36-
assertPlatform,
37-
destroyPlatform,
38-
getPlatform,
39-
providePlatformInitializer,
40-
createOrReusePlatformInjector as ɵcreateOrReusePlatformInjector,
41-
} from './platform/platform';
30+
APP_INITIALIZER,
31+
ApplicationInitStatus,
32+
provideAppInitializer,
33+
} from './application/application_init';
34+
export {ApplicationModule} from './application/application_module';
4235
export {
43-
provideZoneChangeDetection,
44-
NgZoneOptions,
45-
} from './change_detection/scheduling/ng_zone_scheduling';
46-
export {provideZonelessChangeDetection} from './change_detection/scheduling/zoneless_scheduling_impl';
47-
export {PendingTasks} from './pending_tasks';
48-
export {provideCheckNoChangesConfig} from './change_detection/provide_check_no_changes_config';
49-
export {enableProdMode, isDevMode} from './util/is_dev_mode';
36+
APP_BOOTSTRAP_LISTENER,
37+
ApplicationRef,
38+
BootstrapOptions,
39+
} from './application/application_ref';
5040
export {
51-
APP_ID,
52-
PLATFORM_INITIALIZER,
53-
PLATFORM_ID,
5441
ANIMATION_MODULE_TYPE,
42+
APP_ID,
5543
CSP_NONCE,
44+
PLATFORM_ID,
45+
PLATFORM_INITIALIZER,
5646
} from './application/application_tokens';
47+
export {REQUEST, REQUEST_CONTEXT, RESPONSE_INIT, ResponseInit} from './application/platform_tokens';
5748
export {provideStabilityDebugging} from './application/stability_debug_impl';
49+
export * from './change_detection';
50+
export {provideCheckNoChangesConfig} from './change_detection/provide_check_no_changes_config';
5851
export {
59-
APP_INITIALIZER,
60-
ApplicationInitStatus,
61-
provideAppInitializer,
62-
} from './application/application_init';
63-
export * from './zone';
64-
export * from './render';
65-
export * from './linker';
66-
export * from './linker/ng_module_factory_loader_impl';
52+
NgZoneOptions,
53+
provideZoneChangeDetection,
54+
} from './change_detection/scheduling/ng_zone_scheduling';
55+
export {provideZonelessChangeDetection} from './change_detection/scheduling/zoneless_scheduling_impl';
56+
export * from './core_private_export';
57+
export * from './core_reactivity_export';
58+
export * from './core_render3_private_export';
6759
export {
60+
asNativeElements,
6861
DebugElement,
6962
DebugEventListener,
7063
DebugNode,
71-
asNativeElements,
7264
getDebugNode,
7365
Predicate,
7466
} from './debug/debug_node';
67+
export {IdleService, provideIdleServiceWith} from './defer/idle_service';
68+
export * from './di';
69+
export {DOCUMENT} from './document';
70+
export {ErrorHandler, provideBrowserGlobalErrorListeners} from './error_handler';
71+
export {EventEmitter} from './event_emitter';
7572
export {
76-
GetTestability,
77-
Testability,
78-
TestabilityRegistry,
79-
setTestabilityGetter,
80-
} from './testability/testability';
81-
export * from './change_detection';
82-
export * from './platform/platform_core_providers';
83-
export {
84-
TRANSLATIONS,
85-
TRANSLATIONS_FORMAT,
86-
LOCALE_ID,
8773
DEFAULT_CURRENCY_CODE,
74+
LOCALE_ID,
8875
MissingTranslationStrategy,
76+
TRANSLATIONS,
77+
TRANSLATIONS_FORMAT,
8978
} from './i18n/tokens';
90-
export {ApplicationModule} from './application/application_module';
9179
export {AbstractType, Type} from './interface/type';
92-
export {EventEmitter} from './event_emitter';
93-
export {ErrorHandler, provideBrowserGlobalErrorListeners} from './error_handler';
94-
export * from './core_private_export';
95-
export * from './core_render3_private_export';
96-
export * from './core_reactivity_export';
97-
export * from './resource';
98-
export {SecurityContext} from './sanitization/security';
99-
export {Sanitizer} from './sanitization/sanitizer';
80+
export * from './linker';
81+
export * from './linker/ng_module_factory_loader_impl';
82+
export * from './metadata';
83+
export {provideNgReflectAttributes} from './ng_reflect';
84+
export {PendingTasks} from './pending_tasks';
10085
export {
101-
createNgModule,
102-
createNgModuleRef,
103-
createEnvironmentInjector,
104-
} from './render3/ng_module_ref';
105-
export {createComponent, reflectComponentType, ComponentMirror} from './render3/component';
106-
export {isStandalone} from './render3/def_getters';
86+
assertPlatform,
87+
createPlatform,
88+
createPlatformFactory,
89+
destroyPlatform,
90+
getPlatform,
91+
providePlatformInitializer,
92+
createOrReusePlatformInjector as ɵcreateOrReusePlatformInjector,
93+
} from './platform/platform';
94+
export * from './platform/platform_core_providers';
95+
export {PlatformRef} from './platform/platform_ref';
96+
export * from './render';
10797
export {AfterRenderRef} from './render3/after_render/api';
108-
export {publishExternalGlobalUtil as ɵpublishExternalGlobalUtil} from './render3/util/global_utils';
109-
export {enableProfiling} from './render3/debug/chrome_dev_tools_performance';
11098
export {
111-
AfterRenderOptions,
11299
afterEveryRender,
113100
afterNextRender,
101+
AfterRenderOptions,
114102
ɵFirstAvailable,
115103
} from './render3/after_render/hooks';
104+
export {ComponentMirror, createComponent, reflectComponentType} from './render3/component';
105+
export {enableProfiling} from './render3/debug/chrome_dev_tools_performance';
106+
export {isStandalone} from './render3/def_getters';
116107
export {
117108
Binding,
118109
DirectiveWithBindings,
119110
inputBinding,
120111
outputBinding,
121112
twoWayBinding,
122113
} from './render3/dynamic_bindings';
123-
export {ApplicationConfig, mergeApplicationConfig} from './application/application_config';
114+
export {createEnvironmentInjector, createNgModule} from './render3/ng_module_ref';
115+
export {publishExternalGlobalUtil as ɵpublishExternalGlobalUtil} from './render3/util/global_utils';
116+
export * from './resource';
117+
export {Sanitizer} from './sanitization/sanitizer';
118+
export {SecurityContext} from './sanitization/security';
119+
export {
120+
GetTestability,
121+
setTestabilityGetter,
122+
Testability,
123+
TestabilityRegistry,
124+
} from './testability/testability';
124125
export {makeStateKey, StateKey, TransferState} from './transfer_state';
125126
export {booleanAttribute, numberAttribute} from './util/coercion';
126-
export {REQUEST, REQUEST_CONTEXT, RESPONSE_INIT, ResponseInit} from './application/platform_tokens';
127-
export {DOCUMENT} from './document';
128-
export {provideNgReflectAttributes} from './ng_reflect';
129-
export {
130-
AnimationCallbackEvent,
131-
AnimationFunction,
132-
MAX_ANIMATION_TIMEOUT,
133-
} from './animation/interfaces';
134-
export {IdleService, provideIdleServiceWith} from './defer/idle_service';
127+
export {TypeDecorator} from './util/decorators';
128+
export {enableProdMode, isDevMode} from './util/is_dev_mode';
129+
export * from './version';
130+
export * from './zone';
135131

136132
import {global} from './util/global';
137133
if (typeof ngDevMode !== 'undefined' && ngDevMode) {

0 commit comments

Comments
 (0)