@kuindji/reactive 1.0.11 → 1.0.12

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/dist/eventBus.d.ts +1 -1
  2. package/package.json +40 -40
@@ -49,7 +49,7 @@ export declare function createEventBus<EventsMap extends BaseEventMap = DefaultE
49
49
  /** @alias addListener */
50
50
  readonly subscribe: <K extends KeyOf<GetEventsMap<EventsMap>>, H extends GetEventsMap<EventsMap>[K]["signature"]>(name: K, handler: H, options?: ListenerOptions) => void;
51
51
  readonly once: <K extends KeyOf<GetEventsMap<EventsMap>>, H extends GetEventsMap<EventsMap>[K]["signature"]>(name: K, handler: H, options?: ListenerOptions) => void;
52
- readonly promise: <K extends KeyOf<GetEventsMap<EventsMap>>>(name: K, options?: ListenerOptions) => Promise<Parameters<EventsMap[K]>>;
52
+ readonly promise: <K extends KeyOf<GetEventsMap<EventsMap>>>(name: K, options?: ListenerOptions) => Promise<GetEventsMap<EventsMap>[K]["arguments"]>;
53
53
  readonly removeListener: <K extends KeyOf<GetEventsMap<EventsMap>>, H extends GetEventsMap<EventsMap>[K]["signature"]>(name: K, handler: H, context?: object | null, tag?: string | null) => void;
54
54
  /** @alias removeListener */
55
55
  readonly un: <K extends KeyOf<GetEventsMap<EventsMap>>, H extends GetEventsMap<EventsMap>[K]["signature"]>(name: K, handler: H, context?: object | null, tag?: string | null) => void;
package/package.json CHANGED
@@ -1,31 +1,24 @@
1
1
  {
2
2
  "name": "@kuindji/reactive",
3
- "version": "1.0.11",
4
- "description": "A JavaScript/TypeScript utility library for building reactive applications with events, actions, stores, and React hooks",
5
- "keywords": [
6
- "events",
7
- "actions",
8
- "store",
9
- "state-management",
10
- "react-hooks",
11
- "typescript",
12
- "event-emitter",
13
- "observable",
14
- "async",
15
- "event-bus",
16
- "action-bus"
17
- ],
18
- "homepage": "https://github.com/kuindji/reactive#readme",
19
- "bugs": {
20
- "url": "https://github.com/kuindji/reactive/issues"
21
- },
3
+ "version": "1.0.12",
4
+ "author": "Ivan Kuindzhi",
22
5
  "repository": {
23
6
  "type": "git",
24
7
  "url": "git+https://github.com/kuindji/reactive.git"
25
8
  },
26
- "license": "ISC",
27
- "author": "Ivan Kuindzhi",
28
- "type": "commonjs",
9
+ "main": "dist/index.js",
10
+ "devDependencies": {
11
+ "@happy-dom/global-registrator": "^18.0.1",
12
+ "@testing-library/dom": "^10.4.1",
13
+ "@testing-library/jest-dom": "^6.6.4",
14
+ "@testing-library/react": "^16.3.0",
15
+ "@types/bun": "^1.2.19",
16
+ "@types/react": "^19.1.9",
17
+ "@typescript-eslint/eslint-plugin": "^8.38.0",
18
+ "react": "^19.1.1",
19
+ "typescript": "^5",
20
+ "typescript-eslint": "^8.38.0"
21
+ },
29
22
  "exports": {
30
23
  ".": {
31
24
  "import": "./dist/index.js",
@@ -38,33 +31,40 @@
38
31
  "types": "./dist/react.d.ts"
39
32
  }
40
33
  },
41
- "main": "dist/index.js",
42
- "types": "dist/index.d.ts",
34
+ "bugs": {
35
+ "url": "https://github.com/kuindji/reactive/issues"
36
+ },
37
+ "description": "A JavaScript/TypeScript utility library for building reactive applications with events, actions, stores, and React hooks",
43
38
  "directories": {
44
39
  "test": "tests"
45
40
  },
41
+ "engines": {
42
+ "node": ">=16.0.0"
43
+ },
46
44
  "files": [
47
45
  "dist/**/*"
48
46
  ],
47
+ "homepage": "https://github.com/kuindji/reactive#readme",
48
+ "keywords": [
49
+ "events",
50
+ "actions",
51
+ "store",
52
+ "state-management",
53
+ "react-hooks",
54
+ "typescript",
55
+ "event-emitter",
56
+ "observable",
57
+ "async",
58
+ "event-bus",
59
+ "action-bus"
60
+ ],
61
+ "license": "ISC",
49
62
  "scripts": {
50
63
  "build": "tsc -p ./tsconfig-build.json",
51
64
  "lint": "bun eslint .",
52
65
  "test": "bun test tests/**/*.spec.ts*"
53
66
  },
54
- "devDependencies": {
55
- "@happy-dom/global-registrator": "^18.0.1",
56
- "@testing-library/dom": "^10.4.1",
57
- "@testing-library/jest-dom": "^6.6.4",
58
- "@testing-library/react": "^16.3.0",
59
- "@types/bun": "^1.2.19",
60
- "@types/react": "^19.1.9",
61
- "@typescript-eslint/eslint-plugin": "^8.38.0",
62
- "react": "^19.1.1",
63
- "typescript": "^5",
64
- "typescript-eslint": "^8.38.0"
65
- },
66
- "engines": {
67
- "node": ">=16.0.0"
68
- },
69
- "sideEffects": false
67
+ "sideEffects": false,
68
+ "type": "commonjs",
69
+ "types": "dist/index.d.ts"
70
70
  }