Releases: patrickroberts/suspense-service
Releases · patrickroberts/suspense-service
0.1.0 Tested Public API
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
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
Changes:
- Changed parameter
useHandler
tohandler
increateService()
, meaning hook calls are no longer allowed in the user-defined handler. After usage testing, it seemed burdensome to require the user to properly calluseEffect()
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
Changes:
- Bugfix in
ServiceProvider
:useThenable()
now returns theRefObject
instead of the dereferencedPromiseState
. TheRefObject
should be dereferenced inread()
rather than during rendering since theServiceProvider
does not re-render when theSuspense
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 sameContext
orService
type.
0.0.2 Release Candidate
Added Gherkin tests covering usage of createContext()
and useContext()
functions exported by suspense-service
.
0.0.1 Release Candidate
v0.0.1-rc Version bump
Initial Release
v0.0.0-rc Added workflows