Skip to content

Conversation

hansl
Copy link
Contributor

@hansl hansl commented Jun 19, 2017

With 4.2, we introduced the min and max validator directives. This was actually a breaking change because their selectors could include custom value accessors using the min/max properties for their own purposes.

For now, we are rolling back the change by removing the exports. At the least, we should wait to add them until a major version. In the meantime, we will have further discussion about what the best solution is going forward for all validator directives.

Closes #17491.


PR #17551 tried to roll this back, but did not remove the dead code. This failed internal tests that were checking that all declared directives were used.
This PR rolls back the original PR and commit the same as #17551 while also removing the dead code.

@hansl hansl requested review from IgorMinar and chuckjaz June 19, 2017 23:27
@hansl
Copy link
Contributor Author

hansl commented Jun 19, 2017

@kara notification that we reverted the original PR and to revert ONLY the last commit on this PR as a starting point when reimplementing those features.

With 4.2, we introduced the min and max validator directives. This was actually a breaking change because their selectors could include custom value accessors using the min/max properties for their own purposes.

For now, we are rolling back the change by removing the exports. At the least, we should wait to add them until a major version. In the meantime, we will have further discussion about what the best solution is going forward for all validator directives.

Closes angular#17491.

----

PR angular#17551 tried to roll this back, but did not remove the dead code. This failed internal tests that were checking that all declared directives were used.
This PR rolls back the original PR and commit the same as angular#17551 while also removing the dead code.
@hansl hansl force-pushed the min-max-rollback branch from 5acfdbd to 803dd3b Compare June 19, 2017 23:28
@mary-poppins
Copy link

The angular.io preview for 5acfdbd43a5faca8f0634e386eded6da5f91e158 is available here.

@mary-poppins
Copy link

The angular.io preview for 803dd3b is available here.

@hansl hansl requested a review from tinayuangao June 20, 2017 16:03
@hansl
Copy link
Contributor Author

hansl commented Jun 20, 2017

I'm going to merge this as it passes travis and tap. This will unblock the queue.

@hansl hansl merged commit 3e685f9 into angular:master Jun 20, 2017
@hansl hansl deleted the min-max-rollback branch June 20, 2017 16:04
@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 Sep 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Regression caused by the min/max validators in 4.2.0

4 participants