@hoosk/minisignals 1.0.3 → 1.0.4

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 +28 -0
  2. package/package.json +1 -1
package/README.md ADDED
@@ -0,0 +1,28 @@
1
+ # @hoosk/minisignals
2
+
3
+ The framework-agnostic core of the `minisignals` library.
4
+
5
+ This package provides the fundamental reactive primitives: `signal`, `effect`, and `computed`. It has zero dependencies and is built for maximum performance and a minimal footprint.
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ npm install @hoosk/minisignals
11
+ ```
12
+
13
+ ## Basic Usage
14
+
15
+ ```typescript
16
+ import { signal, effect, computed } from '@hoosk/minisignals';
17
+
18
+ const count = signal(0);
19
+ const double = computed(() => count.value * 2);
20
+
21
+ effect(() => {
22
+ console.log(`Count: ${count.value}, Double: ${double.value}`);
23
+ });
24
+
25
+ count.value = 1; // Logs: Count: 1, Double: 2
26
+ ```
27
+
28
+ For full documentation and advanced features (like Lazy Evaluation and Memory Safety), please refer to the [main repository README](../../README.md).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hoosk/minisignals",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Minimal agnostic signals library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",