Skip to content

Commit

Permalink
feat!: remove js-ipfs support (#823)
Browse files Browse the repository at this point in the history
- Removes support for js-ipfs since it is deprecated
- Renames 'go' type argument to 'kubo'
- Still expects to have other implementations added in future
- Updates all deps to latest versions
- Removes deprecated `ipfs-utils` dep

BREAKING CHANGE: only supports spawning `kubo` daemons
  • Loading branch information
achingbrain authored Apr 19, 2024
1 parent 561f69b commit 3ed0c00
Show file tree
Hide file tree
Showing 33 changed files with 1,495 additions and 2,616 deletions.
25 changes: 8 additions & 17 deletions .aegir.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,19 @@
import * as ipfsModule from 'ipfs'
import * as ipfsHttpModule from 'ipfs-http-client'
import * as kuboRpcModule from 'kubo-rpc-client'
import * as goIpfsModule from 'go-ipfs'
import { create } from 'kubo-rpc-client'
import { path } from 'kubo'

/** @type {import('aegir').Options["build"]["config"]} */
/** @type {import('aegir').PartialOptions} */
const config = {
bundlesize: {
maxSize: '35kB'
build: {
bundlesizeMax: '2.5kB',
},
test: {
before: async () => {
const { createServer } = await import('./dist/src/index.js')

const server = createServer(undefined, {
ipfsModule,
}, {
go: {
ipfsBin: goIpfsModule.path(),
kuboRpcModule
},
js: {
ipfsBin: ipfsModule.path(),
ipfsHttpModule
}
type: 'kubo',
bin: path(),
rpc: create
}
)

Expand Down
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ updates:
schedule:
interval: daily
time: "10:00"
open-pull-requests-limit: 10
open-pull-requests-limit: 20
commit-message:
prefix: "deps"
prefix-development: "deps(dev)"
3 changes: 1 addition & 2 deletions .github/workflows/js-test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@ concurrency:

jobs:
js-test-and-release:
uses: ipdxco/unified-github-workflows/.github/workflows/js-test-and-release.yml@v1.0
uses: ipdxco/unified-github-workflows/.github/workflows/js-test-and-release.yml@v0.0
secrets:
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
UCI_GITHUB_TOKEN: ${{ secrets.UCI_GITHUB_TOKEN }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
12 changes: 12 additions & 0 deletions .github/workflows/semantic-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Semantic PR

on:
pull_request_target:
types:
- opened
- edited
- synchronize

jobs:
main:
uses: pl-strflt/.github/.github/workflows/[email protected]
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
node_modules
build
dist
.docs
.coverage
package-lock.json
yarn.lock
.vscode
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
}
Loading

0 comments on commit 3ed0c00

Please sign in to comment.