Releases: directus/rstore
Releases · directus/rstore
v0.8.4
v0.8.3
🚀 Enhancements
- FindDefaults + resolveFindOptions (2eab3fc)
- Unwrap items before processing in find/create/update (f4999b7)
- Relations accept array of mappings (f27c039)
- Cache pause/resume (fcbd41e)
- offline: Pause cache while syncing to prevent flickering (f37b8a7)
🔥 Performance
- Relation read now use indexes (64059ef)
🩹 Fixes
- Check if collection wasn't removed in query tracking (1f2aafc)
- Wrong query type on initial SSRed query meta lookup (6ec5953)
- form: Reset is applied synchronously preventing unwanted form data updates (66ec510)
- Handle falsy keys (bff4d0d)
- Remove Cannot read computed page data without pageSize option error (32d47cc)
- Update indexes on add/remove layer (6764e84)
- FindFirst/findMany with cache-and-fetch not returning immediately + new fetchPromise returned (ec7c7d1)
- query: Pagination + cache-and-fetch + gc was incorrectly gcing items from previous pages (f061ee7)
- Opposite relations not computed on self (edd226b)
- Update meta with fetch-and-cache (5cc76f1)
- Update meta on background fetch only if fetch is valid (d0dfd7c)
- Don't reset main page data on refresh (0c1db3a)
- updateForm: DefaultValues not overriding the current item values (159dfb9)
- drizzle: Sqlite like should be case insensitive (e78d5b7)
💅 Refactors
- query: UpdateQueryMeta (1f17c87)
📖 Documentation
- relation: Alternate mappings (f183409)
❤️ Contributors
- Guillaume Chau (@Akryum)
v0.8.2
🚀 Enhancements
- Dynamic collection name (a08d447)
- vue: Compare query options before reloading (b10a34d)
- Pagination (3806b0c)
🩹 Fixes
- gc: Take into account include from the query (f44d309)
- Check if key is nullish instead of falsy (1d92c72)
- Duplicate call to wrapItem in findFirst (71b4d48)
- Only generate one collections file and write it to disk (06071d1)
- Exclude
.tsfrom the generated collections file (a904ded) - FindFirst/findMany update options fetchPolicy (e91e0d9)
- vue:
query(q => q.many(): Typing of TOptions with no parameter passed to many (a99a512)
🏡 Chore
- Nuxt vite:extendConfig hook is deprecated (8593237)
✅ Tests
- lint: Update antfu eslint to split type imports (4773d8d)
❤️ Contributors
- Guillaume Chau (@Akryum)
v0.8.1
v0.8.0
🚀 Enhancements
- Revamped cache and layers for faster performance (2b59e9b)
- nuxt: Newer nuxt dependency and related improvements (baa8497)
- query: Use onServerPrefetch to allow SSR without awaiting the query in script setup (1f3394f)
- drizzle: Realtime updates with websockets (1070ed5)
- Offline (9556f2b)
🔥 Performance
- Simpler relation lookup (1e0319f)
🩹 Fixes
- Call plugin setup simultaneously so they have the Nuxt context, preventing errors (d0ec259)
- directus: Import form
#importsinstead ofnuxt/app(6c854e4) - drizzle: Use
/api/rstore-realtime/wsas default websocket path (420ee34)
📖 Documentation
🏡 Chore
- Update pnpm (5c05331)
❤️ Contributors
- Guillaume Chau (@Akryum)
v0.7.8
v0.7.7
🚀 Enhancements
🔥 Performance
- Shallow items in the cache (3c0b535)
🩹 Fixes
- Improve item wrapping for fetchPolicy 'no-cache' (d0fbe6e)
- Deduplicate wrapped items ownKeys (4673a1f)
- Handle JSON stringifying wrapped items (d0158f3)
- gc: Don't run a garbage collection on query unmount (f180d31)
❤️ Contributors
- Guillaume Chau (@Akryum)
v0.7.6
v0.7.5
🚀 Enhancements
- New garbage collector (2378647)
- Expose useQueryTracking (42865ff)
- Allow passing meta to find options (ed8e3d0)
- AddToQueryTracking (cdfc3f8)
🩹 Fixes
- devtools: Cache count per collection not working if no layer is selected (2a157a3)
- More stable tracking query id (b1d8ae1)
- Enumerate relations and computed so watch deep works (b737d9a)
- Export setActiveStore (3484a28)
📖 Documentation
🌊 Types
- New RstoreGlobal augmentable interface to apply custom store types to plugin hooks etc. (0bc5706)
❤️ Contributors
- Guillaume Chau (@Akryum)
- Rijk Van Zanten (@rijkvanzanten)