Skip to content
Source
Sign inSign up
TanStack/workflow

Fix workflow runtime and release surface #9

Mergedtannerlinsleymerged 1 commit intomain fromrefs/pull/9/headmerged by tannerlinsley

Showing 92 changed files with 9 additions and 21 deletions (loading 88).

x
0 of 92 viewed, 92 left
1 addition and 1 deletion.github/pull_request_template.mdModified
View file
@@ -4,7 +4,7 @@
​
## ✅ Checklist
​
-- [ ] I have followed the steps in the [Contributing guide](https://github.com/TanStack/template/blob/main/CONTRIBUTING.md).
+- [ ] I have followed the steps in the [Contributing guide](https://github.com/TanStack/workflow/blob/main/CONTRIBUTING.md).
- [ ] I have tested this code locally with `pnpm run test:pr`.
​
## 🚀 Release Impact
3 additions and 19 deletionsdocs/concepts/primitives.mdModified
View file
@@ -45,10 +45,11 @@
Pause until the host delivers a signal with this `name`. Returns the payload.
​
```ts
+const now = await ctx.now()
const payload = await ctx.waitForEvent('webhook-received', {
schema: z.object({ reference: z.string() }),
- meta: { source: 'stripe' }, // visible to the host driver
- deadline: Date.now() + 86_400_000, // host wakes if not delivered
+ meta: { source: 'stripe' }, // visible to the host driver
+ deadline: now + 86_400_000, // host wakes if not delivered
})
```
​
@@ -103,23 +104,6 @@