Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

feat: add types #74

Merged
merged 23 commits into from
Dec 10, 2020
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
c1cb68e
fix: typedefs for MulticodecTopology
Gozala Nov 27, 2020
cba6394
feat: remove is-class that broke typings
Gozala Nov 30, 2020
4e25c6e
fix: add type annotations to improve innference
Gozala Nov 30, 2020
7ccaf27
chore: generate fixed types
Gozala Nov 30, 2020
f2d6a76
fix: missing type imports
Gozala Dec 1, 2020
3143efd
fix: tsconfig to generate optionals correctly
Gozala Dec 1, 2020
b7f1072
fix: lint issues by disabling valid-jsdoc rules
Gozala Dec 1, 2020
7fd26cf
fix: optional fields
Gozala Dec 1, 2020
6a95834
feat: add types
vasco-santos Dec 1, 2020
bac57b0
chore: remove generated types from vsc
Gozala Dec 1, 2020
67a5f51
fix: type incompatibilities (#75)
Gozala Dec 2, 2020
6f09061
chore: address review
vasco-santos Dec 2, 2020
8fdc05d
chore: use github actions and remove travis
vasco-santos Dec 2, 2020
0801fc3
chore: add interface constructors
vasco-santos Dec 2, 2020
5cb2025
chore: address review
vasco-santos Dec 2, 2020
5cfaf41
chore: make inboundStream a asyncIterable
vasco-santos Dec 2, 2020
ef86c87
chore: fix latest comments
vasco-santos Dec 2, 2020
7597875
chore: record interface instead of class, transport and stream muxer …
vasco-santos Dec 3, 2020
56e606e
chore: remove record class file
vasco-santos Dec 3, 2020
0b4b09f
chore: enable ts error reporter
vasco-santos Dec 3, 2020
e73646c
chore: add listener options
vasco-santos Dec 4, 2020
a99b958
chore: update interface record per libp2p pr feedback
vasco-santos Dec 10, 2020
a24fafd
chore: make metadata optional on addStream
vasco-santos Dec 10, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: ci
vasco-santos marked this conversation as resolved.
Show resolved Hide resolved
on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: yarn
- run: yarn lint
# - uses: gozala/[email protected]
vasco-santos marked this conversation as resolved.
Show resolved Hide resolved
- run: yarn build
- run: yarn aegir dep-check
- uses: ipfs/aegir/actions/bundle-size@master
name: size
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
test-node:
needs: check
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
node: [12, 14]
fail-fast: true
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: yarn
- run: npx nyc --reporter=lcov aegir test -t node -- --bail
- uses: codecov/codecov-action@v1
test-chrome:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: yarn
- run: npx aegir test -t browser -t webworker --bail
test-firefox:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: yarn
- run: npx aegir test -t browser -t webworker --bail -- --browsers FirefoxHeadless
40 changes: 0 additions & 40 deletions .travis.yml

This file was deleted.

21 changes: 15 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,21 @@
"types",
"dist"
],
"types": "dist/src/index.d.ts",
"typesVersions": {
"*": {
"src/*": [
"dist/src/*",
"dist/src/*/index"
]
}
},
"eslintConfig": {
"extends": "ipfs"
},
"scripts": {
"lint": "aegir lint",
"build": "aegir build",
"pregenerate:types": "rimraf './src/**/*.d.ts'",
"generate:types": "tsc",
"test": "aegir test",
"test:node": "aegir test --target node",
"test:browser": "aegir test --target browser",
Expand All @@ -37,11 +47,11 @@
},
"homepage": "https://github.com/libp2p/js-interfaces#readme",
"dependencies": {
"@types/bl": "^2.1.0",
"abort-controller": "^3.0.0",
"abortable-iterator": "^3.0.0",
"chai": "^4.2.0",
"chai-checkmark": "^1.0.1",
"class-is": "^1.1.0",
"debug": "^4.1.1",
"delay": "^4.3.0",
"detect-node": "^2.0.4",
Expand All @@ -67,10 +77,9 @@
"uint8arrays": "^1.1.0"
},
"devDependencies": {
"aegir": "^25.0.0",
"aegir": "^29.2.0",
"it-handshake": "^1.0.1",
"rimraf": "^3.0.2",
"typescript": "3.7.5"
"rimraf": "^3.0.2"
},
"contributors": [
"Alan Shaw <[email protected]>",
Expand Down
149 changes: 0 additions & 149 deletions src/connection/connection.d.ts

This file was deleted.

Loading