Releases: noahgrant/resourcerer
1.0.2
v1.0.1
1.0.0
Finally to version 1.0! There is nothing major in this release that there wasn't in the beta releases. Biggest changes from < 1.0 repeated here:
- Model and Collection classes are drastically slimmed down and brought into the resourcerer package, along with the ajax module.
getResources
executor function now takes the resource keys as the first argument and props as the second.- a couple resource config options have been renamed to better reflect their use (and make resourcerer easier to learn):
data
->params
, since the object is used to serialize query parameters (GET) or body parameters (POST/PUT/PATCH/DELETE), not server dataattributes
->data
, for seeding server data in the model
- model/collection
url
methods now get called with theoptions
object from the resource config - Exported loading utility methods now called
haveAllLoaded
,areAnyLoading
, andhaveAnyErrored
, respectively, in order to avoid clashing with properties returned byuseResources
status
option is now removed fromwithResources
and will get passed down as props by default just asuseResources
doeswithResources
now usesuseResources
under the hood- Test utilities are no longer necessary and have been removed
- all tests migrated off of karma and jasmine to use jest
- Documentation updates
1.0.0-beta
1.0.0 Beta release! Not too many external changes from the alpha version, but:
- a couple resource config options have been renamed to better reflect their use (and make resourcerer easier to learn):
data
->params
, since the object is used to serialize query parameters (GET) or body parameters (POST/PUT/PATCH/DELETE), not server dataattributes
->data
, for seeding server data in the model
- model/collection
url
methods now get called with theoptions
object from the resource config status
option is now removed fromwithResources
and will get passed down as props by default just asuseResources
doeswithResources
now usesuseResources
under the hood- Test utilities are no longer necessary and have been removed
- Documentation updates
Dependency-less resourcerer
Major changes prepping the 1.0 release, most notably removing all dependencies.
- Model and Collection classes are drastically slimmed down and brought into the resourcerer package, along with the ajax module.
getResources
executor function now takes the resource keys as the first argument and props as the second.- Exported loading utility methods now called
haveAllLoaded
,areAnyLoading
, andhaveAnyErrored
, respectively, in order to avoid clashing with properties returned byuseResources
- all tests migrated off of karma and jasmine to use jest
v0.11.5
v0.11.1
adds isOrWillBeLoading for React.memo performance optimizations.
v0.11.0
- Adds refetching functionality for making repeat requests for the same resource
Modularized
Adds support for modularized Schmackbone while also modularizing itself. Everything now exported from the top-level index.js
file, including all helper modules. ie:
// before
import ModelCache from 'resourcerer/model-cache';
import * as request from 'resourcerer/request';
import {hasLoaded} from 'resourcerer/utils';
// after
import {hasLoaded, ModelCache, request} from 'resourcerer';
v0.9.0
This release makes a couple changes to withResources
:
-
it now utilizes
componentDidUpdate
to handle its resource fetching instead ofUNSAFE_componentWillReceiveProps
, to bring it in line with the direction React is heading in -
the deprecated resource config option
fields
has been removed.