Skip to content

Commit 8a9907c

Browse files
JeanMechedylhunn
authored andcommitted
refactor(common): Remove currency pipe depreciation notice about the default currency (#48872)
Currency pipe won't be using the LOCALE_ID to determine the default currency. fixes #47612 PR Close #48872
1 parent 5c5d365 commit 8a9907c

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

aio/content/guide/deprecations.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ v15 - v18
4343
| Area | API or Feature | Deprecated in | May be removed in |
4444
|:--- |:--- |:--- |:--- |
4545
| `@angular/common` | [`ReflectiveInjector`](#reflectiveinjector) | v8 | v11 |
46-
| `@angular/common` | [`CurrencyPipe` - `DEFAULT_CURRENCY_CODE`](api/common/CurrencyPipe#currency-code-deprecation) | v9 | v11 |
4746
| `@angular/core` | [`DefaultIterableDiffer`](#core) | v7 | v11 |
4847
| `@angular/core` | [`ReflectiveKey`](#core) | v8 | v11 |
4948
| `@angular/core` | [`RenderComponentType`](#core) | v7 | v11 |
@@ -144,7 +143,6 @@ In the [API reference section](api) of this site, deprecated APIs are indicated
144143

145144
| API | Replacement | Deprecation announced | Details |
146145
|:--- |:--- |:--- |:--- |
147-
| [`CurrencyPipe` - `DEFAULT_CURRENCY_CODE`](api/common/CurrencyPipe#currency-code-deprecation) | `{provide: DEFAULT_CURRENCY_CODE, useValue: 'USD'}` | v9 | From v11 the default code is extracted from the locale data given by `LOCALE_ID`, rather than `USD`. |
148146
| [`NgComponentOutlet.ngComponentOutletNgModuleFactory`](api/common/NgComponentOutlet) | `NgComponentOutlet.ngComponentOutletNgModule` | v14 | Use the `ngComponentOutletNgModule` input instead. This input doesn't require resolving NgModule factory. |
149147
| [`DatePipe` - `DATE_PIPE_DEFAULT_TIMEZONE`](api/common/DATE_PIPE_DEFAULT_TIMEZONE) |`{ provide: DATE_PIPE_DEFAULT_OPTIONS, useValue: { timezone: '-1200' }` | v15 | Use the `DATE_PIPE_DEFAULT_OPTIONS` injection token, which can configure multiple settings at once instead. |
150148

packages/common/src/pipes/number_pipe.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -176,25 +176,6 @@ export class PercentPipe implements PipeTransform {
176176
* that determine group sizing and separator, decimal-point character,
177177
* and other locale-specific configurations.
178178
*
179-
* {@a currency-code-deprecation}
180-
* <div class="alert is-helpful">
181-
*
182-
* **Deprecation notice:**
183-
*
184-
* The default currency code is currently always `USD` but this is deprecated from v9.
185-
*
186-
* **In v11 the default currency code will be taken from the current locale identified by
187-
* the `LOCALE_ID` token. See the [i18n guide](guide/i18n-common-locale-id) for
188-
* more information.**
189-
*
190-
* If you need the previous behavior then set it by creating a `DEFAULT_CURRENCY_CODE` provider in
191-
* your application `NgModule`:
192-
*
193-
* ```ts
194-
* {provide: DEFAULT_CURRENCY_CODE, useValue: 'USD'}
195-
* ```
196-
*
197-
* </div>
198179
*
199180
* @see `getCurrencySymbol()`
200181
* @see `formatCurrency()`

0 commit comments

Comments
 (0)