Skip to content

Commit

Permalink
Merge pull request #403 from jamesplease/3.0.2
Browse files Browse the repository at this point in the history
3.0.2
  • Loading branch information
jamesplease committed Apr 27, 2018
2 parents 3a3e1e1 + 8308bd8 commit 2c5d0f4
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,12 @@
## 4/26/18

##### `redux-resource@3.0.2`

**Bug Fixes**

- The `actionTypes` export has been fixed. It was not exporting `UPDATE_RESOURCES`
nor `DELETE_RESOURCES`.

## 4/18/18

- All libraries have been updated to allow for Redux@4 as a peer dependency.
Expand Down
2 changes: 1 addition & 1 deletion packages/redux-resource/package.json
@@ -1,6 +1,6 @@
{
"name": "redux-resource",
"version": "3.0.1",
"version": "3.0.2",
"description": "Resource management for Redux.",
"main": "lib/index.js",
"module": "es/index.js",
Expand Down
5 changes: 3 additions & 2 deletions packages/redux-resource/src/action-types/action-types.js
@@ -1,10 +1,11 @@
export default {
REQUEST_IDLE: 'REQUEST_IDLE',
UPDATE_RESOURCES: 'UPDATE_RESOURCES',
DELETE_RESOURCES: 'DELETE_RESOURCES',

// These will be used in Redux Resource v3.1.0. For now,
// they are reserved action types.
// REQUEST_IDLE: 'REQUEST_IDLE',
// REQUEST_PENDING: 'REQUEST_PENDING',
// REQUEST_FAILED: 'REQUEST_FAILED',
// REQUEST_SUCCEEDED: 'REQUEST_SUCCEEDED',
// UPDATE_RESOURCES: 'UPDATE_RESOURCES',
};
5 changes: 5 additions & 0 deletions packages/redux-resource/test/unit/action-types.js
Expand Up @@ -5,6 +5,11 @@ describe('actionTypes', function() {
expect(actionTypes).to.be.an('object');
});

describe('synchronous actions', () => {
expect(actionTypes.UPDATE_RESOURCES).to.equal('UPDATE_RESOURCES');
expect(actionTypes.DELETE_RESOURCES).to.equal('DELETE_RESOURCES');
});

describe('create', () => {
it('should have the right actionTypes', () => {
expect(actionTypes.CREATE_RESOURCES_PENDING).to.equal(
Expand Down

0 comments on commit 2c5d0f4

Please sign in to comment.