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

refactor(Worklets): Merge TypeScript type files #6556

Merged
merged 4 commits into from
Oct 24, 2024

Conversation

tjzel
Copy link
Collaborator

@tjzel tjzel commented Sep 27, 2024

Summary

Required by:

NativeReanimatedModule depends on types from Layout Animations - this makes impossible to embed its interface in commonTypes.ts since they can't have any imports. I merged some types to prevent circular dependencies.

Test plan

  • CI Green

github-merge-queue bot pushed a commit that referenced this pull request Sep 30, 2024
## Summary

If docs need to extract internal types like this we better just export
them publicly.

Fixes CI on:

- #6556
- #6557

## Test plan

🚀
@tjzel tjzel marked this pull request as ready for review September 30, 2024 08:57
@tjzel tjzel changed the title refactor: Merge TypeScript type files refactor(Worklets): Merge TypeScript type files Oct 3, 2024
@tjzel tjzel added this pull request to the merge queue Oct 24, 2024
Merged via the queue into main with commit 94593ad Oct 24, 2024
9 checks passed
@tjzel tjzel deleted the @tjzel/worklets/javascript-modules-refactor branch October 24, 2024 09:01
github-merge-queue bot pushed a commit that referenced this pull request Oct 29, 2024
## Summary

Requires:
- #6556

QoL refactor that will allow easier NativeWorkletsModule embedment.

Summary:

`NativeReanimated.ts` -> `ReanimatedModule/NativeReanimated.ts`
`js-reanimated/` -> `ReanimatedModule/js-reanimated`

`NativeReanimatedModule` and `JSReanimatedModule` aren't exported
anymore. The only way to obtain them is via `createReanimatedModule`,
that should yield less error prone code. `NativeWorkletsModule` will
follow the same pattern.

## Test plan

- [x] CI green :shrek:
github-merge-queue bot pushed a commit that referenced this pull request Nov 19, 2024
This pull request is one of many which replace

- #6378

since that PR is extensive and too difficult to review.

## Summary

Adding a second Native Module for Worklets.

It's initial responsibility for now is forwarding `valueUnpackerCode` to
Reanimated Module. While it seems silly, it's a good start since it sets
up the whole pipeline of:

```tree
typescript
├── android
│   └── cpp
└── ios
    └── cpp
```
(I was too lazy to use mermaid, long live `mkdir -p`)

Follow up PRs will move more and more responsibilities from Reanimated
to Worklets.

Requires:

- #6556
- #6557 

## Test plan

- [x] All GitHub Actions pass
- [x] Compatibility Github Action passes
- [x] debug Android works
- [x] release Android works
- [x] debug iOS works
- [x] release iOS works
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