arvo-core 1.0.8 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -28,3 +28,7 @@
28
28
 
29
29
  - Updates to OpenTelemetry functions
30
30
 
31
+ ## [1.0.8] - 2024-09-01
32
+
33
+ - Added support for system error in ArvoContract
34
+
@@ -40,9 +40,7 @@ export default class ArvoEventFactory<TUri extends string = string, TType extend
40
40
  * @returns The created ArvoEvent as per one of the emits records of the contract.
41
41
  * @throws If the event data fails validation against the contract.
42
42
  */
43
- emits<U extends keyof TEmits & string, TExtension extends Record<string, any>>(event: CreateArvoEvent<z.infer<TEmits[U]>, U>, extensions?: TExtension, telemetry?: TelemetryContext): import("..").ArvoEvent<z.TypeOf<Extract<TEmits, {
44
- type: U;
45
- }>["schema"]>, TExtension, string>;
43
+ emits<U extends keyof TEmits & string, TExtension extends Record<string, any>>(event: CreateArvoEvent<z.infer<TEmits[U]>, U>, extensions?: TExtension, telemetry?: TelemetryContext): import("..").ArvoEvent<z.TypeOf<z.TypeOf<TEmits[U]>>, TExtension, string>;
46
44
  /**
47
45
  * Creates a system error ArvoEvent.
48
46
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arvo-core",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "This core package contains all the core classes and components of the Arvo Event Driven System",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {