Skip to content
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

[api-minor] Replace all deprecated calls with throwing of actual Errors #11219

Merged

Conversation

Snuffleupagus
Copy link
Collaborator

All of these methods have been marked as deprecated in three releases now, and I'd thus like to (slowly) move towards complete removal.

However rather than just removing the methods right away, which would cause somewhat cryptic failures, this patch tries to implement a hopefully reasonable middle ground by throwing Errors with (essentially) the same information as the previous warnings.

While the previous deprecated messages could perhaps be seen as optional, with these changes API consumers will now be forced to actually migrate their code.

@Snuffleupagus Snuffleupagus force-pushed the throw-deprecated-methods branch from 1eb340b to 70bbb94 Compare October 8, 2019 22:05
…rror`s

All of these methods have been marked as `deprecated` in *three* releases now, and I'd thus like to (slowly) move towards complete removal.

However rather than just removing the methods right away, which would cause somewhat cryptic failures, this patch tries to implement a hopefully reasonable middle ground by throwing `Error`s with (essentially) the same information as the previous warnings.

While the previous `deprecated` messages could perhaps be seen as optional, with these changes API consumers will now be forced to actually migrate their code.
@Snuffleupagus Snuffleupagus force-pushed the throw-deprecated-methods branch from 70bbb94 to ea729ec Compare October 9, 2019 07:21
@Snuffleupagus
Copy link
Collaborator Author

/botio unittest

@pdfjsbot
Copy link

pdfjsbot commented Oct 9, 2019

From: Bot.io (Windows)


Received

Command cmd_unittest from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.215.176.217:8877/629ff7746e65431/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Oct 9, 2019

From: Bot.io (Linux m4)


Received

Command cmd_unittest from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.67.70.0:8877/6e7a42cc9252694/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Oct 9, 2019

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/6e7a42cc9252694/output.txt

Total script time: 2.63 mins

  • Unit Tests: Passed

@pdfjsbot
Copy link

pdfjsbot commented Oct 9, 2019

From: Bot.io (Windows)


Success

Full output at http://54.215.176.217:8877/629ff7746e65431/output.txt

Total script time: 4.89 mins

  • Unit Tests: Passed

@timvandermeij timvandermeij merged commit d2959fc into mozilla:master Oct 9, 2019
@timvandermeij
Copy link
Contributor

Indeed time to get rid of this. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants