0
Fork 0
mirror of https://github.com/mem0ai/mem0.git synced 2026-11-17 19:02:25 +00:00

Compare commits

..

2 commits

Author SHA1 Message Date
kartik-mem0
5a1225f8e9 fix(ts-sdk): make natural an optional peer so pg is not installed transitively
natural@8 hard-depends on pg ^8.18.0, mongoose, redis and memjs. As a
required peer it was auto-installed for every mem0ai user, so pg stayed in
the tree even after pg itself became optional. lemmatizeForBm25 already
falls back to a built-in stemmer when natural is missing.
2026-09-25 15:30:23 +05:30
kartik-mem0
1b51ad5f89 fix(ts-sdk): make pg an optional, ranged peer dependency
mem0ai declared pg as a required peer pinned to exactly 8.11.3, so npm
auto-installed it for every user (including hosted MemoryClient users)
and failed with ERESOLVE in any project already on a newer pg.

The pin existed because pgvector.ts imported pg at module load, so
mem0ai/oss crashed without it. PGVector now loads pg through loadPeer on
initialize(), like the other optional vector stores, which lets pg and
@types/pg become optional ^8.11.x peers. @types/jest moves from peer to
dev dependencies.

Closes #3307
2026-09-25 15:14:42 +05:30
165 changed files with 2199 additions and 5711 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 725 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 441 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 75 KiB

Some files were not shown because too many files have changed in this diff Show more