Skip to content

v4.0.0: Merge pull request #304 from tshaddix/async-response

Latest
Compare
Choose a tag to compare
@SidneyNemzer SidneyNemzer released this 29 Oct 18:14
dbfb07f

This release fixes an issue in 3.0.0 that would cause Chrome to log a warning about a message channel being closed before a response was received. See #303.

This is a breaking change if you're using the channelName argument; the option is now passed to createWrapStore() insead of wrapStore():

  import { createWrapStore } from "webext-redux";

  const wrapStore = createWrapStore(
+   { channelName: 'mychannel' }
  );
  wrapStore(
    store, 
-   { channelName: 'mychannel' }
  );

The other options to wrapStore haven't changed. If you're not using channelName, no changes are required!

As part of this release, CI was also updated to use Node 18, 20, and 22 instead of 12, 14, and 16.