* Handle auth potentially being an function
* "Simple" example of how in theroy it would work
* Add package.json
* Fix lint
* add type declarations
* Remove mcleaks example
* Add doc changes
* adjust warning
* Fix lint from rebase manual edit.
* Default n-m-p to use offline unless specified.
* Remove expression
* actually make offline default
* Revert examples
* Revert all example changes
* Add deprecation warning that mojang servers are no longer accepting mojang auth tokens.
* added fallbackVersion to dynamic version support
* mark fallbackVersion as optional in docs
* added fallbackVersion to ping responses
* don't enable dynamic cross version support if version is undefined
* docs: explain version parameter
Explain version parameter more explicitly. Remove reference to outdated versions. Describe dynamic cross version support with parameter value `false`.
* fix(types): allow `false` for version parameter
Allow value `false` for version parameter. This makes dynamic cross version support usable in typescript projects.
* fix: enable cross version support for ping
Enable dynamic cross version support for ping by responding with the client version and protocol version if dynamic cross version support is enabled.
* Update index.d.ts to more closely match API.md
* Update to fit more in line with my API.md
Reorder things for my additions and reorders in API.md
* Update API.md from index.d.ts
* Explain writeChannel
* Clarified on all TODOs
* Add fakeHost to client options
* Reorder index.d.ts
* Fix me forgetting options.fakeHost instead of just fakeHost
Co-authored-by: u9g <43508353+u9g@users.noreply.github.com>
* Update index.d.ts to more closely match API.md
* Update to fit more in line with my API.md
Reorder things for my additions and reorders in API.md
* Update API.md from index.d.ts
* Explain writeChannel
* Clarified on all TODOs
Co-authored-by: u9g <43508353+u9g@users.noreply.github.com>
* Add `beforeLogin` event on server
* optional function passin instead of emitted event
* Add documentation and bump version
* undo release push
* add test for `beforeLogin`