* support 1.21.3
* Add bitflags, registryEntryHolder and registryEntryHolderSet types
* Fix spacing in compiler types
* Update compiler-minecraft.js
* Fix registryEntryHolderSet read code (#1351)
* Update ci.yml
* Fix test for 1.21.3 (#1353)
* Remove debug logging
* Fix benchmark tests for 1.21.3
* Start updating packetTest for 1.21.3
* Update packetTest.js with new types
* Fix minecraft-compiler
* Speedup tests by setting world type to flat and disabling structures.
* Didn't mean to commit that
---------
Co-authored-by: extremeheat <extreme@protonmail.ch>
Co-authored-by: Grooble <grooble.dierne@gmail.com>
* Fix realms loading issue due to createClient plugin init order
* remove exception on bad parse of disconnect
* Update index.d.ts
* Improve serverTest check logic
try and debug flaky tests
* Inital 1.20.3 update, bring in minecraft-data with 1.20.3 support and add it to the versions
* Add data for packetTest for explosion packet.
* Add 1.20.4 to version list.
* Add fix for 1.20.3+ NBT isntead of strings for chat. Not happy with this but it does work.
* Fix linting
* Update version.js
Remove 1.20.3 since its the same as 1.20.4. (As suggested)
* Comment how handleNBTStrings works.
* Removed debug console.log
* Update README.md
* chat packet nbt handling fix, use feature
* big endian UUID, add back `text` wrapper
* use prismarine-chat in client test
* expose _handleNbtComponent
* use prismarine-chat exposed processNbtMessage
* fix pre-1.20.4
* Update package.json
* Update server.js
* Update server.js
add missing import
* update server hello world
---------
Co-authored-by: Romain Beaumont <romain.rom1@gmail.com>
Co-authored-by: extremeheat <extreme@protonmail.ch>
* Improve CI setup: move lint out of per version
* fix
* Simplify go back to all per version.
* refactor cycle test to use supported versions
* fix cycle packet test
* Add v to version to avoid 1.19 running every 1.19 minor.
* Add quotes.
* Use versions from js file in ci.yml
* Fix ci.yml syntax.
* Fix matrix read.
* fix
* fix
* fix gitignore
* Initial 1.19.1/2 signed chat impl
* lint
* remove node 15 nullish operators
* fix undefined uuid error
* handle player left
* fix
* add some feature flags
* fix
* Fix test to use new client.chat() wrapper method
* refactoring
* corrections, working client example
* refactoring
* message expiry checking
* Fix UUID write serialization
* Remove padding from client login to match vanilla client
* Fix server verification
* update packet field terminology
* Add some tech docs
Rename `map` field in Pending to not conflict with Array.map method
* update tech doc
* lint
* Bump mcdata and pauth
* add doc on playerChat event, .chat function
* update doc
* use supportFeature, update doc
Co-authored-by: Romain Beaumont <romain.rom1@gmail.com>
* 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.
* Add `beforeLogin` event on server
* optional function passin instead of emitted event
* Add documentation and bump version
* undo release push
* add test for `beforeLogin`
* make port discovery automatic
* try to use promise instead of promisify
* update java version
* add faster timeout
* increase timeout duration for server startup
* Update ci.yml
* update ram
* update java again
* Update clientTest.js
* actually skip online
* Update clientTest.js
* comment out
* fix comment
* properly await server data deletion
* fix serverTest for 1.17 with backwards compat
* add back dimension to login packet
* remove comment
* remove duplicated dimension in server test
Co-authored-by: Romain Beaumont <romain.rom1@gmail.com>
* Added Server#.writeToClients()
* Documented server.writeToClients()
* Added test for Server#writeToClients()
* Bad arguments for Promise.all()
* Fixed tests
* Fixed tests
* Fixed tests
* Updated tests
* Reverted timeout to the normal
* Add packet cycletests
* add mcPackets to deps
* Update and rename cycleTest.js to non-par-test.js
* Add exclude to npm run test for non par tests
* Add seperate job for non-par-tests
* fix indentation
* make tests non-parallel
* fix yml
* fix exclude pattern
* fix test matching
* Fix protocol not being updated for different mc versions
* dynamically get packets to test
* get rid of unused var
* rename non-par-test
* increase vanilla server ram in tests
* add more logs
* handle client error properly
* don't wait for chat to be sent back from the server to wait 10s in clientTest