[api-minor] Replace all `deprecated` calls with throwing of actual `Error`s
[api-minor] Replace all `deprecated` calls with throwing of actual `Error`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.

caremerge/pdf.js,timvandermeij/pdf.js,macroplant/pdf.js,Snuffleupagus/pdf.js,nawawi/pdf.js,mozilla/pdf.js,macroplant/pdf.js,timvandermeij/pdf.js,showpad/mozilla-pdf.js,xavier114fch/pdf.js,mozilla/pdf.js,timvandermeij/pdf.js,mainegreen/pdf.js,showpad/mozilla-pdf.js,Shoobx/pdf.js,showpad/mozilla-pdf.js,Shoobx/pdf.js,nawawi/pdf.js,nawawi/pdf.js,xavier114fch/pdf.js,macroplant/pdf.js,caremerge/pdf.js,Snuffleupagus/pdf.js,mainegreen/pdf.js,mozilla/pdf.js,Shoobx/pdf.js,Snuffleupagus/pdf.js