
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
relude-fetch
Advanced tools
Relude interop library for the Browser Fetch API. This can also be used in Node.js using a polyfill like isomorphic-fetch.
This library basically wraps the
bs-fetch Bucklescript library
to lift any publicly-exposed Js.Promise.t('a)
values into Relude.IO.t('a, Js.Promise.error)
values. Using IO
rather than Promise
makes error
handling 100% more explicit, allows for better composability with other
effect and error types, and unlocks the full power of monads!
See the tests for example usage.
Also see the demo for real-world usage, such as file uploads.
Dependencies of this library are listed as peerDepenencies
to avoid issues with multiple version
errors with npm's installation methodology combined with BuckleScript.
> npm install --save bs-bastet relude bs-fetch relude-fetch
# Add bs-bastet, relude, bs-fetch, and relude-fetch to your bsconfig.json
# Normal development scripts
> npm run clean
> npm run build
> npm run cleanbuild
> npm run test
> npm run cleantest
> npm run watch
# Run the demo project via parcel
> npm run demo
> npm version major|minor|patch
> git push origin --follow-tags
> git push upstream --follow-tags
> npm publish
> nix-shell
%nix%> npm install
FAQs
Relude interop library for the fetch API
The npm package relude-fetch receives a total of 10 weekly downloads. As such, relude-fetch popularity was classified as not popular.
We found that relude-fetch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.