Skip to content

fix(javascript): umd export name #3701

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 12, 2024
Merged

Conversation

shortcuts
Copy link
Member

@shortcuts shortcuts commented Sep 12, 2024

🧭 What and Why

🎟 JIRA Ticket: https://algolia.atlassian.net/browse/DI-2909

Changes included:

close #3700

see context here #3700

the tsup build changed the exported global name on window, previously exposed window['algoliasearch/lite'] changed to window.lite, which is incorrect, and a breaking change.

we now provide the previous names

@shortcuts shortcuts self-assigned this Sep 12, 2024
@shortcuts shortcuts requested a review from a team as a code owner September 12, 2024 20:40
@shortcuts shortcuts requested review from Fluf22 and millotp September 12, 2024 20:40
@algolia-bot
Copy link
Collaborator

algolia-bot commented Sep 12, 2024

✔️ Code generated!

Name Link
🪓 Triggered by 5f0532169a95799de10d2ae4df5bdb9f835a0adf
🍃 Generated commit 335af10fc352d5f43349ebc446720f6512b17a8f
🌲 Generated branch generated/fix/javascript-window-umd-export
📊 Benchmark results

Benchmarks performed on the method using a mock server, the results might not reflect the real-world performance.

Language Req/s
javascript 1666

Copy link
Contributor

@Fluf22 Fluf22 left a comment

Choose a reason for hiding this comment

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

Toi need a PhD to handle js bundling

@shortcuts shortcuts merged commit 274fae1 into main Sep 12, 2024
13 checks passed
@shortcuts shortcuts deleted the fix/javascript-window-umd-export branch September 12, 2024 20:56
algolia-bot added a commit that referenced this pull request Sep 12, 2024
algolia-bot added a commit to algolia/algoliasearch-client-javascript that referenced this pull request Sep 12, 2024
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.

[bug]: window export changed after tsup bundler
3 participants