Skip to content
Permalink
Browse files

feat(common): add an empty DeprecatedI18NPipesModule module (#18737)

Adding an empty module to ease the migration to the i18n pipes.

PR Close #18737
  • Loading branch information...
ocombe authored and mhevery committed Aug 16, 2017
1 parent 3a50098 commit 83713ddea446385dfd1db562d06617e6caac995a
@@ -14,7 +14,7 @@
export * from './location/index';
export {NgLocaleLocalization, NgLocalization} from './localization';
export {parseCookieValue as ɵparseCookieValue} from './cookie';
export {CommonModule} from './common_module';
export {CommonModule, DeprecatedI18NPipesModule} from './common_module';
export {NgClass, NgFor, NgForOf, NgForOfContext, NgIf, NgIfContext, NgPlural, NgPluralCase, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgTemplateOutlet, NgComponentOutlet} from './directives/index';
export {DOCUMENT} from './dom_tokens';
export {AsyncPipe, DatePipe, I18nPluralPipe, I18nSelectPipe, JsonPipe, LowerCasePipe, CurrencyPipe, DecimalPipe, PercentPipe, SlicePipe, UpperCasePipe, TitleCasePipe} from './pipes/index';
@@ -29,3 +29,19 @@ import {COMMON_PIPES} from './pipes/index';
})
export class CommonModule {
}

/**
* I18N pipes are being changed to move away from using the JS Intl API.
*
* The former pipes relying on the Intl API will be moved to this module while the `CommonModule`
* will contain the new pipes that do not rely on Intl.
*
* As a first step this module is created empty to ease the migration.
*
* see https://github.com/angular/angular/pull/18284
*
* @deprecated from v5
*/
@NgModule({declarations: [], exports: []})
export class DeprecatedI18NPipesModule {
}
@@ -33,6 +33,10 @@ export declare class DecimalPipe implements PipeTransform {
transform(value: any, digits?: string): string | null;
}

/** @deprecated */
export declare class DeprecatedI18NPipesModule {
}

/** @stable */
export declare const DOCUMENT: InjectionToken<Document>;

0 comments on commit 83713dd

Please sign in to comment.
You can’t perform that action at this time.