Skip to content

Commit 01a1795

Browse files
JeanMechethePunderWoman
authored andcommitted
refactor(upgrade): remove getAngularLib/setAngularLib
Both functions were deprecated in v5 and are replaced by `getAngularJSGlobal`/`setAngularJSGlobal` BREAKING CHANGE: Deprecated `getAngularLib`/`setAngularLib` have been removed use `getAngularJSGlobal`/`setAngularJSGlobal` instead.
1 parent d550bf7 commit 01a1795

2 files changed

Lines changed: 2 additions & 13 deletions

File tree

goldens/public-api/upgrade/static/index.api.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,9 @@ export function downgradeModule<T>(moduleOrBootstrapFn: NgModuleFactory<T>): str
4242
// @public
4343
export function getAngularJSGlobal(): any;
4444

45-
// @public @deprecated (undocumented)
46-
export function getAngularLib(): any;
47-
4845
// @public
4946
export function setAngularJSGlobal(ng: any): void;
5047

51-
// @public @deprecated (undocumented)
52-
export function setAngularLib(ng: any): void;
53-
5448
// @public
5549
export class UpgradeComponent implements OnInit, OnChanges, DoCheck, OnDestroy {
5650
constructor(name: string, elementRef: ElementRef, injector: Injector);

packages/upgrade/static/public_api.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,13 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
export {
10-
getAngularJSGlobal,
11-
getAngularLib,
12-
setAngularJSGlobal,
13-
setAngularLib,
14-
} from '../src/common/src/angular1';
9+
export {getAngularJSGlobal, setAngularJSGlobal} from '../src/common/src/angular1';
1510
export {downgradeComponent} from '../src/common/src/downgrade_component';
1611
export {downgradeInjectable} from '../src/common/src/downgrade_injectable';
1712
export {VERSION} from '../src/common/src/version';
13+
export * from './common';
1814
export {downgradeModule} from './src/downgrade_module';
1915
export {UpgradeComponent} from './src/upgrade_component';
2016
export {UpgradeModule} from './src/upgrade_module';
21-
export * from './common';
2217

2318
// This file only re-exports items to appear in the public api. Keep it that way.

0 commit comments

Comments
 (0)