Skip to content

refactor(material): remove deprecated month constants from core #18111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

devversion
Copy link
Member

@devversion devversion commented Jan 6, 2020

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).

Now, we can remove the constants now. 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.

@devversion devversion added the target: major This PR is targeted for the next major release label Jan 6, 2020
@devversion devversion added this to the 9.0.0 milestone Jan 6, 2020
@devversion devversion requested a review from jelbourn as a code owner January 6, 2020 12:51
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Jan 6, 2020
@devversion devversion force-pushed the refactor/material-core-remove-month-constants branch from 216a608 to 4d90fbd Compare January 6, 2020 13:02
@devversion devversion modified the milestones: 9.0.0, 10.0.0 Jan 6, 2020
@devversion
Copy link
Member Author

devversion commented Jan 6, 2020

Note: Changing to v10.0.0 since we already are in RC phase. The constants were never intended for public consumption and we just added the deprecation for safety. Removing these in v10 should be fine.

Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Marking as blocked until we start merging PRs for v10

@jelbourn jelbourn added blocked This issue is blocked by some external factor, such as a prerequisite PR pr: lgtm labels Jan 9, 2020
@devversion devversion force-pushed the refactor/material-core-remove-month-constants branch from 4d90fbd to b338b61 Compare May 7, 2020 13:35
@devversion devversion added action: merge The PR is ready for merge by the caretaker P2 The issue is important to a large percentage of users, with a workaround and removed blocked This issue is blocked by some external factor, such as a prerequisite PR labels May 7, 2020
@devversion devversion force-pushed the refactor/material-core-remove-month-constants branch from b338b61 to de0b396 Compare May 26, 2020 17:30
@jelbourn jelbourn modified the milestones: 10.0.0, 11.0.0 Jun 2, 2020
@mmalerba mmalerba removed the lgtm label Jul 31, 2020
@jelbourn jelbourn added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent and removed P2 The issue is important to a large percentage of users, with a workaround labels Aug 10, 2020
@devversion devversion added P2 The issue is important to a large percentage of users, with a workaround and removed P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent labels Aug 31, 2020
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). Now, 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.
@devversion devversion force-pushed the refactor/material-core-remove-month-constants branch from de0b396 to 2e4703f Compare August 31, 2020 20:02
@mmalerba mmalerba merged commit 98d4799 into angular:master Sep 1, 2020
mmalerba pushed a commit to mmalerba/components that referenced this pull request Sep 5, 2020
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). Now, 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.
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Oct 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement P2 The issue is important to a large percentage of users, with a workaround target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants