Commit graph

1520 commits

Author SHA1 Message Date
Romain Beaumont
6579b0b564
Add 1.19.4 to readme 2023-06-04 09:41:39 +02:00
Augustin Mauroy
1376cf6a31
chore(runtime): use LTS V18 (#1224)
* chore(runtime): use LTS V18

* chore(workflows): update

* remove usage `node:`

* Update packetTest.js

* Update client.js

---------

Co-authored-by: Romain Beaumont <romain.rom1@gmail.com>
2023-06-03 23:17:27 +02:00
Romain Beaumont
1af5a36fb0
Release 1.42.0 2023-06-03 22:09:51 +02:00
Romain Beaumont
2f4485d528
Release 1.42.0 2023-06-03 21:57:10 +02:00
extremeheat
2718bc64c0
1.19.4 (#1226)
* Rename 'session' (packet) to chat_session_update to fix auth event conflict

* impl packet "bundle" grouping, add client.writeBundle(packets)

* fix handling, test

* test 1.19.4

* 1.19.4 test ci

* test ci against mcdata fork

* lint

* fix delim

* fix 1.19.3 being skipped

* Update ci.yml

* Update package.json

---------

Co-authored-by: Romain Beaumont <romain.rom1@gmail.com>
2023-06-03 21:54:31 +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
XHawk87
d6b18b1dad
Typo in "cypher" property check. Fixes #1106 (#1107) 2023-05-20 14:58:38 +02:00
Hitesh. V
ab9aaac971
Update _sidebar.md (#1103)
Updated the outdated link to working link
2023-05-20 14:55:38 +02:00
Artur Khusainov
0134f1599f
Fix plugin channels support (#1096)
* fix custom channel registation

* update channel examples

* use actual protocol version

* update custom channel examples

* use default host & port

* select channel name based on the feature set
2023-05-20 14:44:03 +02:00
dependabot[bot]
0625b29d52
Bump @types/node from 18.16.13 to 20.2.1 (#1203)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.16.13 to 20.2.1.
- [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>
2023-05-20 13:40:24 +02:00
Romain Beaumont
6f57eb90d5
Delete CNAME 2023-04-05 21:40:34 +02:00
Frej Alexander Nielsen
70aee3d494
1.19.3 chat fixes (#1093)
Co-authored-by: Frej Alexander Nielsen <frej@valoks.com>
2023-03-24 23:29:03 +01:00
Frej Alexander Nielsen
f52ab55ef9
Release 1.41.2 (#1091)
* Update package.json

* Update HISTORY.md
2023-03-24 23:28:19 +01:00
Frej Alexander Nielsen
9c767a0b33
Fix client attempting to sign messages on offline servers (#1090)
Co-authored-by: Frej Alexander Nielsen <frej@valoks.com>
2023-03-06 08:57:23 +01:00
Frej Alexander Nielsen
266a865982
Fix client sending session packet while server is in login state (#1089)
* Fix client sending session packet while server is in login state

* Fix lint

---------

Co-authored-by: Frej Alexander Nielsen <frej@valoks.com>
2023-03-02 19:24:55 +01:00
extremeheat
49d218b08c
Release 1.41.1 (#1088)
* Update package.json

* Update HISTORY.md
2023-02-27 21:25:50 +01:00
extremeheat
7a9cfdb3ec
Revert "Fix client sending chat_session packet before server state transition (#1081)" (#1084)
This reverts commit 90d4143358.
2023-02-27 21:21:35 +01:00
Romain Beaumont
3974c503e4
Release 1.41.0 (#1082)
* Update HISTORY.md

* Update package.json
2023-02-20 00:01:10 +01:00
Frej Alexander Nielsen
90d4143358
Fix client sending chat_session packet before server state transition (#1081)
* Fix client sending session packet when server is in offline mode

* Don't send chat session packet before server is in play state

* Fix lint

---------

Co-authored-by: Frej Alexander Nielsen <frej@valoks.com>
2023-02-19 23:59:18 +01:00
Frej Alexander Nielsen
45ea82a7dc
Fix client sending session packet when server is in offline mode (#1080)
Co-authored-by: Frej Alexander Nielsen <frej@valoks.com>
2023-02-18 20:12:41 +01:00
Frej Alexander Nielsen
c0877b003e
Catch errors in custom payloads (#1078)
* Catch errors in custom payloads

* Prevent uncatchable error when server sends invalid chat

* Fix lint
2023-02-08 21:44:35 +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
Prosciuttino
d55c498482
Small chat.js fix (#1074) 2023-01-23 22:08:28 +01:00
Frej Alexander Nielsen
b72cb89fc7
Release 1.40.1 (#1072) 2023-01-22 21:28:31 +01:00
Frej Alexander Nielsen
da85ee369e
Fix offline mode (#1071) 2023-01-22 20:09:58 +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
Frej Alexander Nielsen
2164732844
Use non-zero salt (#1064) 2023-01-18 21:11:15 +01:00
Frej Alexander Nielsen
5e52e782dd
Mark message as insecure if unsigned content is present (#1065) 2023-01-18 21:10:22 +01:00
extremeheat
14b138cef8
Release 1.38.1 (#1063) 2023-01-17 10:15:53 +01:00
Frej Alexander Nielsen
4201b94ab8
Fix chat not working on offline servers (#1060)
* Do not acknowledge unsigned messages

* Fix lint

* Parse player data in offline mode

* Fix lint
2023-01-16 20:36:42 +01:00
Frej Alexander Nielsen
f2875a5f03
Update chat example for 1.19 (#1059)
* Update example

* Fix lint
2023-01-16 20:35:26 +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
jojomatik
2fc4b917d9
fix(types): complete type definitions (#1053)
Complete the type definitions to prevent errors.
2023-01-15 14:37:32 +01:00
Frej Alexander Nielsen
38eecb5aa1
Fixes type mismatch (#1052) 2023-01-14 22:12:39 +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
extremeheat
7fb293fba2
Throw error on minecraft-data protocol version mismatch (#1044)
require('minecraft-data')('1.19.1') can redirect to require('minecraft-data')('1.19') (the major version) per node-minecraft-data constructor's version handling. This can cause issues if the protocol version changed between patch updates even on the same major, so throw error to prevent.
2022-11-20 01:07:48 +01:00