Commit graph

151 commits

Author SHA1 Message Date
Romain Beaumont
80d038bd61
Add test to make sure version that are tested are mentioned in the RE… (#1276)
* Add test to make sure version that are tested are mentioned in the README

* fix lint
2023-12-30 23:42:17 +01:00
rom1504bot
eaf4c2e003
Release 1.45.0 (#1270)
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 (#1265)
* 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
Vitaly
9e99109476
Allow to create custom client & communication between clients (#1254)
* 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
rom1504bot
827b6cdb61
Release 1.44.0 (#1250)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-08-05 15:27:09 +02:00
Micha
cc9aa94161
fix broken link (#1243)
* fix broken link

* Update README.md

---------

Co-authored-by: Romain Beaumont <romain.rom1@gmail.com>
2023-07-22 14:59:37 +02:00
Frej Alexander Nielsen
2e45c7f4ab
Release 1.43.2 (#1239)
* Update package.json

* Update HISTORY.md
2023-07-16 20:34:44 +02:00
Romain Beaumont
05e5a701f0
Release 1.43.1 (#1235)
* Update HISTORY.md

* Update package.json
2023-06-27 13:21:17 +02:00
Romain Beaumont
f404b8d94b
Release 1.43.0 (#1234)
* Update package.json

* Update HISTORY.md
2023-06-24 21:12:42 +02:00
PondWader
960df173cc
1.20 (#1232)
* 1.20

* Add 1.20 to README

* bump mcdata

* clean

---------

Co-authored-by: Romain Beaumont <romain.rom1@gmail.com>
2023-06-24 21:09:41 +02:00
Romain Beaumont
6579b0b564
Add 1.19.4 to readme 2023-06-04 09:41:39 +02:00
Romain Beaumont
2f4485d528
Release 1.42.0 2023-06-03 21:57:10 +02:00
andriycraft
a32a1cf478
Improve code style of examples in README.md (#1227) 2023-06-03 21:32:19 +02:00
extremeheat
d643d40415
reapply on master (#1067) 2023-05-28 10:28:56 +02:00
IceTank
d9e37e3d76
Add ipc connection option for servers (#1113)
* Add ipc connection option for servers

* Fix linting error
2023-05-20 15:03:55 +02:00
Hitesh. V
ab9aaac971
Update _sidebar.md (#1103)
Updated the outdated link to working link
2023-05-20 14:55:38 +02:00
Romain Beaumont
6f57eb90d5
Delete CNAME 2023-04-05 21:40:34 +02:00
Frej Alexander Nielsen
f52ab55ef9
Release 1.41.2 (#1091)
* Update package.json

* Update HISTORY.md
2023-03-24 23:28:19 +01:00
extremeheat
49d218b08c
Release 1.41.1 (#1088)
* Update package.json

* Update HISTORY.md
2023-02-27 21:25:50 +01:00
Romain Beaumont
3974c503e4
Release 1.41.0 (#1082)
* Update HISTORY.md

* Update package.json
2023-02-20 00:01:10 +01:00
Romain Beaumont
a8caf83ea7
Release 1.40.3 (#1077)
* Update package.json

* Update HISTORY.md
2023-01-27 23:19:57 +01:00
Frej Alexander Nielsen
e3e20757ef
Use consistent parameter naming for systemChat event (#1076)
* Use consistent parameter naming for systemChat event

* Update docs

* Update types
2023-01-27 01:01:47 +01:00
Romain Beaumont
84bd97c3cb
Release 1.40.2 (#1075)
* Update HISTORY.md

* Update package.json
2023-01-23 22:11:50 +01:00
Frej Alexander Nielsen
b72cb89fc7
Release 1.40.1 (#1072) 2023-01-22 21:28:31 +01:00
Romain Beaumont
046e3423e3
Add 1.19.3 in list of versions in readme 2023-01-22 17:41:21 +01:00
Romain Beaumont
995797f587
Release 1.40.0 (#1070)
* Update HISTORY.md

* Update package.json
2023-01-21 23:16:46 +01:00
Frej Alexander Nielsen
cf1f67117d
Update to 1.19.3 (#1069)
* Add 1.19.3 player_info parsing

* player_remove packet parsing

* 1.19.3 chat parsing

* Outgoing chat for 1.19.3

* Fix lint

* Server chat validation

* add 1.19.2 and 1.19.3 in version.js

* Add 1.19.2 and 1.19.3 in ci.yml

* Deprecated client.verifyMessage for server clients

* Update docs

* Deprecate client.verifyMessage for server clients

* Fix tests

* Fix lint

* Fix packetTest

* Fix test

* Remove unneeded log statement

* Update types/docs

* Remove unnecessary feature check

* Remove _session from docs

Co-authored-by: Romain Beaumont <romain.rom1@gmail.com>
2023-01-21 20:31:17 +01:00
Frej Alexander Nielsen
92a5219915
Add more fields to playerChat event (#1068)
* Add sender and target name to playerChat event

* Update docs

* Update docs

* Remove unnecessary displayName parsing
2023-01-20 22:09:35 +01:00
Romain Beaumont
c9e900d442
Release 1.39.0 (#1066)
* Update HISTORY.md

* Update package.json
2023-01-19 01:28:25 +01:00
extremeheat
14b138cef8
Release 1.38.1 (#1063) 2023-01-17 10:15:53 +01:00
Romain Beaumont
4f9341e654
Release 1.38.0 (#1058)
* Update package.json

* Update HISTORY.md
2023-01-15 18:41:53 +01:00
Frej Alexander Nielsen
2a5ec378c4
Fix chat previews not working (#1054)
* Fix chat previews not working

* Update signMessage to account for chat previews

* Fix lint

* Fix signMessage function

* Server side chat preview verification

* Fix default value overriding provided value

* Only sign previews when they are formatted

* Sign undecorated messages when text is changed

* Update docs
2023-01-15 18:39:48 +01:00
LucienHH
28093fb1fb
Realm Joining (#1056)
* Add docs

* Implement Realm joining

* Check for Microsoft auth

* Remove on chat event

* Add realmName option to example

* Passthrough client to `realmAuthenticate`

* Fix overwriting existing authflow

* Don't use  `??=`

* Lint
2023-01-15 18:30:33 +01:00
Frej Alexander Nielsen
0526edf5f3
Update convenience chat events so higher-level clients can properly parse chat (#1055)
* Emit systemChat event in 1.19+

* Pass both plain message and unsigned content

* Rename property for clarity

* Fix verifyMessage throwing in 1.19

* Update docs

* Document systemChat event
2023-01-15 18:28:46 +01:00
Romain Beaumont
6aaef7bbe5
Release 1.37.0 (#1051)
* Update HISTORY.md

* Update package.json
2023-01-14 20:41:32 +01:00
Romain Beaumont
ca654c1770
update version support in readme 2023-01-14 20:40:34 +01:00
extremeheat
367c01567c
Initial 1.19.1/2 signed chat support (#1050)
* 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>
2023-01-14 20:33:04 +01:00
extremeheat
1efbde1ef7
Release 1.36.2 (#1045)
* Update package.json

* Update HISTORY.md

* Update HISTORY.md

Co-authored-by: Romain Beaumont <romain.rom1@gmail.com>
2022-11-29 02:46:11 +01:00
Spencer Burgess
00949a02e6
Update README.md (#1034) 2022-09-30 19:25:52 +02:00
IceTank
1f4eb8655b
Release 1.36.1 (#1036) 2022-08-22 18:47:07 +02:00
Romain Beaumont
af31ece024
Release 1.36.0 2022-08-16 01:00:53 +02:00
extremeheat
d7c5053a13
1.19.0 support (#1027)
* Bump mcdata for 1.19

* 1.19 in version.js

* 1.19.0 in ci yml

* Update ci.yml

* Update version.js

* Update package.json

* No fail fast

* Update mcdata

* Update package.json

* Update ci.yml

* [1.19] fix tests and library session code (#1020)

* make tests work, add todo's

* clean up, varlong test, additional todo

* removed log statements, fix for older versions

* Update mcdata

* Update ci.yml

* Update ci.yml

* remove excessive version comments near supportFeature checks

Co-authored-by: Romain Beaumont <romain.rom1@gmail.com>

* chat signing implementation

* Update ci.yml

* move some boilerplate to pauth

* update tests

* update chat example

* bump pauth, update doc

* modify test nextMessage func

* lint

* update default version

* add server player verifyMessage

* update doc

Co-authored-by: Romain Beaumont <romain.rom1@gmail.com>
Co-authored-by: Rob9315 <dev.robk@gmail.com>
2022-08-16 00:57:26 +02:00
Jordan Jones
60379eb7d2
Provide interface for using not at all supported alternative accounts. (#1026)
* 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.
2022-07-29 18:41:43 +02:00
Jordan Jones
e079e9b0f6
Use offline mode as default authentication, fallback to offline mode if invalid option. (#998)
* 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.
2022-07-29 18:03:20 +02:00
Romain Beaumont
e4c797d4d8
Release 1.35.1 (#1024)
* Update HISTORY.md

* Update package.json
2022-07-22 22:20:55 +02:00
IceTank
836675b5b2
Release 1.35.0 2022-06-06 11:53:14 -04:00
IceTank
9cb16b8b12
Update doc add listening and close events (#1003) 2022-06-06 11:51:28 -04:00
Matthias Neid
83f1e85480
allow false as beforePing callback result to ignore pings and terminate the connection (#986) 2022-05-15 00:51:18 +02:00
Matthias Neid
7a1d857602
Fallback version for dynamic versions (#983)
* 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
2022-05-15 00:39:20 +02:00
IceTank
a9cc6cee85
Add motdMsg to createServer (#996)
* Add motd as MessageBuilder object

* Fix chatMessageMotd type

* Fix test (?)

* Update API.md

* Remove MessageBuilder dependency and type

* Minor code refactor

* Update docs/API.md

Co-authored-by: u9g <git@u9g.dev>

* chatMessageMotd => motdMsg

Co-authored-by: u9g <git@u9g.dev>
2022-05-13 18:49:08 -04:00