Skip to content

chore: bump @e4a/pg-js to ^2.0.1#245

Merged
rubenhensen merged 1 commit into
mainfrom
chore/bump-pg-js-2.0.1
Jun 3, 2026
Merged

chore: bump @e4a/pg-js to ^2.0.1#245
rubenhensen merged 1 commit into
mainfrom
chore/bump-pg-js-2.0.1

Conversation

@rubenhensen

Copy link
Copy Markdown
Contributor

Summary

Picks up pg-js 2.0.1, which ships the removal of the upload-option runtime validator (encryption4all/postguard-js#87, re-tagged as a `fix:` in #88 to trigger the patch release).

The staging email-preview modal merged in #244 calls `sealed.upload({ onUploadInit: fn })` to capture the uuid as soon as the server allocates it. On 2.0.0 that threw `TypeError: sealed.upload(opts): unknown option "onUploadInit"` because the validator's allowlist had drifted from the type. On 2.0.1 the validator is gone, so the call works.

Test plan

  • `npx svelte-check` clean.
  • On staging deploy: send a share with the encrypt flow, confirm no `TypeError` from `sealed.upload` and the preview modal opens with the rendered email.

Picks up the upload-validator removal from
encryption4all/postguard-js#87 (released as 2.0.1 via the follow-up
fix: commit in #88), which unblocks the staging email-preview modal
flow — passing `onUploadInit` no longer throws
`TypeError: unknown option "onUploadInit"`.
@dobby-coder

dobby-coder Bot commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Dobby has received the request! Routing to the right specialist now...

@rubenhensen rubenhensen merged commit c0d571b into main Jun 3, 2026
6 checks passed
@rubenhensen rubenhensen deleted the chore/bump-pg-js-2.0.1 branch June 3, 2026 09:52

@dobby-coder dobby-coder Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code review

Patch bump @e4a/pg-js 2.0.0 → 2.0.1 drops the upload-option runtime validator whose allowlist had drifted from the type, unblocking the onUploadInit call added in #244. package.json and package-lock.json updated consistently; the resolved 2.0.1 exposes onUploadInit in both types and runtime.

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