Commit graph

1579 commits

Author SHA1 Message Date
rom1504bot
9e116c3dd4
Release 1.57.0 ()
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-04-06 16:28:06 +02:00
Romain Beaumont
031f13fea4
Update package.json to remove lodash.get 2025-04-06 16:08:28 +02:00
rom1504bot
90de8b07e6
Release 1.56.0 ()
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-04-06 16:02:57 +02:00
Romain Beaumont
6a445312d3
Update serializer.js to remove usage of lodash.get () 2025-04-06 15:49:02 +02:00
rom1504bot
9c6a4b2504
Release 1.55.0 ()
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-23 21:39:39 +01:00
h5mcbox
3bd4dc1b20
Fix client.end() () 2025-03-17 04:23:39 +01:00
h5mcbox
5ec3dd4b36
Fix online-mode error 1.20.5-1.21.4 () 2025-02-22 08:01:47 +01:00
Romain Beaumont
e9eb551ba3
Update to node 22 ()
* node 22

* Update package.json
2025-01-26 22:57:56 +01:00
extremeheat
080aa52c5b
Add npm update to version error message 2025-01-22 14:06:38 -05:00
extremeheat
c9cf363549
Add npm update to version error message 2025-01-22 13:33:18 -05:00
rom1504bot
1d7c2a8c48
Release 1.54.0 ()
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-01-19 15:35:42 +01:00
Jacob Koshy
c879d0e753
fix: use node-rsa for decryption for higher node compatibility ()
Co-authored-by: extremeheat <extreme@protonmail.ch>
2025-01-19 15:21:41 +01:00
rom1504bot
556b9ddb37
Release 1.53.0 ()
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-01-08 19:24:50 +01:00
extremeheat
e74d11f66a
1.21.4 ()
* 1.21.4

* update readme

* Update ci.yml

---------

Co-authored-by: Romain Beaumont <romain.rom1@gmail.com>
2025-01-08 18:43:39 +01:00
dependabot[bot]
502513b432
Bump mocha from 10.8.2 to 11.0.1 ()
Bumps [mocha](https://github.com/mochajs/mocha) from 10.8.2 to 11.0.1.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v10.8.2...v11.0.1)

---
updated-dependencies:
- dependency-name: mocha
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Romain Beaumont <romain.rom1@gmail.com>
2025-01-06 19:51:58 +01:00
rom1504bot
d38f24aedf
Release 1.52.0 ()
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-01-06 19:51:40 +01:00
extremeheat
8e131c359e
Fix server_data payload for 1.19+, fix kicks messages on 1.20.3+ ()
* Fix server_data payload sent to clients for versions 1.19+

Fixes 

Add missing fields to `server_data` payload for versions 1.19+.

* Add `motd` and `icon` fields to `server_data` payload for version 1.19.
* Add `motd`, `icon`, and `enforcesSecureChat` fields to `server_data` payload for version 1.19.2.
* Add `motd`, `icon`, and `enforcesSecureChat` fields to `server_data` payload for version 1.19.3.
* Add `motd`, `iconBytes`, and `enforcesSecureChat` fields to `server_data` payload for versions 1.19.4, 1.20, and 1.20.2.
* Add `motd`, `iconBytes`, and `enforcesSecureChat` fields to `server_data` payload for version 1.20.3.
* Add `motd` and `iconBytes` fields to `server_data` payload for version 1.20.5+.
* Use NBT components for `motd` if `chatPacketsUseNbtComponents` feature is supported.
* Convert `favicon` to buffer for `iconBytes` field if available.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/PrismarineJS/node-minecraft-protocol/issues/1362?shareId=XXXX-XXXX-XXXX-XXXX).

* add --retries 2

* lint, debug close event emit twice

* bail tests

* fix

* flaky test fix

* remove debug

* Update serverTest.js

* Fix NBT chat not being used for 1.20.3+ kicks

* Update createClient.js

