A set of utilities for building Redux applications in Web Extensions.
MIT License
Webext-redux now supports manifest v3! Here's a quick guide on how to update for webext-redux 3.0.0. Full changelog below.
createWrapStore()
to init wrapStore
import {
- wrapStore,
+ createWrapStore
} from "webext-redux";
+ const wrapStore = createWrapStore();
wrapStore(store);
Remember to call createWrapStore()
at the top-level.
Correct 👍
const wrapStore = createWrapStore()
chrome.storage.local.get('state').then(({ state }) => {
const store = ...
wrapStore(store);
});
Incorrect 👎
chrome.storage.local.get('state').then(({ state }) => {
const store = ...
// Incorrect: createWrapStore must be called synchronously
const wrapStore = createWrapStore()
wrapStore(store);
});
portName
with channelName
Store({
- portName: 'custom-name'
+ channelName: 'custom-name'
})
wrapStore(store, {
- portName: 'custom-name'
+ channelName: 'custom-name'
})
portName
renamed to channelName
.wrapStore
calls. #297.wrapStore
is now created by createWrapStore
.createWrapStore
must be called synchronously at the top level of your extension, just like browser event handlers. More details in #297.All Changes: https://github.com/tshaddix/webext-redux/compare/v2.1.9...v3.0.0
Published by tshaddix almost 3 years ago
Full Changelog: https://github.com/tshaddix/webext-redux/compare/v2.1.7...v2.1.9
Published by tshaddix over 4 years ago
This release includes two bug fixes:
global
object has been overridden somewhere else on a page.portName
when listening for "store ready" messages.Thanks to @sokki for your contributions on #253!
Published by tshaddix almost 5 years ago
Includes fixes for typescript typings for Redux v4. Thanks @ymdevs !
Published by tshaddix almost 5 years ago
Thanks @craigsketchley for cleaning up dependencies and moving Redux v4 to a peer dependency.
Published by tshaddix about 5 years ago
Thanks to @sneakypete81, all builds after 2.1.3 will include a UMD build in the /dist
directory.
Published by tshaddix about 5 years ago
Updated dependencies to address emerging security vulnerabilities in dependencies.
Published by tshaddix over 5 years ago
Fixed embarrassing breaking bug introduced in the last release which added a message callback in the wrong place. Thanks, @jbarzegar for reporting!
Published by tshaddix over 5 years ago
Includes fix that will catch and ignore errors generated by the "ready" message from the background store. See #209 for detail.
Published by tshaddix over 5 years ago
Adds better diffing functionality for arrays via @srvance's contribution in #202
Published by tshaddix over 5 years ago
Fixes issue in Firefox via #196
Published by tshaddix over 5 years ago
This includes a simple enhancement that makes the options
parameter of wrapStore
and Store
optional via defaults.
Published by tshaddix over 5 years ago
This is the 2.0.0
release of react-chrome-redux
, now moving forward as webext-redux
.
Published by tshaddix over 5 years ago
Includes changes by @collectedmind , @jvergeldedios, @Mindaugas-Jacionis from PRs #181, #180, #175, #172, #171
Published by tshaddix about 6 years ago
Updated some dependencies to address vulnerabilities. Updates visible in #165
Published by tshaddix about 6 years ago
This pre-release includes fixes for middleware application and updated typings. You can view changes in #162 #159
Published by tshaddix about 6 years ago
This pre-release includes new strategies for state diff-ing. You can view the changes here.
Published by tshaddix over 6 years ago
This release contains all the changes in previous pre-release v1.6.0-alpha.1
, as well as some additional bug fixes via #148
Published by tshaddix over 6 years ago
This is a pre-release. Changes include addition of serialization hooks from #126, proxy store middleware support from #124, and fixes for latest versions of chrome.
Published by tshaddix almost 7 years ago
Patch fixes mis-defined typescript definition for aliases.