@bluestep-systems/b6p-cli 0.6.0 → 0.7.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 +34 -0
- package/dist/cli.js +144 -139
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,40 @@ All notable changes to `@bluestep-systems/b6p-cli` will be documented in this fi
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.6.1] — 2026-08-21
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- **Rolled back the TypeScript 7 type-checker: `typescript` is now pinned to exactly `5.9.2`, the
|
|
13
|
+
same version `b6p-core` bundles to transpile pushes.** No CLI behaviour changes — no command, flag,
|
|
14
|
+
argument or output is affected. The source did not change either; it type-checks clean on 5.9.2,
|
|
15
|
+
6.0.0-beta and 7.0.2 alike, so this is a toolchain change only.
|
|
16
|
+
|
|
17
|
+
**Why.** `b6p-core` compiles TypeScript *at runtime* — `b6p push --snapshot` transpiles a
|
|
18
|
+
component's `draft/scripts/*.ts` in-process — and TypeScript 7 cannot do that. Its `typescript`
|
|
19
|
+
entry point is only a version stub, the classic API (`createProgram`, `transpileModule`) is gone,
|
|
20
|
+
and its replacement drives a per-platform native Go binary over JSON-RPC, which cannot be inlined
|
|
21
|
+
into this package's single `dist/cli.js` or embedded in its Node SEA binaries. TypeScript 7 also
|
|
22
|
+
ships no `lib.*.d.ts` at all, while the transpiler needs real lib files on disk.
|
|
23
|
+
|
|
24
|
+
Type-checking with 7 while core compiled with 5.9 therefore meant two TypeScripts permanently, an
|
|
25
|
+
un-dedupable nested copy under `node_modules/@bluestep-systems/b6p-core/`, and a lib-copying step
|
|
26
|
+
that had to resolve the compiler from core's directory to stay correct. Pinning both to the same
|
|
27
|
+
exact version collapses all of that: npm now dedupes to one copy, and `dist/lib/` carries 99
|
|
28
|
+
`lib.*.d.ts` matching the 5.9.2 the bundle embeds.
|
|
29
|
+
|
|
30
|
+
The decision, the alternatives (including why not the 6.0 beta — there is no stable 6.x) and the
|
|
31
|
+
condition for moving forward again are recorded in
|
|
32
|
+
[docs/adr/0002-typescript-version-strategy.md](docs/adr/0002-typescript-version-strategy.md).
|
|
33
|
+
|
|
34
|
+
The scaffolding from the TS 7 migration is **kept on purpose**: `types: ["node"]`, `copy-ts-libs`
|
|
35
|
+
resolving from core's directory, and the lib-set invariant test all stay. They cost nothing on 5.9
|
|
36
|
+
and are what a future upgrade needs.
|
|
37
|
+
|
|
38
|
+
### Added
|
|
39
|
+
|
|
40
|
+
- ADR 0002 documenting the TypeScript version strategy and the trigger to revisit it.
|
|
41
|
+
|
|
8
42
|
## [0.6.0] — 2026-08-21
|
|
9
43
|
|
|
10
44
|
### Changed (breaking, user-visible)
|