@miden-sdk/create-miden-para-react 0.10.10 → 0.13.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.
- package/README.md +1 -1
- package/bin/create-miden-para-react.mjs +3 -3
- package/package.json +1 -1
- package/template/vite.config.ts +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
- Runs `npm create vite@latest <target> -- --template react-ts` so you always start from the upstream default.
|
|
7
7
|
- Replaces `vite.config.ts` with the Para + Miden-friendly config (dedupe/exclude and WASM asset handling).
|
|
8
8
|
- Replaces `src/App.tsx` with a ParaProvider + `useParaMiden` starter that reports the account ID and client readiness.
|
|
9
|
-
- Adds Para/Miden + connector deps (matching `examples/react`) so Para SDK peers resolve: `@miden-sdk/miden-para`, `@miden-sdk/use-miden-para-react`, `@getpara/react-sdk-lite`, `@getpara/evm-wallet-connectors`, `@
|
|
9
|
+
- Adds Para/Miden + connector deps (matching `examples/react`) so Para SDK peers resolve: `@miden-sdk/miden-para`, `@miden-sdk/use-miden-para-react`, `@getpara/react-sdk-lite`, `@getpara/evm-wallet-connectors`, `@miden-sdk/miden-sdk`, `@tanstack/react-query`, `@wagmi/core`, `viem`, `wagmi`, plus dev plugins `vite-plugin-node-polyfills`, `vite-plugin-wasm`, and `vite-plugin-top-level-await`.
|
|
10
10
|
- Installs dependencies using your detected package manager (`pnpm`, `yarn`, `bun`, or falls back to `npm`); `create-vite` is invoked with `--yes --no-install` and auto-answers “no” to install prompts to avoid reverting the patched files.
|
|
11
11
|
- Writes `.npmrc` with `legacy-peer-deps=true` so `npm install` works despite a known peer mismatch between `@miden-sdk/use-miden-para-react` and `@miden-sdk/miden-para`.
|
|
12
12
|
- Adds `src/polyfills.ts` and injects it into `src/main.tsx` to provide `Buffer`/`process` in the browser.
|
|
@@ -211,10 +211,10 @@ function ensureMidenParaDependencies(targetRoot) {
|
|
|
211
211
|
pkg.scripts = pkg.scripts ?? {};
|
|
212
212
|
const midenParaVersion = useLocalDeps
|
|
213
213
|
? `file:${localMidenParaPath}`
|
|
214
|
-
: "0.
|
|
214
|
+
: "0.13.0";
|
|
215
215
|
const useMidenParaReactVersion = useLocalDeps
|
|
216
216
|
? `file:${localUseMidenParaReactPath}`
|
|
217
|
-
: "^0.
|
|
217
|
+
: "^0.13.0";
|
|
218
218
|
// Align with examples/react so Para SDK connector peers are satisfied
|
|
219
219
|
Object.assign(pkg.dependencies, {
|
|
220
220
|
...pkg.dependencies,
|
|
@@ -222,7 +222,7 @@ function ensureMidenParaDependencies(targetRoot) {
|
|
|
222
222
|
"@getpara/evm-wallet-connectors": "^2.3.0",
|
|
223
223
|
"@tanstack/react-query": "^5.90.12",
|
|
224
224
|
"@wagmi/core": "^3.0.0",
|
|
225
|
-
"@
|
|
225
|
+
"@miden-sdk/miden-sdk": "^0.13.0",
|
|
226
226
|
"@miden-sdk/miden-para": midenParaVersion,
|
|
227
227
|
"@miden-sdk/use-miden-para-react": useMidenParaReactVersion,
|
|
228
228
|
viem: "^2.41.2",
|
package/package.json
CHANGED
package/template/vite.config.ts
CHANGED
|
@@ -27,7 +27,7 @@ export default defineConfig({
|
|
|
27
27
|
// Keep Miden SDK unbundled and avoid prebundling Para's Stencil component bundles
|
|
28
28
|
// to prevent multiple runtimes in dev.
|
|
29
29
|
exclude: [
|
|
30
|
-
'@
|
|
30
|
+
'@miden-sdk/miden-sdk',
|
|
31
31
|
'@getpara/solana-wallet-connectors',
|
|
32
32
|
'@getpara/cosmos-wallet-connectors',
|
|
33
33
|
],
|