![New axobject-query Maintainer Faces Backlash Over Controversial Decision to Support Legacy Node.js Versions](https://cdn.sanity.io/images/cgdhsj6q/production/86e6ebdea652d20da070ebbda20134b839972db7-1024x1024.webp?w=800&fit=max&auto=format)
Security News
New axobject-query Maintainer Faces Backlash Over Controversial Decision to Support Legacy Node.js Versions
A JavaScript library maintainer is under fire after merging a controversial PR to support legacy versions of Node.js.
go-ipfs-dep
Advanced tools
Readme
Download go-ipfs to your node_modules.
npm install go-ipfs-dep --save
See IPFS getting-started. If anything goes wrong, try using: http://ipfs.io/docs/install.
This module downloads go-ipfs
binaries from https://dist.ipfs.io into your project.
By default it will download the go-ipfs version that matches the npm version of this module. So depending on go-ipfs-dep@0.4.19
will install go-ipfs v0.4.19
for your current system architecture, in to your project at node_modules/go-ipfs-dep/go-ipfs/ipfs
.
You can override the version of go-ipfs that gets downloaded by adding by adding a go-ipfs.version
field to your package.json
"go-ipfs": {
"version": "v0.4.13"
},
The url to download the binaries from can be specified by adding a field go-ipfs.distUrl
field to your package.json
, eg:
"go-ipfs": {
"version": "v0.4.3",
"distUrl": "http://localhost:8080/ipfs/QmSoNtqW22htkg9mtHWNBvZLUEmqfq8su7957meS1iQfeL"
},
Where QmSoNtqW22htkg9mtHWNBvZLUEmqfq8su7957meS1iQfeL
is the root of the distributions web site.
Or when run with node src/bin.js
, the dist url can be passed via an environment variable GO_IPFS_DIST_URL
, eg:
GO_IPFS_DIST_URL=http://localhost:8080/ipfs/QmSoNtqW22htkg9mtHWNBvZLUEmqfq8su7957meS1iQfeL node binsrc/bin.js
When used via node src/bin.js
, you can specify the target platform, version and architecture via environment variables: TARGET_OS
, TARGET_VERSION
and TARGET_ARCH
.
We fetch the versions dynamically from https://dist.ipfs.io/go-ipfs/versions
and the OSes and architectures from https://dist.ipfs.io/go-ipfs/${VERSION}/dist.json
.
Or via command line arguments in the order of:
node src/bin.js <version> <platform> <architecture> <install directory>
node src/bin.js v0.4.3 linux amd64 ./go-ipfs
Note: The binary gets put in the go-ipfs
folder inside the module folder.
Publishing is handled by GitHub Actions. The workflow is set to run every hour. It checks dist.ipfs.io for the latest go-ipfs version number, and compares with the version property in the package.json for this module. If they are different, the action will update the version of this module, publish it to npm, and push the change back to the master branch.
.github/main.workflow
defines how frequently we check for a new go-ipfs release, (hourly) and the steps to carry out.action-check-for-go-ipfs-release
compares the module version with the latest go-ipfs release as published to dist.ipfs.io. This lets us bail early if everything is up to date.action-publish
handles updating the module version, publishing to npm, and pushing the changes back to the repo.If for some reason you need to run it manually, follow the instructions below.
You have made changes and want to triple check everything is working. You can! If you publish with a numeric prerelease identifier then go-ipfs-dep
will strip it and install the corresponding version e.g. 0.4.19-0
installs go-ipfs
version 0.4.19
.
To deploy a new version with a prerelease identifier run the following command:
npx aegir release --type prepatch --preid '' --dist-tag next --no-lint --no-test --no-build --no-docs
# Note: change "--type prepatch" to the appropriate prerelease type.
# e.g. prepatch: 0.4.18 => 0.4.19-0, preminor: 0.4.18 => 0.5.0-0 etc.
# Increment prerelease (e.g. 0.4.19-0 -> 0.4.19-1)
npx aegir release --type prerelease --preid '' --dist-tag next --no-lint --no-test --no-build --no-docs
This publishes to the "next" tag meaning that the current "latest" version of go-ipfs-dep
will remain the same.
When you're finally ready to release:
npx aegir release --type=patch --no-lint --no-test --no-build --no-docs
FAQs
Install the latest go-ipfs binary
The npm package go-ipfs-dep receives a total of 175 weekly downloads. As such, go-ipfs-dep popularity was classified as not popular.
We found that go-ipfs-dep demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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
A JavaScript library maintainer is under fire after merging a controversial PR to support legacy versions of Node.js.
Security News
Results from the 2023 State of JavaScript Survey highlight key trends, including Vite's dominance, rising TypeScript adoption, and the enduring popularity of React. Discover more insights on developer preferences and technology usage.
Security News
The US Justice Department has penalized two consulting firms $11.3 million for failing to meet cybersecurity requirements on federally funded projects, emphasizing strict enforcement to protect sensitive government data.