Skip to content

fix(javascript): common package types #4015

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 12 commits into from
Oct 22, 2024
Merged

fix(javascript): common package types #4015

merged 12 commits into from
Oct 22, 2024

Conversation

shortcuts
Copy link
Member

@shortcuts shortcuts commented Oct 22, 2024

🧭 What and Why

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

Changes included:

there was a regression in 5.9.0 that removed the type definition for the handwritten packages (requester, logger and common) because the index.ts gets confused for some reason when bundling types, the .d.ts (see published type https://www.npmjs.com/package/@algolia/client-common?activeTab=code)

also the library check was skipped when bundling types, so... our test suite wouldn't catch it

@shortcuts shortcuts self-assigned this Oct 22, 2024
@algolia-bot
Copy link
Collaborator

algolia-bot commented Oct 22, 2024

✔️ Code generated!

Name Link
🪓 Triggered by 511a17d4954d12ceb65ec61f9afebea9b69f2ee8
🍃 Generated commit 1dc0dbacedd49ef91de70698bdc49143b9246227
🌲 Generated branch generated/fix/javascript-types
📊 Benchmark results

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

Language Req/s
javascript 1619

@shortcuts shortcuts marked this pull request as ready for review October 22, 2024 12:03
@shortcuts shortcuts requested a review from a team as a code owner October 22, 2024 12:03
Copy link
Collaborator

@millotp millotp left a comment

Choose a reason for hiding this comment

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

gg

@shortcuts shortcuts merged commit 25de700 into main Oct 22, 2024
12 checks passed
@shortcuts shortcuts deleted the fix/javascript-types branch October 22, 2024 14:17
algolia-bot added a commit that referenced this pull request Oct 22, 2024
Co-authored-by: Clément Vannicatte <[email protected]>
Co-authored-by: Pierre Millot <[email protected]>
algolia-bot added a commit to algolia/algoliasearch-client-javascript that referenced this pull request Oct 22, 2024
algolia/api-clients-automation#4015

Co-authored-by: algolia-bot <[email protected]>
Co-authored-by: Clément Vannicatte <[email protected]>
Co-authored-by: Pierre Millot <[email protected]>
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.

3 participants