@picsart/pa-pluggable-workers-core
Release notes for the @picsart/pa-pluggable-workers-core
library — the TypeScript library used by pluggable workers to integrate with the Pluggable APIs framework.
The changelog is maintained alongside the library source and updated regularly.
View the full changelog on GitLab →
Installation
npm install @picsart/pa-pluggable-workers-core
Breaking Changes
6.x
flow.context() is now asynchronous. It returns a Promise<FlowContext> and must be awaited.
// Before
const ctx = flow.context();
// After
const ctx = await flow.context();
5.x
Upgraded from NestJS 10 to NestJS 11. Consumers must update their own @nestjs/* dependencies to v11.
4.x
Multi-deferred task support changed the "on response" handler signature: it now receives the deferred task name
(a string) instead of the original command object. To access the command, use the flow APIs explicitly:
// Parent task command
const parentCommand = flow.meta().command();
// Current child (deferred) task command
const childCommand = (await flow.deferredTasks().getCurrentTask()).command;