Releases: jamesplease/redux-simple-resource
Releases · jamesplease/redux-simple-resource
Release list
1.0.0
This shares the same release notes as 1.0.0-alpha1, and is used to formally suggest that we're done with pre-release API iteration and ready to ship.
1.0.0-alpha1
Breaking changes
- The store values representing the XHR Statuses for the different actions
has been renamed. For instance,retrievingStatusis nowreadXhrStatus,
updatingStatusis nowupdateXhrStatus, and so on.
0.0.10
Bug fixes
- Multi-word resource names were not generating the correct reducer handlers for
read many. This issue has been resolved.
0.0.9
Breaking changes
lodash.snakecasehas been removed as a dependency. This reduces the minified
bundle size by 4kb, yet means that you can now only pass in camel case
resource names.
0.0.8
- The npm package now only ships with the dist folder to keep the module small
0.0.7
Breaking
updateResourcesMetahas been renamed toupdateResourceMetaupdateManyResourcesMetahas been renamed toupdateManyResourceMetasREAD_ONE_Xaction types have been renamed toREAD_Xfor better consistency
with the other action types that operate on a single resource.supportedActions.readOnehas been renamed tosupportedActions.readfor
better consistency with the other action types that operate on a single
resource.
New features
updateResourceMetanow accepts areplaceoption
Bug fixes
- Data is now stored on the proper location in the store:
resourceMetaand
resourceListMeta. Previously, the library was incorrectly storing them on
resourcesMetaandresourcesListMeta. replace: truenow actually replaces the list inupdateManyResources().
0.0.6
Breaking
- The
allowedOperationsoption has been renamed tosupportedActions - Multiword resource names will now be snake-cased in action types. For
instance, previously, a name ofcatPersonwould have beenCATPERSON. Now
it will beCAT_PERSON. - Action creator placeholders have been removed from the library
- The
RETRIEVEaction type has been renamed toREAD_ONEandREAD_MANYto
make it more clear if you are fetching one or many resources. - In browser global environments, the variable name that is attached to the
windowhas been renamed fromsimpleResourcetocreateResource.
New features
- You can now customize whether the reducers replace existing data or merge the
new data with the old through thereplaceproperty of your action. - Helpful utilities are now available as named exports, which can help with
manipulating data and metadata in the store.
Bug fixes
- Newly-created resources now have the default metadata associated with them
- The
idAttributeoption now works in all reducers - The action types that are included in the
actionReducersoptions are now
available on theactionTypesproperty of the resource
0.0.5
Breaking
- Action type names are now shorter
0.0.4
- Fix a bug where
initialStatewas returning undefined in reducers