@smartive/graphql-magic 17.2.1 → 17.2.2

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
@@ -1,6 +1,6 @@
1
- ## [17.2.1](https://github.com/smartive/graphql-magic/compare/v17.2.0...v17.2.1) (2025-04-09)
1
+ ## [17.2.2](https://github.com/smartive/graphql-magic/compare/v17.2.1...v17.2.2) (2025-04-09)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
6
- * Static eval Object ([#263](https://github.com/smartive/graphql-magic/issues/263)) ([68038cb](https://github.com/smartive/graphql-magic/commit/68038cb662a158de64a6c9d11a61217bcf58cf67))
6
+ * allow void as return type for mutation hook ([#264](https://github.com/smartive/graphql-magic/issues/264)) ([2b2dbef](https://github.com/smartive/graphql-magic/commit/2b2dbefbec79505a2889bb67b9c88361459b905d))
@@ -7,4 +7,4 @@ export type MutationHook<DateType extends AnyDateType = AnyDateType> = (model: E
7
7
  input: Entity;
8
8
  normalizedInput: Entity;
9
9
  next: Entity;
10
- }, ctx: Context<DateType>) => Promise<void>;
10
+ }, ctx: Context<DateType>) => Promise<void> | void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartive/graphql-magic",
3
- "version": "17.2.1",
3
+ "version": "17.2.2",
4
4
  "description": "",
5
5
  "source": "src/index.ts",
6
6
  "type": "module",
@@ -11,4 +11,4 @@ export type MutationHook<DateType extends AnyDateType = AnyDateType> = (
11
11
  when: 'before' | 'after',
12
12
  data: { prev: Entity; input: Entity; normalizedInput: Entity; next: Entity },
13
13
  ctx: Context<DateType>,
14
- ) => Promise<void>;
14
+ ) => Promise<void> | void;