Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add a module for increased backward compatibility. #637

Merged
merged 8 commits into from
Oct 29, 2024

Conversation

kinyoklion
Copy link
Member

No description provided.

"import": "./dist/index.es.js"
".": {
"types": "./dist/src/index.d.ts",
"require": "./dist/index.cjs.js",
Copy link
Member Author

Choose a reason for hiding this comment

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

I may need to make this fancier when we verify CJS/ESM package inclusion. Given the problems we had in other packages.

@kinyoklion kinyoklion marked this pull request as ready for review October 25, 2024 21:15
@kinyoklion kinyoklion requested a review from a team as a code owner October 25, 2024 21:15
Base automatically changed from rlamb/simplify-testing to main October 28, 2024 14:37
@kinyoklion kinyoklion merged commit 44a2237 into main Oct 29, 2024
21 checks passed
@kinyoklion kinyoklion deleted the rlamb/sdk-766/backward-compatibility-shim branch October 29, 2024 15:42
@github-actions github-actions bot mentioned this pull request Oct 29, 2024
kinyoklion added a commit that referenced this pull request Oct 29, 2024
The goals here are to:
- Make the build simpler.
- Make the build "modern".

Currently we have worked around some build issues in other packages.
Mainly with node module resolution. Despite the settings in the
package.json node wants certain file extensions for certain types
including .cts for the CJS type definitions.

So far tsup seems to be the simplest way to get all things with expected
names without a multi-step process. Or without having to make a hack
package.json that just has the modules type.

Please review #637 first.
kinyoklion pushed a commit that referenced this pull request Oct 29, 2024
🤖 I have created a release *beep* *boop*
---


<details><summary>js-client-sdk: 0.2.0</summary>

##
[0.2.0](js-client-sdk-v0.1.0...js-client-sdk-v0.2.0)
(2024-10-29)


### Features

* Add a module for increased backward compatibility.
([#637](#637))
([44a2237](44a2237))
* Refine CJS/ESM build configuration for browser SDK.
([#640](#640))
([ec4377c](ec4377c))
* Vendor escapeStringRegexp to simplify builds.
([48cac54](48cac54))


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @launchdarkly/js-client-sdk-common bumped from 1.10.0 to 1.11.0
</details>

<details><summary>js-client-sdk-common: 1.11.0</summary>

##
[1.11.0](js-client-sdk-common-v1.10.0...js-client-sdk-common-v1.11.0)
(2024-10-29)


### Features

* Add a module for increased backward compatibility.
([#637](#637))
([44a2237](44a2237))
</details>

<details><summary>react-native-client-sdk: 10.9.1</summary>

##
[10.9.1](react-native-client-sdk-v10.9.0...react-native-client-sdk-v10.9.1)
(2024-10-29)


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @launchdarkly/js-client-sdk-common bumped from 1.10.0 to 1.11.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).

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