vanilla-swr

v1.1.0
`stale-while-revalidate` caching strategy for vanilla web-apps
swr vanilla-swr stale-while-revalidate

build

webpack --config webpack.config.js --mode production

test

jest

lint

eslint . --ext .js,.ts --fix

preversion

yarn lint && yarn test && yarn build && yarn deploy:examples

postversion

git push --tags && yarn publish --new-version $npm_package_version && git push && echo "Successfully released version $npm_package_version!"

deploy:examples

./deploy-examples.sh
npm i vanilla-swr

Metadata

  • MIT
  • Whatever
  • Royson
  • released 4/3/2022

Downloads

Maintainers