Commit graph

359 commits

Author SHA1 Message Date
extremeheat
bdaf21b8ed
CI: increase timeout to 12min 2022-06-24 04:31:22 -04:00
extremeheat
19bc2519e7
types: add 1.19.2 to versions
Add 1.19.2 to versions
2022-06-22 14:57:33 -04:00
ATXLtheAxolotl
6e73a75138
Add Realm support to Relay (#226)
* add(): realm relay

* fix(): Non-async solution to realm proxy

* fix(): follow the guidlines of the strict linter

* fix(): Use Client constructor instead of createClient function

* types(): Update index.d.ts to include realms option in destination
2022-06-17 05:55:50 -04:00
extremeheat
c7b825820e
Release 3.14.0 (#225) 3.14.0 2022-06-09 16:06:38 -04:00
extremeheat
9fac48e948
1.19 support (#224) 2022-06-09 15:44:20 -04:00
extremeheat
b6d0ab3765
Make CI more reliable (#217)
* Use 2-attempt server start method in dump test

* Update startVanillaServer.js

replace download from curl to nodejs https

* fix syntax error

* corrections

* rm some logging

* fix
2022-06-09 14:46:05 -04:00
Stephen O'Connor
aacd4b4256
Better handle ping timeout, update documentation (#218)
* Better handle ping_timeout, update documentation

* Remove extra semicolon

* Change ping_timeout to client.emit('error', e) for more normalized handling

* Remove extra RakTimeout import
2022-06-09 13:45:58 -04:00
extremeheat
df31b5d63a
test/vanilla: temporary hack to allow 1.19 chunk tests to pass 2022-06-09 13:08:51 -04:00
Erik
2d7c210acc
Server: correct body.protocol_version to body.params.protocol_version (#221)
packet.data is
```json
{
  name: 'login',
  params: {
    protocol_version: 503,
    tokens: {
      identity: '...'
    }
  }
}
```

Therefore `body.protocol_version` outputs undefined.
2022-06-07 03:47:21 -04:00
extremeheat
f7c556ec94
Release 3.13.0 (#208) 3.13.0 2022-05-04 16:11:53 -04:00
extremeheat
f4bd49dca0
Add 1.18.31 to types 2022-04-30 19:25:33 -04:00
extremeheat
63d11c24bb
Update API documentation 2022-04-30 19:22:35 -04:00
ATXLtheAxolotl
fbe7ff79e8
Emit generic 'packet' event for server clients (#205)
* Send out an all event on ServerPlayer

For debugging purposes

* Add a space for linter

* Changed to be similar to Client's all

* A space :|

* Update serverPlayer.js
2022-04-30 19:18:00 -04:00
extremeheat
52156a0024
Add XUID field for client offline mode client chain (#203)
* Add XUID field for client offline mode client chain

* Update serverPlayer.js

handle alternative casing

* test/internal.js: randomize test port

* fix

* test server starting retry
2022-04-30 19:02:56 -04:00
extremeheat
f2d39a071b
Update index.d.ts 2022-04-21 22:28:38 -04:00
extremeheat
20c53c49d7
Release 3.12.0 (#199) 3.12.0 2022-04-21 14:04:10 -04:00
extremeheat
dc3fb5629e
1.18.30 (#198) 2022-04-20 16:11:02 -04:00
extremeheat
930d90ea30
Release 3.11.1 (#197) 3.11.1
* Update package.json

* Update HISTORY.md
2022-04-19 14:07:13 -04:00
dependabot[bot]
5f90777bd7
Bump minecraft-data from 2.221.0 to 3.0.0 (#195)
Bumps [minecraft-data](https://github.com/PrismarineJS/node-minecraft-data) from 2.221.0 to 3.0.0.
- [Release notes](https://github.com/PrismarineJS/node-minecraft-data/releases)
- [Changelog](https://github.com/PrismarineJS/node-minecraft-data/blob/master/doc/history.md)
- [Commits](https://github.com/PrismarineJS/node-minecraft-data/compare/2.221.0...3.0.0)

---
updated-dependencies:
- dependency-name: minecraft-data
  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>
2022-04-19 14:03:54 -04:00
extremeheat
9a4c7f03ea
Release 3.11.0 (#194) 3.11.0 2022-04-09 20:18:11 -04:00
LucienHH
cde600d51e
Implement Realm joining (#193)
* Pass client options to ping

* Implement RealmAPI to auth

* Add Realm join example

* Update package.json

* Update README.md

* Update index.d.ts

* Show one option, remove listener

* Fix wording

* Explain options

* Optional fields

* Fix typo

* Moved retry ad host/port extraction to prealms

* Add docs

* Fix lint

* Depend on prealms release

Co-authored-by: LucienHH <Lucien.holloway@aprox.co.uk>
2022-04-09 13:11:12 -04:00
extremeheat
dfff13867d
Refactor client connection sequence (#189)
* Refactor client connection sequence
Allow connection info to come in after Client construction, emit "connect_allowed" similar to nmp

* Fix breaking ping behavior change

* fix createClient connect callback

* correct behavior

* remove comments

* refactor impl

* fix incorrect use of `this`
2022-03-27 22:15:20 +02:00
CreeperG16
0dc586db9c
Add profilesFolder to Relay (#192) 2022-03-26 14:31:54 -04:00
circuit10
72c07bb7a0
Emit error from relay when server can't be pinged (#191) 2022-03-25 22:25:55 -04:00
circuit10
92785a1167
Pass relay onMsaCode to client (#190) 2022-03-25 12:21:47 -04:00
extremeheat
550b1a19b4
Mark raknet-native as required dependency (#188)
JS raknet implementation needs some fixes, don't allow silent fail of this dep
2022-03-20 22:51:17 +01:00
extremeheat
817fd918ce
Ignore unconnected packets, remove babel (#185)
* Ignore unconnected packets, remove babel

* re-enable proxy test on ubuntu runner
2022-02-21 10:35:24 +01:00
extremeheat
330c819e7f
Release 3.10.0 (#180) 3.10.0
* Update HISTORY.md

* Update package.json

* Update README.md
2022-02-09 19:07:50 +01:00
extremeheat
957c83995a
1.18.11 (#179)
* Fix js raknet client disconnection

* 1.18.11
2022-02-09 12:15:35 -05:00
extremeheat
14af5fe04f
Switch to sync zlib with 512k chunks, adjustable compression level (#174)
* Switch to sync zlib with 512k chunks, adjustable compression level

* update serverPlayer
2022-02-04 20:30:21 -05:00
extremeheat
2aa3b9826a
Release 3.9.0 (#173) 3.9.0 2022-01-08 13:40:22 -05:00
extremeheat
eb5ebc6650
Bump bedrock-provider in tests (#172) 2022-01-07 18:36:38 -05:00
extremeheat
058c280b66 fix relay connection close issue 2022-01-03 11:11:07 -05:00
extremeheat
abc1444929 Add missing login field 2022-01-03 11:11:07 -05:00
extremeheat
a1698d712f relay: fix empty chunk loading issues, make chunk caching optional 2022-01-03 11:11:07 -05:00
extremeheat
49fd2b69ee client: make console connection logging optional 2022-01-03 11:11:07 -05:00
extremeheat
7acacc1a13
Update docs (#165)
* Update API.md

* Update CONTRIBUTING.md
2021-12-26 15:53:49 +01:00
extremeheat
bb2179a8cb
Fix port collision caused by race condition in tests (#164)
* Fix port collision caused by race condition in tests

The ipv6 port is not randomized, if the previous ports for the last test didn't get freed in time, the server can crash on launch

* try again

* Update index.d.ts

* Update genPacketDumps.js
2021-12-15 23:55:32 -05:00
extremeheat
e3e553bf91
index.d.ts: update version enum 2021-12-07 23:23:53 -05:00
extremeheat
572b83047c Release 3.8.0 3.8.0 2021-12-04 10:48:14 -05:00
extremeheat
1a1fa618e4
1.18 update (#157) 2021-12-04 01:10:47 -05:00
extremeheat
b0856e0cc7
update docs and error handling (#155) 2021-11-28 00:57:41 -05:00
extremeheat
1b422ac4ce
Update prismarine-auth usage (#153) 2021-11-12 22:14:15 +01:00
Romain Beaumont
214c34c44b
Release 3.7.0 3.7.0 2021-11-07 12:55:11 +01:00
dependabot[bot]
389a68b98f
Bump prismarine-nbt from 1.6.0 to 2.0.0 (#148)
Bumps [prismarine-nbt](https://github.com/prismarinejs/prismarine-nbt) from 1.6.0 to 2.0.0.
- [Release notes](https://github.com/prismarinejs/prismarine-nbt/releases)
- [Changelog](https://github.com/PrismarineJS/prismarine-nbt/blob/master/HISTORY.md)
- [Commits](https://github.com/prismarinejs/prismarine-nbt/compare/1.6.0...2.0.0)

---
updated-dependencies:
- dependency-name: prismarine-nbt
  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>
2021-11-07 12:48:01 +01:00
extremeheat
75bf22d619
1.17.40 update (#150)
* 1.17.40

* Update mcdata to 2.96.0

Co-authored-by: Romain Beaumont <romain.rom1@gmail.com>
2021-11-07 12:47:45 +01:00
extremeheat
8569b9823f
Release 3.6.1 3.6.1 2021-10-08 16:13:34 -04:00
extremeheat
adfa248e2d
Default createClient to latest version, fix server motd version (#144)
* Default createClient to latest version, fix server motd version

* Update vanilla.js
2021-10-08 05:56:10 -04:00
迷渡
ac2e9852be
fix spawn event (#139) 2021-10-04 19:20:12 -04:00
extremeheat
10feeea4ca
Release 3.6.0 (#141) 3.6.0 2021-10-04 13:27:38 -04:00