Dexie 4.0 Road Map #1455
Replies: 10 comments 8 replies
-
Master branch is now reflecting Dexie 4.0 (since december 14). The 3.x releases are continued to be maintained on master-3. |
Beta Was this translation helpful? Give feedback.
-
I am very stoked to see dexie 4 developing. The decision to allow class mappings that include methods and easily get an injected db ref sounds wicked. Are there any plans to improve the data that is included on transactions and in middleware mutate calls? I am disappointed that often put operations don't included the keys, for example. |
Beta Was this translation helpful? Give feedback.
-
I am referring to this section of the road map: How far along is the coding on this? (me>=eager : -) |
Beta Was this translation helpful? Give feedback.
-
I noticed that an alpha build is out for 4.0, does this already include Rich Query support? I'm having trouble converting some of my code from AlaSQL to when sorting by multiple things how will you handle reverse order for a single property ?
? |
Beta Was this translation helpful? Give feedback.
-
Can we discuss this? I would love be able to use ts-mixin with Entity... @dfahlander, any chance this could work one day? |
Beta Was this translation helpful? Give feedback.
-
I just migrated a WatermelonDB/RX app to dexie. It was generally a great experience. The only downside was: I had to build complex helpers to optimally filter data using indexes when the filters are built dynamically depending on where inside the app a component is used. For some queries it is currently not possible to use indexes. Which makes parts of the app noticeably slower than they were with WatermelonDB. Rich queries will make this MUCH easier and faster. I will soon migrate another app. Am wondering whether to migrate in two steps (1. with helpers, 2. using rich queries) or to wait and migrate directly to using rich queries. Is there a goal for when to publish version 4.0? Will it likely be weeks, months or years? Thanks for this great tool! |
Beta Was this translation helpful? Give feedback.
-
Passerby reading the docs 🙈 I'm not opposed to the new TypeScript syntax: class AppDB extends Dexie {
friends = this.Table<{ id: number, name: string, age: number }>('++id, name, age')
}
// alternatively inferred from class?
class AppDB extends Dexie {
friends = this.Table(Friend, '++id, name, age')
}
const db = new AppDB('dbName') But I suspect the same thing could be achieved with the fluent syntax: // see https://github.com/sindresorhus/type-fest/blob/main/source/split.d.ts
export const db = new Dexie('dbName').stores<{
friends: [number, string, number]
}>({
friends: '++id, name, age'
})
// alternatively inferring id from ++
export const db = new Dexie('dbName').stores<{
friends: { name: string, age: number }
}>({
friends: '++id, name, age'
}) |
Beta Was this translation helpful? Give feedback.
-
I guess we still can't use orderBy and where at the same time. |
Beta Was this translation helpful? Give feedback.
-
With the new TypeScript API, how do we specify the db version and upgrades? |
Beta Was this translation helpful? Give feedback.
-
Love the project! I was wondering if Dexie is compatible with Vue/Nuxt 3 SSR? |
Beta Was this translation helpful? Give feedback.
-
Starting a thread here to discuss or give feedback on the Dexie 4.0 road map.
Beta Was this translation helpful? Give feedback.
All reactions