Skip to content

fix(build)!: Rename plugin that wrapps requests with AsyncLocalStorage#2062

Merged
Tobbe merged 2 commits into
mainfrom
tobbe-chore-build-rename-als-plugin
Jul 8, 2026
Merged

fix(build)!: Rename plugin that wrapps requests with AsyncLocalStorage#2062
Tobbe merged 2 commits into
mainfrom
tobbe-chore-build-rename-als-plugin

Conversation

@Tobbe

@Tobbe Tobbe commented Jul 8, 2026

Copy link
Copy Markdown
Member

This should hopefully make it more clear what the plugin actually does, which is wrapping requests in an empty AsyncLocalStorage map, so that requests never leak information to other requests

This is a breaking change for anyone who imported using the old exported name. Please update your imports

@netlify

netlify Bot commented Jul 8, 2026

Copy link
Copy Markdown

Deploy Preview for cedarjs ready!

Name Link
🔨 Latest commit 15702df
🔍 Latest deploy log https://app.netlify.com/projects/cedarjs/deploys/6a4e6b7d4900ae0008768a13
😎 Deploy Preview https://deploy-preview-2062--cedarjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot added this to the chore milestone Jul 8, 2026
@greptile-apps

greptile-apps Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR renames the request ALS wrapping plugin to make its role clearer. The main changes are:

  • Renamed Babel, Vite, and internal build plugin files and exports.
  • Updated API build paths to call the renamed handler ALS wrapping helper.
  • Updated Vite build registration to use the renamed plugin.
  • Updated related tests, fixtures, and implementation docs.

Confidence Score: 5/5

This looks safe to merge.

  • No blocking issues found in the changed code.

Important Files Changed

Filename Overview
packages/vite/src/buildApp.ts Updates the API Vite build to import and register handlerAlsWrappingPlugin from the renamed plugin file.
packages/vite/src/plugins/vite-plugin-handler-als-wrapping.ts Renames the Vite request ALS wrapping plugin and helper exports while keeping the wrapping behavior intact.
packages/vite/src/index.ts Re-exports the renamed Vite plugin and wrapping helper from the package entry point.
packages/internal/src/build/api.ts Updates standalone API build paths to call the renamed handler ALS wrapping helper.
packages/internal/src/build/esbuild-plugin-handler-als-wrapping.ts Renames the internal esbuild wrapper helper without changing its output behavior.
packages/babel-config/src/api.ts Updates the Jest-side API Babel override to use the renamed handler ALS wrapping plugin.
packages/babel-config/src/plugins/babel-plugin-handler-als-wrapping.ts Renames the Babel plugin while preserving the handler wrapping transform.
docs/implementation-plans/debugger-breakpoints-investigation.md Updates the plugin name in the Cedar transform list.

Reviews (2): Last reviewed commit: "more renames" | Re-trigger Greptile

Comment thread packages/vite/src/plugins/vite-plugin-handler-als-wrapping.ts
@nx-cloud

nx-cloud Bot commented Jul 8, 2026

Copy link
Copy Markdown

🤖 Nx Cloud AI Fix

Ensure the fix-ci command is configured to always run in your CI pipeline to get automatic fixes in future runs. For more information, please see https://nx.dev/ci/features/self-healing-ci


View your CI Pipeline Execution ↗ for commit 2d86856

Command Status Duration Result
nx run-many -t build:pack --exclude create-ceda... ✅ Succeeded 2s View ↗
nx run-many -t test --minWorkers=1 --maxWorkers=4 ✅ Succeeded 2m 39s View ↗
nx run-many -t build ✅ Succeeded 1m 7s View ↗
nx run-many -t test:types ✅ Succeeded 10s View ↗

💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗


☁️ Nx Cloud last updated this comment at 2026-07-08 15:39:44 UTC

@Tobbe Tobbe changed the title chore(build): Rename plugin that wrapps requests with AsyncLocalStorage fix(build)!: Rename plugin that wrapps requests with AsyncLocalStorage Jul 8, 2026
@Tobbe Tobbe modified the milestones: chore, next-release-major Jul 8, 2026
@Tobbe Tobbe merged commit 7c484e8 into main Jul 8, 2026
54 of 58 checks passed
@Tobbe Tobbe deleted the tobbe-chore-build-rename-als-plugin branch July 8, 2026 18:32
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown

The changes in this PR are now available on npm.

Try them out by running yarn cedar upgrade -t 5.0.0-canary.2606

Or try it in a new app with yarn dlx create-cedar-app@5.0.0-canary.2606

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.

1 participant