Commit graph

522 commits

Author SHA1 Message Date
extremeheat
c395f0b05b
relay: Add multi-user login support (#258)
* relay: add multi-user login support

* relay: Fix close handling, connect username
2022-08-24 00:41:12 -04:00
Miniontoby
ce06762dce
test: Add -u flag unzipping vanilla server (#262)
* Fixed startVanillaServer.js

I fixed the CI by editing startVanillaServer.js and adding -u to unzip and tar

* Update startVanillaServer.js
2022-08-24 00:34:14 -04:00
CleSucre
3a0071f0ef
Add fields from 1.19.20 to login chain data (#259)
* Update Properties

* Ci Fix
2022-08-16 23:25:24 -04:00
extremeheat
e10c6133ec
Release 3.16.0 (#252) 3.16.0
* Update package.json

* Update HISTORY.md
2022-08-11 21:49:53 -04:00
extremeheat
0c77d8e252
1.19.20 support (#251)
* Update options.js

* Update README.md
2022-08-11 21:16:32 -04:00
extremeheat
d1ba619788
Fix proxy test waiting condition (#250)
* Fix proxy test waiting condition

* update test command

* Update proxy.js

* Update proxy.js

* Update proxy.js
2022-08-10 13:29:46 -04:00
b23r0
b36c55e112
Add new raknet library option (raknet-node) (#211)
* add new raknet library option (raknet-node)

* fix lint

* fix lint & add new options

* fix lint

* fix user option & add rust-raknet test.

* fix lint.

* add raknet backend option.

* remove useNativeRaknet option.

* add not found log.

* add test timeout size.

* fix js raknet return error.

* restore useNativeRaknet option.

* update doc.

* update options handling, back compat

* fix server doc

* Fix tests

* fix tests.

* fix lint.

* delay timeout.

* Update rak.js

* update raknet-node version.

* increase timeout.

* Update vanilla.js

* Update proxy.js

* Update internal.js

* update raknet-node version.

* update rust-raknet version.

* increase timeout test time

* increase timeout test time

* update backend version.

* change timeout

Co-authored-by: extremeheat <extreme@protonmail.ch>
2022-08-09 03:39:27 -04:00
extremeheat
d221da7613
Update version list for 1.19.11
Update index.d.ts
2022-07-26 21:05:51 -04:00
extremeheat
370ca96f2e
Update startVanillaServer.js
Debug log on CI
2022-07-21 06:24:15 -04:00
extremeheat
1542ab63d1
Release 3.15.0 (#236) 3.15.0
* Update options.js

* Update package.json

* Update README.md

* Update index.d.ts

* Update HISTORY.md
2022-07-18 22:03:01 -04:00
extremeheat
87a958e4ab Prereq update for 1.19.10 changes to server join flow 2022-07-18 16:33:58 -04:00
Jonathan Nagy
7263714562
Fix chat echo sample (#233)
* Fix chat echo sample

The `client.options.username` reference is optional for online connections.  Referencing it here when it is null will not filter out the echo text, causing an infinite loop.

* Update client.js
2022-06-27 21:49:54 -04:00
LucienHH
149b4fe182
Update auth.js (#231) 2022-06-24 18:48:33 -04:00
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