vibra 1.0.1 → 1.0.3

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 CHANGED
@@ -102,6 +102,16 @@ interface SubscribeOptions {
102
102
  }
103
103
  ```
104
104
 
105
+ ## ⚛️ React Integration
106
+
107
+ For React applications, we provide a dedicated package `vibra-react` that offers React hooks and components for seamless integration with Vibra stores. Check out the [vibra-react documentation](https://www.npmjs.com/package/vibra-react) for more details.
108
+
109
+ ```bash
110
+ npm install vibra-react
111
+ # or
112
+ bun add vibra-react
113
+ ```
114
+
105
115
  ## 💡 Why Vibra?
106
116
  - **Ultra-lightweight**: No bloat, just state
107
117
  - **Predictable**: No magic, no proxies, no hidden behaviors
package/dist/index.d.mts CHANGED
@@ -79,4 +79,8 @@ interface Store<T> {
79
79
  declare function vibra<T>(initialValue: T): Store<T>;
80
80
  type Vibra<T> = Store<T>;
81
81
 
82
- export { type Store, type SubscribeOptions, type Subscriber, type Unsubscribe, type Vibra, vibra as default };
82
+ declare class VibraError extends Error {
83
+ constructor(message: string);
84
+ }
85
+
86
+ export { type Store, type SubscribeOptions, type Subscriber, type Unsubscribe, type Vibra, VibraError, vibra as default };
package/dist/index.d.ts CHANGED
@@ -79,4 +79,8 @@ interface Store<T> {
79
79
  declare function vibra<T>(initialValue: T): Store<T>;
80
80
  type Vibra<T> = Store<T>;
81
81
 
82
- export { type Store, type SubscribeOptions, type Subscriber, type Unsubscribe, type Vibra, vibra as default };
82
+ declare class VibraError extends Error {
83
+ constructor(message: string);
84
+ }
85
+
86
+ export { type Store, type SubscribeOptions, type Subscriber, type Unsubscribe, type Vibra, VibraError, vibra as default };
package/dist/index.js CHANGED
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/index.ts
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
+ VibraError: () => vibra_error_default,
23
24
  default: () => vibra_default
24
25
  });
25
26
  module.exports = __toCommonJS(index_exports);
@@ -49,3 +50,16 @@ function vibra(initialValue) {
49
50
  };
50
51
  }
51
52
  var vibra_default = vibra;
53
+
54
+ // src/vibra-error.ts
55
+ var VibraError = class extends Error {
56
+ constructor(message) {
57
+ super(message);
58
+ this.name = "VibraError";
59
+ }
60
+ };
61
+ var vibra_error_default = VibraError;
62
+ // Annotate the CommonJS export names for ESM import in node:
63
+ 0 && (module.exports = {
64
+ VibraError
65
+ });
package/dist/index.mjs CHANGED
@@ -23,6 +23,16 @@ function vibra(initialValue) {
23
23
  };
24
24
  }
25
25
  var vibra_default = vibra;
26
+
27
+ // src/vibra-error.ts
28
+ var VibraError = class extends Error {
29
+ constructor(message) {
30
+ super(message);
31
+ this.name = "VibraError";
32
+ }
33
+ };
34
+ var vibra_error_default = VibraError;
26
35
  export {
36
+ vibra_error_default as VibraError,
27
37
  vibra_default as default
28
38
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vibra",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Vibra: A blazing fast, type-safe, and minimal state management library for TypeScript and JavaScript. Effortless reactivity, subscriptions, and memory safety in a tiny package.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -33,18 +33,18 @@
33
33
  "url": "https://github.com/rrios-dev/vibra"
34
34
  },
35
35
  "devDependencies": {
36
- "@eslint/js": "^9.27.0",
36
+ "@eslint/js": "^9.39.2",
37
37
  "@types/bun": "latest",
38
- "@types/jest": "^29.5.14",
39
- "eslint": "^9.27.0",
40
- "globals": "^16.1.0",
41
- "jest": "^29.7.0",
42
- "ts-jest": "^29.3.2",
43
- "tsup": "^8.0.2",
44
- "typescript": "^5.0.0",
45
- "typescript-eslint": "^8.32.1"
38
+ "@types/jest": "^30.0.0",
39
+ "eslint": "^9.39.2",
40
+ "globals": "^17.0.0",
41
+ "jest": "^30.2.0",
42
+ "ts-jest": "^29.4.6",
43
+ "tsup": "^8.5.1",
44
+ "typescript": "^5.9.3",
45
+ "typescript-eslint": "^8.52.0"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "typescript": "^5.0.0"
49
49
  }
50
- }
50
+ }