@clairejs/client 3.3.0 → 3.3.1

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ## Change Log
2
2
 
3
- #### 3.3.0:
3
+ #### 3.3.1:
4
4
 
5
5
  - remove webpack, change module to esm
6
6
 
@@ -1,8 +1,8 @@
1
1
  import { AbstractModel, Constructor, CreateManyRequestBody, CreateManyResponseBody, DeepPartial, GetManyQueries, GetManyResponseBody, Identifiable, ReturningQueries, UpdateManyBody, UpdateManyQueries, UpdateManyResponse, UpdateRecordsBody } from "@clairejs/core";
2
2
  import { AbstractHttpClient } from "./AbstractHttpClient";
3
3
  export declare const stringifyQueries: (queries: Record<string, any>) => string;
4
- export declare const removeInstances: <T extends Identifiable<string | number>>(target: T[], source: T[]) => T[];
5
- export declare const mergeInstances: <T extends Identifiable<string | number>>(model: Constructor<T>, target: readonly T[], source: readonly DeepPartial<T>[] | undefined, syncTarget?: boolean) => T[];
4
+ export declare const removeInstances: <T extends Identifiable>(target: T[], source: T[]) => T[];
5
+ export declare const mergeInstances: <T extends Identifiable>(model: Constructor<T>, target: readonly T[], source: readonly DeepPartial<T>[] | undefined, syncTarget?: boolean) => T[];
6
6
  export declare class CrudApi<T extends AbstractModel> {
7
7
  readonly model: Constructor<T>;
8
8
  readonly httpClient: AbstractHttpClient;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clairejs/client",
3
- "version": "3.3.0",
3
+ "version": "3.3.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -13,7 +13,7 @@
13
13
  "axios": "^1.3.4"
14
14
  },
15
15
  "peerDependencies": {
16
- "@clairejs/core": "^3.4.2"
16
+ "@clairejs/core": "^3.5.1"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@types/mocha": "^10.0.1",