fix(react-native): package.json should declare esm format#1322
Merged
Conversation
Contributor
|
@launchdarkly/js-sdk-common size report |
Contributor
|
@launchdarkly/js-client-sdk size report |
Contributor
|
@launchdarkly/browser size report |
Contributor
|
@launchdarkly/js-client-sdk-common size report |
kinyoklion
approved these changes
Apr 27, 2026
Merged
joker23
pushed a commit
that referenced
this pull request
Apr 27, 2026
🤖 I have created a release *beep* *boop* --- <details><summary>jest: 1.0.13</summary> ## [1.0.13](jest-v1.0.12...jest-v1.0.13) (2026-04-27) ### Dependencies * The following workspace dependencies were updated * dependencies * @launchdarkly/react-native-client-sdk bumped from ~10.17.1 to ~10.17.2 </details> <details><summary>react-native-client-sdk: 10.17.2</summary> ## [10.17.2](react-native-client-sdk-v10.17.1...react-native-client-sdk-v10.17.2) (2026-04-27) ### Bug Fixes * **react-native:** `package.json` should declare esm format ([#1322](#1322)) ([149ae73](149ae73)) </details> <details><summary>server-sdk-ai: 0.18.0</summary> ## [0.18.0](server-sdk-ai-v0.17.1...server-sdk-ai-v0.18.0) (2026-04-27) ### Features * Add root-level tools map with customParameters to AI Config types ([#1295](#1295)) ([487182b](487182b)) </details> <details><summary>server-sdk-ai-langchain: 0.6.0</summary> ## [0.6.0](server-sdk-ai-langchain-v0.5.6...server-sdk-ai-langchain-v0.6.0) (2026-04-27) ### Features * Bump to LangChain 1.0 and drop community package requirement ([#1311](#1311)) ([f5a1c29](f5a1c29)) ### Dependencies * The following workspace dependencies were updated * devDependencies * @launchdarkly/server-sdk-ai bumped from ^0.17.1 to ^0.18.0 * peerDependencies * @launchdarkly/server-sdk-ai bumped from ^0.17.0 to ^0.18.0 </details> <details><summary>server-sdk-ai-openai: 0.5.7</summary> ## [0.5.7](server-sdk-ai-openai-v0.5.6...server-sdk-ai-openai-v0.5.7) (2026-04-27) ### Dependencies * The following workspace dependencies were updated * devDependencies * @launchdarkly/server-sdk-ai bumped from ^0.17.1 to ^0.18.0 * peerDependencies * @launchdarkly/server-sdk-ai bumped from ^0.17.0 to ^0.18.0 </details> <details><summary>server-sdk-ai-vercel: 0.5.7</summary> ## [0.5.7](server-sdk-ai-vercel-v0.5.6...server-sdk-ai-vercel-v0.5.7) (2026-04-27) ### Dependencies * The following workspace dependencies were updated * devDependencies * @launchdarkly/server-sdk-ai bumped from ^0.17.1 to ^0.18.0 * peerDependencies * @launchdarkly/server-sdk-ai bumped from ^0.17.0 to ^0.18.0 </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] > **Medium Risk** > Primarily a release/version-bump PR, but it updates AI provider peer/dependency ranges (notably moving `server-sdk-ai-langchain` to LangChain v1) which may introduce runtime or type-compatibility issues for consumers. > > **Overview** > Updates release metadata and publishes new versions of several packages (`server-sdk-ai` `0.18.0`, `server-sdk-ai-langchain` `0.6.0`, `server-sdk-ai-openai`/`server-sdk-ai-vercel` `0.5.7`, `react-native-client-sdk` `10.17.2`, and `@launchdarkly/jest` `1.0.13`). > > This release bumps the AI LangChain provider to *LangChain 1.x* and aligns AI provider packages’ `@launchdarkly/server-sdk-ai` peer/dev dependency requirements to `^0.18.0`; examples are updated to consume the new versions. It also includes a React Native SDK packaging fix (declaring ESM) and propagates that version bump into the React Native examples and Jest tooling dependency. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 530460b. 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.
This PR should address #1321
The change should be safe as, per the issue, downstream consumers should not be able to use
reqiredue to everything being inesmsyntax.Note
Medium Risk
Moderate risk because changing
package.jsontypeand Babel config module syntax can affect how tooling and downstream bundlers/loaders resolve and execute the package.Overview
Makes the React Native SDK explicitly ESM by switching
package.jsontypefromcommonjstomodule.Updates
babel.config.jsto use ESM syntax (export default) to align with the package’s module format.Reviewed by Cursor Bugbot for commit f2b2634. Bugbot is set up for automated code reviews on this repo. Configure here.