@spatialwalk/avatarkit 1.0.0-beta.29 → 1.0.0-beta.30

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.30] - 2025-12-15
9
+
10
+ ### 🐛 Bugfix
11
+ - **Template Resources Duplicate Download** - Fixed issue where template resources were being re-downloaded for each new character load. Template resources are now only loaded once during SDK initialization and reused for all characters.
12
+
8
13
  ## [1.0.0-beta.29] - 2025-12-15
9
14
 
10
15
  ### 🔄 Breaking Changes
@@ -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-BpVIIm3g.js";
4
+ import { A as APP_CONFIG, e as errorToMessage, l as logEvent, a as logger } from "./index-FJY_63Bh.js";
5
5
  class StreamingAudioPlayer {
6
6
  constructor(options) {
7
7
  __publicField(this, "audioContext", null);
File without changes
@@ -1733,7 +1733,7 @@ const _AnimationPlayer = class _AnimationPlayer {
1733
1733
  if (this.streamingPlayer) {
1734
1734
  return;
1735
1735
  }
1736
- const { StreamingAudioPlayer } = await import("./StreamingAudioPlayer-C-_1X8K-.js");
1736
+ const { StreamingAudioPlayer } = await import("./StreamingAudioPlayer-CVqWInxw.js");
1737
1737
  this.streamingPlayer = new StreamingAudioPlayer({
1738
1738
  sampleRate: APP_CONFIG.audio.sampleRate,
1739
1739
  channelCount: 1,
@@ -3131,7 +3131,7 @@ class AvatarSDK {
3131
3131
  }
3132
3132
  __publicField(AvatarSDK, "_isInitialized", false);
3133
3133
  __publicField(AvatarSDK, "_configuration", null);
3134
- __publicField(AvatarSDK, "_version", "1.0.0-beta.28");
3134
+ __publicField(AvatarSDK, "_version", "1.0.0-beta.30");
3135
3135
  __publicField(AvatarSDK, "_avatarCore", null);
3136
3136
  __publicField(AvatarSDK, "_dynamicSdkConfig", null);
3137
3137
  function varint64read() {
@@ -6004,15 +6004,7 @@ class AvatarDownloader {
6004
6004
  }
6005
6005
  async preloadResources(characterMeta, options) {
6006
6006
  const { progressCallback = null } = options || {};
6007
- const [templateResources, characterData, preloadCameraSettings, background] = await Promise.all([
6008
- this.loadTemplateResources(characterMeta.flame, (info) => {
6009
- if (progressCallback) {
6010
- progressCallback({
6011
- ...info,
6012
- stage: `template-${info.stage}`
6013
- });
6014
- }
6015
- }),
6007
+ const [characterData, preloadCameraSettings, background] = await Promise.all([
6016
6008
  this.loadCharacterData(characterMeta, {
6017
6009
  progressCallback: (info) => {
6018
6010
  if (progressCallback) {
@@ -6027,7 +6019,6 @@ class AvatarDownloader {
6027
6019
  this.loadBackground(characterMeta)
6028
6020
  ]);
6029
6021
  return {
6030
- templateResources,
6031
6022
  characterData,
6032
6023
  preloadCameraSettings,
6033
6024
  characterSettings: characterMeta.characterSettings,
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-BpVIIm3g.js";
1
+ import { b, c, f, d, j, g, C, i, D, E, k, h, L, R, S, m } from "./index-FJY_63Bh.js";
2
2
  export {
3
3
  b as Avatar,
4
4
  c as AvatarController,
package/package.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "name": "@spatialwalk/avatarkit",
3
3
  "type": "module",
4
- "version": "1.0.0-beta.29",
5
- "packageManager": "pnpm@10.18.2",
4
+ "version": "1.0.0-beta.30",
6
5
  "description": "SPAvatar SDK - 3D Gaussian Splatting Avatar Rendering SDK",
7
6
  "author": "SPAvatar Team",
8
7
  "license": "MIT",
@@ -32,16 +31,6 @@
32
31
  "CHANGELOG.md",
33
32
  "dist"
34
33
  ],
35
- "scripts": {
36
- "build": "SDK_BUILD=true vite build --mode library",
37
- "dev": "vite build --mode library --watch",
38
- "clean": "rm -rf dist",
39
- "typecheck": "tsc --noEmit",
40
- "test": "cd tests && pnpm test",
41
- "test:watch": "cd tests && pnpm run test:watch",
42
- "test:e2e": "cd tests && pnpm run test:e2e",
43
- "test:perf": "cd tests && pnpm run test:perf"
44
- },
45
34
  "peerDependencies": {
46
35
  "@webgpu/types": "*"
47
36
  },
@@ -57,5 +46,15 @@
57
46
  "typescript": "^5.0.0",
58
47
  "vite": "^5.0.0",
59
48
  "vite-plugin-dts": "^4.5.4"
49
+ },
50
+ "scripts": {
51
+ "build": "SDK_BUILD=true vite build --mode library",
52
+ "dev": "vite build --mode library --watch",
53
+ "clean": "rm -rf dist",
54
+ "typecheck": "tsc --noEmit",
55
+ "test": "cd tests && pnpm test",
56
+ "test:watch": "cd tests && pnpm run test:watch",
57
+ "test:e2e": "cd tests && pnpm run test:e2e",
58
+ "test:perf": "cd tests && pnpm run test:perf"
60
59
  }
61
- }
60
+ }