Skip to content

Commit ccfacd7

Browse files
committed
docs: deprecate unused config options from the CompilerOptions interface
DEPRECATED: Since Ivy, the CompilerOptions.useJit and CompilerOptions.missingTranslation config options are unused, passing them has no effect.
1 parent be6780f commit ccfacd7

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

aio/content/guide/deprecations.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ v13 -> v16
5151
| `@angular/core` | [`NgModuleFactory`](#core) | <!--v13--> v16 |
5252
| `@angular/core` | [`ComponentFactory`](#core) | <!--v13--> v16 |
5353
| `@angular/core` | [`ComponentFactoryResolver`](#core) | <!--v13--> v16 |
54+
| `@angular/core` | [`CompilerOptions.useJit and CompilerOptions.missingTranslation config options`](#core) | <!--v13--> v16 |
5455
| `@angular/platform-browser-dynamic` | [`JitCompilerFactory`](#platform-browser-dynamic) | <!--v13--> v16 |
5556
| `@angular/platform-browser-dynamic` | [`RESOURCE_CACHE_PROVIDER`](#platform-browser-dynamic) | <!--v13--> v16 |
5657
| `@angular/forms` | [`ngModel` with reactive forms](#ngmodel-reactive) | <!--v6--> v11 |
@@ -129,6 +130,7 @@ This section contains a complete list all of the currently-deprecated APIs, with
129130
| [Factory-based signature of `ViewContainerRef.createComponent`](api/core/ViewContainerRef#createComponent) | [Type-based signature of `ViewContainerRef.createComponent`](api/core/ViewContainerRef#createComponent) | v13 | Angular no longer requires component factories to dynamically create components. Use different signature of the `createComponent` method, which allows passing Component class directly. |
130131
| [`ComponentFactory`](api/core/ComponentFactory) | Use non-factory based framework APIs. | v13 | Since Ivy, Component factories are not required. Angular provides other APIs where Component classes can be used directly.|
131132
| [`ComponentFactoryResolver`](api/core/ComponentFactoryResolver) | Use non-factory based framework APIs. | v13 | Since Ivy, Component factories are not required, thus there is no need to resolve them.|
133+
| [`CompilerOptions.useJit and CompilerOptions.missingTranslation config options`](api/core/CompilerOptions) | none | v13 | Since Ivy, those config options are unused, passing them has no effect.|
132134

133135
{@a testing}
134136

packages/core/src/linker/compiler.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,23 @@ export class Compiler {
112112
}
113113

114114
/**
115-
* Options for creating a compiler
115+
* Options for creating a compiler.
116+
*
117+
* Note: the `useJit` and `missingTranslation` config options are not used in Ivy, passing them has
118+
* no effect. Those config options are deprecated since v13.
116119
*
117120
* @publicApi
118121
*/
119122
export type CompilerOptions = {
123+
/**
124+
* @deprecated not used at all in Ivy, providing this config option has no effect.
125+
*/
120126
useJit?: boolean,
121127
defaultEncapsulation?: ViewEncapsulation,
122128
providers?: StaticProvider[],
129+
/**
130+
* @deprecated not used at all in Ivy, providing this config option has no effect.
131+
*/
123132
missingTranslation?: MissingTranslationStrategy,
124133
preserveWhitespaces?: boolean,
125134
};

0 commit comments

Comments
 (0)