Content-Length: 391135 | pFad | https://github.com/angular/angular/commit/bc2cab747f23e517128bdefedd7d5296a1c9ebbc

D8 refactor(platform-browser): Deprecate the `platform-browser-dynamic` … · angular/angular@bc2cab7 · GitHub
Skip to content

Commit bc2cab7

Browse files
JeanMechealxhub
authored andcommitted
refactor(platform-browser): Deprecate the platform-browser-dynamic package (#61043)
All entries of the `@angular/platform-browser-dynamic` package are now deprecated. We now recommend using the `@angular/platform-browser` package instead. In case a JIT application/testing environment is complaining about missing the compiler also add `import '@angular/compiler'` DEPRECATED: All entries of the `@angular/platform-browser-dynamic` PR Close #61043
1 parent 7a3a41f commit bc2cab7

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

goldens/public-api/platform-browser-dynamic/index.api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class JitCompilerFactory implements CompilerFactory {
1717
createCompiler(options?: CompilerOptions[]): Compiler;
1818
}
1919

20-
// @public (undocumented)
20+
// @public @deprecated (undocumented)
2121
export const platformBrowserDynamic: (extraProviders?: StaticProvider[]) => PlatformRef;
2222

2323
// @public (undocumented)

goldens/public-api/platform-browser-dynamic/testing/index.api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import * as i1 from '@angular/platform-browser/testing';
99
import { PlatformRef } from '@angular/core';
1010
import { StaticProvider } from '@angular/core';
1111

12-
// @public
12+
// @public @deprecated
1313
export class BrowserDynamicTestingModule {
1414
// (undocumented)
1515
static ɵfac: i0.ɵɵFactoryDeclaration<BrowserDynamicTestingModule, never>;
@@ -19,7 +19,7 @@ export class BrowserDynamicTestingModule {
1919
static ɵmod: i0.ɵɵNgModuleDeclaration<BrowserDynamicTestingModule, never, never, [typeof i1.BrowserTestingModule]>;
2020
}
2121

22-
// @public (undocumented)
22+
// @public @deprecated (undocumented)
2323
export const platformBrowserDynamicTesting: (extraProviders?: StaticProvider[]) => PlatformRef;
2424

2525
// (No @packageDocumentation comment for this package)

packages/platform-browser-dynamic/src/platform_providers.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ export const INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS: StaticProvider[] = [
2828
];
2929

3030
/**
31-
* @publicApi
31+
* @deprecated Use the `platformBrowser` function instead from `@angular/platform-browser`.
32+
* In case you are not in a CLI app and rely on JIT compilation, you will also need to import `@angular/compiler`
3233
*/
3334
export const platformBrowserDynamic: (extraProviders?: StaticProvider[]) => PlatformRef =
3435
createPlatformFactory(

packages/platform-browser-dynamic/testing/src/testing.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@ import {platformBrowserDynamic} from '../../index';
1111
import {BrowserTestingModule} from '@angular/platform-browser/testing';
1212

1313
/**
14-
* @publicApi
14+
* @deprecated Use the `platformBrowserTesting` function instead from `@angular/platform-browser/testing`.
15+
* In case you are not in a CLI app and rely on JIT compilation, you might also need to import `@angular/compiler`
1516
*/
1617
export const platformBrowserDynamicTesting: (extraProviders?: StaticProvider[]) => PlatformRef =
1718
createPlatformFactory(platformBrowserDynamic, 'browserDynamicTesting');
1819

1920
/**
2021
* NgModule for testing.
2122
*
22-
* @publicApi
23+
* @deprecated Use the `BrowserTestingModule` from `@angular/platform-browser/testing` instead.
2324
*/
2425
@NgModule({
2526
exports: [BrowserTestingModule],

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/angular/angular/commit/bc2cab747f23e517128bdefedd7d5296a1c9ebbc

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy