toiljs 0.0.110 → 0.0.111

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/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## [v0.0.110] - 2026-07-06
4
+
5
+ - No changes
6
+
7
+
3
8
  ## [v0.0.108] - 2026-07-06
4
9
 
5
10
  - No changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "toiljs",
3
3
  "type": "module",
4
- "version": "0.0.110",
4
+ "version": "0.0.111",
5
5
  "author": "Dacely",
6
6
  "description": "The modern React framework: a file-based React frontend and a ToilScript-compiled WebAssembly backend.",
7
7
  "repository": {
@@ -345,7 +345,9 @@ export namespace AuthService {
345
345
  export function userId(): ToilUserId | null {
346
346
  const bytes = getSessionBytes();
347
347
  if (bytes == null) return null;
348
- return ToilUserId.fromBytes(new DataReader(bytes).readBytes());
348
+ const r = new DataReader(bytes);
349
+ r.readU32(); // skip the @data message-boundary id that `encode()` writes first
350
+ return ToilUserId.fromBytes(r.readBytes());
349
351
  }
350
352
 
351
353
  /**