smolmachines 1.28.1 → 1.29.0

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 (2) hide show
  1. package/dist/assets.js +3 -1
  2. package/package.json +4 -4
package/dist/assets.js CHANGED
@@ -90,7 +90,9 @@ function wireBundledAssets() {
90
90
  if (!assets.libDir) {
91
91
  assets.libDir = nativeDir;
92
92
  }
93
- const rootfsTar = (0, node_path_1.join)(nativeDir, 'agent-rootfs.tar');
93
+ // Shipped zstd-compressed; an older or locally built package has the plain tar.
94
+ const compressedRootfs = (0, node_path_1.join)(nativeDir, 'agent-rootfs.tar.zst');
95
+ const rootfsTar = (0, node_fs_1.existsSync)(compressedRootfs) ? compressedRootfs : (0, node_path_1.join)(nativeDir, 'agent-rootfs.tar');
94
96
  if (!assets.agentRootfs && !assets.agentRootfsTar && (0, node_fs_1.existsSync)(rootfsTar)) {
95
97
  assets.agentRootfsTar = rootfsTar;
96
98
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smolmachines",
3
- "version": "1.28.1",
3
+ "version": "1.29.0",
4
4
  "description": "Embed isolated microVM sandboxes directly in your code — no server to run.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "smol-machines",
@@ -65,8 +65,8 @@
65
65
  "typescript": "^5.6.0"
66
66
  },
67
67
  "optionalDependencies": {
68
- "smolmachines-darwin-arm64": "1.28.1",
69
- "smolmachines-linux-x64-gnu": "1.28.1",
70
- "smolmachines-linux-arm64-gnu": "1.28.1"
68
+ "smolmachines-darwin-arm64": "1.29.0",
69
+ "smolmachines-linux-x64-gnu": "1.29.0",
70
+ "smolmachines-linux-arm64-gnu": "1.29.0"
71
71
  }
72
72
  }