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.
Files changed (2) hide show
  1. package/README.md +16 -1
  2. 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
+ ![npm version](https://img.shields.io/npm/v/react-super-switch)
10
+ ![gzip size](https://img.shields.io/bundlephobia/minzip/react-super-switch)
11
+ ![dependencies](https://img.shields.io/badge/dependencies-none-brightgreen)
12
+ ![react](https://img.shields.io/badge/react-17%2B-blue)
13
+ ![typescript](https://img.shields.io/badge/typescript-fully%20typed-blue)
14
+ ![tree-shakeable](https://img.shields.io/badge/tree--shakeable-yes-success)
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.5",
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": {