Commit graph

1472 commits

Author SHA1 Message Date
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
Romain Beaumont
061176d377 run standard 2022-11-11 22:24:15 +00:00
makin
85264bcb95
Make "fakeHost" option working (#1040) 2022-11-11 12:37:09 +01:00
extremeheat
4ca8523b88
Update microsoftAuth to set default flow option (#1041)
* Update microsoftAuth to set default flow option

Explicitly specify to login through live.com

* Update package.json
2022-11-11 12:35:25 +01:00
IceTank
cbf663a3eb
Fix connect event typo (#1035) 2022-09-30 19:27:16 +02:00
Spencer Burgess
00949a02e6
Update README.md (#1034) 2022-09-30 19:25:52 +02:00
IceTank
1f4eb8655b
Release 1.36.1 (#1036) 2022-08-22 18:47:07 +02:00
IceTank
6cbdbb85f8
Fix type definition breaking typescript projects (#1033)
* Fix type definition breaking typescript projects

* Fix createClient types
2022-08-21 23:04:58 +02:00
Romain Beaumont
af31ece024
Release 1.36.0 2022-08-16 01:00:53 +02:00
IceTank
79afd277d8
Fix unhandled promise rejection on ms auth (#1022) 2022-08-16 00:57:47 +02:00
extremeheat
d7c5053a13
1.19.0 support (#1027)
* Bump mcdata for 1.19

* 1.19 in version.js

* 1.19.0 in ci yml

* Update ci.yml

* Update version.js

* Update package.json

* No fail fast

* Update mcdata

* Update package.json

* Update ci.yml

* [1.19] fix tests and library session code (#1020)

* make tests work, add todo's

* clean up, varlong test, additional todo

* removed log statements, fix for older versions

* Update mcdata

* Update ci.yml

* Update ci.yml

* remove excessive version comments near supportFeature checks

Co-authored-by: Romain Beaumont <romain.rom1@gmail.com>

* chat signing implementation

* Update ci.yml

* move some boilerplate to pauth

* update tests

* update chat example

* bump pauth, update doc

* modify test nextMessage func

* lint

* update default version

* add server player verifyMessage

* update doc

Co-authored-by: Romain Beaumont <romain.rom1@gmail.com>
Co-authored-by: Rob9315 <dev.robk@gmail.com>
2022-08-16 00:57:26 +02:00
Jordan Jones
60379eb7d2
Provide interface for using not at all supported alternative accounts. (#1026)
* Handle auth potentially being an function

* "Simple" example of how in theroy it would work

* Add package.json

* Fix lint

* add type declarations

* Remove mcleaks example

* Add doc changes

* adjust warning

* Fix lint from rebase manual edit.
2022-07-29 18:41:43 +02:00
Jordan Jones
e079e9b0f6
Use offline mode as default authentication, fallback to offline mode if invalid option. (#998)
* Default n-m-p to use offline unless specified.

* Remove expression

* actually make offline default

* Revert examples

* Revert all example changes

* Add deprecation warning that mojang servers are no longer accepting mojang auth tokens.
2022-07-29 18:03:20 +02:00
Romain Beaumont
e4c797d4d8
Release 1.35.1 (#1024)
* Update HISTORY.md

* Update package.json
2022-07-22 22:20:55 +02:00
Rob9315
92fd00d40d
add type values to packetTest (#1023)
* add varlong value to packetTest

* add command_node type value in packetTest
2022-07-21 22:56:34 +02:00
dependabot[bot]
446d1d9a85
Bump readable-stream from 3.6.0 to 4.1.0 (#1014)
Bumps [readable-stream](https://github.com/nodejs/readable-stream) from 3.6.0 to 4.1.0.
- [Release notes](https://github.com/nodejs/readable-stream/releases)
- [Commits](https://github.com/nodejs/readable-stream/compare/v3.6.0...v4.1.0)

---
updated-dependencies:
- dependency-name: readable-stream
  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-07-19 22:47:52 +02:00
dependabot[bot]
50de598efe
Bump @types/node from 17.0.45 to 18.0.6 (#1017)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.45 to 18.0.6.
- [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>
2022-07-19 22:47:36 +02:00
Rob9315
6cc3cfc08d
add custom minecraft type varlong which aliases to varint (#1018)
* add custom minecraft type varlong which aliases to varint for now or forever

* semicolon (standard-js)
2022-07-19 22:47:18 +02:00
IceTank
836675b5b2
Release 1.35.0 2022-06-06 11:53:14 -04:00
IceTank
9cb16b8b12
Update doc add listening and close events (#1003) 2022-06-06 11:51:28 -04:00
Matthias Neid
83f1e85480
allow false as beforePing callback result to ignore pings and terminate the connection (#986) 2022-05-15 00:51:18 +02:00
Matthias Neid
7a1d857602
Fallback version for dynamic versions (#983)
* added fallbackVersion to dynamic version support

* mark fallbackVersion as optional in docs

* added fallbackVersion to ping responses

* don't enable dynamic cross version support if version is undefined
2022-05-15 00:39:20 +02:00
IceTank
a9cc6cee85
Add motdMsg to createServer (#996)
* Add motd as MessageBuilder object

* Fix chatMessageMotd type

* Fix test (?)

* Update API.md

* Remove MessageBuilder dependency and type

* Minor code refactor

* Update docs/API.md

Co-authored-by: u9g <git@u9g.dev>

* chatMessageMotd => motdMsg

Co-authored-by: u9g <git@u9g.dev>
2022-05-13 18:49:08 -04:00
dependabot[bot]
74e2ba84ac
Bump standard from 16.0.4 to 17.0.0 (#990)
Bumps [standard](https://github.com/standard/standard) from 16.0.4 to 17.0.0.
- [Release notes](https://github.com/standard/standard/releases)
- [Changelog](https://github.com/standard/standard/blob/master/CHANGELOG.md)
- [Commits](https://github.com/standard/standard/compare/v16.0.4...v17.0.0)

---
updated-dependencies:
- dependency-name: standard
  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>
2022-05-10 13:15:26 -04:00
dependabot[bot]
30053a402f
Bump mocha from 9.2.2 to 10.0.0 (#995)
Bumps [mocha](https://github.com/mochajs/mocha) from 9.2.2 to 10.0.0.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v9.2.2...v10.0.0)

---
updated-dependencies:
- dependency-name: mocha
  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>
2022-05-10 13:02:58 -04:00
jojomatik
d641634fe9 Release 1.34.0 (#988)
* Update package.json

* Update HISTORY.md
2022-04-18 19:30:09 +00:00
Matthias Neid
ffe912b2fe
Export defaultVersion (#984)
* export defaultVersion

* added defaultVersion to api documentation
2022-04-13 13:50:42 +02:00
IceTank
aac5494a12
Fix missing readable-stream types (#982)
* fix missing readable-stream types

* move to normal dependencies
2022-04-12 18:35:48 +02:00
Romain Beaumont
2f27ad4028
Release 1.33.0 (#981)
* Update package.json

* Update HISTORY.md
2022-04-11 13:31:22 +02:00
dependabot[bot]
6efbbcfe75
Bump minecraft-data from 2.221.0 to 3.0.0 (#980)
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-11 13:29:00 +02:00
Romain Beaumont
3bb93b6035
Release 1.32.2 (#979)
* Update package.json

* Update HISTORY.md
2022-04-10 15:18:09 +02:00
IceTank
5e3196b2de
Add basic deserializer and serializer typings (#975) 2022-04-10 15:16:18 +02:00
jojomatik
68e6400e30
fix: cross version ping (#976)
* docs: explain version parameter

Explain version parameter more explicitly. Remove reference to outdated versions. Describe dynamic cross version support with parameter value `false`.

* fix(types): allow `false` for version parameter

Allow value `false` for version parameter. This makes dynamic cross version support usable in typescript projects.

* fix: enable cross version support for ping

Enable dynamic cross version support for ping by responding with the client version and protocol version if dynamic cross version support is enabled.
2022-04-10 14:45:04 +02:00
Rob9315
9cff34efc0
Release 1.32.1 (#973) 2022-03-20 15:59:09 +01:00
IceTank
11ad7130aa
Make validateChannelProtocol optional (#972) 2022-03-17 09:22:42 +01:00
Romain Beaumont
f1f9f5c310
Release 1.32.0 (#971)
* Update HISTORY.md

* Update package.json
2022-03-11 16:26:56 +01:00
Robert Schuh
bcfeb712f9
allows false value for profilesFolder (#961) 2022-03-08 15:50:50 +01:00
Richard Dorian
e93d9de652
fix plugin channel registration (#965)
* fix plugin channel registration

* add support for 1.13+ plugin channels

* add missing null separator

* use protodef instead
2022-03-08 15:45:52 +01:00
Richard Dorian
f7ef27dd70
add protocolValidation field to server and client options (#964)
* add protocolValidation field to server and client options

* add doc

* change option name
2022-03-08 15:40:57 +01:00
Romain Beaumont
ef7d0332d9
Release 1.31.0 (#968)
* Update package.json

* Update HISTORY.md
2022-03-01 22:46:15 +01:00
Romain Beaumont
9e94d9d901
1.18.2 (#967)
* Update README.md

* Update version.js

* Update ci.yml
2022-03-01 22:44:50 +01:00
Richard Dorian
4691abd036
Wrong type definition for beforePing (#957)
* `favicon` now include in types

* fix `beforePing` type
2022-02-01 23:47:44 +01:00
usb
ffeb7515e3
require node 14 (#955)
https://github.com/PrismarineJS/node-minecraft-protocol/issues/954
2022-01-28 16:02:48 +01:00
Romain Beaumont
c22682b9f1
bump mcdata to include a fix for 1.18.1 2022-01-22 18:30:35 +01:00
Romain Beaumont
3a1561b7c8 explicit 1.18.1 support 2022-01-22 17:10:01 +00:00
Pronin Egor
2125ad0543
docs(readme): add SteveProxy to projects list (#948) 2022-01-20 17:43:16 +01:00
Romain Beaumont
04092ed2ff
Release 1.30.0 (#946)
* Update HISTORY.md

* Update package.json
2021-12-26 15:59:58 +01:00
IceTank
fadf5ea9cd
Session doc fix (#937)
* Fix session usage in API.md

* Grammer fix

* Update to include selectedProfile

* Update api.md with selectedProfile

* update session typings
2021-12-26 15:53:25 +01:00
Richard Dorian
bde8cd2818
favicon now include in types (#938) 2021-12-26 15:52:52 +01:00