pinejs-client-core 6.15.9 → 6.15.10
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/.versionbot/CHANGELOG.yml +13 -1
- package/CHANGELOG.md +4 -0
- package/es2015/index.d.ts +2 -2
- package/es2018/index.d.ts +2 -2
- package/index.d.ts +2 -2
- package/package.json +2 -2
- package/src/index.ts +2 -2
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
- commits:
|
|
2
|
+
- subject: Fix `getOrCreate` and `upsert` typing for the `body` property
|
|
3
|
+
hash: a1ce21a7c55c04f55f3b8025d19076a49541a205
|
|
4
|
+
body: ""
|
|
5
|
+
footer:
|
|
6
|
+
Change-type: patch
|
|
7
|
+
change-type: patch
|
|
8
|
+
author: Pagan Gazzard
|
|
9
|
+
nested: []
|
|
10
|
+
version: 6.15.10
|
|
11
|
+
title: ""
|
|
12
|
+
date: 2024-07-08T14:02:37.039Z
|
|
1
13
|
- commits:
|
|
2
14
|
- subject: Export `ExpandableStringKeyOf` typing
|
|
3
15
|
hash: 17f1424d31069a882bb288cf418a01e83b60e806
|
|
@@ -9,7 +21,7 @@
|
|
|
9
21
|
nested: []
|
|
10
22
|
version: 6.15.9
|
|
11
23
|
title: ""
|
|
12
|
-
date: 2024-07-
|
|
24
|
+
date: 2024-07-05T16:24:57.847Z
|
|
13
25
|
- commits:
|
|
14
26
|
- subject: Improve typings of `prepare` when used to `GET`
|
|
15
27
|
hash: 06f3fbecc514367900f07f83dbd61796e870abcf
|
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file
|
|
|
4
4
|
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
|
|
5
5
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
|
6
6
|
|
|
7
|
+
## 6.15.10 - 2024-07-08
|
|
8
|
+
|
|
9
|
+
* Fix `getOrCreate` and `upsert` typing for the `body` property [Pagan Gazzard]
|
|
10
|
+
|
|
7
11
|
## 6.15.9 - 2024-07-05
|
|
8
12
|
|
|
9
13
|
* Export `ExpandableStringKeyOf` typing [Pagan Gazzard]
|
package/es2015/index.d.ts
CHANGED
|
@@ -430,12 +430,12 @@ export interface SubscribeParams<T extends Resource = AnyResource> extends Param
|
|
|
430
430
|
export interface GetOrCreateParams<T extends Resource = AnyResource> extends Omit<Params<T>, 'method' | 'url'> {
|
|
431
431
|
id: ResourceAlternateKey<T['Read']>;
|
|
432
432
|
resource: string;
|
|
433
|
-
body: T['Write']
|
|
433
|
+
body: Partial<T['Write']>;
|
|
434
434
|
}
|
|
435
435
|
export interface UpsertParams<T extends Resource = AnyResource> extends Omit<Params<T>, 'id' | 'method' | 'url'> {
|
|
436
436
|
id: {
|
|
437
437
|
[key in StringKeyOf<T['Write']>]?: Primitive;
|
|
438
438
|
};
|
|
439
439
|
resource: string;
|
|
440
|
-
body: T['Write']
|
|
440
|
+
body: Partial<T['Write']>;
|
|
441
441
|
}
|
package/es2018/index.d.ts
CHANGED
|
@@ -430,12 +430,12 @@ export interface SubscribeParams<T extends Resource = AnyResource> extends Param
|
|
|
430
430
|
export interface GetOrCreateParams<T extends Resource = AnyResource> extends Omit<Params<T>, 'method' | 'url'> {
|
|
431
431
|
id: ResourceAlternateKey<T['Read']>;
|
|
432
432
|
resource: string;
|
|
433
|
-
body: T['Write']
|
|
433
|
+
body: Partial<T['Write']>;
|
|
434
434
|
}
|
|
435
435
|
export interface UpsertParams<T extends Resource = AnyResource> extends Omit<Params<T>, 'id' | 'method' | 'url'> {
|
|
436
436
|
id: {
|
|
437
437
|
[key in StringKeyOf<T['Write']>]?: Primitive;
|
|
438
438
|
};
|
|
439
439
|
resource: string;
|
|
440
|
-
body: T['Write']
|
|
440
|
+
body: Partial<T['Write']>;
|
|
441
441
|
}
|
package/index.d.ts
CHANGED
|
@@ -430,12 +430,12 @@ export interface SubscribeParams<T extends Resource = AnyResource> extends Param
|
|
|
430
430
|
export interface GetOrCreateParams<T extends Resource = AnyResource> extends Omit<Params<T>, 'method' | 'url'> {
|
|
431
431
|
id: ResourceAlternateKey<T['Read']>;
|
|
432
432
|
resource: string;
|
|
433
|
-
body: T['Write']
|
|
433
|
+
body: Partial<T['Write']>;
|
|
434
434
|
}
|
|
435
435
|
export interface UpsertParams<T extends Resource = AnyResource> extends Omit<Params<T>, 'id' | 'method' | 'url'> {
|
|
436
436
|
id: {
|
|
437
437
|
[key in StringKeyOf<T['Write']>]?: Primitive;
|
|
438
438
|
};
|
|
439
439
|
resource: string;
|
|
440
|
-
body: T['Write']
|
|
440
|
+
body: Partial<T['Write']>;
|
|
441
441
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pinejs-client-core",
|
|
3
|
-
"version": "6.15.
|
|
3
|
+
"version": "6.15.10",
|
|
4
4
|
"description": "This module provides the core tools to enable easier interaction with the pinejs API.",
|
|
5
5
|
"browser": "es2015",
|
|
6
6
|
"main": "index.js",
|
|
@@ -55,6 +55,6 @@
|
|
|
55
55
|
"_": "test/*.ts"
|
|
56
56
|
},
|
|
57
57
|
"versionist": {
|
|
58
|
-
"publishedAt": "2024-07-
|
|
58
|
+
"publishedAt": "2024-07-08T14:02:37.192Z"
|
|
59
59
|
}
|
|
60
60
|
}
|
package/src/index.ts
CHANGED
|
@@ -2288,12 +2288,12 @@ export interface GetOrCreateParams<T extends Resource = AnyResource>
|
|
|
2288
2288
|
extends Omit<Params<T>, 'method' | 'url'> {
|
|
2289
2289
|
id: ResourceAlternateKey<T['Read']>;
|
|
2290
2290
|
resource: string;
|
|
2291
|
-
body: T['Write']
|
|
2291
|
+
body: Partial<T['Write']>;
|
|
2292
2292
|
}
|
|
2293
2293
|
|
|
2294
2294
|
export interface UpsertParams<T extends Resource = AnyResource>
|
|
2295
2295
|
extends Omit<Params<T>, 'id' | 'method' | 'url'> {
|
|
2296
2296
|
id: { [key in StringKeyOf<T['Write']>]?: Primitive };
|
|
2297
2297
|
resource: string;
|
|
2298
|
-
body: T['Write']
|
|
2298
|
+
body: Partial<T['Write']>;
|
|
2299
2299
|
}
|