Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump axios and arweave #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Apr 21, 2023

Removes axios. It's no longer used after updating ancestor dependency arweave. These dependencies need to be updated together.

Removes axios

Updates arweave from 1.9.1 to 1.13.7

Release notes

Sourced from arweave's releases.

Fix error handling

This maintenance release closes 4 long standing open issues:

  • TypeError: Cannot read properties of undefined (reading 'replace') occurred when no wallet was found to sign transactions. We now do some jwk checks and close a logic opening which would result in an undefined object being treated as a jwk object, and return a more meaningful error.
  • arweave.api now decodes retrieved text txs with specified charset in it's Content-Type header (as opposed to defaulting all text to UTF-8).
  • Throw an error when getPrice receives a bad response from the server.
  • Throw an error when getTransactionAnchor receives a bad response from the server.

v1.13.0

Arweave.init changes

  • improved host detection
  • clips off subdomain so that ArNS domains can use the gateway

Arweave.api

  • expose web stream

v1.12.4

Release Notes

This update allows arweave-js to run in modern environments such as Chrome Extension Manifest V3.

Rationale: It seems like the industry is moving towards dropping the original XmlHttpRequest API in favour of Fetch API. Examples include the above browser extensions standard and web workers, which only support Fetch API.

Why not add a package like node-fetch? To simplify, rather than adding more complications to our inherited code, but PRs welcome.

Added dependency

Fetch API. Available in all modern browsers. Available as standard since node v18+ (*opt-in experimental since node v16.5).

Removed dependencies

Axios, node:utils (polyfill)

*Notes for NodeJS v16.5 - v17

To run with node v16.5+, you need to specify the --experimental-fetch flag in your app.

Examples

These can be added to your packages.json start script, or Dockerfile entrypoint

node

  • node --experimental-fetch --no-warnings <your-app.js>

ts-node

  • NODE_OPTIONS='--experimental-fetch --no-warnings' ts-node experimental-fetch.ts <your-app.ts>
Commits
  • f9189a4 1.13.7
  • 9355db6 fix: bug in web-iterator
  • edf196e Merge pull request #211 from ArweaveTeam/patch-get-tags-error
  • 9a3e117 1.13.6
  • 4a14776 Merge branch 'master' into patch-get-tags-error
  • 55a212a fix/transaction: throw a meaningful error when the user tries to decode an ...
  • 75c7d34 Merge pull request #209 from ArweaveTeam/rosmcmahon-patch-1
  • 8ab494b Update README.md
  • 099ca77 Merge pull request #208 from ArweaveTeam/api-json-more-like-axios
  • b40ea03 1.13.5
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by rosmcmahon, a new releaser for arweave since your current version.


Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Removes [axios](https://github.com/axios/axios). It's no longer used after updating ancestor dependency [arweave](https://github.com/ArweaveTeam/arweave-js). These dependencies need to be updated together.


Removes `axios`

Updates `arweave` from 1.9.1 to 1.13.7
- [Release notes](https://github.com/ArweaveTeam/arweave-js/releases)
- [Commits](ArweaveTeam/arweave-js@1.9.1...v1.13.7)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: indirect
- dependency-name: arweave
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Apr 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants