Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Latest commit

 

History

History
110 lines (77 loc) · 5.45 KB

CHANGELOG.md

File metadata and controls

110 lines (77 loc) · 5.45 KB

Kasia Changelog

  • v4.0.0

    • [BREAKING] WP API responses no longer modified by wp-api-response-modify by default. Functionality moved into kasia-plugin-wp-api-response-modify plugin.
    • [BREAKING] Structure of props.kasia object changed: entities key is now data. This is to ready the library for #30, where query result may not be a normalised collection of entities.
    • [BREAKING] shouldUpdate function is mandatory for connectWpQuery decorator.
    • [BREAKING] WP config option is now wpapi.
    • [BREAKING] Preloaders renamed and fn signatures changes (see docs). makePostPreloaderSaga removed, use preloadQuery 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 on npm 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.

  • 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 the displayName 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.
  • v3.1.5 - 22/09/16

    • Replace use of redux's connect decorator with access to the store via context.
    • Quick fix for failed queries sneaking through to data reconciliation stage in decorators. TODO: implement more complete query error-handling solution. (#29)
  • v3.1.2 - 20/09/16

    • Pass state as third argument to connectWpQuery query function.
  • 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 in connectWpQuery.
  • v3.1.0 - 09/09/16

    • Additional preloader saga creators for loading WP data into the store when server-side rendering: makeQueryPreloaderSaga and makePostPreloaderSaga.
  • 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 exporting makePreloaderSaga() 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.

  • v2.4.0 - 10/08/16

    • Mixin node-wpapi's available mixins to internal calls to registerRoute by default in order that filtering can be performed on custom content types, e.g. news.filter(<options>).get().
  • v2.3.0 - 10/08/16

    • Fix functions passed as props to connectWpQuery causing infinite dispatching. (#16)
    • Added second parameter propsComparatorFn to connectWpQuery.
    • Fix connectWpPost derived query chaining failing due to dependency on object property order.
    • Updates to README: added docs for new functionality, fix typos (#19).
  • 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.
  • v2.1.0 - 05/08/16

    • Fix connectWpQuery fn not receiving props.
  • 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(?!).
  • 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! 🎩