@rydr/game-sdk 1.19.1 → 2.1.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.
@@ -10,7 +10,20 @@
10
10
  // shells omit it, the client falls back to its default).
11
11
  // Bumped 5 → 6: button vocabulary renamed `OK`/`CANCEL` → `PRIMARY`/`SECONDARY` (breaking —
12
12
  // the `input.button` `name` values changed). Held-state query (`isDown`/`buttonsDown`) is additive.
13
- export const RYDR_PROTOCOL_VERSION = 6;
14
- /** Semver of this SDK build. Sent in the handshake for telemetry/debugging. */
15
- export const RYDR_SDK_VERSION = "1.19.1";
13
+ // Bumped 6 7: adds `rydr/hw.setRate` so a game can request its hardware-stream rate (additive —
14
+ // older games never send it and stream at the native rate, the new default).
15
+ // Bumped 7 8: adds `rydr/run.start` so a game can begin a new run/attempt and get a fresh runId
16
+ // (additive — older games never send it and keep one runId for the whole session, the prior behavior).
17
+ // Bumped 8 → 9: ONE play-attempt concept, the "run" (BREAKING). Deletes the segment API
18
+ // (`rydr/segment.*`) and standalone `rydr/leaderboard.submit`; `run.start` now opens a named effort
19
+ // window (+`name`, returns `startedAt`), and `run.save` becomes request/reply carrying optional
20
+ // `scores[]` (folding in score submission) and returning `SubmitScoreResult[]`. Migrate:
21
+ // `startSegment(name)`+`endSegment(d)` and `submitScore(b,v)` → `startRun(name)` + `saveRun({breakdown,scores})`.
22
+ // Bumped 9 → 10: adds `rydr/leaderboard.rankQuery` so a game can ask where an arbitrary value would
23
+ // rank WITHOUT submitting it — a read-only standing for an in-progress score (`getRank`). Additive —
24
+ // older shells never reply, so the call rejects (timeout) and callers treat the rank as optional.
25
+ export const RYDR_PROTOCOL_VERSION = 10;
26
+ /** Semver of this SDK build. Sent in the handshake for telemetry/debugging.
27
+ * (Bumped to 2.0.0 by `npm version major` on release — see CHANGELOG [Unreleased].) */
28
+ export const RYDR_SDK_VERSION = "2.1.0";
16
29
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/protocol/version.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,8FAA8F;AAC9F,yDAAyD;AACzD,4FAA4F;AAC5F,oGAAoG;AACpG,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAU,CAAC;AAEhD,+EAA+E;AAC/E,MAAM,CAAC,MAAM,gBAAgB,GAAG,QAAQ,CAAC"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/protocol/version.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,8FAA8F;AAC9F,yDAAyD;AACzD,4FAA4F;AAC5F,oGAAoG;AACpG,kGAAkG;AAClG,6EAA6E;AAC7E,kGAAkG;AAClG,uGAAuG;AACvG,wFAAwF;AACxF,oGAAoG;AACpG,gGAAgG;AAChG,yFAAyF;AACzF,kHAAkH;AAClH,oGAAoG;AACpG,qGAAqG;AACrG,kGAAkG;AAClG,MAAM,CAAC,MAAM,qBAAqB,GAAG,EAAW,CAAC;AAEjD;wFACwF;AACxF,MAAM,CAAC,MAAM,gBAAgB,GAAG,OAAO,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rydr/game-sdk",
3
- "version": "1.19.1",
3
+ "version": "2.1.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/bdefrenne/rydr-game-sdk.git"