Skip to content

Releases: patrickroberts/suspense-service

0.1.0 Tested Public API

22 Oct 23:01
Compare
Choose a tag to compare

Changes:

  • Wrote acceptance tests for Service API
  • Added fixtures to facilitate testing with partially mocked interfaces
  • Forwarded promise completion of response within Service internals to test promise resolution in spied function

Todo:

  • Generate code coverage reports
  • Implement unit tests for Service internals

0.0.5 Release Candidate

20 Oct 07:44
Compare
Choose a tag to compare
Pre-release

Changes:

  • Removed prop-types as a peer dependency
  • Reverted from cucumber-js to jest to make tests easier to read
  • Added prettier as a development dependency in order to generate inline snapshots with jest and react-test-renderer
  • Updated prepublish to run steps in the following order:
    • clean
    • lint
    • test
    • build
    • docs

0.0.4 Release Candidate

07 Oct 06:09
Compare
Choose a tag to compare
Pre-release

Changes:

  • Changed parameter useHandler to handler in createService(), meaning hook calls are no longer allowed in the user-defined handler. After usage testing, it seemed burdensome to require the user to properly call useEffect() in the handler in order to prevent double-invoking their fetching logic in React Strict Mode.
  • Added ESLint to enforce a consistent code-styling and other semantic contracts like Rules of Hooks that aren't covered by typechecking alone.
  • Added MIT license file

0.0.3 Release Candidate

01 Oct 22:07
Compare
Choose a tag to compare
Pre-release

Changes:

  • Bugfix in ServiceProvider: useThenable() now returns the RefObject instead of the dereferenced PromiseState. The RefObject should be dereferenced in read() rather than during rendering since the ServiceProvider does not re-render when the Suspense component finishes awaiting the thrown promise.
  • Testing now references the production-built files instead of the original source files, and the workflow rebuilds the project before running tests.
  • Id is now an alias for the valid identifier types used to differentiate providers within the same Context or Service type.

0.0.2 Release Candidate

25 Sep 21:10
Compare
Choose a tag to compare
Pre-release

Added Gherkin tests covering usage of createContext() and useContext() functions exported by suspense-service.

0.0.1 Release Candidate

25 Sep 01:00
Compare
Choose a tag to compare
Pre-release
v0.0.1-rc

Version bump

Initial Release

25 Sep 00:48
Compare
Choose a tag to compare
Initial Release Pre-release
Pre-release
v0.0.0-rc

Added workflows