·
11 commits
to refs/heads/main
since this release
0.2.0 (2025-04-09)
⚠ BREAKING CHANGES
- toolkit-lib: The deprecated
force
option onDeployOptions
has
been removed. The removed option originally caused multiple different
"force" actions. Each action now has a more targeted alternative. To
force a deployment even if the CDK Toolkit has not detected any changes,
useforceDeployment
. To force re-publishing of previously published
assets, useforceAssetPublishing
. To force failing resource being
orphaned during a rollback, useorphanFailedResourcesDuringRollback
.
To implement interactive confirmation of rollbacks during a deployment,
react to the message request with codeCDK_TOOLKIT_I5050
in your
IoHost
. - toolkit-lib: This change updates the default
IoHost
implementation
used byToolkit
to a version that is strictly non-interactive, i.e.
there is no expectation anymore that users will respond to command-line
prompts. To restore previous behavior, you will can provide a custom
IoHost
implementation to yourToolkit
instance. You may consider
extending the newNonInteractiveIoHost
class with desired interactive
prompts. - toolkit-lib: The
outdir
option inWatchOptions
was deprecated
and has been removed. Instead, the code now determines the assembly
directory directly. To explicitly restore the previous behavior, you add
the value toWatchOptions.exclude
. - toolkit-lib: The
extraUserAgent
option inWatchOptions
interface
was unused and had no effect on functionality. This change removes the
unused parameter. - toolkit-lib: Remove the
AsyncDisposable
interface anddispose()
method from theToolkit
class. These were previously unused and had no
effect. - toolkit-lib: Removes previously deprecated options from toolkit
actions. FromDeployOptions
, removed the optionsrequireApproval
,
ci
andprogress
. FromDestroyOptions
, removed the optionci
. All
removed options were previously deprecated and had no functional effect.
Instead you should implement desired functionality in yourIIoHost
implementation.
Features
- docs: api-extractor changes and gh workflow update (#303) (4771ed8)
- toolkit-lib: default to using a non interactive IoHost (#306) (e0f9a6f), closes #157 #289
- toolkit: add a return type for
toolkit.deploy()
(#317) (586e1b3) - toolkit: add a return type for toolkit.destroy() (#318) (2c7999c)
- toolkit: watch operation can be stopped (#308) (634f512)
Bug Fixes
- toolkit-lib: remove
AsyncDisposable
fromToolkit
(#312) (567e998) - toolkit-lib: remove deprecated
DeployOptions.force
in favor of more specific options (#315) (c14df8e) - toolkit-lib: remove deprecated options (#307) (719cda7)
- toolkit-lib: remove deprecated outdir option from watch (#313) (73e5ad4)
- toolkit-lib: remove unused extraUserAgent option from WatchOptions (#314) (1fc05e5)