Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Svelte: Fix Safari 17.3 groupBy usage#63964

Merged
peterguy merged 1 commit into
mainfrom
vk/fix-group-by-in-safari-17.3
Jul 20, 2024
Merged

Svelte: Fix Safari 17.3 groupBy usage#63964
peterguy merged 1 commit into
mainfrom
vk/fix-group-by-in-safari-17.3

Conversation

@vovakulikov

Copy link
Copy Markdown
Contributor

Currently, svelte build of Sourcegraph is broken on s2 and dotcom for users who use Safari 17.3 and lower
The problem is that we use the Object.groupBy method, which isn't supported in "old" Safari versions like 17.3 and lower. See caniuse documentation about this here https://caniuse.com/?search=groupBy (in the old Safari version this method is actually named groupToMap

Test plan

  • Check basic functionality Search flow in Safari (especially in Safari 17.3)

Changelog

@vovakulikov vovakulikov requested a review from a team July 20, 2024 01:16
@vovakulikov vovakulikov self-assigned this Jul 20, 2024
@cla-bot cla-bot Bot added the cla-signed label Jul 20, 2024
@vovakulikov vovakulikov requested a review from a team July 20, 2024 01:33

@peterguy peterguy 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.

Thanks for catching this!

@peterguy peterguy merged commit 492ddef into main Jul 20, 2024
@peterguy peterguy deleted the vk/fix-group-by-in-safari-17.3 branch July 20, 2024 01:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants