Skip to content

feat: monorepo v2 refactor with unified build config#8

Merged
felipefdl merged 16 commits intofeat/monorepo-react-sdkfrom
feat/monorepo-v2-refactor
Apr 11, 2026
Merged

feat: monorepo v2 refactor with unified build config#8
felipefdl merged 16 commits intofeat/monorepo-react-sdkfrom
feat/monorepo-v2-refactor

Conversation

@gustavo-aguiar
Copy link
Copy Markdown
Contributor

@gustavo-aguiar gustavo-aguiar commented Mar 26, 2026

Summary

  • Consolidate build configuration with a shared root vite.config.ts, removing per-package vitest configs
  • Update and align dependencies across core, js, and react packages
  • Migrate to pnpm workspaces with updated pnpm-workspace.yaml and turbo.json
  • Refactor JS package for v2.0 with updated examples, styles, and build output
  • Auto-fill device/origin in React hooks (useSendData, useEditData) matching JS SDK behavior
  • Fix deleteData to send "id:device" string payload expected by the TagoIO dashboard
  • Add runAnalysis(scope?) to core, JS SDK, and React SDK (useRunAnalysis hook)
  • Fix mergeStrategy to remove deleted records and sort by time descending
  • Add customPreferences and preferences to TUserInformation and useUserInformation
  • Support MessageBridge recreation for React StrictMode remount

Test plan

  • All 146 tests passing across 22 test files
  • Run pnpm install and verify workspace resolution
  • Run pnpm build and verify build output for core, js, and react packages
  • Test useSendData / useEditData auto-fill in TagoIO dashboard iframe
  • Test useDeleteData removes record from realtime after delete
  • Test useRunAnalysis triggers analysis execution
  • Test useUserInformation exposes customPreferences and preferences
  • Verify JS examples load correctly in browser

Consolidate build configuration with shared vite.config.ts, update
dependencies across all packages, migrate to pnpm workspaces, and
refactor JS package for 2.0.
…ealtime sorting

- Move auto-fill logic to React hooks (useSendData, useEditData) instead of core
- Fix deleteData to send string payload "id:device" matching dashboard expectations
- Add runAnalysis to core, JS SDK, and React hook (useRunAnalysis)
- Fix mergeStrategy to remove deleted records and sort by time desc
- Add customPreferences and preferences to TUserInformation
- Support bridge recreation for React StrictMode remount
- Add tests for runAnalysis, delete records, and user preferences
@felipefdl felipefdl merged commit 91d3eaa into feat/monorepo-react-sdk Apr 11, 2026
1 check failed
@felipefdl felipefdl deleted the feat/monorepo-v2-refactor branch April 11, 2026 22:08
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