Skip to content

Commit a120fde

Browse files
committed
chore(triggers): align the package version and fix the README example
The package was left at 0.3.37 while every other workspace is 0.3.38. Dependents use `workspace:*`, so no lockfile change is needed. The "Driving a workflow" example imported the package for its side effect only, then used `IntervalTrigger` and `PollingTrigger` — copying it produced two ReferenceErrors. Named imports patch `Workflow.prototype` just the same. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PDvMMv78PuEw4T5atLeJeS
1 parent 7b041df commit a120fde

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/triggers/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ await trigger.stop();
3232
## Driving a workflow
3333

3434
```ts
35-
import "@workglow/triggers"; // patches Workflow.prototype
35+
import { IntervalTrigger, PollingTrigger } from "@workglow/triggers"; // also patches Workflow.prototype
3636
import { Workflow } from "@workglow/task-graph";
3737

3838
const workflow = new Workflow().addTask(MyTask);

packages/triggers/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@workglow/triggers",
33
"type": "module",
4-
"version": "0.3.37",
4+
"version": "0.3.38",
55
"repository": {
66
"type": "git",
77
"url": "https://github.com/workglow-dev/libs.git",

0 commit comments

Comments
 (0)