@spatialwalk/avatarkit 1.0.0-beta.45 → 1.0.0-beta.47

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
@@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.0.0-beta.47] - 2025-12-29
9
+
10
+ ### 🐛 Bugfix
11
+ - **Avatar Meta Update** - Fixed issue where cached Avatar instances would return stale character metadata even when the latest metadata was fetched. Now the character metadata is always updated to the latest version when loading an avatar, even if the version number hasn't changed.
12
+
13
+ ## [1.0.0-beta.46] - 2025-12-29
14
+
15
+ ### 🐛 Bugfix
16
+ - Expose `getCharacterMeta()` method in `Avatar` class as public API
17
+
8
18
  ## [1.0.0-beta.45] - 2025-12-29
9
19
 
10
20
  ### ✨ New Features
@@ -1,7 +1,7 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- import { A as APP_CONFIG, e as errorToMessage, l as logEvent, a as logger } from "./index-Bz4J6yf6.js";
4
+ import { A as APP_CONFIG, e as errorToMessage, l as logEvent, a as logger } from "./index-DBmQDc73.js";
5
5
  class StreamingAudioPlayer {
6
6
  constructor(options) {
7
7
  __publicField(this, "audioContext", null);
@@ -5,4 +5,5 @@ export declare class Avatar {
5
5
  private characterMeta;
6
6
  private resources;
7
7
  constructor(id: string, characterMeta: CharacterMeta, resources: PreloadResult);
8
+ getCharacterMeta(): CharacterMeta;
8
9
  }
@@ -13,6 +13,9 @@ class Avatar {
13
13
  getCharacterMeta() {
14
14
  return this.characterMeta;
15
15
  }
16
+ updateCharacterMeta(newMeta) {
17
+ this.characterMeta = newMeta;
18
+ }
16
19
  getResources() {
17
20
  return this.resources;
18
21
  }
@@ -7573,7 +7576,7 @@ const _AnimationPlayer = class _AnimationPlayer {
7573
7576
  if (this.streamingPlayer) {
7574
7577
  return;
7575
7578
  }
7576
- const { StreamingAudioPlayer } = await import("./StreamingAudioPlayer-BDQE99ro.js");
7579
+ const { StreamingAudioPlayer } = await import("./StreamingAudioPlayer-dNR3u0Z_.js");
7577
7580
  const { AvatarSDK: AvatarSDK2 } = await Promise.resolve().then(() => AvatarSDK$1);
7578
7581
  const audioFormat = AvatarSDK2.getAudioFormat();
7579
7582
  this.streamingPlayer = new StreamingAudioPlayer({
@@ -8963,7 +8966,7 @@ class AvatarSDK {
8963
8966
  }
8964
8967
  __publicField(AvatarSDK, "_isInitialized", false);
8965
8968
  __publicField(AvatarSDK, "_configuration", null);
8966
- __publicField(AvatarSDK, "_version", "1.0.0-beta.45");
8969
+ __publicField(AvatarSDK, "_version", "1.0.0-beta.47");
8967
8970
  __publicField(AvatarSDK, "_avatarCore", null);
8968
8971
  __publicField(AvatarSDK, "_dynamicSdkConfig", null);
8969
8972
  const AvatarSDK$1 = Object.freeze(Object.defineProperty({
@@ -11946,7 +11949,8 @@ const _AvatarManager = class _AvatarManager {
11946
11949
  const cachedVersion = cachedMeta.version;
11947
11950
  const newVersion = newCharacterMeta.version;
11948
11951
  if (cachedVersion === newVersion) {
11949
- logger.log(`[AvatarManager] Avatar ${id} found in cache with same version (${cachedVersion}), returning cached`);
11952
+ logger.log(`[AvatarManager] Avatar ${id} found in cache with same version (${cachedVersion}), updating meta and returning cached`);
11953
+ cached.updateCharacterMeta(newCharacterMeta);
11950
11954
  return cached;
11951
11955
  } else {
11952
11956
  logger.log(`[AvatarManager] Avatar ${id} version mismatch: cached=${cachedVersion}, new=${newVersion}, reloading...`);
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b, c, f, d, j, g, C, i, D, E, k, h, L, R, S, m } from "./index-Bz4J6yf6.js";
1
+ import { b, c, f, d, j, g, C, i, D, E, k, h, L, R, S, m } from "./index-DBmQDc73.js";
2
2
  export {
3
3
  b as Avatar,
4
4
  c as AvatarController,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spatialwalk/avatarkit",
3
3
  "type": "module",
4
- "version": "1.0.0-beta.45",
4
+ "version": "1.0.0-beta.47",
5
5
  "packageManager": "pnpm@10.18.2",
6
6
  "description": "SPAvatar SDK - 3D Gaussian Splatting Avatar Rendering SDK",
7
7
  "author": "SPAvatar Team",