Skip to content

Commit 216a608

Browse files
committed
refactor(material): remove month constants from core
In the past, we accidentally published the month constants in `@angular/material/core`. These were never intended for public consumption but were only needed for testing. In v7, we deprecated the constants (with the assumption that consumers might have used constants). In version 9, we can remove the constants. There is no replacement for these variables. Instead, use the zero-based month index on your own. BREAKING CHANGE: Deprecated month constants from `@angular/material/core` have been removed. These have been accidentally published in the past while they were only intended for internal consumption in tests.
1 parent 09dc459 commit 216a608

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

src/material/core/month-constants.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/material/core/public-api.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,3 @@ export * from './option/index';
1818
export * from './label/label-options';
1919
export * from './ripple/index';
2020
export * from './selection/index';
21-
22-
// TODO(devversion): remove this with v8
23-
export * from './month-constants';

0 commit comments

Comments
 (0)