feat: replace cheerio and update build-and-shoot (#683)

* Implement fast-xml-parser replacing cheerio for farmingsim

* Add extra player raw fields

* Update buildandshoot for server 0.75 which uses json.

* Remove cheerio

* Add changelog entry

* Add notes for build and shoot query server

* Update CHANGELOG.md

* Update package.json to fix version

* Update buildandshoot.js

* update lock

* Add specific key and value to bas config in note

* Add spacing for import

* Run eslint on bas protocol

* Use includes for check. Add doc notes to games.js

* Updates GAMES_LIST.md

* fix: support stable and master

* attempt to manually fix conflict

* fix players

* fix fx

* Update CHANGELOG.md

---------

Co-authored-by: CosminPerRam <cosmin.p@live.com>
This commit is contained in:
James Causon 2025-04-25 21:57:04 +01:00 committed by GitHub
parent 58f045dd36
commit 47c9182bed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 129 additions and 404 deletions

View file

@ -55,10 +55,10 @@ Object.entries(sortedGames).forEach(([id, game]) => {
if (game?.extra?.doc_notes) {
notes.push('[Notes](#' + game.extra.doc_notes + ')')
}
if (game.options.protocol === 'valve' || game.options.protocol === 'dayz') {
if (['valve', 'dayz'].includes(game.options.protocol)) {
notes.push('[Valve Protocol](#valve)')
}
if (game.options.protocol === 'epic' || game.options.protocol === 'asa' || game.options.protocol === 'theisleevrima' || game.options.protocol === 'renown') {
if (['epic', 'asa', 'theisleevrima', 'renown'].includes(game.options.protocol)) {
notes.push('[EOS Protocol](#epic)')
}
lineArray[HeaderType.Notes] = notes.join(', ')