Migrate and upgrade local/extension mv3 storage
Repository details (talkie)
- Project page
- talkie
- Project log category
- talkie (708 entries)
- Repository
- @joelpurra/talkie
- Owner
- @joelpurra
- Issues
- Issues on Github
- Contributors
- Contributors on Github
- Project status
- ⏲️ This project has had recent commits.
- 📂 This project is open.
- 🌠 This project is popular.
- Repository activity period
- 🗓—
- Commits
- 751 commits
- Stars
- 71 stars
Commit details (bf4ddfb2)
- Author
- Joel Purra
- Authored at
- Committer
- Joel Purra
- Committed at
Commit message
Migrate and upgrade local/extension mv3 storage
- Migrates to MV3 by loading data from
window.localStorage
and writing tochrome.storage.local
.
- Migration is only performed during webext upgrade/install events.
- Migrates all stored data without any further checks.
- After migration, settings are upgraded as usual.
- Multi-version upgrades were broken and had to be fixed.
- Chrome requires loading over the message bus.
- Loading in chrome is only possible from the offscreen document.
- Writing in chrome is not possible from the offscreen document.
- Uses a proxy message bus implementation of
IStorageProvider
.- Expands
IStorageProvider
to cover migration, plus some extras.
Raw text
Migrate and upgrade local/extension mv3 storage - Migrates to MV3 by loading data from `window.localStorage` and writing to `chrome.storage.local`. - Migration is only performed during webext upgrade/install events. - Migrates all stored data without any further checks. - After migration, settings are upgraded as usual. - Multi-version upgrades were broken and had to be fixed. - Chrome requires loading over the message bus. - Loading in chrome is only possible from the offscreen document. - Writing in chrome is not possible from the offscreen document. - Uses a proxy message bus implementation of `IStorageProvider`. - Expands `IStorageProvider` to cover migration, plus some extras.