feat: add region to model type#1423
Merged
Merged
Conversation
Contributor
|
@launchdarkly/js-sdk-common size report |
Contributor
|
@launchdarkly/browser size report |
Contributor
|
@launchdarkly/js-client-sdk size report |
Contributor
|
@launchdarkly/js-client-sdk-common size report |
jsonbailey
approved these changes
Jun 5, 2026
Merged
joker23
pushed a commit
that referenced
this pull request
Jun 5, 2026
🤖 I have created a release *beep* *boop* --- <details><summary>akamai-edgeworker-sdk-common: 2.0.23</summary> ## [2.0.23](akamai-edgeworker-sdk-common-v2.0.22...akamai-edgeworker-sdk-common-v2.0.23) (2026-06-05) ### Bug Fixes * explicit return types and TS6 source compatibility fixes ([#1418](#1418)) ([9c131a2](9c131a2)) ### Dependencies * The following workspace dependencies were updated * dependencies * @launchdarkly/js-server-sdk-common bumped from ^2.19.0 to ^2.19.1 </details> <details><summary>akamai-server-base-sdk: 3.0.24</summary> ## [3.0.24](akamai-server-base-sdk-v3.0.23...akamai-server-base-sdk-v3.0.24) (2026-06-05) ### Dependencies * The following workspace dependencies were updated * dependencies * @launchdarkly/akamai-edgeworker-sdk-common bumped from ^2.0.22 to ^2.0.23 * @launchdarkly/js-server-sdk-common bumped from ^2.19.0 to ^2.19.1 </details> <details><summary>akamai-server-edgekv-sdk: 1.4.26</summary> ## [1.4.26](akamai-server-edgekv-sdk-v1.4.25...akamai-server-edgekv-sdk-v1.4.26) (2026-06-05) ### Dependencies * The following workspace dependencies were updated * dependencies * @launchdarkly/akamai-edgeworker-sdk-common bumped from ^2.0.22 to ^2.0.23 * @launchdarkly/js-server-sdk-common bumped from ^2.19.0 to ^2.19.1 </details> <details><summary>browser: 0.1.26</summary> ## [0.1.26](browser-v0.1.25...browser-v0.1.26) (2026-06-05) ### Dependencies * The following workspace dependencies were updated * dependencies * @launchdarkly/js-client-sdk bumped from 4.8.0 to 4.8.1 </details> <details><summary>client-testing-plugin: 0.1.0</summary> ## [0.1.0](client-testing-plugin-v0.0.1...client-testing-plugin-v0.1.0) (2026-06-05) ### ⚠ BREAKING CHANGES * prerelease `@launchdarkly/client-testing-plugin` ([#1422](#1422)) ### Features * prerelease `@launchdarkly/client-testing-plugin` ([#1422](#1422)) ([d801e9e](d801e9e)) ### Dependencies * The following workspace dependencies were updated * dependencies * @launchdarkly/js-client-sdk-common bumped from 1.28.0 to 1.28.1 * devDependencies * @launchdarkly/js-client-sdk bumped from 4.8.0 to 4.8.1 * @launchdarkly/react-sdk bumped from 4.1.0 to 4.1.1 * peerDependencies * @launchdarkly/js-client-sdk bumped from >=4.8.0 to >=4.8.1 * @launchdarkly/react-sdk bumped from >=4.1.0 to >=4.1.1 </details> <details><summary>cloudflare-server-sdk: 2.7.25</summary> ## [2.7.25](cloudflare-server-sdk-v2.7.24...cloudflare-server-sdk-v2.7.25) (2026-06-05) ### Dependencies * The following workspace dependencies were updated * dependencies * @launchdarkly/js-server-sdk-common-edge bumped from 2.6.21 to 2.6.22 </details> <details><summary>fastly-server-sdk: 0.2.15</summary> ## [0.2.15](fastly-server-sdk-v0.2.14...fastly-server-sdk-v0.2.15) (2026-06-05) ### Bug Fixes * explicit return types and TS6 source compatibility fixes ([#1418](#1418)) ([9c131a2](9c131a2)) ### Dependencies * The following workspace dependencies were updated * dependencies * @launchdarkly/js-server-sdk-common bumped from 2.19.0 to 2.19.1 </details> <details><summary>jest: 1.0.21</summary> ## [1.0.21](jest-v1.0.20...jest-v1.0.21) (2026-06-05) ### Dependencies * The following workspace dependencies were updated * dependencies * @launchdarkly/react-native-client-sdk bumped from ~10.18.0 to ~10.18.1 </details> <details><summary>js-client-sdk: 4.8.1</summary> ## [4.8.1](js-client-sdk-v4.8.0...js-client-sdk-v4.8.1) (2026-06-05) ### Dependencies * The following workspace dependencies were updated * dependencies * @launchdarkly/js-client-sdk-common bumped from 1.28.0 to 1.28.1 </details> <details><summary>js-client-sdk-common: 1.28.1</summary> ## [1.28.1](js-client-sdk-common-v1.28.0...js-client-sdk-common-v1.28.1) (2026-06-05) ### Dependencies * The following workspace dependencies were updated * dependencies * @launchdarkly/js-sdk-common bumped from 2.25.0 to 2.25.1 </details> <details><summary>js-sdk-common: 2.25.1</summary> ## [2.25.1](js-sdk-common-v2.25.0...js-sdk-common-v2.25.1) (2026-06-05) ### Bug Fixes * explicit return types and TS6 source compatibility fixes ([#1418](#1418)) ([9c131a2](9c131a2)) </details> <details><summary>js-server-sdk-common: 2.19.1</summary> ## [2.19.1](js-server-sdk-common-v2.19.0...js-server-sdk-common-v2.19.1) (2026-06-05) ### Bug Fixes * explicit return types and TS6 source compatibility fixes ([#1418](#1418)) ([9c131a2](9c131a2)) ### Dependencies * The following workspace dependencies were updated * dependencies * @launchdarkly/js-sdk-common bumped from 2.25.0 to 2.25.1 </details> <details><summary>js-server-sdk-common-edge: 2.6.22</summary> ## [2.6.22](js-server-sdk-common-edge-v2.6.21...js-server-sdk-common-edge-v2.6.22) (2026-06-05) ### Bug Fixes * explicit return types and TS6 source compatibility fixes ([#1418](#1418)) ([9c131a2](9c131a2)) ### Dependencies * The following workspace dependencies were updated * dependencies * @launchdarkly/js-server-sdk-common bumped from 2.19.0 to 2.19.1 </details> <details><summary>node-client-sdk: 0.0.3</summary> ## [0.0.3](node-client-sdk-v0.0.2...node-client-sdk-v0.0.3) (2026-06-05) ### Dependencies * The following workspace dependencies were updated * dependencies * @launchdarkly/js-client-sdk-common bumped to 1.28.1 </details> <details><summary>node-server-sdk: 9.11.2</summary> ## [9.11.2](node-server-sdk-v9.11.1...node-server-sdk-v9.11.2) (2026-06-05) ### Dependencies * The following workspace dependencies were updated * dependencies * @launchdarkly/js-server-sdk-common bumped from 2.19.0 to 2.19.1 </details> <details><summary>node-server-sdk-dynamodb: 6.2.30</summary> ## [6.2.30](node-server-sdk-dynamodb-v6.2.29...node-server-sdk-dynamodb-v6.2.30) (2026-06-05) ### Dependencies * The following workspace dependencies were updated * devDependencies * @launchdarkly/node-server-sdk bumped from 9.11.1 to 9.11.2 * peerDependencies * @launchdarkly/node-server-sdk bumped from >=9.11.1 to >=9.11.2 </details> <details><summary>node-server-sdk-otel: 1.3.17</summary> ## [1.3.17](node-server-sdk-otel-v1.3.16...node-server-sdk-otel-v1.3.17) (2026-06-05) ### Dependencies * The following workspace dependencies were updated * devDependencies * @launchdarkly/node-server-sdk bumped from 9.11.1 to 9.11.2 * peerDependencies * @launchdarkly/node-server-sdk bumped from >=9.11.1 to >=9.11.2 </details> <details><summary>node-server-sdk-redis: 4.2.29</summary> ## [4.2.29](node-server-sdk-redis-v4.2.28...node-server-sdk-redis-v4.2.29) (2026-06-05) ### Dependencies * The following workspace dependencies were updated * devDependencies * @launchdarkly/node-server-sdk bumped from 9.11.1 to 9.11.2 * peerDependencies * @launchdarkly/node-server-sdk bumped from >=9.11.1 to >=9.11.2 </details> <details><summary>openfeature-js-server-common: 0.1.3</summary> ## [0.1.3](openfeature-js-server-common-v0.1.2...openfeature-js-server-common-v0.1.3) (2026-06-05) ### Dependencies * The following workspace dependencies were updated * dependencies * @launchdarkly/js-sdk-common bumped from 2.25.0 to 2.25.1 </details> <details><summary>openfeature-node-server: 1.2.3</summary> ## [1.2.3](openfeature-node-server-v1.2.2...openfeature-node-server-v1.2.3) (2026-06-05) ### Dependencies * The following workspace dependencies were updated * dependencies * @launchdarkly/js-sdk-common bumped from 2.25.0 to 2.25.1 * @launchdarkly/openfeature-js-server-common bumped from 0.1.2 to 0.1.3 * devDependencies * @launchdarkly/node-server-sdk bumped from 9.11.1 to 9.11.2 * peerDependencies * @launchdarkly/node-server-sdk bumped from 9.11.1 to 9.11.2 </details> <details><summary>react-native-client-sdk: 10.18.1</summary> ## [10.18.1](react-native-client-sdk-v10.18.0...react-native-client-sdk-v10.18.1) (2026-06-05) ### Bug Fixes * Honor urlBuilder on React Native EventSource reconnect ([#1420](#1420)) ([93bd3f8](93bd3f8)) ### Dependencies * The following workspace dependencies were updated * dependencies * @launchdarkly/js-client-sdk-common bumped from 1.28.0 to 1.28.1 </details> <details><summary>react-sdk: 4.1.1</summary> ## [4.1.1](react-sdk-v4.1.0...react-sdk-v4.1.1) (2026-06-05) ### Dependencies * The following workspace dependencies were updated * dependencies * @launchdarkly/js-client-sdk bumped from ^4.8.0 to ^4.8.1 * @launchdarkly/js-server-sdk-common bumped from ^2.19.0 to ^2.19.1 </details> <details><summary>server-sdk-ai: 1.1.0</summary> ## [1.1.0](server-sdk-ai-v1.0.1...server-sdk-ai-v1.1.0) (2026-06-05) ### Features * add region to model type ([#1423](#1423)) ([7db5df5](7db5df5)) ### Dependencies * The following workspace dependencies were updated * devDependencies * @launchdarkly/js-server-sdk-common bumped from 2.19.0 to 2.19.1 * peerDependencies * @launchdarkly/js-server-sdk-common bumped from 2.19.0 to 2.19.1 </details> <details><summary>server-sdk-ai-langchain: 0.8.2</summary> ## [0.8.2](server-sdk-ai-langchain-v0.8.1...server-sdk-ai-langchain-v0.8.2) (2026-06-05) ### Dependencies * The following workspace dependencies were updated * devDependencies * @launchdarkly/server-sdk-ai bumped from ^1.0.1 to ^1.1.0 * peerDependencies * @launchdarkly/server-sdk-ai bumped from ^1.0.1 to ^1.1.0 </details> <details><summary>server-sdk-ai-openai: 0.7.2</summary> ## [0.7.2](server-sdk-ai-openai-v0.7.1...server-sdk-ai-openai-v0.7.2) (2026-06-05) ### Dependencies * The following workspace dependencies were updated * devDependencies * @launchdarkly/js-server-sdk-common bumped from 2.19.0 to 2.19.1 * @launchdarkly/server-sdk-ai bumped from ^1.0.1 to ^1.1.0 * peerDependencies * @launchdarkly/server-sdk-ai bumped from ^1.0.1 to ^1.1.0 </details> <details><summary>server-sdk-ai-vercel: 0.7.2</summary> ## [0.7.2](server-sdk-ai-vercel-v0.7.1...server-sdk-ai-vercel-v0.7.2) (2026-06-05) ### Dependencies * The following workspace dependencies were updated * devDependencies * @launchdarkly/server-sdk-ai bumped from ^1.0.1 to ^1.1.0 * peerDependencies * @launchdarkly/server-sdk-ai bumped from ^1.0.1 to ^1.1.0 </details> <details><summary>shopify-oxygen-sdk: 0.1.13</summary> ## [0.1.13](shopify-oxygen-sdk-v0.1.12...shopify-oxygen-sdk-v0.1.13) (2026-06-05) ### Bug Fixes * explicit return types and TS6 source compatibility fixes ([#1418](#1418)) ([9c131a2](9c131a2)) ### Dependencies * The following workspace dependencies were updated * dependencies * @launchdarkly/js-server-sdk-common bumped from 2.19.0 to 2.19.1 </details> <details><summary>vercel-server-sdk: 1.3.48</summary> ## [1.3.48](vercel-server-sdk-v1.3.47...vercel-server-sdk-v1.3.48) (2026-06-05) ### Dependencies * The following workspace dependencies were updated * dependencies * @launchdarkly/js-server-sdk-common-edge bumped from 2.6.21 to 2.6.22 </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > The PR is mostly version and changelog metadata; user-visible risk is limited to the documented RN reconnect fix, AI model `region` typing, and the breaking client-testing-plugin prerelease bump. > > **Overview** > This is an automated **Release Please** cut that bumps versions across the js-core monorepo (manifest, `package.json`, `x-release-please-version` stamps, changelogs, and example app pins). > > **Substantive releases bundled in this cut** (from changelog entries, not re-implemented in this diff): > > - **`@launchdarkly/js-sdk-common` / `@launchdarkly/js-server-sdk-common` (patch):** explicit return types and TypeScript 6 source compatibility ([#1418](#1418)), propagated to edge/server wrappers (Fastly, Shopify Oxygen, Akamai common, etc.). > - **`@launchdarkly/server-sdk-ai` 1.1.0:** optional **`region`** on the model config type ([#1423](#1423)); AI provider packages bump their `server-sdk-ai` peer/dev deps to `^1.1.0`. > - **`@launchdarkly/react-native-client-sdk` 10.18.1:** EventSource **reconnect** now re-invokes **`urlBuilder`** so URLs (e.g. FDv2 `basis`) stay correct after retry ([#1420](#1420)). > - **`@launchdarkly/client-testing-plugin` 0.1.0:** marked **breaking** prerelease for the debug-override testing plugin ([#1422](#1422)). > > Everything else in the diff is cascading patch/minor version and dependency alignment (browser, node-server, stores, otel, OpenFeature, etc.). > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 7189392. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY --> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requirements
Related issues
https://launchdarkly.atlassian.net/jira/software/c/projects/AIC/boards/2045?selectedIssue=AIC-2688
Describe the solution you've provided
Adds the
regionproperty toLDModelConfig.Additional context
Some model providers, namely Bedrock, require including a region field on a given call. A call for a sonnet model might look like: global.anthropic.sonnet-4-7 or us.anthropic.sonnet-4-7 etc.
This field was added on the UI for Bedrock models and is optionally includable. Users would be expected to prepend their region to their model names if they're using a provider that requires it.
Tested in the Node sdk pointed at a local instance:
{ name: 'anthropic.claude-opus-4-7', parameters: {}, region: 'us' }Note
Low Risk
Type-only additive optional field with no runtime behavior changes in this PR.
Overview
Adds an optional
regionfield toLDModelConfigso AI Config model objects can carry provider-specific region metadata (e.g. Bedrock), aligned with the UI and API shape.Consumers that pass through the model from the API response get typed access to
regionwithout SDK mapping changes.Reviewed by Cursor Bugbot for commit 3547c34. Bugbot is set up for automated code reviews on this repo. Configure here.