Skip to content

fix(react-native): package.json should declare esm format#1322

Merged
joker23 merged 1 commit intomainfrom
react-native-modules
Apr 27, 2026
Merged

fix(react-native): package.json should declare esm format#1322
joker23 merged 1 commit intomainfrom
react-native-modules

Conversation

@joker23
Copy link
Copy Markdown
Contributor

@joker23 joker23 commented Apr 27, 2026

This PR should address #1321

The change should be safe as, per the issue, downstream consumers should not be able to use reqire due to everything being in esm syntax.


Note

Medium Risk
Moderate risk because changing package.json type and 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.json type from commonjs to module.

Updates babel.config.js to 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.

@joker23 joker23 requested a review from a team as a code owner April 27, 2026 15:35
@github-actions
Copy link
Copy Markdown
Contributor

@launchdarkly/js-sdk-common size report
This is the brotli compressed size of the ESM build.
Compressed size: 25623 bytes
Compressed size limit: 29000
Uncompressed size: 125843 bytes

@github-actions
Copy link
Copy Markdown
Contributor

@launchdarkly/js-client-sdk size report
This is the brotli compressed size of the ESM build.
Compressed size: 31840 bytes
Compressed size limit: 34000
Uncompressed size: 113634 bytes

@github-actions
Copy link
Copy Markdown
Contributor

@launchdarkly/browser size report
This is the brotli compressed size of the ESM build.
Compressed size: 179547 bytes
Compressed size limit: 200000
Uncompressed size: 830815 bytes

@github-actions
Copy link
Copy Markdown
Contributor

@launchdarkly/js-client-sdk-common size report
This is the brotli compressed size of the ESM build.
Compressed size: 38473 bytes
Compressed size limit: 39000
Uncompressed size: 211104 bytes

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 3 additional findings.

Open in Devin Review

@joker23 joker23 merged commit 149ae73 into main Apr 27, 2026
48 checks passed
@joker23 joker23 deleted the react-native-modules branch April 27, 2026 17:47
@github-actions github-actions Bot mentioned this pull request Apr 27, 2026
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>
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