This is a maintenance release that fixes an issue with indexes named after inherited Object properties and improves authentication recovery in dexie-cloud-addon.
Related Package Releases
| Package | Version |
|---|---|
| dexie | 4.4.5 |
| dexie-cloud-addon | 4.4.14 |
| dexie-react-hooks | 4.4.0 (no change) |
| y-dexie | 4.4.0 (no change) |
| dexie-export-import | 4.4.0 (no change) |
Bug Fixes
dexie@4.4.5
- fix: don't crash when an index is named
constructor— Tables with a primary key or index namedconstructorcould causedb.open()to fail withTypeError: indexList.push is not a function. The internal index lookup now uses an object without a prototype, avoiding collisions with inheritedObject.prototypeproperties such asconstructor,toString, andvalueOf. (#2325, fixes #1920). Contributed by @tarann26.
dexie-cloud-addon@4.4.14
- fix: recover from failed refresh-token renewal — When a locally unexpired refresh token is rejected by the server,
login()now falls back to the regularfetchTokensauthentication path instead of propagating the refresh error. This allows custom authentication integrations to silently obtain new tokens when possible, or trigger their normal login flow when required. OAuth redirect errors continue to propagate normally. (#2326). Fixed by @liz709 and @dfahlander.