Skip to content

Commit

Permalink
Merge 80ef0f7 into 55d7272
Browse files Browse the repository at this point in the history
  • Loading branch information
jkeam committed Jul 30, 2020
2 parents 55d7272 + 80ef0f7 commit 1efe0d5
Show file tree
Hide file tree
Showing 4 changed files with 4,162 additions and 5,652 deletions.
24 changes: 20 additions & 4 deletions README.md
Expand Up @@ -235,19 +235,35 @@ export default combineReducers({
```

# Changes
Note: `Latest` means the latest release. This is also the latest version in [npmjs.com](https://www.npmjs.com/package/reduxsauce).

### Jul 29, 2020 - Latest

* `FIX` Update minor dependencies @jkeam
* `FIX` Handle numbers in action/type names @ahwatts
* `FIX` Allow creating an action without any overrides @jkeam

### Jun 01, 2020 - 1.1.3

* `FIX` Typescript definitions to fix createReducers @jkeam

### Jan 18, 2020 - 1.1.2

* `FIX` Typescript allow objects while creating actions @jkeam

### Oct 23, 2019 - 1.1.1

* `FIX` Upgrade dependencies
* `FIX` Add more tests
* `DOCS` Add badges
* `FIX` Upgrade dependencies @jkeam
* `FIX` Add more tests @jkeam
* `DOCS` Add badges @jkeam

### Apr 15, 2019 - 1.1.0
* `NEW` Generalize typedef @jkeam

### May 10, 2018 - 1.0.0 - 💃

* `NEW` drops redux dependency sinc we weren't using it @pewniak747


### September 26, 2017 - 0.7.0

* `NEW` Adds ability to have a default or fallback reducer for nesting reducers or catch-alls. @vaukalak
Expand Down
4 changes: 2 additions & 2 deletions lib/createActions.js
Expand Up @@ -7,7 +7,7 @@ const defaultOptions = {

// matches each word in a camelCaseString (except the first)
// consecutive capitals are treated as one word
const RX_CAPS = /(?!^)([A-Z][a-z]+|[A-Z]+(?=[A-Z]|\b))/g
const RX_CAPS = /(?!^)([A-Z][a-z0-9]+|[A-Z][A-Z0-9]*(?=[A-Z]|\b))/g

// converts a camelCaseWord into a SCREAMING_SNAKE_CASE word
const camelToScreamingSnake = pipe(
Expand Down Expand Up @@ -51,7 +51,7 @@ const createActionCreator = (name, extraPropNames, options) => {
// "properties" is defined as an object of {prop name: default value}
if (is(Object, extraPropNames)) {
const defaultProps = extraPropNames
return (valueObject) => {
return (valueObject = {}) => {
const providedProps = pick(Object.keys(defaultProps), valueObject)
return { type, ...defaultProps, ...providedProps }
}
Expand Down

0 comments on commit 1efe0d5

Please sign in to comment.