@simeonradivoev/gameflow-sdk 1.5.2 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build.ts CHANGED
@@ -19,7 +19,7 @@ await Bun.build({
19
19
  entrypoints: [values.entry],
20
20
  outdir: values.outdir,
21
21
  minify: values.minify,
22
- sourcemap: values.sourcemap,
22
+ sourcemap: values.sourcemap as any,
23
23
  external: [...Object.keys(pkg.peerDependencies), pkg.name],
24
24
  target: "bun",
25
25
  });
package/hooks/auth.ts CHANGED
@@ -1,5 +1,6 @@
1
- import { DownloadFileEntry } from "@/shared/types";
1
+
2
2
  import { AsyncSeriesHook } from "tapable";
3
+ import { DownloadFileEntry } from "../shared";
3
4
 
4
5
  export default class AuthHooks
5
6
  {
package/hooks/games.ts CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  import { EmulatorPackageType, GameListFilterType, CommandEntry, DownloadInfo, EmulatorSourceEntryType, EmulatorSupport, EmulatorSystem, FrontEndCollection, FrontEndFilterSets, FrontEndGameType, FrontEndGameTypeDetailed, FrontEndGameTypeWithIds, FrontEndId, FrontEndPlatformType, GameLookup, SaveFileChange, SaveSlots } from '../shared';
3
- import { SyncBailHook, AsyncSeriesHook, AsyncSeriesBailHook, Hook, AsyncSeriesWaterfallHook } from 'tapable';
3
+ import { SyncBailHook, AsyncSeriesHook, AsyncSeriesBailHook, AsyncSeriesWaterfallHook } from 'tapable';
4
4
 
5
5
  export default class GameHooks
6
6
  {
package/index.ts CHANGED
@@ -38,6 +38,7 @@ export const PluginDescriptionSchema = z.object({
38
38
  description: z.string().optional(),
39
39
  icon: z.url().optional().describe("Can be an external URL to an image or a data url"),
40
40
  keywords: z.array(z.string()).optional(),
41
+ peerDependencies: z.record(z.string(), z.string()).optional(),
41
42
  category: z.string().default("other"),
42
43
  main: z.string().describe("The main entry. It must export a default class implementing PluginType"),
43
44
  canDisable: z.boolean().default(true).optional().describe("Can the plugin be disabled or enabled by the user")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simeonradivoev/gameflow-sdk",
3
- "version": "1.5.2",
3
+ "version": "1.6.0",
4
4
  "types": "index.d.ts",
5
5
  "description": "plugin SDK for the Gameflow Deck Launcher",
6
6
  "exports": {
@@ -48,4 +48,4 @@
48
48
  "gameflow",
49
49
  "sdk"
50
50
  ]
51
- }
51
+ }
package/shared.ts CHANGED
@@ -184,6 +184,7 @@ export const PluginEntrySchema = z.object({
184
184
  }),
185
185
  searchScore: z.number(),
186
186
  installed: z.boolean(),
187
+ update: z.object({ from: z.string() }).optional(),
187
188
  package: z.object({
188
189
  name: z.string(),
189
190
  keywords: z.string().array(),
@@ -501,6 +502,13 @@ export interface FrontendPlugin
501
502
  hasSettings: boolean;
502
503
  version: string;
503
504
  icon?: string;
505
+ update?: PluginUpdateCheck;
506
+ }
507
+
508
+ export interface PluginUpdateCheck
509
+ {
510
+ current: string;
511
+ new: string;
504
512
  }
505
513
 
506
514
  export type PluginSourceType = "builtin" | "store";