@immediately-run/sandpack-react 2.20.0 → 2.20.2

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,5 +1,12 @@
1
1
  import type { SandpackFS } from "@immediately-run/sandpack-client";
2
2
  export declare const useSandpackId: () => string;
3
+ /**
4
+ * A throwaway, MAX_ID_LENGTH-character id that does NOT touch the filesystem.
5
+ * Use this wherever a content-derived id isn't actually needed (e.g. when the
6
+ * service worker is disabled), so we don't walk the file list and read every
7
+ * file just to hash an id the bundler will ignore.
8
+ */
9
+ export declare const cheapSandpackId: () => string;
3
10
  /**
4
11
  * Produces a stable id derived from the current filesystem contents. The
5
12
  * snapshot is only materialized when the returned thunk is called, so we
@@ -1 +1 @@
1
- {"version":3,"file":"useAsyncSandpackId.d.ts","sourceRoot":"","sources":["../../../../src/utils/useAsyncSandpackId.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAKnE,eAAO,MAAM,aAAa,cAOzB,CAAC;AAWF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,UAAU,MAAM,EAAE,EAAE,IAAI,UAAU,6CAqBpE,CAAC"}
1
+ {"version":3,"file":"useAsyncSandpackId.d.ts","sourceRoot":"","sources":["../../../../src/utils/useAsyncSandpackId.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAKnE,eAAO,MAAM,aAAa,cAOzB,CAAC;AAWF;;;;;GAKG;AACH,eAAO,MAAM,eAAe,QAAO,MACc,CAAC;AAElD;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,UAAU,MAAM,EAAE,EAAE,IAAI,UAAU,6CAqBpE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@immediately-run/sandpack-react",
3
- "version": "2.20.0",
3
+ "version": "2.20.2",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "repository": {
@@ -62,9 +62,8 @@
62
62
  "@codemirror/language": "^6.10.6",
63
63
  "@codemirror/state": "^6.5.0",
64
64
  "@codemirror/view": "^6.35.3",
65
- "@immediately-run/sandpack-client": "^2.19.8",
65
+ "@immediately-run/sandpack-client": "^2.19.10",
66
66
  "@lezer/highlight": "^1.2.1",
67
- "@zenfs/core": "~2.3.11",
68
67
  "@react-hook/intersection-observer": "^3.1.2",
69
68
  "@vanilla-extract/dynamic": "^2.1.5",
70
69
  "@vanilla-extract/recipes": "^0.5.7",
@@ -95,6 +94,7 @@
95
94
  "@vanilla-extract/jest-transform": "^1.1.22",
96
95
  "@vanilla-extract/rollup-plugin": "^1.5.3",
97
96
  "@vanilla-extract/vite-plugin": "^5.2.2",
97
+ "@zenfs/core": "~2.3.11",
98
98
  "acorn-walk": "^8.3.4",
99
99
  "astring": "^1.9.0",
100
100
  "rollup-plugin-filesize": "^10.0.0",
@@ -102,6 +102,7 @@
102
102
  "typescript": "^5.7.2"
103
103
  },
104
104
  "peerDependencies": {
105
+ "@zenfs/core": "^2.3.11",
105
106
  "react": "^16.8.0 || ^17 || ^18 || ^19",
106
107
  "react-dom": "^16.8.0 || ^17 || ^18 || ^19"
107
108
  }