sandboxedjs 0.1.57 → 0.1.59

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/README.md CHANGED
@@ -729,22 +729,10 @@ await box.exec("python3 -c 'import sqlite3; print(sqlite3.sqlite_version)'");
729
729
  Python never falls back to a host interpreter. When selecting the optional
730
730
  Pyodide backend, its module and asset directory must use the same version.
731
731
 
732
- ### Python wheels with Vite
733
-
734
- Vite prebundles JavaScript dependencies into `.vite/deps`, but it does not
735
- serve binary package assets next to that optimized module. Copy
736
- `node_modules/sandboxedjs/dist/python/wheels` to your app's public directory
737
- at build time, then configure the public URL before creating a container:
738
-
739
- ```ts
740
- import { configurePython } from "sandboxedjs";
741
-
742
- configurePython({ wheelIndex: "/python/wheels" });
743
- ```
744
-
745
- The directory must contain `index.json` and every wheel named by it. Once this
746
- is configured, `pip install fastapi` resolves Pydantic 2 and the bundled
747
- WASM-compatible `pydantic-core` rather than falling back to Pydantic 1.
732
+ The ABI-matched Pydantic Core wheels are embedded in the package's JavaScript
733
+ bundle, so Vite and other bundlers do not need to copy or serve a separate
734
+ wheel directory. `configurePython({ wheelIndex })` remains available for a
735
+ private index containing additional native extensions.
748
736
 
749
737
  ## Uploading files
750
738
 
package/dist/agent.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { C as Container } from './container-CY_hS650.cjs';
1
+ import { C as Container } from './container-sd_UKlqo.cjs';
2
2
  import './contracts-CVgctitO.cjs';
3
3
 
4
4
  /**
package/dist/agent.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { C as Container } from './container-BAgb9I06.js';
1
+ import { C as Container } from './container-CfOQpBhG.js';
2
2
  import './contracts-CVgctitO.js';
3
3
 
4
4
  /**
@@ -1147,6 +1147,8 @@ interface WheelIndex {
1147
1147
  /** Where `filename` is resolved against. */
1148
1148
  baseUrl: string;
1149
1149
  wheels: PrebuiltWheel[];
1150
+ /** Optional in-bundle wheel payloads, keyed by filename and base64 encoded. */
1151
+ files?: Record<string, string>;
1150
1152
  }
1151
1153
 
1152
1154
  /**
@@ -1147,6 +1147,8 @@ interface WheelIndex {
1147
1147
  /** Where `filename` is resolved against. */
1148
1148
  baseUrl: string;
1149
1149
  wheels: PrebuiltWheel[];
1150
+ /** Optional in-bundle wheel payloads, keyed by filename and base64 encoded. */
1151
+ files?: Record<string, string>;
1150
1152
  }
1151
1153
 
1152
1154
  /**