Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

berkeleys-redux-utils

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

berkeleys-redux-utils - npm Package Compare versions

Comparing version 3.1.2 to 3.2.0

lib/create-action.js

11

CHANGELOG.md

@@ -0,1 +1,12 @@

<a name="3.2.0"></a>
# [3.2.0](https://github.com/BerkeleyTrue/berkeleys-redux-utils/compare/v3.1.2...v3.2.0) (2017-10-14)
### Features
* **createAction:** Adds createAction ([7d153dd](https://github.com/BerkeleyTrue/berkeleys-redux-utils/commit/7d153dd))
* **handleActions:** Should work with async type object ([6daca60](https://github.com/BerkeleyTrue/berkeleys-redux-utils/commit/6daca60))
<a name="3.1.2"></a>

@@ -2,0 +13,0 @@ ## [3.1.2](https://github.com/BerkeleyTrue/berkeleys-redux-utils/compare/v3.1.1...v3.1.2) (2017-09-09)

2

lib/handle-action.js

@@ -55,3 +55,3 @@ 'use strict';

!(typeof type === 'string') ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'type should be a string') : (0, _invariant2.default)(false) : void 0;
!type ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'type should be a string or an async type object') : (0, _invariant2.default)(false) : void 0;
var types = (0, _toString3.default)(type).split(_config2.default.separator);

@@ -58,0 +58,0 @@ !((0, _isFunction3.default)(reducer) || (0, _isPlainObject3.default)(reducer)) ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'reducer should be a function or an object with next and throw reducers') : (0, _invariant2.default)(false) : void 0;

@@ -43,2 +43,11 @@ 'use strict';

var _createAction = require('./create-action.js');
Object.defineProperty(exports, 'createAction', {
enumerable: true,
get: function get() {
return _interopRequireDefault(_createAction).default;
}
});
var _createAsyncTypes = require('./create-async-types.js');

@@ -45,0 +54,0 @@

{
"name": "berkeleys-redux-utils",
"version": "3.1.2",
"version": "3.2.0",
"main": "lib/index.js",

@@ -41,3 +41,3 @@ "scripts": {

"babel-cli": "^6.14.0",
"babel-eslint": "^7.2.3",
"babel-eslint": "^8.0.0",
"babel-plugin-dev-expression": "^0.2.1",

@@ -49,3 +49,3 @@ "babel-plugin-lodash": "^3.2.11",

"commitizen": "^2.9.6",
"coveralls": "^2.13.1",
"coveralls": "^3.0.0",
"cz-freecodecamp": "^1.0.0",

@@ -61,3 +61,3 @@ "eslint": "^4.5.0",

"prettier": "^1.5.2",
"sinon": "^3.2.1",
"sinon": "^4.0.0",
"validate-commit-msg": "^2.14.0"

@@ -64,0 +64,0 @@ },

@@ -64,3 +64,3 @@ # Berkeleys-Redux-Utils

## config
### config

@@ -81,3 +81,3 @@ An object with defaults for the delimiter as well as the async type value

## createTypes
### createTypes

@@ -104,3 +104,3 @@ A function that takes three inputs and returns an object where the keys

## createAsyncTypes
### createAsyncTypes

@@ -137,1 +137,5 @@ A function that takes a type and returns an object with postfix stages.

```
## Prior Work
This project is a derivative of [redux-actions](https://github.com/reduxactions/redux-actions) with some additional API and some slight modifications to make those functions work exclusive of Symbol types. As such this library will not work with Symbol type actions.

@@ -6,3 +6,3 @@ import _ from 'lodash';

export default function handleAction(type, reducer = _.identity, defaultState) {
invariant(typeof type === 'string', 'type should be a string');
invariant(type, 'type should be a string or an async type object');
const types = _.toString(type).split(config.separator);

@@ -9,0 +9,0 @@ invariant(

@@ -5,2 +5,3 @@ export { default as combineActions } from './combine-actions.js';

export { default as config } from './config.js';
export { default as createAction } from './create-action.js';
export { default as createAsyncTypes } from './create-async-types.js';

@@ -7,0 +8,0 @@ export { default as createTypes } from './create-types.js';

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc