Skip to content

Releases: noahgrant/resourcerer

1.0.2

20 Jan 01:38
457ac8a
Compare
Choose a tag to compare

Fixes a bug where using {wait: true} when saving to defer data set on a model wasn't really working.

v1.0.1

17 Jan 20:03
5dc06cd
Compare
Choose a tag to compare
v1.0.1

1.0.0

17 Jan 19:40
64f48bc
Compare
Choose a tag to compare

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

1.0.0-beta

14 Nov 19:50
e99c285
Compare
Choose a tag to compare

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

Dependency-less resourcerer

03 Nov 05:41
aa9b460
Compare
Choose a tag to compare
Pre-release

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

13 Oct 19:55
3338238
Compare
Choose a tag to compare

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

v0.11.1

09 Apr 17:57
08b2a7c
Compare
Choose a tag to compare

adds isOrWillBeLoading for React.memo performance optimizations.

v0.11.0

03 Apr 17:38
6f3cb55
Compare
Choose a tag to compare

Modularized

07 Dec 19:30
c0038ff
Compare
Choose a tag to compare

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

31 Oct 21:49
808fe64
Compare
Choose a tag to compare

This release makes a couple changes to withResources:

  • it now utilizes componentDidUpdate to handle its resource fetching instead of UNSAFE_componentWillReceiveProps, to bring it in line with the direction React is heading in

  • the deprecated resource config option fields has been removed.