Commit graph

1551 commits

Author SHA1 Message Date
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
dependabot[bot]
81421f05ec
Bump @types/node from 16.11.17 to 17.0.4 (#943)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.11.17 to 17.0.4.
- [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>
2021-12-26 15:47:50 +01:00
usb
86dcbd5f3c
add reasons for client.end() & fix issues (#944)
* add

add client.end() when ping.js fails

added reasons in encrypt.js

switched order of error event and client.end() in versionChecking.js

added an error emitter for keepAliveTimeout

* should be an Error object

* camalCase socketClosed
2021-12-24 18:55:13 +01:00
Romain Beaumont
601f86fc8f
remove issuehunt funding method 2021-12-20 03:23:16 +01:00
extremeheat
52dc13c0f1
Release 1.29.1 (#939) 2021-12-18 22:21:36 -05:00
extremeheat
010d6b229c
Remove entitlement check in microsoftAuth (#929)
redundant with the existing profile check
2021-12-12 19:17:07 +01:00
Romain Beaumont
d4bc14a583
fix mc 1.18 (#934)
* use java 17 for mc 1.18

* increase timeout because 1.18 server is slow to boot

* add chunkBlockEntity value in packet test
2021-12-12 19:07:50 +01:00
Romain Beaumont
d4208b2070
Release 1.29.0 2021-12-11 02:15:07 +01:00
Romain Beaumont
e1db56a32d
1.18 support (#930)
* update mcdata

* Update version.js

* Update ci.yml

* Update README.md

* Update version.js
2021-12-11 02:12:07 +01:00
Romain Beaumont
6095c81a34 Release 1.28.1 2021-12-02 23:27:41 +00:00
Romain Beaumont
ae9f884724 update electron in example 2021-12-02 23:26:46 +00:00
extremeheat
9501694f23
Fix microsoft auth error condition handling (#925)
nullish operator can return undefined which causes `if` to not trigger in profile check
2021-11-23 00:37:19 +01:00
Romain Beaumont
d0a504f5db
reorganize readme 2021-11-21 00:35:48 +01:00
extremeheat
8ff8ddcef5
Release 1.28.0 (#924) 2021-11-14 13:00:53 +01:00
LiquidDevelopment
88003d065e
Fixed TypeScript error TS2769 when authenticating with mojang (#922)
Fixed TypeScript Typing Error TS2769: No overload matches this call.
2021-11-12 02:08:34 +01:00
extremeheat
2a2cc1ee92
Update prismarine-auth usage (#923)
* Update prismarine-auth usage

add new `deviceType` parameter

* remove whitespace

* use nintendo switch title id

* update examples
2021-11-12 02:08:18 +01:00
muchnameless
24a27df8a9
types(Client): fix events (#918)
Co-authored-by: Robert Hartmann <robert.hartmann.sb@gmail.com>
2021-11-07 14:43:37 +01:00
dependabot[bot]
0319071da6
Bump prismarine-nbt from 1.6.0 to 2.0.0 (#919)
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-06 22:52:20 -04:00
usb
052f0e9d0e
add default for authTitle (#920)
* add default for authTitle

* lint

* make check undefined
2021-11-06 22:44:50 +01:00
Shayne Hartford
7240ac634f
Update ping function return type and make callback optional (#909)
* Update index.d.ts

* Update index.d.ts

* Update index.d.ts

* Update index.d.ts

* Update index.d.ts
2021-11-04 16:22:38 -04:00
Oscar
809c226c02
Fixed typo's (#915) 2021-11-04 16:20:56 -04:00
Ghqst
9813670271
Add the ability to send a fake hostname in set_protocol (#913)
* Update index.d.ts to more closely match API.md

* Update to fit more in line with my API.md

Reorder things for my additions and reorders in API.md

* Update API.md from index.d.ts

* Explain writeChannel

* Clarified on all TODOs

* Add fakeHost to client options

* Reorder index.d.ts

* Fix me forgetting options.fakeHost instead of just fakeHost

Co-authored-by: u9g <43508353+u9g@users.noreply.github.com>
2021-11-04 16:19:32 -04:00