-
v4.0.0
- [BREAKING] WP API responses no longer modified by
wp-api-response-modify
by default. Functionality moved intokasia-plugin-wp-api-response-modify
plugin. - [BREAKING] Structure of
props.kasia
object changed:entities
key is nowdata
. This is to ready the library for #30, where query result may not be a normalised collection of entities. - [BREAKING]
shouldUpdate
function is mandatory forconnectWpQuery
decorator. - [BREAKING]
WP
config option is nowwpapi
. - [BREAKING] Preloaders renamed and fn signatures changes (see docs).
makePostPreloaderSaga
removed, usepreloadQuery
instead. - Provide stack trace for captured query errors. (#37)
- Plugins can intercept native reducers, e.g.
kasia-plugin-wp-api-response-modify
. (#40) prepublish
scripts not run onnpm install
. (#28)- Added
debug
config option, if true lib logs useful lifecycle information to the console. - Big refactor of library to make codebase more maintainable, manageable.
- [BREAKING] WP API responses no longer modified by
-
v3.2.0 - 23/09/16
- Implemented safer internal query reconciliation logic such that prepared queries
target their components via their
displayName
. - Added
options
object parameter to connect decorators, where you can specify explicitly thedisplayName
of the component if it is wrapped by other decorators. - Fix bug where preloader saga creator utilities in
kasia/util
disrupt prepared query reconciliation by incrementing prepared query count. (They do not have a corresponding component and so should not be considered "prepared" queries.) - Fixed query errors not being added to query object (
error: "undefined"
). - Log warning about erroneous queries.
- Implemented safer internal query reconciliation logic such that prepared queries
target their components via their
-
v3.1.5 - 22/09/16
- Replace use of redux's
connect
decorator with access to the store viacontext
. - Quick fix for failed queries sneaking through to data reconciliation stage in decorators. TODO: implement more complete query error-handling solution. (#29)
- Replace use of redux's
-
v3.1.2 - 20/09/16
- Pass state as third argument to
connectWpQuery
query function.
- Pass state as third argument to
-
v3.1.1 - 19/09/16
- Fix bug where
wordpress
object removed from props during comparison to determine if a request for new data should be made inconnectWpQuery
.
- Fix bug where
-
v3.1.0 - 09/09/16
- Additional preloader saga creators for loading WP data into the store when server-side rendering:
makeQueryPreloaderSaga
andmakePostPreloaderSaga
.
- Additional preloader saga creators for loading WP data into the store when server-side rendering:
-
v3.0.0 - 31/08/16
- [BREAKING] Fix bug in Universal Application solution that prevented components picking
up prepared query data on the client. Also involves change in API that means
ConnectComponent.makePreloader
returns array immediately instead of a function. (#24) - Improved test coverage of universal application solution. (#26)
- Additional utility export
kasia/util
, currently only exportingmakePreloaderSaga()
for use with server-side rendering. - Improved developer feedback. (#4, #24)
- Updates to README: better documentation of Universal Application solution. (#25)
- Update to latest version of Jest.
- [BREAKING] Fix bug in Universal Application solution that prevented components picking
up prepared query data on the client. Also involves change in API that means
-
v2.4.0 - 10/08/16
- Mixin
node-wpapi
's available mixins to internal calls toregisterRoute
by default in order that filtering can be performed on custom content types, e.g.news.filter(<options>).get()
.
- Mixin
-
v2.3.0 - 10/08/16
- Fix functions passed as props to
connectWpQuery
causing infinite dispatching. (#16) - Added second parameter
propsComparatorFn
toconnectWpQuery
. - Fix
connectWpPost
derived query chaining failing due to dependency on object property order. - Updates to README: added docs for new functionality, fix typos (#19).
- Fix functions passed as props to
-
v2.2.0 - 08/08/16
- Added missing dependencies in
package.json
. - Removed unnecessary unmock of
lodash
in tests. - Fix query IDs being picked in reverse order when server-side rendering.
- Added
.travis.yml
.
- Added missing dependencies in
-
v2.1.0 - 05/08/16
- Fix
connectWpQuery
fn not receiving props.
- Fix
-
v2.0.0 - 04/08/16
- [BREAKING] Updated sagas export to accommodate changes to redux-saga API introduced in v0.10.0.
- Updates to README: fixed bad
node-wpapi
examples with endpoint missing/wp-json
suffix, added quick Spongebob example as intro. 👌 - Added
CHANGELOG.md
.
-
v1.0.2 - 04/08/16
- Removed
postinstall
npm script because it runs before dependencies are installed(?!).
- Removed
-
v1.0.1 - 04/08/16
- Fix bad import statements (see next bullet).
- Rename
ContentTypes.js
->contentTypes.js
as this was causing an error on Unix systems as import statements used the latter filename.
-
v1.0.0 - 03/08/16
- Release! 🎩