@eventvisor/core 0.15.0 → 0.17.0
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [0.17.0](https://github.com/eventvisor/eventvisor/compare/v0.16.0...v0.17.0) (2026-01-10)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* export Value type from SDK ([#36](https://github.com/eventvisor/eventvisor/issues/36)) ([72b7b36](https://github.com/eventvisor/eventvisor/commit/72b7b36b6c4dc10a94be981dd0dee36a4cbab287))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [0.16.0](https://github.com/eventvisor/eventvisor/compare/v0.15.0...v0.16.0) (2025-11-30)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* rename handler assignment functions in custom generated code ([#35](https://github.com/eventvisor/eventvisor/issues/35)) ([92950a7](https://github.com/eventvisor/eventvisor/commit/92950a7a8efdf09ab04b49ece631fa5b6eb3753f))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
# [0.15.0](https://github.com/eventvisor/eventvisor/compare/v0.14.0...v0.15.0) (2025-11-07)
|
|
7
29
|
|
|
8
30
|
|
|
@@ -105,8 +105,7 @@ ${generatedEvents.map(({ entityName, interfaceName }) => ` ${entityName}: ${int
|
|
|
105
105
|
/**
|
|
106
106
|
* Index
|
|
107
107
|
*/
|
|
108
|
-
let indexContent = `import type { Eventvisor } from "@eventvisor/sdk";
|
|
109
|
-
import type { Value } from "@eventvisor/types";
|
|
108
|
+
let indexContent = `import type { Eventvisor, Value } from "@eventvisor/sdk";
|
|
110
109
|
|
|
111
110
|
import type { Events } from "./events";
|
|
112
111
|
import type { Attributes } from "./attributes";
|
|
@@ -127,7 +126,7 @@ type TrackHandler = (eventName: string, payload: Value) => void;
|
|
|
127
126
|
|
|
128
127
|
let trackHandler: TrackHandler | null = null;
|
|
129
128
|
|
|
130
|
-
export function
|
|
129
|
+
export function assignEventHandler(handler: TrackHandler | null) {
|
|
131
130
|
trackHandler = handler;
|
|
132
131
|
}
|
|
133
132
|
|
|
@@ -149,7 +148,7 @@ type SetAttributeHandler = (attributeName: string, value: Value) => void;
|
|
|
149
148
|
|
|
150
149
|
let setAttributeHandler: SetAttributeHandler | null = null;
|
|
151
150
|
|
|
152
|
-
export function
|
|
151
|
+
export function assignAttributeHandler(handler: SetAttributeHandler | null) {
|
|
153
152
|
setAttributeHandler = handler;
|
|
154
153
|
}
|
|
155
154
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generate-code/typescript/index.ts"],"names":[],"mappings":";;;;;AAMA,4CAsBC;AAED,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generate-code/typescript/index.ts"],"names":[],"mappings":";;;;;AAMA,4CAsBC;AAED,4EAuKC;AArMD,4CAAoB;AACpB,gDAAwB;AAGxB,2DAAwD;AAExD,SAAgB,gBAAgB,CAAC,UAAkB,EAAE,SAAiB,EAAE;IACtE,OAAO,CACL,UAAU;SACP,OAAO,CAAC,gBAAgB,EAAE,GAAG,CAAC,CAAC,6CAA6C;SAC5E,KAAK,CAAC,GAAG,CAAC;SACV,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,uBAAuB;SACzD,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACZ,sEAAsE;QACtE,6EAA6E;QAC7E,MAAM,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,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AC3B,UAAU;;EAEb,IAAI;CACL,CACI;SACA,IAAI,CAAC,IAAI,CAAC,CAAC;IAEd,MAAM,gBAAgB,GAAG;;;;;EAKzB,eAAe,CAAC,GAAG,CAAC,CAAC,EAAE,UAAU,EAAE,aAAa,EAAE,EAAE,EAAE,CAAC,KAAK,UAAU,KAAK,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;;CAExG,CAAC;IAEA,aAAa,IAAI,gBAAgB,CAAC;IAElC,YAAE,CAAC,aAAa,CAAC,cAAc,EAAE,aAAa,CAAC,CAAC;IAEhD;;OAEG;IACH,IAAI,YAAY,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2DpB,CAAC;IAEA,MAAM,aAAa,GAAG,cAAI,CAAC,OAAO,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;IAC3D,YAAE,CAAC,aAAa,CAAC,aAAa,EAAE,YAAY,CAAC,CAAC;AAChD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eventvisor/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "Core package of Eventvisor for Node.js usage",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
},
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@eventvisor/sdk": "0.
|
|
33
|
-
"@eventvisor/types": "0.
|
|
32
|
+
"@eventvisor/sdk": "0.17.0",
|
|
33
|
+
"@eventvisor/types": "0.17.0",
|
|
34
34
|
"axios": "^1.12.2",
|
|
35
35
|
"chalk": "^5.6.0",
|
|
36
36
|
"js-yaml": "^4.1.0",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"yargs": "^17.7.2",
|
|
39
39
|
"zod": "^4.0.17"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "ed269d23b6b078acfc9af6766b419cfa622c8f53"
|
|
42
42
|
}
|
|
@@ -132,8 +132,7 @@ ${generatedEvents.map(({ entityName, interfaceName }) => ` ${entityName}: ${int
|
|
|
132
132
|
/**
|
|
133
133
|
* Index
|
|
134
134
|
*/
|
|
135
|
-
let indexContent = `import type { Eventvisor } from "@eventvisor/sdk";
|
|
136
|
-
import type { Value } from "@eventvisor/types";
|
|
135
|
+
let indexContent = `import type { Eventvisor, Value } from "@eventvisor/sdk";
|
|
137
136
|
|
|
138
137
|
import type { Events } from "./events";
|
|
139
138
|
import type { Attributes } from "./attributes";
|
|
@@ -154,7 +153,7 @@ type TrackHandler = (eventName: string, payload: Value) => void;
|
|
|
154
153
|
|
|
155
154
|
let trackHandler: TrackHandler | null = null;
|
|
156
155
|
|
|
157
|
-
export function
|
|
156
|
+
export function assignEventHandler(handler: TrackHandler | null) {
|
|
158
157
|
trackHandler = handler;
|
|
159
158
|
}
|
|
160
159
|
|
|
@@ -176,7 +175,7 @@ type SetAttributeHandler = (attributeName: string, value: Value) => void;
|
|
|
176
175
|
|
|
177
176
|
let setAttributeHandler: SetAttributeHandler | null = null;
|
|
178
177
|
|
|
179
|
-
export function
|
|
178
|
+
export function assignAttributeHandler(handler: SetAttributeHandler | null) {
|
|
180
179
|
setAttributeHandler = handler;
|
|
181
180
|
}
|
|
182
181
|
|