All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- additional typescript checks if useResource value is a function type, so it's impossible to accidently miss the external function wrapper during initialization
<Match />
narrows down renderProp type to non-nullable values
<Await />
now renders nothing instead of throwing an error, if nullishfor
prop was supplied- default module format switched from cjs to mjs
- builder changed from vite to tsup
- exports declaration was changed for better cjs/mjs support
- stricter internal dispatch checkings in useResource
- documentation and changelog typos, wordings and better examples
- source code is ommited from the npm bundle
- devDependencies bump
typeof function
being used instead ofinstanceOf Function
in checks inside the code to avoid potential issue with Jest
- devDependencies versions bump
- actually change react jsx-runtime back to classic in the bundle, because of the issue with webpack5 mjs imports
- eslint check was added to the build-test pipeline, so it's required for lint to pass
- Stricter error verification rules, resource error types were changed from any to unknown
- jsx-runtime settings changed to react-jsx
- fixed or muted all the previous eslint warnings
First public release.