Releases: dynamicweb/CLI
Releases · dynamicweb/CLI
v1.1.0
What's Changed
Dependency modernization
- Replaced deprecated
yargs-interactivewith@inquirer/promptsacross all interactive commands (env, query, login, utils) - Removed unused dependencies (
child_process,https,path,fetchshims) - Added Node
>=20.12.0engine requirement
Bug fixes
- login.js: Completed the
@inquirer/promptsmigration —dw loginwas broken after the dependency was removed - config.js: Fixed
dw configcrash caused by referencing an undefined variable - database.js: Fixed
dw database -eexiting before download completes (unawaited promise) - command.js, query.js: Fixed global CLI flags (
--verbose,--host,--apiKey, etc.) leaking into API requests as parameters - install.js: Fixed wildcard file path being resolved after upload instead of before
- downloader.js: Fixed filename
+decoding only replacing the first occurrence - files.js: Fixed
wildcardToRegExpescaping*instead of converting it to a wildcard pattern - files.js: Fixed error logging printing
Promise { <pending> }instead of actual error body - swift.js: Replaced
execwithexecFileto prevent potential command injection - login.js: Fixed crash when environment exists but no user is set (
env.currentundefined) - Added
async/awaitto all command handlers to surface errors instead of silently swallowing them
Documentation
- Fixed config path from
usr/.dwcto~/.dwcin README and config command - Added Global Options section documenting
--host,--apiKey,--protocol,--verbose - Updated .NET example path from
net6.0tonet10.0 - Fixed typos
v1.0.0
The initial release version of Dynamicweb CLI.