Commit graph

230 commits

Author SHA1 Message Date
Stephen O'Connor
3fd70f97c9
Support 1.19.63 (#352)
* README - bump version

* Update index.d.ts

* Update options.js

---------

Co-authored-by: extremeheat <extreme@protonmail.ch>
2023-02-24 18:07:04 -05:00
extremeheat
1a37b4dac7
Release 3.24.0 (#346)
* Release 3.24.0

* skip 1.19.50
2023-02-17 17:24:12 -05:00
Tamas Papp
2c78372933
1.19.62 support (#345) 2023-02-17 16:44:27 -05:00
extremeheat
fada3aa12a
1.19.60 support (#340) 2023-02-08 22:05:27 -05:00
William
74f2efa7a4
1.19.50 support (#324) 2022-12-02 14:34:28 -05:00
extremeheat
e7f8357a36
Support 1.19.40 (#314) 2022-10-29 02:25:31 -04:00
extremeheat
20da9446f0
Update microsoftAuth to set default flow option (#309)
* Update microsoftAuth to set default flow option

Explicitly specify to login through live.com

* Update package.json
2022-10-25 04:22:30 -04:00
Kurt Thiemann
9724ff41ed
Fix buffer length calculation in ServerAdvertisement (#292) 2022-10-04 02:57:00 -04:00
extremeheat
c51b55d4c7
Make CI less flaky (#293)
* add debug code to server start

* Reduce number of versions tested on Github Action CI to speed up tests

* test: Ask OS for free port instead of random int
2022-10-04 02:47:06 -04:00
extremeheat
3b51ebb6ee
Handle Relay serialization errors by kicking (#290)
* Handle Relay serialization errors by kicking

* lint
2022-09-26 22:52:34 -04:00
extremeheat
7c716b9232
1.19.30 support (#286) 2022-09-24 16:47:03 -04:00
extremeheat
f88c8d0bc4
1.19.30 support, improve error handling and server pong data (#284)
* Update server advertisement

* 1.19.30 protocol support
* Handle configurable compressor
* Support updated 1.19.30 login flow with NetworkSettings
* Improve serialization error handling on client

* refactor compressor handling

* Fix client on older versions, fix internal error handling

* Improve error handling

* Log console connection errors; use raknet-native for proxy test
2022-09-24 13:53:26 -04:00
extremeheat
99153c2de2
Add option for port redirection, fix Realm handling (#282)
* Port Redirect Fix - Only Redirect on Unspecified Port

* Update to use `followPort` option

Co-authored-by: Stephen O'Connor <oconnor39@gmail.com>
2022-09-22 15:14:49 -04:00
Stephen O'Connor
d3a085a260
Add Port Redirect Functionality (#278) 2022-09-14 22:31:31 -04:00
extremeheat
7264cbe312
1.19.21 support (#266)
* Update options.js

* Update README.md
2022-08-25 12:06:57 -04:00
extremeheat
f5c91ba1c9
Fix nbt encoding size on single null tag NBT (#264) 2022-08-24 00:50:01 -04:00
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
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
0c77d8e252
1.19.20 support (#251)
* Update options.js

* Update README.md
2022-08-11 21:16:32 -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
1542ab63d1
Release 3.15.0 (#236)
* Update options.js

* Update package.json

* Update README.md

* Update index.d.ts

* Update HISTORY.md
2022-07-18 22:03:01 -04:00
LucienHH
149b4fe182
Update auth.js (#231) 2022-06-24 18:48: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
9fac48e948
1.19 support (#224) 2022-06-09 15:44:20 -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
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
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
dc3fb5629e
1.18.30 (#198) 2022-04-20 16:11:02 -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
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
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
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
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
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
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
extremeheat
10feeea4ca
Release 3.6.0 (#141) 2021-10-04 13:27:38 -04:00
extremeheat
f8ea6c01f4
Use minecraft-data for protocol data (#126)
* use minecraft-data protocol data

* use minecraft-data for extra data

* Update .npmignore

* update skin data

* fix example

* remove .gitattr

* fix mcdata skin import, disable install script
2021-09-25 22:57:29 +02:00
extremeheat
1f7e94e5db
Update some examples, cleanup (#136)
* Update some examples, cleanup

* lint
2021-09-18 19:50:43 -04:00
Jordan Jones
c5858d5add
Implement Prismarine Auth (#131)
* add prismarine-auth and mfp

* implement prismarine-auth

* putting this on the record, i am stupid

* Remove unneeded files

* Use export from prismarine-auth

* fix cache path

* default the authTitle to MNS

needs testings

* Remove unnecessary comment
2021-08-16 13:06:19 +02:00