* fix client.._supportFeature not being defined

* only nbt on the play state disconnect
2025-01-06 19:47:44 +01:00
rom1504bot
f258c76b3a
Release 1.51.0 ()
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-12-04 21:23:47 +01:00
u9g
d6b4e82eb1
Add type to serverKey in server ()
* add types to serverKey in server

* don't change dep order
2024-12-04 21:22:11 +01:00
Romain Beaumont
2224d82406
support 1.21.3 ()
* support 1.21.3

* Add bitflags, registryEntryHolder and  registryEntryHolderSet types

* Fix spacing in compiler types

* Update compiler-minecraft.js

* Fix registryEntryHolderSet read code ()

* Update ci.yml

* Fix test for 1.21.3 ()

* 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>
2024-12-04 21:21:43 +01:00
dependabot[bot]
590dc33fed
Bump @types/node from 20.16.15 to 22.7.9 ()
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.16.15 to 22.7.9.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-27 21:29:40 +01:00
rom1504bot
89de052d44
Release 1.50.0 ()
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-10-26 23:54:20 +02:00
Grooble
5bebac3662
1.21 Support ()
* Update default version

* Update README

* 1.21.1

* Update version.js

* Update ci.yml

* Update version.js

* add values for vec2f and ChatTypes

* fix lint

* fix server tests

* fix lint

* update mcdata

* remove debug install

---------

Co-authored-by: Romain Beaumont <romain.rom1@gmail.com>
2024-10-26 23:52:46 +02:00
rom1504bot
11e8594bb4
Release 1.49.0 ()
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-10-13 01:09:14 +02:00
Romain Beaumont
0b0012d60f
support 1.20.6 ()
* support 1.20.6

* change default version

* bump mcdata

* update mcdata
2024-10-13 01:08:18 +02:00
rom1504bot
81d7c71c93
Release 1.48.0 ()
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-10-13 00:00:06 +02:00
extremeheat
9b029e8b6f
1.20.5 ()
* 1.20.5

* update examples

* Update for 1.20.5 chat_command_signed with seperateSignedChatCommandPacket feature

* updates

* update java

* re-enable packet tests

* Update client.js

add debug code after decompress

* Update client.js

* Update ci.yml

* Add `arrayWithLengthOffset` type to interpeter

* Update minecraft.js

* Update compiler-minecraft.js

* Update minecraft.js

* lint

* remote custom ci install

* Update package.json

* Update packetTest.js add Slot, SlotComponent

* Update packetTest.js

* Update packetTest.js

* Fix lint.

* Fix declare_recipes, Slot

* Update package.json

---------

Co-authored-by: Romain Beaumont <romain.rom1@gmail.com>
2024-10-12 23:55:36 +02:00
extremeheat
7057ad979b
Fix realms loading issue due to createClient plugin init order ()
* 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
2024-07-13 23:03:33 +02:00
extremeheat
495eed56ab
Update doc ()
* Update README.md

* Update index.d.ts
2024-05-22 02:12:48 -04:00
William Gaylord
ccab9fb396
Fix handling of disconnect in versionChecking on 1.20.3+. ()
* Fix handling of disconnect in versionChecking on 1.20.3+. Also handle newer translate string used in 1.20.2+

* Comments why we ignore PLAY and CONFIGURATION state disconnects, and un-inline an if

* Add extra comment on why we are ignoring those states.

* Change bitwise or to logical or
2024-03-17 15:52:25 +01:00
rom1504bot
e50b604a60
Release 1.47.0 ()
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-02-26 01:20:24 +01:00
William Gaylord
1d9a38253a
1.20.3 / 1.20.4 support ()
* 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>
2024-02-26 01:14:49 +01:00
rom1504bot
f97a2367ba
Release 1.46.0 ()
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-02-11 16:09:25 +01:00
extremeheat
85a26a5294
Ensure onReady in client is called once ()
Fix https://github.com/PrismarineJS/node-minecraft-protocol/issues/1286

