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!: Implement Migrations. Refactor for client SDKs. #293

Merged
merged 72 commits into from
Oct 16, 2023

Conversation

kinyoklion
Copy link
Member

@kinyoklion kinyoklion commented Oct 3, 2023

This contains the combined work for migrations as well as refactoring for client SDKs.

Individual commits were reviewed in their own PRs.

yusinto and others added 30 commits June 27, 2023 12:54
* Improved emitter design
* Improved jest config
* Added unit tests
Added Configuration class and options validation for js client common.
yusinto and others added 12 commits September 21, 2023 14:06
Co-authored-by: Yusinto Ngadiman <[email protected]>
resolves #285
Large pr but mostly trivial changes to import paths because mocks have
been moved to its own private project `@launchdarkly/private-js-mocks`:

* Refactored mocks to its own project `@launchdarkly/private-js-mocks`.
* Better eslint rule for `no-unused-vars` to avoid disabling this rule
sporadically.
CI failed because `yarn workspaces foreach -pR --topological-dev --from
'@launchdarkly/xxx' run build`. This is because `topological-dev`
instructs yarn to build all deps (prod & dev) prior to running build in
the current workspace. Since `mocks` need types from `common` this
fails.

This pr adds a `build-types` command to common which gets run prior to
mocks `build` command to ensure common types exist for mocks to be built
successfully.
@kinyoklion kinyoklion changed the title Feat/merge client and migrations feat: Implement Migrations. Refactor for client SDKs. Oct 3, 2023
@kinyoklion kinyoklion changed the title feat: Implement Migrations. Refactor for client SDKs. feat!: Implement Migrations. Refactor for client SDKs. Oct 3, 2023
kinyoklion and others added 3 commits October 3, 2023 10:31
First attempt to implement an initial flag fetch followed by emitting
events. I also added comments like this:

```tsx
Dom api usage: xxx
```

There are three right now: fetch, btoa and EventTarget. I left comments
in the code for react native how to deal with these.

---------

Co-authored-by: LaunchDarklyReleaseBot <[email protected]>
Co-authored-by: Ryan Lamb <[email protected]>
@kinyoklion kinyoklion marked this pull request as ready for review October 11, 2023 23:10
@kinyoklion kinyoklion merged commit c66aa6e into main Oct 16, 2023
27 checks passed
@kinyoklion kinyoklion deleted the feat/merge-client-and-migrations branch October 16, 2023 21:32
@github-actions github-actions bot mentioned this pull request Oct 16, 2023
@github-actions github-actions bot mentioned this pull request Dec 27, 2023
yusinto pushed a commit that referenced this pull request Dec 27, 2023
🤖 I have created a release *beep* *boop*
---


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

## 0.1.0 (2023-12-27)


### ⚠ BREAKING CHANGES

* Implement Migrations. Refactor for client SDKs.
([#293](#293))

### Features

* Implement Migrations. Refactor for client SDKs.
([#293](#293))
([c66aa6e](c66aa6e))
</details>

<details><summary>@launchdarkly/react-native-client-sdk: 0.1.1</summary>

### Dependencies


</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.

3 participants