Skip to content

Update setupLocatorSdkConfig request model#262

Merged
Marcosld merged 5 commits intomasterfrom
jeslat-patch-1
Mar 30, 2026
Merged

Update setupLocatorSdkConfig request model#262
Marcosld merged 5 commits intomasterfrom
jeslat-patch-1

Conversation

@jeslat
Copy link
Copy Markdown
Contributor

@jeslat jeslat commented Mar 27, 2026

Updating the model to match the SDK implementation

@jeslat jeslat marked this pull request as ready for review March 27, 2026 07:19
@jeslat jeslat requested review from Marcosld and pbartolome March 27, 2026 07:20
@jeslat jeslat marked this pull request as draft March 27, 2026 09:14
@jeslat jeslat marked this pull request as ready for review March 27, 2026 10:25

export const setupLocatorSdkConfig = (
config: LocatorSdkConfig,
config: Record<string, unknown>,
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.

why this change?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We don't want to maintain an object definition here that will change depending on the SDK version. We prefer to just link to the SDK documentation and accept any JSON object.

I changed it to Record<string, unknown>, but if you prefer another generic type, I will change it.

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.

lgtm

CHANGELOG.md Outdated
Comment on lines +3 to +9
## v5.1.0 - 2026-03-27

- `setupLocatorSdkConfig`: config parameter now accepts a generic object
(`Record<string, unknown>`) instead of the specific `LocatorSdkConfig` type
- `getLocatorSdkConfig`: return type now uses `Record<string, unknown> | null`
instead of `LocatorSdkConfig | null`

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.

revert this, changelog.md is updated when the version is released, not in the PR

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ok, done

@Marcosld Marcosld merged commit 5d1041c into master Mar 30, 2026
2 checks passed
@Marcosld Marcosld deleted the jeslat-patch-1 branch March 30, 2026 10:48
@Marcosld
Copy link
Copy Markdown
Contributor

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.

4 participants