Skip to content

Commit 8e69498

Browse files
committed
0.10.1 - Swap ruffle support from enum to string for easier type matching
1 parent 86be566 commit 8e69498

File tree

4 files changed

+5
-11
lines changed

4 files changed

+5
-11
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ crate-type = ["cdylib"]
1111
[dependencies]
1212
napi = { version = "2", features = ["async"] }
1313
napi-derive = "2"
14-
flashpoint-archive = { version = "0.10.0", features = ["napi"] }
14+
flashpoint-archive = { version = "0.10.1", features = ["napi"] }
1515

1616
[build-dependencies]
1717
napi-build = "2"

index.d.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export interface Game {
160160
archiveState: number
161161
gameData?: Array<GameData>
162162
addApps?: Array<AdditionalApp>
163-
ruffleSupport: RuffleSupport
163+
ruffleSupport: string
164164
}
165165
export interface PartialGame {
166166
id: string
@@ -196,12 +196,7 @@ export interface PartialGame {
196196
activeGameConfigOwner?: string
197197
archiveState?: number
198198
addApps?: Array<AdditionalApp>
199-
ruffleSupport?: RuffleSupport
200-
}
201-
export const enum RuffleSupport {
202-
None = 'None',
203-
Standalone = 'Standalone',
204-
Webhosted = 'Webhosted'
199+
ruffleSupport?: string
205200
}
206201
export interface GameRedirect {
207202
sourceId: string

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,12 +295,11 @@ if (!nativeBinding) {
295295
throw new Error(`Failed to load native binding`)
296296
}
297297

298-
const { GameSearchSortable, GameSearchDirection, ElementType, RuffleSupport, FlashpointArchive, genContentTree, copyFolder, mergeGameFilters, parseUserSearchInput, newSubfilter, enableDebug, disableDebug, debugEnabled, loggerSusbcribe } = nativeBinding
298+
const { GameSearchSortable, GameSearchDirection, ElementType, FlashpointArchive, genContentTree, copyFolder, mergeGameFilters, parseUserSearchInput, newSubfilter, enableDebug, disableDebug, debugEnabled, loggerSusbcribe } = nativeBinding
299299

300300
module.exports.GameSearchSortable = GameSearchSortable
301301
module.exports.GameSearchDirection = GameSearchDirection
302302
module.exports.ElementType = ElementType
303-
module.exports.RuffleSupport = RuffleSupport
304303
module.exports.FlashpointArchive = FlashpointArchive
305304
module.exports.genContentTree = genContentTree
306305
module.exports.copyFolder = copyFolder

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@fparchive/flashpoint-archive",
3-
"version": "0.10.0",
3+
"version": "0.10.1",
44
"main": "index.js",
55
"types": "index.d.ts",
66
"license": "MIT",

0 commit comments

Comments
 (0)