Expose authPlugins to enable example from docs
The example of using authPlugins given in https://github.com/sidorares/node-mysql2/blob/master/lib/auth_plugins/caching_sha2_password.md is not possible, as this module does not expose a top level authPlugin object. This PR adds that top-level object, as well as fully typing for the existing plugins.
Not sure why the Windows tests are failing on a date test. That should be unrelated to this PR?
@MasterOdin definitely unrelated, I saw that started to happening in other PRs. Need to investigate that
@MasterOdin could you rebase please? I have accidentally merged code in the master that fails linter but that should be fixed now
@sidorares I've rebased the PR onto the latest master.
I don't believe perf issue is real, nothing in the PR can contribute to it. Likely a slower CI runner