Commit graph

1352 commits

Author SHA1 Message Date
u9g
6df20541b4
Add snapshot 21w07a support (#838)
* Add snapshot `21w07a` support

* Update package.json

* Update version.js

* Update ci.yml

* update mcdata

* Update README.md

* Update mcdata

* Add 21w07a to tested versions

Co-authored-by: Romain Beaumont <romain.rom1@gmail.com>
2021-04-16 22:56:39 +02:00
IceTank
ebbd93f2b6
Added README and more error Handling to client_socks_proxy example (#846)
* Added README and more error Handling to client_socks_proxy example.

* Lint fixing
2021-04-11 23:15:15 +02:00
Moondarker
f509095bd2
launcher_accounts.json account corruption fix (#845)
* launcher_accounts.json account corruption fix

* Prevent MS accounts from being removed if option.auth is not specified
2021-04-11 23:14:19 +02:00
Nihat
4a85609902
Update remove color regex in ping.js (#848) 2021-04-11 23:13:06 +02:00
Nihat
6987c3aff6
Create ping.js example (#847) 2021-04-11 22:55:53 +02:00
Romain Beaumont
61789bbea9
Release 1.25.0 (#844)
* Update HISTORY.md

* Update package.json
2021-04-08 02:33:02 +02:00
Romain Beaumont
fd331399ba
add fullBuffer to packet event 2021-04-08 02:30:48 +02:00
u9g
d3c16e48fb
Add packet cycletests (#842)
* Add packet cycletests

* add mcPackets to deps

* Update and rename cycleTest.js to non-par-test.js

* Add exclude to npm run test for non par tests

* Add seperate job for non-par-tests

* fix indentation

* make tests non-parallel

* fix yml

* fix exclude pattern

* fix test matching

* Fix protocol not being updated for different mc versions

* dynamically get packets to test

* get rid of unused var

* rename non-par-test
2021-04-07 16:13:57 +02:00
u9g
294e20b54a
Add compiler example (#841)
* Initial commit

* require minecraft-data

* use buffer.compare instead of ===

* use .equals

* Fix flipped serializer
2021-04-06 22:44:17 +02:00
Romain Beaumont
bfb1472e7e
Make 1.16.5 the default (#840) 2021-04-06 01:34:05 +02:00
u9g
4aaa837a7d
changed clientsmap and client (#836)
implements (and closes) https://github.com/PrismarineJS/node-minecraft-protocol/issues/818
2021-03-29 09:44:24 +02:00
u9g
bdf792c534
Release 1.24.2 (#831)
* Release 1.24.2

* Update HISTORY.md
2021-03-26 23:59:37 +01:00
u9g
7ebda8047b
Throw if data is not available for a given version (#830)
* Throw if mcData is invalid

* Update serializer.js

* fix lint
2021-03-26 23:40:45 +01:00
Romain Beaumont
192e08cd3b
Release 1.24.1 2021-03-22 14:01:13 +01:00
Majorblake
9d6e3a9092
fix write to launcher_accounts.json (#827)
fix minecraftProfile id missing when writing new profile to launcher_accounts.json, causing yggdrasil to fail when authenticating session
2021-03-22 13:58:00 +01:00
Romain Beaumont
7a2fee1b05 Release 1.24.0 2021-03-20 22:33:42 +00:00
Moondarker
50480f5bfe
Using launcher_accounts.json as new token source (#826)
* Using launcher_accounts.json as new token source

* Fixed a couple of problems in ae7fd65
2021-03-20 23:29:39 +01:00
extremeheat
eaed25f497
Fix msa caching bug (#825) 2021-03-20 23:28:22 +01:00
Romain Beaumont
e56355a508 Release 1.23.3 2021-03-13 01:39:46 +00:00
Romain Beaumont
f363b7d785
add a reason to end connection in keepalive client 2021-03-13 02:38:13 +01:00
Romain Beaumont
e9cb2ffbd7 Release 1.23.2 2021-03-01 23:34:32 +00:00
Romain Beaumont
cbfa9ef046
Remove test code from microsoftAuth that was getting called at import time 2021-03-02 00:32:19 +01:00
Romain Beaumont
34e59fd88e Release 1.23.1 2021-02-06 10:05:50 +00:00
Romain Beaumont
b3953a3bcd Revert "Refactor/Cleanup TCP_DNS (#810)"
This didn't work

This reverts commit 10984fd5d5.
2021-02-06 10:05:01 +00:00
Romain Beaumont
5344f59b52 Release 1.23.0 2021-01-30 00:26:01 +00:00
Rob9315
bf309ba5a4
fix launcher_profiles.json problems (#813)
fixes launcher_profiles.json (formerly launcher_accounts.json) not being written to (all clienttokens being deleted) in specific cases
2021-01-30 01:22:12 +01:00
Jordan Jones
10984fd5d5
Refactor/Cleanup TCP_DNS (#810)
* Refactor/Cleanup TCP_DNS

* remove return

* nvm
2021-01-30 01:21:36 +01:00
extremeheat
8f2a027812
Msa device code auth (#806)
* initial msa work

* rm debug code

* Update package.json

* lint, seperate constants, create missing msa cache

* support multiple profiles

* lint

* use shared constants

* fix path issues

* fix token variable

* fix caching msa profile data

* switch clientId to one from microsoft

* store caches in .minecraft, fallback to dev code auth when user+pass fails

* update electron demo, fix error handling, add docs

* fix caching dir

* fix lint

* move to class scope, token fixes

* retry on fail, terminology fixes

* fix promise bug

* cleanup
2021-01-30 01:21:03 +01:00
u9g
41a2d064ce
add auth type (#799)
made it only accept 'mojang' or 'microsoft' as anything else wouldn't be accepted anyway
2020-12-31 21:27:39 +01:00
Romain Beaumont
78aa3d1b6a Release 1.22.0 2020-12-28 01:45:46 +00:00
Evan Goode
7492025d65
Don't stringify every packet if debug not enabled (#797) 2020-12-28 02:42:19 +01:00
ph0t0shop
c7a021d689
Add handler for Login Plugin Message (#795)
* Add handler for plugin message

* Update pluginChannels.js
2020-12-20 03:35:13 +01:00
dada513
ea52fb8c13
Fixed password=false not using offline mode (#790)
* Fixed password=false not using offline mode

* revert client token change
2020-12-18 20:49:58 +01:00
Romain Beaumont
45c04cb460
Create FUNDING.yml 2020-12-14 01:10:34 +01:00
Romain Beaumont
2843f60e44 Release 1.21.0 2020-12-12 01:15:31 +00:00
Jordan Jones
5d723e9a04
Integrate Authentication for Microsoft Accounts (#788)
* add node-fetch and @xboxreplay/xboxlive-auth for microsoft/xbox auth

* decide which authentication to use based on options;

if options.auth === 'microsoft' then use microsoft/xbox auth, else use Yggdrasil until they kill that.

* push working auth

* commentary

* eslint does not like me :(

* User-Agent works just fine without version

* linting = 95% of development

* revert changes to encrypt.js

* set haveCredentials to whether or not we have a token.

Technically this will always be true so...?

* eslint

* mod+create: api + example

* mod: readme.md
2020-12-11 21:30:48 +01:00
Romain Beaumont
72aef6788c
fix client echo argv check 2020-12-06 18:53:04 +01:00
Romain Beaumont
47d96936f5
Release 1.20.2 2020-12-06 18:49:45 +01:00
Romain Beaumont
011b6a189a
Revert "Revert "Add token authentication (#780)""
This reverts commit 14c4886ac4.

Adds back token auth now that mineflayed is fixed
2020-12-06 18:48:52 +01:00
Romain Beaumont
0ac19142c0
Release 1.20.1 2020-12-06 01:58:53 +01:00
Romain Beaumont
14c4886ac4
Revert "Add token authentication (#780)"
This reverts commit 0277091ddc.
This commits introduced a bug in offline mode.
We don't know yet how to fix it, so better revert first and fix later
2020-12-06 01:57:40 +01:00
Romain Beaumont
7be60af77d Release 1.20.0 2020-12-05 22:32:55 +00:00
ph0t0shop
0277091ddc
Add token authentication (#780)
* Add token authentication

* Update package.json

* Update src/client/auth.js

Co-authored-by: David Duarte <deltaduartedavid@gmail.com>

* Remove some deps

* Fix merge conflict + fix some token stuff

* Fix even more stuff + testing

* Change back echo example

* Let -> const + bugfix

* Fixed error handling

* Revert client_echo again...

* Fix linter errors

* Profile improvements

* Stupid linter errors

* Update yggdrasil, remove token auth example, move to client_echo instead

* Update client_echo

* Linter error...

Co-authored-by: David Duarte <deltaduartedavid@gmail.com>
2020-12-05 23:28:12 +01:00
David Duarte
5873c1a29f
Only use fullReason for the disconnect packet (#776)
And keep endReason for the client end reason, to avoid having
big JSON string that are more difficult to read
2020-12-05 16:52:36 +01:00
David Duarte
0009c9ab4c
End the serializer instead of unpiping streams (#775)
This will let all the streams end their work before
closing the socket
2020-12-05 16:51:32 +01:00
Gjum
0d0b4d5af2
[CI] update to actions/setup-java@v1.4.3 (#785)
https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/

see also #780
2020-12-04 19:55:52 +01:00
Romain Beaumont
5d80168f20
Make 1.16.4 the tested version (#773) 2020-11-02 20:46:03 +01:00
Romain Beaumont
f7941b9412 update to standard 16 2020-10-31 14:48:53 +00:00
Romain Beaumont
1ccedad90f add npmrc that disable package-lock.json creation 2020-10-25 15:34:33 +00:00
Romain Beaumont
d3ea67a184 Release 1.19.0 2020-10-25 15:19:07 +00:00