Skip to content
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

feat(javascript): add addUserAgent method #154

Merged
merged 4 commits into from
Feb 22, 2022

Conversation

shortcuts
Copy link
Member

🧭 What and Why

🎟 JIRA Ticket: https://algolia.atlassian.net/browse/APIC-333

This method is used by our other products (IS, Crawler, etc.) to provide their own User Agent.

Changes included:

  • Add addUserAgent method, that append to the current client User Agent.

Unrelated changes:

A PR was not worth those small changes

  • Update mustache template to improve function consistency
  • Remove private from package fields

Questions

Looking at the current clients behavior, I feel like this method is really specific to the JavaScript client. Do we want to provide API specific tests later?

🧪 Test

CI :D

@shortcuts shortcuts requested a review from a team February 22, 2022 11:30
@shortcuts shortcuts self-assigned this Feb 22, 2022
@shortcuts shortcuts requested review from damcou and removed request for a team February 22, 2022 11:30
Copy link
Contributor

@damcou damcou left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

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