bedrock-protocol
Advanced tools
Comparing version 3.25.0 to 3.26.0
@@ -0,1 +1,5 @@ | ||
# 3.26.0 | ||
* 1.19.70 support (@CreeperG16) | ||
* types: add some type hints (#354) @hvlxh | ||
# 3.25.0 | ||
@@ -2,0 +6,0 @@ * 1.19.63 support (@stevarino) |
@@ -6,3 +6,3 @@ import EventEmitter from "events" | ||
declare module "bedrock-protocol" { | ||
type Version = '1.19.63' | '1.19.62' | '1.19.60' | '1.19.51' | '1.19.50' | '1.19.41 | 1.19.40' | '1.19.31' | '1.19.30' | '1.19.22' | '1.19.21' | '1.19.20' | '1.19.11' | '1.19.10' | '1.19.2' | '1.19.1' | '1.18.31' | '1.18.30' | '1.18.12' | '1.18.11' | '1.18.10' | '1.18.2' | '1.18.1' | '1.18.0' | '1.17.41' | '1.17.40' | '1.17.34' | '1.17.30' | '1.17.11' | '1.17.10' | '1.17.0' | '1.16.220' | '1.16.210' | '1.16.201' | ||
type Version = '1.19.70' | '1.19.63' | '1.19.62' | '1.19.60' | '1.19.51' | '1.19.50' | '1.19.41 | 1.19.40' | '1.19.31' | '1.19.30' | '1.19.22' | '1.19.21' | '1.19.20' | '1.19.11' | '1.19.10' | '1.19.2' | '1.19.1' | '1.18.31' | '1.18.30' | '1.18.12' | '1.18.11' | '1.18.10' | '1.18.2' | '1.18.1' | '1.18.0' | '1.17.41' | '1.17.40' | '1.17.34' | '1.17.30' | '1.17.11' | '1.17.10' | '1.17.0' | '1.16.220' | '1.16.210' | '1.16.201' | ||
@@ -47,3 +47,3 @@ enum title { MinecraftNintendoSwitch, MinecraftJava } | ||
// where to log connection information to (default to console.log) | ||
conLog? | ||
conLog?: any | ||
// used to join a Realm instead of supplying a host/port | ||
@@ -74,14 +74,14 @@ realms?: RealmsOptions | ||
export class Connection extends EventEmitter { | ||
readonly status: ClientStatus | ||
readonly status: ClientStatus; | ||
// Check if the passed version is less than or greater than the current connected client version. | ||
versionLessThan(version: string | number) | ||
versionGreaterThan(version: string | number) | ||
versionLessThan(version: string | number): boolean | ||
versionGreaterThan(version: string | number): boolean | ||
// Writes a Minecraft bedrock packet and sends it without queue batching | ||
write(name: string, params: object) | ||
write(name: string, params: object): void | ||
// Adds a Minecraft bedrock packet to be sent in the next outgoing batch | ||
queue(name: string, params: object) | ||
queue(name: string, params: object): void | ||
// Writes a MCPE buffer to the connection and skips Protodef serialization. `immediate` if skip queue. | ||
sendBuffer(buffer: Buffer, immediate?: boolean) | ||
sendBuffer(buffer: Buffer, immediate?: boolean): void | ||
} | ||
@@ -115,3 +115,3 @@ | ||
*/ | ||
close() | ||
close(): void | ||
@@ -121,3 +121,3 @@ /** | ||
*/ | ||
disconnect() | ||
disconnect(): void | ||
} | ||
@@ -133,3 +133,3 @@ | ||
*/ | ||
sendDisconnectStatus(playStatus: PlayStatus) | ||
sendDisconnectStatus(playStatus: PlayStatus): void | ||
@@ -141,3 +141,3 @@ /** | ||
*/ | ||
disconnect(reason: string, hide?: boolean) | ||
disconnect(reason: string, hide?: boolean): void | ||
@@ -147,7 +147,7 @@ /** | ||
*/ | ||
close() | ||
close(): void | ||
on(event: 'login', cb: () => void) | ||
on(event: 'join', cb: () => void) | ||
on(event: 'close', cb: (reason: string) => void) | ||
on(event: 'login', cb: () => void): any | ||
on(event: 'join', cb: () => void): any | ||
on(event: 'close', cb: (reason: string) => void): any | ||
} | ||
@@ -161,3 +161,3 @@ | ||
// Disconnects all currently connected clients | ||
close(disconnectReason: string) | ||
close(disconnectReason: string): void | ||
} | ||
@@ -191,3 +191,3 @@ | ||
// If this is not specified, the client will be disconnected with a login prompt. | ||
onMsaCode(data, client) | ||
onMsaCode(data: ServerDeviceCodeResponse, client: Client): any | ||
} | ||
@@ -194,0 +194,0 @@ |
{ | ||
"name": "bedrock-protocol", | ||
"version": "3.25.0", | ||
"version": "3.26.0", | ||
"description": "Minecraft Bedrock Edition protocol library", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -14,3 +14,3 @@ # bedrock-protocol | ||
- Supports Minecraft Bedrock version 1.16.201, 1.16.210, 1.16.220, 1.17.0, 1.17.10, 1.17.30, 1.17.40, 1.18.0, 1.18.11, 1.18.30, 1.19.1, 1.19.10, 1.19.20, 1.19.21, 1.19.30, 1.19.40, 1.19.41, 1.19.50, 1.19.60, 1.19.62, 1.19.63 | ||
- Supports Minecraft Bedrock version 1.16.201, 1.16.210, 1.16.220, 1.17.0, 1.17.10, 1.17.30, 1.17.40, 1.18.0, 1.18.11, 1.18.30, 1.19.1, 1.19.10, 1.19.20, 1.19.21, 1.19.30, 1.19.40, 1.19.41, 1.19.50, 1.19.60, 1.19.62, 1.19.63, 1.19.70 | ||
- Parse and serialize packets as JavaScript objects | ||
@@ -17,0 +17,0 @@ - Automatically respond to keep-alive packets |
@@ -6,3 +6,3 @@ const mcData = require('minecraft-data') | ||
// Currently supported verson. Note, clients with newer versions can still connect as long as data is in minecraft-data | ||
const CURRENT_VERSION = '1.19.63' | ||
const CURRENT_VERSION = '1.19.70' | ||
@@ -12,3 +12,3 @@ const Versions = Object.fromEntries(mcData.versions.bedrock.filter(e => e.releaseType === 'release').map(e => [e.minecraftVersion, e.version])) | ||
// Skip some low priority versions (middle major) on Github Actions to allow faster CI | ||
const skippedVersionsOnGithubCI = ['1.16.210', '1.17.10', '1.17.30', '1.18.11', '1.19.10', '1.19.20', '1.19.50'] | ||
const skippedVersionsOnGithubCI = ['1.16.210', '1.17.10', '1.17.30', '1.18.11', '1.19.10', '1.19.20', '1.19.30', '1.19.40', '1.19.50'] | ||
const testedVersions = process.env.CI ? Object.keys(Versions).filter(v => !skippedVersionsOnGithubCI.includes(v)) : Object.keys(Versions) | ||
@@ -15,0 +15,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
146980