Skip to content

Commit 24c954f

Browse files
authored
chore(release): bump version to 0.4.5 (#410)
1 parent 37189f7 commit 24c954f

6 files changed

Lines changed: 42 additions & 49 deletions

File tree

.changeset/devnet-config-hint-fix.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

.changeset/lazy-wasi-warning.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

.changeset/perky-rooms-tan.md

Lines changed: 0 additions & 2 deletions
This file was deleted.

.changeset/tired-jobs-find.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,46 @@
11
# @offckb/cli
22

3+
## 0.4.5
4+
5+
### Patch Changes
6+
7+
- 37189f7: fix(devnet): only show init hint for InitializationError
8+
9+
The `offckb devnet config` command was showing the "run `offckb node` once to initialize devnet config files first" hint for ALL errors, including user input errors like invalid `--set` syntax or validation failures.
10+
11+
Now the hint is only shown for actual initialization errors (missing config path, ckb.toml, or miner.toml), making error messages clearer and less misleading.
12+
13+
- Added `InitializationError` class to distinguish initialization errors from user input errors
14+
- Updated `createDevnetConfigEditor()` to throw `InitializationError` for missing files/paths
15+
- Modified `devnetConfig()` catch block to only show hint for `InitializationError`
16+
- Added type safety guard for error handling
17+
18+
Fixes #406
19+
20+
- e90cfe5: fix(ckb-debugger): lazy-load WASI module to suppress ExperimentalWarning
21+
22+
Convert static import of node:wasi to dynamic import with caching.
23+
This prevents the ExperimentalWarning from being emitted when running
24+
non-debugger commands like 'offckb accounts' or 'offckb config list'.
25+
26+
The WASI module is now only loaded when debugger functionality is
27+
actually executed.
28+
29+
Fixes #405
30+
31+
- 4a88eb6: fix(install): force x86_64 architecture on Windows
32+
33+
CKB only provides x86_64 binaries for Windows, not aarch64.
34+
When Windows ARM devices reported 'arm64' via os.arch(), the code
35+
tried to download a non-existent 'aarch64-pc-windows-msvc' binary,
36+
resulting in a 404 error.
37+
38+
This fix forces all Windows systems to use x86_64, which:
39+
40+
- Works correctly on Windows x64
41+
- Works via emulation on Windows ARM devices
42+
- Matches the only Windows binary CKB provides
43+
344
## Changelog
445

546
All notable changes to this project will be documented in this file.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@offckb/cli",
3-
"version": "0.4.4",
3+
"version": "0.4.5",
44
"description": "ckb development network for your first try",
55
"author": "CKB EcoFund",
66
"license": "MIT",

0 commit comments

Comments
 (0)