@spatialwalk/avatarkit 1.0.0-beta.46 → 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,11 @@ 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
|
+
|
|
8
13
|
## [1.0.0-beta.46] - 2025-12-29
|
|
9
14
|
|
|
10
15
|
### 🐛 Bugfix
|
|
@@ -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-
|
|
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);
|
|
@@ -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-
|
|
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.
|
|
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
package/package.json
CHANGED