react-super-switch 1.0.5 → 1.0.6
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 +16 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,22 @@ A small React utility component for **deterministic, readable, and safe conditio
|
|
|
4
4
|
|
|
5
5
|
`react-super-switch` guarantees that **exactly one** view is rendered from a set of mutually exclusive options, even when conditions are complex, unrelated, or derived from business logic.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## Bundle size
|
|
8
|
+
|
|
9
|
+

|
|
10
|
+

|
|
11
|
+

|
|
12
|
+

|
|
13
|
+

|
|
14
|
+

|
|
15
|
+
|
|
16
|
+
`react-super-switch` is designed to be extremely lightweight.
|
|
17
|
+
|
|
18
|
+
- **ESM bundle:** ~10 KB raw / **<= 1KB minified + gzipped**
|
|
19
|
+
- **CJS bundle:** ~7.2 KB raw / **<= 1KB minified + gzipped**
|
|
20
|
+
- **Dependencies:** none
|
|
21
|
+
|
|
22
|
+
Only the selected bundle format is included in your production build; TypeScript types and other metadata are not shipped to users.
|
|
8
23
|
|
|
9
24
|
## Why React Super Switch exists
|
|
10
25
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-super-switch",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Deterministic conditional rendering for React. Render exactly one option from multiple independent conditions, with explicit priority and fail-fast guarantees.",
|
|
6
6
|
"author": {
|