Skip to content

feat: publish @pgflow/edge-worker to npm with Node/Bun process runtime support - #628

Merged
jumski merged 1 commit into
mainfrom
portable-worker-npm-build
Aug 21, 2026
Merged

feat: publish @pgflow/edge-worker to npm with Node/Bun process runtime support#628
jumski merged 1 commit into
mainfrom
portable-worker-npm-build

Conversation

@jumski

@jumski jumski commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

@pgflow/edge-worker is now published to npm alongside the other pgflow packages. Previously it was excluded from npm publishing and only released to JSR.

To support npm distribution, the following changes were made:

  • The TypeScript build target for edge-worker is now active, compiling sources to dist/ via @nx/js:tsc
  • Import paths updated from .ts to .js extensions for compatibility with compiled output
  • Replaced the @std/crypto/timing-safe-equal Deno dependency with an inline timingSafeEqualBytes implementation, removing the Deno-specific dependency and enabling Node/Bun compatibility
  • globalThis.crypto access updated to avoid TypeScript strict-mode errors in non-browser environments
  • TypeScript config updated to include es2022, dom, and dom.iterable libs
  • A smoke test script (scripts/smoke-edge-worker-dist.mjs) was added to verify the built dist/ exports are valid before publishing
  • The validate:publish:npm and publish:npm scripts now include edge-worker and run the smoke test as part of the publish flow

@changeset-bot

changeset-bot Bot commented Jun 7, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 7751179

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

This PR includes changesets to release 5 packages
Name Type
@pgflow/core Minor
@pgflow/dsl Minor
@pgflow/client Minor
@pgflow/edge-worker Minor
pgflow Minor

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

@nx-cloud

nx-cloud Bot commented Jun 7, 2026

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit 32e76c9

Command Status Duration Result
nx run edge-worker:test:integration ✅ Succeeded 4m 27s View ↗
nx run client:e2e ✅ Succeeded 1m 15s View ↗
nx run edge-worker:e2e ✅ Succeeded 37s View ↗
nx affected -t verify-exports --base=origin/mai... ✅ Succeeded 3s View ↗
nx affected -t build --configuration=production... ✅ Succeeded 3s View ↗
nx affected -t lint typecheck test --parallel -... ✅ Succeeded 25s View ↗
nx run core:pgtap ✅ Succeeded 1m 50s View ↗
nx run cli:e2e ✅ Succeeded 3s View ↗

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


☁️ Nx Cloud last updated this comment at 2026-06-08 18:35:41 UTC

@jumski
jumski force-pushed the portable-worker-process-adapter branch from 3cb8c81 to efd6d99 Compare June 8, 2026 17:50
@jumski
jumski force-pushed the portable-worker-npm-build branch from ff59b77 to dd04543 Compare June 8, 2026 17:50
@jumski
jumski force-pushed the portable-worker-process-adapter branch from efd6d99 to 6b47ef1 Compare June 8, 2026 18:08
@jumski
jumski force-pushed the portable-worker-npm-build branch from dd04543 to be382bd Compare June 8, 2026 18:08
@jumski
jumski force-pushed the portable-worker-npm-build branch from be382bd to 32e76c9 Compare June 8, 2026 18:24
@jumski
jumski force-pushed the portable-worker-process-adapter branch from 6b47ef1 to 5e9c0a9 Compare June 8, 2026 18:24

jumski commented Aug 21, 2026

Copy link
Copy Markdown
Contributor Author

Merge activity

  • Aug 21, 4:13 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Aug 21, 4:17 PM UTC: Graphite rebased this pull request as part of a merge.
  • Aug 21, 4:17 PM UTC: @jumski merged this pull request with Graphite.

@jumski
jumski changed the base branch from portable-worker-process-adapter to graphite-base/628 August 21, 2026 16:14
@jumski
jumski changed the base branch from graphite-base/628 to main August 21, 2026 16:15
@jumski
jumski force-pushed the portable-worker-npm-build branch from 32e76c9 to 7751179 Compare August 21, 2026 16:16
@jumski
jumski merged commit 9a9022e into main Aug 21, 2026
13 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Production Deployment: Website

Successfully deployed to production!

🔗 Production URL: https://pgflow.dev

📝 Details:

  • Commit: 9a9022e29d12b78f7f28ef8b23e2631c3689319d
  • View Logs

Deployed at: 2026-08-21T18:17:29+02:00

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