Server sending start_config packets will incorrectly cause onReady to call multiple times
2024-02-11 15:55:15 +01:00
William Gaylord
092e10c53d
Acknowledge returning to configuration state if in play state. ()
* Acknowledge returning to configuration state if in play state.

* Fix packet spelling
2024-02-04 00:07:30 +01:00
forester302
21240f8ab2
Allow commands not to be signed () 2024-01-01 11:24:49 +01:00
Romain Beaumont
80d038bd61
Add test to make sure version that are tested are mentioned in the RE… ()
* Add test to make sure version that are tested are mentioned in the README

* fix lint
2023-12-30 23:42:17 +01:00
Romain Beaumont
614be919d0
Print if there is a diff in packets in the cycle packet test () 2023-12-29 23:11:31 +01:00
Romain Beaumont
ccaf538ffd
Align supported versions with mineflayer () 2023-12-29 21:49:42 +01:00
rom1504bot
eaf4c2e003
Release 1.45.0 ()
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-12-28 00:51:49 +01:00
extremeheat
112926da0c
Pc1.20.2 ()
* Initial changes for 1.20.2

* add NBT serialize tag type handling

* update tests

* Update pnbt and mcdata for nbt change

* lint

* fix wrong param to sizeOfNbt

* fix dupe NBT types

* move nbt logic to prismarine-nbt

* update tests

* update tests

* disable protodef validator in pluginChannel

* Fix state desync

* dump loginPacket.json in test output

* enable validation

* remove testing line in ci.yml

* update pnbt to 2.5.0

* update doc for `playerJoin`

* Update serializer.js

* update examples

* lint

* disable client bundle handling if bundle becomes too big

* Update client.js

* bump mcdata

* add soundSource and packedChunkPos example test values

---------

Co-authored-by: Romain Beaumont <romain.rom1@gmail.com>
2023-12-28 00:48:10 +01:00
Romain Beaumont
1740124c47
Improve CI setup for per version tests ()
* 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
2023-12-28 00:12:23 +01:00
Vitaly
9e99109476
Allow to create custom client & communication between clients ()
* allow to create custom client & communication between client

* pass client context

* customClient should not be required

* allow to override Server impl to use

* better docs & typings

* refactor: add new client class for customCommunication

* fix doc

* move custom client to prismarine web client

* restore customPackets
2023-12-27 16:34:45 +01:00
Ynfuien
066a2b3646
Fixed 'unsignedContent' field using nonexistent 'packet.unsignedContent' when emitting 'playerChat' event. () 2023-12-27 16:32:42 +01:00
IceTank
788bff2890
Add chat typing to client () 2023-12-17 19:08:24 +01:00
Evan Goode
0ac8c087a2
chat: Only sign command args when profile keys defined () 2023-12-17 17:57:34 +01:00
rom1504bot
827b6cdb61
Release 1.44.0 ()
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-08-05 15:27:09 +02:00
Lucas Wilson
41f9e4ac4a
Send chat commands as chat commands instead of chat messages for 1.19.3-1.20.1 ()
* Add fields required for 1.19.3-1.20

* Send chat_command if msg starts with /

* Create separate block for useChatSessions

* Extract acknowledgements to function

* Set messageCount to pending

* Handle useChatSessions for chat commands

* Zero pending on chat command

* Sign with acknowledgements
2023-08-05 15:21:26 +02:00
PondWader
35b2aa536a
Fix end bundle bundle_delimiter packet not being emitted () 2023-07-29 10:34:36 +02:00
dependabot[bot]
94b9c228b0
Bump @types/readable-stream from 2.3.15 to 4.0.0 ()
Bumps [@types/readable-stream](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/readable-stream) from 2.3.15 to 4.0.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/readable-stream)

---
updated-dependencies:
- dependency-name: "@types/readable-stream"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-29 10:27:33 +02:00