Resourcerer Versions Save

Declarative data-fetching and caching framework for REST APIs with React

v1.0.1

2 years ago

v1.0.0

2 years ago

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 data
    • attributes -> data, for seeding server data in the model
  • model/collection url methods now get called with the options object from the resource config
  • Exported loading utility methods now called haveAllLoaded, areAnyLoading, and haveAnyErrored, respectively, in order to avoid clashing with properties returned by useResources
  • status option is now removed from withResources and will get passed down as props by default just as useResources does
  • withResources now uses useResources 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

v1.0.0-beta-3

2 years ago

1.0.0 Beta release! Not too many external changes from the alpha version, but:

  • status option is now removed from withResources and will get passed down as props by default just as useResources does
  • withResources now uses useResources under the hood
  • Test utilities are no longer necessary and have been removed
  • Documentation updates

v1.0.0-beta-4

2 years ago

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 data
    • attributes -> data, for seeding server data in the model
  • model/collection url methods now get called with the options object from the resource config
  • status option is now removed from withResources and will get passed down as props by default just as useResources does
  • withResources now uses useResources under the hood
  • Test utilities are no longer necessary and have been removed
  • Documentation updates

v1.0.0-beta-5

2 years ago

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 data
    • attributes -> data, for seeding server data in the model
  • model/collection url methods now get called with the options object from the resource config
  • status option is now removed from withResources and will get passed down as props by default just as useResources does
  • withResources now uses useResources under the hood
  • Test utilities are no longer necessary and have been removed
  • Documentation updates

v1.0.0-alpha-1

2 years ago

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, and haveAnyErrored, respectively, in order to avoid clashing with properties returned by useResources
  • all tests migrated off of karma and jasmine to use jest

v0.11.5

2 years ago

Uses a lighter version of Schmackbone with no Router or History modules shipped, as well as no two-way data binding.

v0.11.1

3 years ago

adds isOrWillBeLoading for React.memo performance optimizations.

0.11.0

3 years ago

v.0.10.0

3 years ago

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';