Set of utilities for JS Fetch API
APACHE-2.0 License
Bot releases are hidden (Show)
middleware/proxy
: pathRewrite
option added (#6)middleware/proxy
: remove console.log calls from middleware (#6)Full Changelog: https://github.com/krutoo/fetch-tools/compare/0.0.15...0.0.16
Published by krutoo 6 months ago
server
: router.builder()
method added https://github.com/krutoo/fetch-tools/pull/4
Full Changelog: https://github.com/krutoo/fetch-tools/compare/0.0.14...0.0.15
Published by krutoo 7 months ago
server
: route.all()
method added (#3)server
: route.patch()
method added (#3)Full Changelog: https://github.com/krutoo/fetch-tools/compare/0.0.13...0.0.14
Published by krutoo 7 months ago
proxy
middleware added for server handlers (#2)validateStatus
dump added by default (#2)Full Changelog: https://github.com/krutoo/fetch-tools/compare/0.0.12...0.0.13
Published by krutoo 8 months ago
server
: function route
now accepts function as first argumentserver
: function route
now has methods for simply checking request method (check readme)Full Changelog: https://github.com/krutoo/fetch-tools/compare/0.0.11...0.0.12
Published by krutoo 12 months ago
utils
: createCookieStore
now handles empty cookie value correctlycreateCookieStore
Full Changelog: https://github.com/krutoo/fetch-tools/compare/0.0.10...0.0.11
Published by krutoo 12 months ago
Published by krutoo about 1 year ago
createCookieStore
now returns store that calls listeners when setCookie
calledFull Changelog: https://github.com/krutoo/fetch-tools/compare/0.0.8...0.0.9
Published by krutoo about 1 year ago
notFound
removedCookieStore
now has subscribe methodFull Changelog: https://github.com/krutoo/fetch-tools/compare/0.0.7...0.0.8
Published by krutoo over 1 year ago
Published by krutoo over 1 year ago
validateStatus
: callback now accepts request and response after statusPublished by krutoo over 1 year ago
Handler
removed from ./server
Published by krutoo over 1 year ago
validateStatus
now accepts options in second argumentRequestFunction
renamed to Handler
and now exported from package rootPublished by krutoo over 1 year ago
route
and router
functions is here for server usagehtml
, json
, notFound
baseURL
removed (maybe temporarily)RequestFunction
LogHandler
methods renamed for more intuitive server usagePublished by krutoo over 1 year ago
Package content fix ("dist" folder added)
Published by krutoo over 1 year ago
First version with basic features