@celox-sim/celox-napi 0.1.18 → 0.1.20

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.
Files changed (3) hide show
  1. package/index.d.ts +8 -1
  2. package/index.js +1 -0
  3. package/package.json +8 -8
package/index.d.ts CHANGED
@@ -49,7 +49,7 @@ export declare class NativeSimulationHandle {
49
49
  }
50
50
 
51
51
  /**
52
- * Low-level handle wrapping a `celox::Simulator`.
52
+ * Low-level handle wrapping a `celox::Simulator` or a cached JitBackend.
53
53
  *
54
54
  * JS holds this as an opaque class; all operations go through methods.
55
55
  */
@@ -93,6 +93,13 @@ export declare class NativeSimulatorHandle {
93
93
  dispose(): void
94
94
  }
95
95
 
96
+ /**
97
+ * Clear the process-global JIT compilation cache.
98
+ *
99
+ * Call this when source files have changed and cached compiled code may be stale.
100
+ */
101
+ export declare function clearJitCache(): void
102
+
96
103
  /**
97
104
  * Generate TypeScript type information as JSON for a Veryl project.
98
105
  *
package/index.js CHANGED
@@ -578,4 +578,5 @@ if (!nativeBinding) {
578
578
  module.exports = nativeBinding
579
579
  module.exports.NativeSimulationHandle = nativeBinding.NativeSimulationHandle
580
580
  module.exports.NativeSimulatorHandle = nativeBinding.NativeSimulatorHandle
581
+ module.exports.clearJitCache = nativeBinding.clearJitCache
581
582
  module.exports.genTs = nativeBinding.genTs
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celox-sim/celox-napi",
3
- "version": "0.1.18",
3
+ "version": "0.1.20",
4
4
  "description": "Celox simulator NAPI bindings",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -44,12 +44,12 @@
44
44
  },
45
45
  "license": "MIT OR Apache-2.0",
46
46
  "optionalDependencies": {
47
- "@celox-sim/celox-napi-linux-x64-gnu": "0.1.18",
48
- "@celox-sim/celox-napi-linux-arm64-gnu": "0.1.18",
49
- "@celox-sim/celox-napi-linux-x64-musl": "0.1.18",
50
- "@celox-sim/celox-napi-linux-arm64-musl": "0.1.18",
51
- "@celox-sim/celox-napi-darwin-x64": "0.1.18",
52
- "@celox-sim/celox-napi-darwin-arm64": "0.1.18",
53
- "@celox-sim/celox-napi-win32-x64-msvc": "0.1.18"
47
+ "@celox-sim/celox-napi-linux-x64-gnu": "0.1.20",
48
+ "@celox-sim/celox-napi-linux-arm64-gnu": "0.1.20",
49
+ "@celox-sim/celox-napi-linux-x64-musl": "0.1.20",
50
+ "@celox-sim/celox-napi-linux-arm64-musl": "0.1.20",
51
+ "@celox-sim/celox-napi-darwin-x64": "0.1.20",
52
+ "@celox-sim/celox-napi-darwin-arm64": "0.1.20",
53
+ "@celox-sim/celox-napi-win32-x64-msvc": "0.1.20"
54
54
  }
55
55
  }