pinejs-client-core 6.15.0 → 6.15.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/.versionbot/CHANGELOG.yml +15 -1
- package/CHANGELOG.md +5 -1
- package/es2015/index.d.ts +1 -1
- package/es2018/index.d.ts +1 -1
- package/index.d.ts +1 -1
- package/package.json +2 -2
- package/src/index.ts +1 -1
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
- commits:
|
|
2
|
+
- subject: Correctly type the `POST` result as being fully deferred
|
|
3
|
+
hash: 1055a00e740dd2cbf3e418408bed6c5f89b8db0f
|
|
4
|
+
body: |
|
|
5
|
+
Previously it did not state so the expanded versions were available in
|
|
6
|
+
the typings even though the result would never actually include them
|
|
7
|
+
footer:
|
|
8
|
+
Change-type: patch
|
|
9
|
+
change-type: patch
|
|
10
|
+
author: Pagan Gazzard
|
|
11
|
+
nested: []
|
|
12
|
+
version: 6.15.1
|
|
13
|
+
title: ""
|
|
14
|
+
date: 2024-06-17T15:29:46.380Z
|
|
1
15
|
- commits:
|
|
2
16
|
- subject: Add support for using model specific typings
|
|
3
17
|
hash: 1077e19ef18cc4cede4d6401496a016fef459150
|
|
@@ -18,7 +32,7 @@
|
|
|
18
32
|
nested: []
|
|
19
33
|
version: 6.15.0
|
|
20
34
|
title: ""
|
|
21
|
-
date: 2024-06-
|
|
35
|
+
date: 2024-06-14T10:45:40.382Z
|
|
22
36
|
- commits:
|
|
23
37
|
- subject: Deprecate passing `url` to helper functions
|
|
24
38
|
hash: 5ad1d4a417e2631d70acf7192b7132366a77be3b
|
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,11 @@ 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.
|
|
7
|
+
## 6.15.1 - 2024-06-17
|
|
8
|
+
|
|
9
|
+
* Correctly type the `POST` result as being fully deferred [Pagan Gazzard]
|
|
10
|
+
|
|
11
|
+
## 6.15.0 - 2024-06-14
|
|
8
12
|
|
|
9
13
|
* Add support for using model specific typings [Pagan Gazzard]
|
|
10
14
|
|
package/es2015/index.d.ts
CHANGED
|
@@ -166,7 +166,7 @@ PinejsClient = unknown, Model extends {
|
|
|
166
166
|
} & Params<T>): Promise<void>;
|
|
167
167
|
post<TResource extends StringKeyOf<Model>>(params: {
|
|
168
168
|
resource: TResource;
|
|
169
|
-
} & Params<Model[TResource]>): Promise<Model[TResource]['Read']
|
|
169
|
+
} & Params<Model[TResource]>): Promise<PickDeferred<Model[TResource]['Read']>>;
|
|
170
170
|
/**
|
|
171
171
|
* @deprecated POSTing via `url` is deprecated
|
|
172
172
|
*/
|
package/es2018/index.d.ts
CHANGED
|
@@ -166,7 +166,7 @@ PinejsClient = unknown, Model extends {
|
|
|
166
166
|
} & Params<T>): Promise<void>;
|
|
167
167
|
post<TResource extends StringKeyOf<Model>>(params: {
|
|
168
168
|
resource: TResource;
|
|
169
|
-
} & Params<Model[TResource]>): Promise<Model[TResource]['Read']
|
|
169
|
+
} & Params<Model[TResource]>): Promise<PickDeferred<Model[TResource]['Read']>>;
|
|
170
170
|
/**
|
|
171
171
|
* @deprecated POSTing via `url` is deprecated
|
|
172
172
|
*/
|
package/index.d.ts
CHANGED
|
@@ -166,7 +166,7 @@ PinejsClient = unknown, Model extends {
|
|
|
166
166
|
} & Params<T>): Promise<void>;
|
|
167
167
|
post<TResource extends StringKeyOf<Model>>(params: {
|
|
168
168
|
resource: TResource;
|
|
169
|
-
} & Params<Model[TResource]>): Promise<Model[TResource]['Read']
|
|
169
|
+
} & Params<Model[TResource]>): Promise<PickDeferred<Model[TResource]['Read']>>;
|
|
170
170
|
/**
|
|
171
171
|
* @deprecated POSTing via `url` is deprecated
|
|
172
172
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pinejs-client-core",
|
|
3
|
-
"version": "6.15.
|
|
3
|
+
"version": "6.15.1",
|
|
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-06-
|
|
58
|
+
"publishedAt": "2024-06-17T15:29:46.531Z"
|
|
59
59
|
}
|
|
60
60
|
}
|
package/src/index.ts
CHANGED
|
@@ -1545,7 +1545,7 @@ export abstract class PinejsClientCore<
|
|
|
1545
1545
|
|
|
1546
1546
|
public post<TResource extends StringKeyOf<Model>>(
|
|
1547
1547
|
params: { resource: TResource } & Params<Model[TResource]>,
|
|
1548
|
-
): Promise<Model[TResource]['Read']
|
|
1548
|
+
): Promise<PickDeferred<Model[TResource]['Read']>>;
|
|
1549
1549
|
/**
|
|
1550
1550
|
* @deprecated POSTing via `url` is deprecated
|
|
1551
1551
|
*/
|