From 63a54ddef5012aefa5ac97427fb71fa9ed7a8bbc Mon Sep 17 00:00:00 2001 From: Sree Narayanan Date: Wed, 17 Jun 2026 17:39:52 +0400 Subject: [PATCH 1/2] Prepare 0.2.1 release --- bun.lock | 2 +- packages/sideffect/README.md | 16 ++++++++++++++++ packages/sideffect/package.json | 2 +- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/bun.lock b/bun.lock index 127ec17..c15d825 100644 --- a/bun.lock +++ b/bun.lock @@ -10,7 +10,7 @@ }, "packages/sideffect": { "name": "sideffect", - "version": "0.2.0", + "version": "0.2.1", "dependencies": { "typescript": ">=5.0.0 <7", }, diff --git a/packages/sideffect/README.md b/packages/sideffect/README.md index 20d8533..73ed104 100644 --- a/packages/sideffect/README.md +++ b/packages/sideffect/README.md @@ -142,6 +142,22 @@ By default Sideffect scans `src/workflows`. If your workflow files live elsewher Your source `wrangler.jsonc` does not need a `workflows` field. Sideffect writes the workflow config into the Vite build output and generates env types for the workflow bindings it creates. +## Static Discovery + +The Vite adapter discovers workflow layers with TypeScript AST analysis before Worker modules run. It does not execute your source files during discovery. + +Discovery supports statically knowable local workflow layers, including direct `Workflow.make(...).toLayer(...)` exports, local workflow definitions followed by `workflow.toLayer(...)`, local relative imports of workflow definitions, and default-exported workflow layers. + +Before triggering a publish run, verify this discovery path with the package checks and Cloudflare workflow workbench tests: + +```sh +bun run check +bun run test +bun run build:sideffect +bun run test:e2e:vite +bun run test:e2e:tanstack +``` + Use the generated binding from your Worker as usual: ```ts diff --git a/packages/sideffect/package.json b/packages/sideffect/package.json index 5fbac06..8594cfc 100644 --- a/packages/sideffect/package.json +++ b/packages/sideffect/package.json @@ -1,6 +1,6 @@ { "name": "sideffect", - "version": "0.2.0", + "version": "0.2.1", "description": "Build Cloudflare Workflows from reusable typed steps, with Vite-generated workflow config.", "homepage": "https://github.com/eersnington/sideffect#readme", "bugs": { From 238193d8bbb1bd6cbd80eff5e96295bcbab65209 Mon Sep 17 00:00:00 2001 From: Sree Narayanan Date: Wed, 17 Jun 2026 17:43:10 +0400 Subject: [PATCH 2/2] Remove release checklist from README --- packages/sideffect/README.md | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/packages/sideffect/README.md b/packages/sideffect/README.md index 73ed104..16c9f9e 100644 --- a/packages/sideffect/README.md +++ b/packages/sideffect/README.md @@ -148,16 +148,6 @@ The Vite adapter discovers workflow layers with TypeScript AST analysis before W Discovery supports statically knowable local workflow layers, including direct `Workflow.make(...).toLayer(...)` exports, local workflow definitions followed by `workflow.toLayer(...)`, local relative imports of workflow definitions, and default-exported workflow layers. -Before triggering a publish run, verify this discovery path with the package checks and Cloudflare workflow workbench tests: - -```sh -bun run check -bun run test -bun run build:sideffect -bun run test:e2e:vite -bun run test:e2e:tanstack -``` - Use the generated binding from your Worker as usual: ```ts