Skip to content

Conversation

@adriandlam
Copy link
Member

@adriandlam adriandlam commented Nov 14, 2025

adds a new package @workflow/astro for supporting astro

waiting on Astro #14769 to be merged to resolve TypeError being thrown coming from undefined unhandled rejections

@changeset-bot
Copy link

changeset-bot bot commented Nov 14, 2025

🦋 Changeset detected

Latest commit: 93495f3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 10 packages
Name Type
@workflow/builders Patch
workflow Patch
@workflow/astro Patch
@workflow/cli Patch
@workflow/next Patch
@workflow/nitro Patch
@workflow/sveltekit Patch
@workflow/ai Patch
@workflow/world-testing Patch
@workflow/nuxt Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link
Contributor

vercel bot commented Nov 14, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
example-nextjs-workflow-turbopack Ready Ready Preview Comment Nov 15, 2025 3:11am
example-nextjs-workflow-webpack Ready Ready Preview Comment Nov 15, 2025 3:11am
example-workflow Ready Ready Preview Comment Nov 15, 2025 3:11am
workbench-astro-workflow Ready Ready Preview Comment Nov 15, 2025 3:11am
workbench-hono-workflow Ready Ready Preview Comment Nov 15, 2025 3:11am
workbench-nitro-workflow Ready Ready Preview Comment Nov 15, 2025 3:11am
workbench-nuxt-workflow Ready Ready Preview Comment Nov 15, 2025 3:11am
workbench-sveltekit-workflow Ready Ready Preview Comment Nov 15, 2025 3:11am
workbench-vite-workflow Ready Ready Preview Comment Nov 15, 2025 3:11am
workflow-docs Ready Ready Preview Comment Nov 15, 2025 3:11am

suppressUndefinedRejections: true,
});

// // Post-process the gen // Post-process the generated file to wrap with SvelteKit request converter
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// // Post-process the gen // Post-process the generated file to wrap with SvelteKit request converter
// Post-process the generated file to wrap with Astro request converter

There is a malformed comment on line 151 that appears to be a copy-paste artifact, with doubled comment markers and garbled text.

View Details

Analysis

Malformed comment in AstroBuilder.buildWebhookRoute()

What fails: Line 151 in packages/astro/src/builder.ts contains a malformed comment with doubled comment markers and garbled text: // // Post-process the gen // Post-process the generated file to wrap with SvelteKit request converter

Impact: While this is only a comment and doesn't affect runtime behavior, it indicates a copy-paste artifact and incorrectly references "SvelteKit" instead of "Astro", creating confusion about the actual implementation.

Root cause: The comment was likely copied from the SvelteKit builder implementation without proper cleanup during the Astro builder implementation.

Fix: Replaced the malformed comment with a clean version that accurately describes the post-processing step for the Astro webhook route:

  • Changed from: // // Post-process the gen // Post-process the generated file to wrap with SvelteKit request converter
  • Changed to: // Post-process the generated file to wrap with Astro request converter

This aligns with the comment style used in the buildStepsRoute() and buildWorkflowsRoute() methods of the same class.

pranaygp and others added 8 commits November 14, 2025 10:41
Normalize trigger scripts across workbenches
fix: include hono in local build test

test: include src dir for test

test: add workflow dir config in test to fix sveltekit dev tests

add temp 7_full in example wokrflow

format

fix(sveltekit): detecting workflow folders and customizable dir

Remove 7_full and 1_simple error
replace API symlink in webpack workbench
Fix sveltekit and vite tests
Fix sveltekit symlinks
Test fixes
Fix sveltekit workflows path
Dont symlink routes in vite
Include e2e tests for hono and vite

fix error tests post normalization

wip - attempted fixes
* Proper stacktrace propogation in world

Proper stacktrace propogation in world

* Standardize the error type in the world spec

* Normalize Workbenches

Normalize trigger scripts across workbenches
fix: include hono in local build test

test: include src dir for test

test: add workflow dir config in test to fix sveltekit dev tests

add temp 7_full in example wokrflow

format

fix(sveltekit): detecting workflow folders and customizable dir

Remove 7_full and 1_simple error
replace API symlink in webpack workbench
Fix sveltekit and vite tests
Fix sveltekit symlinks
Test fixes
Fix sveltekit workflows path
Dont symlink routes in vite
Include e2e tests for hono and vite

* fix error tests post normalization

* fix(sveltekit): reading file on hmr delete

* changeset

* fix(vite): add resolve symlink script

* fix(vite): missing building on hmr

* test local builder in vite

* test: increase timeout on hookWorkflow

* test: ignore vite based apps in crossFileWorkflow

* test: fix nitro based apps status codes

* fix: intercept default vite spa handler on 404 workflow routes

* fix: vite hook route returning 422

* test: use 422 for hookWorkflow expected

* test: fix hono returning 404

* chore: add comment to middleware to clarify

* make api route for duplicate case

* revert

* revert: nitro builder

* add back nitro unhandled rejection logic

* test: add hono

* changeset

* fix: unused method

* fix: remove duplicate import

* remove

* chore: add comments to clarify

* test remove vite symlink script

---------

Co-authored-by: Pranay Prakash <[email protected]>
* fix: add sveltekit server routes to builder

* fix: remove root workflow dir check

* fix missing root level workflow route

* Fix: The constructor now hardcodes `dirs: ['src/routes', 'src/lib']` which silently ignores any user\-provided `dirs` option passed to the plugin\, breaking the documented API and removing support for custom workflow directories\.

* Fix: The test expectations don\'t match the new implementation of `getWorkflowDirs()`\. The mock provides `scanDirs` which the new code no longer uses\, and the new implementation adds scanning of `routesDir` and `apiDir` instead\.

* fix(nitro): use src dir

---------

Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>
Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>
@socket-security
Copy link

socket-security bot commented Nov 14, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​@​astrojs/​node@​9.5.01001008296100
Addednpm/​@​astrojs/​vercel@​9.0.01001008397100
Addednpm/​astro@​5.15.6971008897100
Addednpm/​openai@​6.9.0100100100100100

View full report

@socket-security
Copy link

socket-security bot commented Nov 14, 2025

All alerts resolved. Learn more about Socket for GitHub.

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants