@seriousgaming/sdk-tools 1.0.0-alpha.4 → 1.0.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/dist/docs/changelog.md
CHANGED
|
@@ -27,6 +27,8 @@ are in the [0.x changelog](changelog-0.x.md).
|
|
|
27
27
|
|
|
28
28
|
## [Unreleased]
|
|
29
29
|
|
|
30
|
+
## [1.0.0] — 2026-10-18
|
|
31
|
+
|
|
30
32
|
### Breaking Changes
|
|
31
33
|
|
|
32
34
|
#### Packages
|
|
@@ -73,7 +75,7 @@ are in the [0.x changelog](changelog-0.x.md).
|
|
|
73
75
|
- **`uses` on user interfaces is removed**, and the build refuses it. It never had an effect; a surface reaches a service through an endpoint that declares it. See [step 9](guides/upgrading.md#step-9-meet-what-the-build-and-runtime-now-enforce)
|
|
74
76
|
- **Demo mode is removed.** `demo` in the manifest and scenarios, `GameDemo` and `sdk dev --demo` are gone, and the build refuses the field. Use a walkthrough run to show a game. See [step 9](guides/upgrading.md#step-9-meet-what-the-build-and-runtime-now-enforce)
|
|
75
77
|
- **A session UI's callbacks include `deleteTeam`**, so a hand-built callbacks object in a test must supply it. See [step 10d](guides/upgrading.md#10d-update-ui-component-tests)
|
|
76
|
-
- **Four `./ui` names pair with their hook or theme type.** `CrossTeamDataContext` is `UserInterfaceCrossTeamDataContext`, `UserInterfaceValidationContext` is `UserInterfaceValidationRejectionsContext` (its value type `UserInterfaceValidationRejectionsValue`), and in `./ui/testing` `createMockTheme` is `createMockUserInterfaceTheme` and `createMockSessionTheme` is `createMockSessionUserInterfaceTheme
|
|
78
|
+
- **Four `./ui` names pair with their hook or theme type.** `CrossTeamDataContext` is `UserInterfaceCrossTeamDataContext`, `UserInterfaceValidationContext` is `UserInterfaceValidationRejectionsContext` (its value type `UserInterfaceValidationRejectionsValue`), and in `./ui/testing` `createMockTheme` is `createMockUserInterfaceTheme` and `createMockSessionTheme` is `createMockSessionUserInterfaceTheme`. See [step 10d](guides/upgrading.md#10d-update-ui-component-tests)
|
|
77
79
|
|
|
78
80
|
#### CLI
|
|
79
81
|
|
|
@@ -284,4 +286,4 @@ are in the [0.x changelog](changelog-0.x.md).
|
|
|
284
286
|
|
|
285
287
|
### Security
|
|
286
288
|
|
|
287
|
-
-
|
|
289
|
+
- **Six advisories are cleared**, one of them critical (`proxy-addr`), with `source-map-js`, `fast-uri` and `sharp`. `image-size`, reached through `@seriousgaming/deck`'s PowerPoint export, is held to `>=2.0.3` by a new override (GHSA-5p2g-fcmc-qvqq, GHSA-w3rx-r6r6-pgpr). A scaffolded package carries the same override in its `pnpm-workspace.yaml`: copy that block into an existing package's file, then run `pnpm update -r` and `pnpm audit`
|
|
@@ -569,6 +569,29 @@ Two builders need more than their names suggest:
|
|
|
569
569
|
|
|
570
570
|
### 10d. Update UI component tests
|
|
571
571
|
|
|
572
|
+
Four names in `@seriousgaming/sdk/ui` and `@seriousgaming/sdk/ui/testing` are renamed to pair with their hook or theme type, with no alias for the old ones, so code using them fails to compile until it is renamed:
|
|
573
|
+
|
|
574
|
+
| Before | After |
|
|
575
|
+
| ------------------------------------- | ------------------------------------------ |
|
|
576
|
+
| `createMockTheme` | `createMockUserInterfaceTheme` |
|
|
577
|
+
| `createMockSessionTheme` | `createMockSessionUserInterfaceTheme` |
|
|
578
|
+
| `CrossTeamDataContext` | `UserInterfaceCrossTeamDataContext` |
|
|
579
|
+
| `UserInterfaceValidationContext` | `UserInterfaceValidationRejectionsContext` |
|
|
580
|
+
| `UserInterfaceValidationContextValue` | `UserInterfaceValidationRejectionsValue` |
|
|
581
|
+
|
|
582
|
+
The renames are name-only, so one command makes them across a package. Run it from the package root, in a clean working tree so you can review the result with `git diff`:
|
|
583
|
+
|
|
584
|
+
```bash
|
|
585
|
+
git grep -lzE 'createMockTheme|createMockSessionTheme|CrossTeamDataContext|UserInterfaceValidationContext' -- '*.ts' '*.tsx' \
|
|
586
|
+
| xargs -0 perl -pi -e '
|
|
587
|
+
s/\bcreateMockTheme\b/createMockUserInterfaceTheme/g;
|
|
588
|
+
s/\bcreateMockSessionTheme\b/createMockSessionUserInterfaceTheme/g;
|
|
589
|
+
s/\bCrossTeamDataContext\b/UserInterfaceCrossTeamDataContext/g;
|
|
590
|
+
s/\bUserInterfaceValidationContextValue\b/UserInterfaceValidationRejectionsValue/g;
|
|
591
|
+
s/\bUserInterfaceValidationContext\b/UserInterfaceValidationRejectionsContext/g;
|
|
592
|
+
'
|
|
593
|
+
```
|
|
594
|
+
|
|
572
595
|
The helpers in `@seriousgaming/sdk/ui/testing` build each piece; see [Testing](./testing.md):
|
|
573
596
|
|
|
574
597
|
- **`createMockTeamState` and `createMockSharedState`** build a team's and the shared store's state for a session UI test. Pass the generated types, `createMockTeamState<TeamContext>({ context })` and `createMockSharedState<SharedContext>({ context })`, and a shared capability left on a team fixture fails to compile. Render with `renderSessionUserInterface<SessionData>(...)` so the whole fixture is checked. Typing a fixture this way tends to turn up stale test data: fields the game renamed long ago, and tests that were passing while checking nothing. Treat each failure as a find, not a regression, and fix the test
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seriousgaming/sdk-tools",
|
|
3
|
-
"version": "1.0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "SDK tooling for building Serious Gaming games",
|
|
5
5
|
"homepage": "https://sdk.seriousgaming.com/",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"@mui/icons-material": "^9.4.0",
|
|
69
69
|
"@mui/material": "^9.4.0",
|
|
70
70
|
"@playwright/test": "^1.64.0",
|
|
71
|
-
"@seriousgaming/sdk": "1.0.0
|
|
71
|
+
"@seriousgaming/sdk": "1.0.0",
|
|
72
72
|
"@testing-library/jest-dom": "^7.0.1",
|
|
73
73
|
"@testing-library/react": "^16.3.3",
|
|
74
74
|
"@types/adm-zip": "^0.5.8",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"vitest": "^5.0.3"
|
|
99
99
|
},
|
|
100
100
|
"peerDependencies": {
|
|
101
|
-
"@seriousgaming/sdk": "^1.0.0
|
|
101
|
+
"@seriousgaming/sdk": "^1.0.0"
|
|
102
102
|
},
|
|
103
103
|
"engines": {
|
|
104
104
|
"node": ">=24"
|