@hypen-space/web 0.2.9 → 0.2.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hypen-space/web",
3
- "version": "0.2.9",
3
+ "version": "0.2.11",
4
4
  "description": "Hypen web renderers - DOM and Canvas rendering for browsers",
5
5
  "type": "module",
6
6
  "main": "./dist/src/index.js",
@@ -48,7 +48,7 @@
48
48
  "clean": "rm -rf dist"
49
49
  },
50
50
  "dependencies": {
51
- "@hypen-space/core": "^0.2.9"
51
+ "@hypen-space/core": "^0.2.11"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/bun": "latest",
package/src/hypen.ts CHANGED
@@ -24,8 +24,10 @@ export interface HypenConfig {
24
24
  componentsDir?: string;
25
25
  /** Enable debug logging */
26
26
  debug?: boolean;
27
- /** Custom WASM path */
28
- wasmPath?: string;
27
+ /** Custom WASM URL */
28
+ wasmUrl?: string;
29
+ /** Custom WASM JS glue URL */
30
+ jsUrl?: string;
29
31
  /** Enable re-render heatmap debugging */
30
32
  debugHeatmap?: boolean;
31
33
  /** Heatmap increment per re-render (default: 5%) */
@@ -76,9 +78,10 @@ export class Hypen {
76
78
 
77
79
  // Initialize engine
78
80
  this.engine = new Engine();
79
- await this.engine.init(
80
- this.config.wasmPath ? { wasmPath: this.config.wasmPath } : undefined
81
- );
81
+ await this.engine.init({
82
+ wasmUrl: this.config.wasmUrl,
83
+ jsUrl: this.config.jsUrl,
84
+ });
82
85
 
83
86
  if (this.config.debug) {
84
87
  console.log("[Hypen] Engine initialized");