diff --git a/.changeset/devnet-config-hint-fix.md b/.changeset/devnet-config-hint-fix.md deleted file mode 100644 index 85cbfca..0000000 --- a/.changeset/devnet-config-hint-fix.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@offckb/cli': patch ---- - -fix(devnet): only show init hint for InitializationError - -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. - -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. - -- Added `InitializationError` class to distinguish initialization errors from user input errors -- Updated `createDevnetConfigEditor()` to throw `InitializationError` for missing files/paths -- Modified `devnetConfig()` catch block to only show hint for `InitializationError` -- Added type safety guard for error handling - -Fixes #406 diff --git a/.changeset/lazy-wasi-warning.md b/.changeset/lazy-wasi-warning.md deleted file mode 100644 index d7b81fb..0000000 --- a/.changeset/lazy-wasi-warning.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@offckb/cli': patch ---- - -fix(ckb-debugger): lazy-load WASI module to suppress ExperimentalWarning - -Convert static import of node:wasi to dynamic import with caching. -This prevents the ExperimentalWarning from being emitted when running -non-debugger commands like 'offckb accounts' or 'offckb config list'. - -The WASI module is now only loaded when debugger functionality is -actually executed. - -Fixes #405 diff --git a/.changeset/perky-rooms-tan.md b/.changeset/perky-rooms-tan.md deleted file mode 100644 index a845151..0000000 --- a/.changeset/perky-rooms-tan.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/tired-jobs-find.md b/.changeset/tired-jobs-find.md deleted file mode 100644 index eabb9ac..0000000 --- a/.changeset/tired-jobs-find.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@offckb/cli': patch ---- - -fix(install): force x86_64 architecture on Windows - -CKB only provides x86_64 binaries for Windows, not aarch64. -When Windows ARM devices reported 'arm64' via os.arch(), the code -tried to download a non-existent 'aarch64-pc-windows-msvc' binary, -resulting in a 404 error. - -This fix forces all Windows systems to use x86_64, which: - -- Works correctly on Windows x64 -- Works via emulation on Windows ARM devices -- Matches the only Windows binary CKB provides diff --git a/CHANGELOG.md b/CHANGELOG.md index 4cc008c..0440098 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,46 @@ # @offckb/cli +## 0.4.5 + +### Patch Changes + +- 37189f7: fix(devnet): only show init hint for InitializationError + + 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. + + 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. + + - Added `InitializationError` class to distinguish initialization errors from user input errors + - Updated `createDevnetConfigEditor()` to throw `InitializationError` for missing files/paths + - Modified `devnetConfig()` catch block to only show hint for `InitializationError` + - Added type safety guard for error handling + + Fixes #406 + +- e90cfe5: fix(ckb-debugger): lazy-load WASI module to suppress ExperimentalWarning + + Convert static import of node:wasi to dynamic import with caching. + This prevents the ExperimentalWarning from being emitted when running + non-debugger commands like 'offckb accounts' or 'offckb config list'. + + The WASI module is now only loaded when debugger functionality is + actually executed. + + Fixes #405 + +- 4a88eb6: fix(install): force x86_64 architecture on Windows + + CKB only provides x86_64 binaries for Windows, not aarch64. + When Windows ARM devices reported 'arm64' via os.arch(), the code + tried to download a non-existent 'aarch64-pc-windows-msvc' binary, + resulting in a 404 error. + + This fix forces all Windows systems to use x86_64, which: + + - Works correctly on Windows x64 + - Works via emulation on Windows ARM devices + - Matches the only Windows binary CKB provides + ## Changelog All notable changes to this project will be documented in this file. diff --git a/package.json b/package.json index 6b5b14a..f072412 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@offckb/cli", - "version": "0.4.4", + "version": "0.4.5", "description": "ckb development network for your first try", "author": "CKB EcoFund", "license": "MIT",