@commercetools/cli-topic-integration-layer@0.7.0
·
9 commits
to main
since this release
Minor Changes
- 9f43362: Make
--entryconsistent across--all.build,validate, andpushnow honour--entryin--allmode, applying it as the per-package source segment under each./extensions/*(the default still collapses tosrc/extension.ts, so--entry src/main.tsdiscovers and builds every package from its ownsrc/main.ts).extension servegains the same--entryflag, honoured in both standalone and--allmode.--outwas already the single combined-artifact path under--alland is unchanged. - f87e610: Generalise
extension invoke-api-extensionbeyond cart callbacks:--input(required) supplies a full commercetoolsExtensionInput;--key(repeatable) restricts invocation to named handlers;--all/--extensions-dirinvoke the merged bundle. Addextension create-api-extension-input, which derives supported resource types and enum values from@commercetools/platform-sdkand scaffolds realistic{ action, resource }JSON for local handler testing. - 2bec63f: Load a project
.env(or--env-file <path>) before commands run, soINTEGRATION_LAYER_URLand localEXTENSION_CONFIG_*values work without exporting them in the shell (a variable already set in the environment still wins).extension serveadditionally hot-reloads that file — editing anEXTENSION_CONFIG_*value updatesctx.configfor the next request with no restart — andextension invoke-api-extensionreads the sameEXTENSION_CONFIG_*(env /.env/--env-file) for itsctx.config, with--configoverriding a given key. - c2feacc: Rename
extension invoketoextension invoke-api-extension. The command only ever fired a sample cart callback at a bundle'sapiExtensionshandlers (never the GraphQL half), so the old name didn't say what it invoked. Behaviour and flags are unchanged; update any script or CI step that calledextension invoke.
Patch Changes
- 54eda06: Refresh the
manage_projectbearer automatically instead of failing once it expires. Commands now authenticate like any other topic — aprerunhook fills this copy's security context from~/.commercetools/credentials, and every call goes through aCtpAuthFetchFactoryfetch that injects the token and transparently refreshes/retries it. This removes the bespoke on-disk token reading and fixesGET extension/bundle/meta failed (401): Bearer token is inactive or unknownafter a login goes stale.