@nebula-spatial/viewer 0.4.1 → 0.4.2
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 +6 -0
- package/README.md +4 -1
- package/dist/{index-D0lW4RQP.js → index-C9CW-EyW.js} +2 -2
- package/dist/index.js +1 -1
- package/dist/{session-DNMxzxd5.js → session-B-qVl3Yy.js} +162 -163
- package/dist/{session-B4uKXhdV.js → session-B2SfkK9o.js} +1 -1
- package/dist/{stage-CFr9ZkwQ.js → stage-D-Q_zul6.js} +1 -1
- package/dist/{usd-session-DDWM5msM.js → usd-session-DCuV_H-Y.js} +191 -175
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this package are documented in this file.
|
|
4
4
|
|
|
5
|
+
## 0.4.2
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- 修复 `assets.openUsdBaseUrl` 指向跨域 runtime 时,OpenUSD pthread Worker 因入口同源限制抛出 `SecurityError` 的问题;通过 Blob 模块入口导入远端 runtime,保留同源与 Node 加载行为,并补充回归测试及 CORS、CSP 部署说明。
|
|
10
|
+
|
|
5
11
|
## 0.4.1
|
|
6
12
|
|
|
7
13
|
### Added
|
package/README.md
CHANGED
|
@@ -315,7 +315,10 @@ Cross-Origin-Embedder-Policy: require-corp
|
|
|
315
315
|
`@mujoco/mujoco` 和 `@openusd-wasm/three-loader` 保持动态加载。Vite 浏览器构建需要将 MuJoCo
|
|
316
316
|
包中的 Node-only 裸模块 `module` 精确 alias 到一个导出 `createRequire()` 的浏览器拒绝模块;
|
|
317
317
|
仓库的 `vite.config.ts` 和独立消费者验证脚本包含该配置。可通过 `assets.mujocoBaseUrl` 与
|
|
318
|
-
`assets.openUsdBaseUrl` 指向自行托管的 runtime 文件目录。
|
|
318
|
+
`assets.openUsdBaseUrl` 指向自行托管的 runtime 文件目录。
|
|
319
|
+
跨域 OpenUSD runtime 使用 Blob 模块 Worker 入口导入原始 runtime;CDN 仍需允许 CORS,
|
|
320
|
+
若部署配置了 CSP,还需允许 `worker-src blob:` 及对应 CDN 的脚本加载。该入口不替代上述跨源隔离响应头。
|
|
321
|
+
|
|
319
322
|
|
|
320
323
|
## CAD 快速开始
|
|
321
324
|
|
|
@@ -5769,7 +5769,7 @@ const ss = {
|
|
|
5769
5769
|
clearColor: B.dark
|
|
5770
5770
|
},
|
|
5771
5771
|
async createSession(e, t) {
|
|
5772
|
-
const { createModelSession: i } = await import("./session-
|
|
5772
|
+
const { createModelSession: i } = await import("./session-B2SfkK9o.js");
|
|
5773
5773
|
return i(e, t);
|
|
5774
5774
|
}
|
|
5775
5775
|
});
|
|
@@ -5853,7 +5853,7 @@ const cs = {
|
|
|
5853
5853
|
clearColor: B.dark
|
|
5854
5854
|
},
|
|
5855
5855
|
async createSession(e, t) {
|
|
5856
|
-
const { createSimulationSession: i } = await import("./session-
|
|
5856
|
+
const { createSimulationSession: i } = await import("./session-B-qVl3Yy.js").then((r) => r.s);
|
|
5857
5857
|
return i(e, t);
|
|
5858
5858
|
}
|
|
5859
5859
|
});
|
package/dist/index.js
CHANGED