react-mnemonic 1.3.0 → 1.4.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 +11 -4
- package/dist/bootstrap.cjs +864 -0
- package/dist/bootstrap.cjs.map +1 -0
- package/dist/bootstrap.d.cts +100 -0
- package/dist/bootstrap.d.ts +100 -0
- package/dist/bootstrap.js +857 -0
- package/dist/bootstrap.js.map +1 -0
- package/dist/core.cjs +921 -880
- package/dist/core.cjs.map +1 -1
- package/dist/core.d.cts +3 -3
- package/dist/core.d.ts +3 -3
- package/dist/core.js +922 -881
- package/dist/core.js.map +1 -1
- package/dist/index.cjs +907 -866
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +908 -867
- package/dist/index.js.map +1 -1
- package/dist/{key-Bad1hAKN.d.cts → key-B0_N_rl6.d.cts} +1 -1
- package/dist/{key-QIDPiubI.d.ts → key-yGSxLOVj.d.ts} +1 -1
- package/dist/optional.d.cts +2 -2
- package/dist/optional.d.ts +2 -2
- package/dist/schema.cjs +907 -866
- package/dist/schema.cjs.map +1 -1
- package/dist/schema.d.cts +4 -4
- package/dist/schema.d.ts +4 -4
- package/dist/schema.js +908 -867
- package/dist/schema.js.map +1 -1
- package/dist/{types-DcdXbmVl.d.cts → types-RML7bepB.d.cts} +72 -1
- package/dist/{types-DcdXbmVl.d.ts → types-RML7bepB.d.ts} +72 -1
- package/package.json +10 -1
package/README.md
CHANGED
|
@@ -65,10 +65,17 @@ survives a full page reload.
|
|
|
65
65
|
|
|
66
66
|
## Pick the right entrypoint
|
|
67
67
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
| Entrypoint | Approx ESM size | Use when |
|
|
69
|
+
| -------------------------- | --------------- | ----------------------------------------------------------------------------------- |
|
|
70
|
+
| `react-mnemonic/optional` | ~4.9 KB | You want the tiny component-library shim that falls back to local memory |
|
|
71
|
+
| `react-mnemonic/bootstrap` | ~25 KB | You need synchronous first-paint recall before React renders |
|
|
72
|
+
| `react-mnemonic/core` | ~61 KB | A provider is required and you want the lean persisted-state path |
|
|
73
|
+
| `react-mnemonic/schema` | ~80.5 KB | A provider is required and you want schema validation, autoschema, and migrations |
|
|
74
|
+
| `react-mnemonic` | ~80.5 KB | You want the top-level full entrypoint with the same schema-capable runtime surface |
|
|
75
|
+
|
|
76
|
+
These are rough current estimates from the built ESM entry files in `dist/`
|
|
77
|
+
before consumer-side minification and tree-shaking. They are useful for
|
|
78
|
+
relative comparison, not as a hard size guarantee.
|
|
72
79
|
|
|
73
80
|
## Optional persistence for component libraries
|
|
74
81
|
|