nucleation 0.8.0 → 0.9.1

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.
@@ -1,6 +1,5 @@
1
- import { fileURLToPath } from "node:url";
2
- import path from "node:path";
3
-
1
+ // Isomorphic: fs.readFileSync accepts file:// URLs in Node; the browser
2
+ // branch fetches the same URL relative to the module.
4
3
  export default {
5
- wasm_path: path.join(path.dirname(fileURLToPath(import.meta.url)), "nucleation.wasm"),
4
+ wasm_path: new URL("./nucleation.wasm", import.meta.url),
6
5
  };
package/index.d.mts CHANGED
@@ -58,6 +58,8 @@ export { Field3 } from "./Field3.mjs"
58
58
 
59
59
  export { Geo } from "./Geo.mjs"
60
60
 
61
+ export { TickSimulation } from "./TickSimulation.mjs"
62
+
61
63
  export { ChunkMeshResult } from "./ChunkMeshResult.mjs"
62
64
 
63
65
  export { ItemModelConfig } from "./ItemModelConfig.mjs"
@@ -156,6 +158,8 @@ export { WorldStream } from "./WorldStream.mjs"
156
158
 
157
159
  export { InterpolationSpace } from "./InterpolationSpace.mjs"
158
160
 
161
+ export { TickSettleMode } from "./TickSettleMode.mjs"
162
+
159
163
  export { MeshPhase } from "./MeshPhase.mjs"
160
164
 
161
165
  export { FieldProgramBinaryOp } from "./FieldProgramBinaryOp.mjs"
package/index.d.ts CHANGED
@@ -58,6 +58,8 @@ export { Field3 } from "./Field3.mjs"
58
58
 
59
59
  export { Geo } from "./Geo.mjs"
60
60
 
61
+ export { TickSimulation } from "./TickSimulation.mjs"
62
+
61
63
  export { ChunkMeshResult } from "./ChunkMeshResult.mjs"
62
64
 
63
65
  export { ItemModelConfig } from "./ItemModelConfig.mjs"
@@ -156,6 +158,8 @@ export { WorldStream } from "./WorldStream.mjs"
156
158
 
157
159
  export { InterpolationSpace } from "./InterpolationSpace.mjs"
158
160
 
161
+ export { TickSettleMode } from "./TickSettleMode.mjs"
162
+
159
163
  export { MeshPhase } from "./MeshPhase.mjs"
160
164
 
161
165
  export { FieldProgramBinaryOp } from "./FieldProgramBinaryOp.mjs"
package/index.mjs CHANGED
@@ -56,6 +56,8 @@ export { Field3 } from "./Field3.mjs"
56
56
 
57
57
  export { Geo } from "./Geo.mjs"
58
58
 
59
+ export { TickSimulation } from "./TickSimulation.mjs"
60
+
59
61
  export { ChunkMeshResult } from "./ChunkMeshResult.mjs"
60
62
 
61
63
  export { ItemModelConfig } from "./ItemModelConfig.mjs"
@@ -154,6 +156,8 @@ export { WorldStream } from "./WorldStream.mjs"
154
156
 
155
157
  export { InterpolationSpace } from "./InterpolationSpace.mjs"
156
158
 
159
+ export { TickSettleMode } from "./TickSettleMode.mjs"
160
+
157
161
  export { MeshPhase } from "./MeshPhase.mjs"
158
162
 
159
163
  export { FieldProgramBinaryOp } from "./FieldProgramBinaryOp.mjs"
@@ -177,4 +181,4 @@ export { GeneratedChunkOverlayMode } from "./GeneratedChunkOverlayMode.mjs"
177
181
  import wasm from "./diplomat-wasm.mjs";
178
182
  import {FUNCTION_PARAM_ALLOC, internalConstructor} from "./diplomat-runtime.mjs";
179
183
 
180
- FUNCTION_PARAM_ALLOC.reserve(internalConstructor, wasm, 60);
184
+ FUNCTION_PARAM_ALLOC.reserve(internalConstructor, wasm, 64);
package/nucleation.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nucleation",
3
- "version": "0.8.0",
3
+ "version": "0.9.1",
4
4
  "description": "A high-performance Minecraft schematic parser and utility library",
5
5
  "type": "module",
6
6
  "main": "index.mjs",