tinyplex / tinybase

The reactive data store for local‑first apps.
https://tinybase.org
MIT License
3.57k stars 69 forks source link

Expo not marked as optional peer #159

Closed abhishiv closed 1 month ago

abhishiv commented 1 month ago

Describe the bug

Hello, @tinyplex

Thank you very much for a great package.

Just FYI tinybase seems to pull in around 700 dependencies including stuff like expo

➜  pkg git:(refactor) ✗ npm uninstall tinybase -w xxx              

removed 714 packages, and audited 523 packages in 2s

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

No response

Expected behavior

No response

Screenshots or Videos

No response

Platform

Additional context

No response

jamesgpearce commented 1 month ago

Everything* is an optional peer, or developer, dependency.

(* BUT I did notice that for some reason expo (a peer dependency) is not marked optional... so let me fix that!)

jamesgpearce commented 1 month ago

Yep, that fixed it! Please update to v5.0.4, delete your package-lock.json, and node_modules directory. Install again and you should have no dependencies brought in by TinyBase!

jamesgpearce commented 1 month ago

A bit embarrassing TBH. Thanks for finding! 🥰