fix(core): reassign version to make sure the type is string (#735)

* fix(core): reassign version to make sure the type is string

* docs: update CHANGELOG.md

* docs: update CHANGELOG.md
This commit is contained in:
CosminPerRam 2025-09-01 22:58:04 +03:00 committed by GitHub
parent 27709572c9
commit 7823b2da12
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View file

@ -5,6 +5,7 @@
* Feat: SCP: Secret Laboratory (2020) - Added support (#715, thanks @Draakoor)
* Fix: Farming Simulator handle possible missing mod attribute (By @yellowfromseegg #723)
* Fix: BeamMP would not match on given port (#730)
* Fix: version field would sometimes be a Number type (#735)
## 5.3.1
* Fix: HTTP requests would end up making more retries than needed due to got's internal retry mechanism (#690, thanks @RattleSN4K3)

View file

@ -89,6 +89,7 @@ export default class Core extends EventEmitter {
state.name = (state.name || '').trim()
state.connect = state.connect || `${state.gameHost || options.host || options.address}:${state.gamePort || options.port}`
state.ping = this.shortestRTT
state.version = String(state.version) // #734 - we should eventually do this for the entire query schema
delete state.gameHost
delete state.gamePort