@polygonlabs/staking-api-client 0.0.1 → 1.0.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.
- package/CHANGELOG.md +18 -0
- package/package.json +3 -3
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# @polygonlabs/staking-api-client
|
|
2
|
+
|
|
3
|
+
## 1.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#213](https://github.com/0xPolygon/staking-api/pull/213) [`d0d7044`](https://github.com/0xPolygon/staking-api/commit/d0d7044bce74b81f0523a3f8b1ddd1383fd7704f) Thanks [@shan8851](https://github.com/shan8851)! - Initial public release of the typed Polygon Staking API client, generated from the API's OpenAPI spec. Responses are validated at runtime with the same Zod schemas the server enforces.
|
|
8
|
+
|
|
9
|
+
- Main entry — fetch-based SDK: one function per API operation plus the configurable `client` singleton.
|
|
10
|
+
- `./react` — TanStack Query options factories (optional `react` + `@tanstack/react-query` peers).
|
|
11
|
+
- `./factory` — the underlying client factory for independently-configured instances.
|
|
12
|
+
|
|
13
|
+
Licensed under Apache-2.0.
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [[`d0d7044`](https://github.com/0xPolygon/staking-api/commit/d0d7044bce74b81f0523a3f8b1ddd1383fd7704f)]:
|
|
18
|
+
- @polygonlabs/staking-api-schemas@1.0.0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polygonlabs/staking-api-client",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Type-safe REST client for the Polygon Staking API, generated from the registered Zod schemas",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"access": "public"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@polygonlabs/staking-api-schemas": "0.0
|
|
30
|
+
"@polygonlabs/staking-api-schemas": "1.0.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@asteasolutions/zod-to-openapi": "^8.5.0",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
},
|
|
61
61
|
"license": "Apache-2.0",
|
|
62
62
|
"scripts": {
|
|
63
|
-
"generate": "openapi-ts -f openapi-ts.config.ts",
|
|
63
|
+
"generate": "NODE_OPTIONS=\"--conditions=@polygonlabs/source\" openapi-ts -f openapi-ts.config.ts",
|
|
64
64
|
"build": "pnpm run generate && pnpm run typecheck && tsc -b tsconfig.lib.json",
|
|
65
65
|
"build:clean": "pnpm run generate && pnpm run typecheck && rm -rf dist out-tsc *.tsbuildinfo && tsc -b tsconfig.lib.json",
|
|
66
66
|
"typecheck": "tsc -b",
|