@hunt-labs/bytekit-sdk 0.7.3 → 0.7.4
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 +24 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,29 @@ today, see [README.md](./README.md), which remains the authoritative usage guide
|
|
|
10
10
|
|
|
11
11
|
## [Unreleased]
|
|
12
12
|
|
|
13
|
+
## [0.7.4] - 2026-08-19
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- **`gen:version` no longer runs as part of `build`** (#3144). `scripts/gen-version.ts` writes
|
|
18
|
+
`src/version.ts`, a _tracked_ source file, and it was chained into the `build` script. That made
|
|
19
|
+
a build silently rewrite committed source whenever the file disagreed with the manifest: local
|
|
20
|
+
runs went green on a tree CI could fail, the resulting ` M src/version.ts` was indistinguishable
|
|
21
|
+
from routine build noise, and in CI the outcome depended on whether Turbo's build cache hit
|
|
22
|
+
(restoring `dist/**` without re-running the generator) or missed. `build` now starts at
|
|
23
|
+
`rm -rf dist ...`, so building this package touches nothing tracked. This changes `prepack` /
|
|
24
|
+
`prepublishOnly` behavior too: both call `build`, so the publish path now reads the committed
|
|
25
|
+
`src/version.ts` rather than regenerating it, and the committed value is what ships.
|
|
26
|
+
- **New `gen:version-check` script**, `pnpm gen:version && git diff --exit-code src/version.ts`,
|
|
27
|
+
mirroring the existing `gen:types-check` in the same manifest. It runs in `.woodpecker/ci.yaml`'s
|
|
28
|
+
`types-drift` step, so a manifest bump without the matching `src/version.ts` regeneration now
|
|
29
|
+
fails a named PR check instead of reaching `staging`. `src/__tests__/version-parity.test.ts`
|
|
30
|
+
stays in place as the in-suite assertion; the gate is what makes its failure reachable before
|
|
31
|
+
merge rather than after.
|
|
32
|
+
|
|
33
|
+
No runtime or type changes. `SDK_VERSION` and the `X-ByteKit-Client: sdk_ts/<version>` affix
|
|
34
|
+
behave exactly as before.
|
|
35
|
+
|
|
13
36
|
## [0.7.3] - 2026-08-18
|
|
14
37
|
|
|
15
38
|
### Changed
|
|
@@ -534,6 +557,7 @@ against 0.1.0 — read each one before upgrading.
|
|
|
534
557
|
`@rapidcrawl/sdk` name.
|
|
535
558
|
|
|
536
559
|
[Unreleased]: https://github.com/Hunt-Labs-Inc/ByteKit/tree/main/packages/sdk-typescript
|
|
560
|
+
[0.7.4]: https://github.com/Hunt-Labs-Inc/ByteKit/tree/main/packages/sdk-typescript
|
|
537
561
|
[0.7.3]: https://github.com/Hunt-Labs-Inc/ByteKit/tree/main/packages/sdk-typescript
|
|
538
562
|
[0.7.2]: https://github.com/Hunt-Labs-Inc/ByteKit/tree/main/packages/sdk-typescript
|
|
539
563
|
[0.7.1]: https://github.com/Hunt-Labs-Inc/ByteKit/tree/main/packages/sdk-typescript
|
package/dist/version.d.ts
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* outbound request carries — see the emit site in `client.ts`. The header name is spelled
|
|
6
6
|
* only there, so issue #2905's pre-merge gate 1 counts exactly one occurrence in `src/`.
|
|
7
7
|
*/
|
|
8
|
-
export declare const SDK_VERSION = "0.7.
|
|
8
|
+
export declare const SDK_VERSION = "0.7.4";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hunt-labs/bytekit-sdk",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.4",
|
|
4
4
|
"description": "Official TypeScript SDK for the ByteKit API",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -48,10 +48,11 @@
|
|
|
48
48
|
"url": "https://bytekit.com/contact"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
|
-
"build": "
|
|
51
|
+
"build": "rm -rf dist tsconfig.tsbuildinfo tsconfig.build.tsbuildinfo && tsc -p tsconfig.build.json && mkdir -p dist/generated && cp src/generated/api.d.ts dist/generated/api.d.ts",
|
|
52
52
|
"gen:types": "openapi-typescript ../../docs/api/openapi.yaml -o src/generated/api.d.ts",
|
|
53
53
|
"gen:version": "tsx scripts/gen-version.ts",
|
|
54
54
|
"gen:types-check": "pnpm gen:types && git diff --exit-code src/generated/api.d.ts",
|
|
55
|
+
"gen:version-check": "pnpm gen:version && git diff --exit-code src/version.ts",
|
|
55
56
|
"generate:docs": "tsx scripts/generate-docs.ts",
|
|
56
57
|
"typecheck": "tsc --noEmit",
|
|
57
58
|
"test": "vitest run"
|