Skip to content

Conversation

@kinyoklion
Copy link
Member

@kinyoklion kinyoklion commented Apr 7, 2025

This PR contains changes required to add unformation about user agents and wrapper names to the meta repository.

Updated .sdk_metadata.json file: https://github.com/launchdarkly/js-core/blob/main/.sdk_metadata.json

  • Extend the database with user agents and wrapper names.
  • Add a schema for a new product containing the user agents and wrappers.
  • A generated instance of the new product file for use in testing packages.
  • Updated the product generation script to create the new product.
  • Update the API packages to allow for access to the new information.

For those unfamiliar with this repo the primary purpose is to crawl SDK repositories, collect meta-data, and then put that meta-data into a usable form (A Go and JavaScript package).

Locally I have updated versions of ALL of the meta files to add to all of the repos. But I want to merge this PR before opening 22 more PRs.

@@ -0,0 +1,40 @@
{
Copy link
Member Author

Choose a reason for hiding this comment

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

Added this information to js-core and then did a crawl for just these products.

@kinyoklion kinyoklion marked this pull request as ready for review April 7, 2025 23:23
@kinyoklion kinyoklion requested a review from a team as a code owner April 7, 2025 23:23

export const UserAgents: Record<string, UserAgent> = sdkUserAgents;

export namespace UserAgentHelpers {
Copy link
Member Author

Choose a reason for hiding this comment

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

This is a somewhat strange pattern, but it is what was done in this package already. Probably could just be top level functions.

@kinyoklion kinyoklion merged commit 737a080 into main Apr 8, 2025
2 checks passed
@kinyoklion kinyoklion deleted the rlamb/add-user-agents branch April 8, 2025 16:21
@github-actions github-actions bot mentioned this pull request Apr 8, 2025
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