- npm audit fix
- removes node engine version
- change from npm to yarn
- redesign to include more functionality
- multiple channels
- cleaner code
- separates provider, ws url from other logic
- adds 'channel' meta property by default
- adds 'matchChannel' option for permitting actions
- matches on channel by default
- Breaking Changes
- new import
{ createCableCarRoute }
- new import
- small bugfix
- updates webpack, node packages, npm audit fix
- rewrite using TypeScript and Redux toolkit best practices
- Breaking Changes
- new import
{ createCableCar }
prefix
option deprecatedpermittedActions
option added- new action type format:
- redux-cablecar/INITIALIZED
- redux-cablecar/CONNECTED
- redux-cablecar/DISCONNECTED
- redux-cablecar/REJECTED
- new import
- can be string, RegExp, (string|RegExp)[], or function
prefix
config option accepts list of strings for use w/ different action name conventions
- race condition bug fix
- npm audit
- upgrades packages (Rails 6, security warnings)
- removes yarn
- renames
matchPrefix
option toprefix
- default prefix option is now
RAILS
- adds
optimisticOnFail
option
ALSO:
- creates
CableCarDispatcher
class to manage multiple simultaneous cablecar connections - adds the
actioncable
package as a dependency - removes dependency of ActionCable as a global variable
- adds ability to set the ActionCable provider on the middleware