@jay-framework/serialization 0.9.0 → 0.11.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +2 -2
  2. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { JSONPatch, ArrayContexts } from '@jay-framework/json-patch';
2
2
 
3
- type Deserialize<T extends object> = (jsonPatch: JSONPatch) => [T, Deserialize<T>];
4
- declare function deserialize<T extends object>(jsonPatch: JSONPatch): [T, Deserialize<T>];
3
+ type Deserialize<T extends object> = (jsonPatch: JSONPatch<T>) => [T, Deserialize<T>];
4
+ declare function deserialize<T extends object>(jsonPatch: JSONPatch<T>): [T, Deserialize<T>];
5
5
 
6
6
  type Serialize<T extends object> = (entity: any, contexts?: ArrayContexts) => [JSONPatch, Serialize<T>];
7
7
  declare function serialize<T extends object>(entity: any, contexts?: ArrayContexts): [JSONPatch, Serialize<T>];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jay-framework/serialization",
3
- "version": "0.9.0",
3
+ "version": "0.11.0",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/index.js",
@@ -20,10 +20,10 @@
20
20
  "test:watch": "vitest"
21
21
  },
22
22
  "dependencies": {
23
- "@jay-framework/json-patch": "^0.9.0"
23
+ "@jay-framework/json-patch": "^0.11.0"
24
24
  },
25
25
  "devDependencies": {
26
- "@jay-framework/dev-environment": "^0.9.0",
26
+ "@jay-framework/dev-environment": "^0.11.0",
27
27
  "@types/node": "^20.11.5",
28
28
  "rimraf": "^5.0.5",
29
29
  "tsup": "^8.0.1",