Skip to content

Commit 2eb4ee8

Browse files
chuckjazvikerman
authored andcommitted
refactor(core): Removed depricated lockRunMode (#10763)
BREAKING CHANGE: previously deprecated lockRunMode was removed; see deprecation notice for migration instructions.
1 parent 87fe477 commit 2eb4ee8

File tree

3 files changed

+1
-15
lines changed

3 files changed

+1
-15
lines changed

modules/@angular/core/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
export * from './src/metadata';
1515
export * from './src/util';
1616
export * from './src/di';
17-
export {createPlatform, assertPlatform, disposePlatform, getPlatform, coreBootstrap, coreLoadAndBootstrap, PlatformRef, ApplicationRef, enableProdMode, lockRunMode, isDevMode, createPlatformFactory} from './src/application_ref';
17+
export {createPlatform, assertPlatform, disposePlatform, getPlatform, coreBootstrap, coreLoadAndBootstrap, PlatformRef, ApplicationRef, enableProdMode, isDevMode, createPlatformFactory} from './src/application_ref';
1818
export {APP_ID, PACKAGE_ROOT_URL, PLATFORM_INITIALIZER, APP_BOOTSTRAP_LISTENER} from './src/application_tokens';
1919
export {APP_INITIALIZER, ApplicationInitStatus} from './src/application_init';
2020
export * from './src/zone';

modules/@angular/core/src/application_ref.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,6 @@ export function enableProdMode(): void {
4646
_devMode = false;
4747
}
4848

49-
/**
50-
* Locks the run mode of Angular. After this has been called,
51-
* it can't be changed any more. I.e. `isDevMode()` will always
52-
* return the same value.
53-
*
54-
* @deprecated This is a noop now. {@link isDevMode} automatically locks the run mode on first call.
55-
*/
56-
export function lockRunMode(): void {
57-
console.warn('lockRunMode() is deprecated and not needed any more.');
58-
}
59-
6049
/**
6150
* Returns whether Angular is in development mode. After called once,
6251
* the value is locked and won't change any more.

tools/public_api_guard/core/index.d.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -782,9 +782,6 @@ export declare class KeyValueDiffers {
782782
/** @experimental */
783783
export declare const LOCALE_ID: OpaqueToken;
784784

785-
/** @deprecated */
786-
export declare function lockRunMode(): void;
787-
788785
/** @experimental */
789786
export declare class ModuleWithComponentFactories<T> {
790787
componentFactories: ComponentFactory<any>[];

0 commit comments

Comments
 (0)