Skip to content

chore(ts): keep browser helper imports type-only#2114

Merged
SimonThormeyer merged 2 commits intomainfrom
simon/fix/browser-bench-helpers
May 7, 2026
Merged

chore(ts): keep browser helper imports type-only#2114
SimonThormeyer merged 2 commits intomainfrom
simon/fix/browser-bench-helpers

Conversation

@SimonThormeyer
Copy link
Copy Markdown
Member

@SimonThormeyer SimonThormeyer commented May 6, 2026

Browser benchmark CI loads benchmark specs through WDIO/tsx before the
browser bundle is running. We need some imports from
@wireapp/core-crypto/browser only for TypeScript annotations. However,
we need to explicitly state that we want types only, otherwise the
browser context will try to load symbols it doesn't have access to.

This fixes the imports for Ciphersuite, HttpMethod, HttpHeader.

What's new in this PR


PR Submission Checklist for internal contributors
  • The PR Title
    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  1. https://sparkbox.com/foundry/semantic_commit_messages
  2. https://github.com/wireapp/.github#usage
  3. E.g. feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.

@SimonThormeyer SimonThormeyer marked this pull request as ready for review May 6, 2026 15:45
@SimonThormeyer SimonThormeyer requested a review from a team May 6, 2026 15:45
@SimonThormeyer SimonThormeyer marked this pull request as draft May 6, 2026 16:04
@SimonThormeyer SimonThormeyer force-pushed the simon/fix/browser-bench-helpers branch 3 times, most recently from 8d08bda to 79355ec Compare May 7, 2026 07:25
@SimonThormeyer SimonThormeyer marked this pull request as ready for review May 7, 2026 07:34
@SimonThormeyer SimonThormeyer force-pushed the simon/fix/browser-bench-helpers branch 3 times, most recently from 3c470ae to 1ba3e3f Compare May 7, 2026 08:17
Copy link
Copy Markdown
Contributor

@fewerner fewerner left a comment

Choose a reason for hiding this comment

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

lgtm!

SimonThormeyer and others added 2 commits May 7, 2026 11:46
Browser benchmark CI loads benchmark specs through WDIO/tsx before the
browser bundle is running. We need some imports from
`@wireapp/core-crypto/browser` only for TypeScript annotations. However,
we need to explicitly state that we want types only, otherwise the
browser context will try to load symbols it doesn't have access to.

This fixes the imports for `Ciphersuite`, `HttpMethod`, `HttpHeader`.

This is a partial revert of be864fe.

Co-authored-by: Codex <267193182+codex@users.noreply.github.com>
@SimonThormeyer SimonThormeyer force-pushed the simon/fix/browser-bench-helpers branch from 1ba3e3f to a80f279 Compare May 7, 2026 09:46
@SimonThormeyer SimonThormeyer merged commit a80f279 into main May 7, 2026
60 checks passed
@SimonThormeyer SimonThormeyer deleted the simon/fix/browser-bench-helpers branch May 7, 2026 09:52
@SimonThormeyer SimonThormeyer mentioned this pull request May 7, 2026
3 tasks
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.

2 participants