Skip to content

Commit

Permalink
chore: upgrade libp2p and related deps (#1482)
Browse files Browse the repository at this point in the history
* chore: update noise

* update: package.lock

* update: @chainsafe/libp2p-gossipsub

* rm unwanted libp2p interface deps & bump up libp2p

* refactor code for new deps

* update: new package.lock

* setup prettier, refactor eslint  and rm trailing commas

* update package.lock

* fix build

* import type for interface

* fix imports for merge

* update typedoc exports

* add: CustomEvent import

* use new libp2p interface

* add aegir as dev dep for tests
  • Loading branch information
danisharora099 authored Aug 16, 2023
1 parent 7b6ead1 commit 8771798
Show file tree
Hide file tree
Showing 153 changed files with 14,856 additions and 14,906 deletions.
15 changes: 14 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": ["./tsconfig.json"]
},
"env": { "es6": true },
"ignorePatterns": ["node_modules", "build", "coverage", "proto"],
"plugins": ["import", "eslint-comments", "functional"],
Expand All @@ -13,6 +16,7 @@
],
"globals": { "BigInt": true, "console": true, "WebAssembly": true },
"rules": {
"comma-dangle": ["error", "never"],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"eslint-comments/disable-enable-pair": [
Expand Down Expand Up @@ -58,10 +62,19 @@
"overrides": [
{
"files": ["*.spec.ts", "**/test_utils/*.ts", "*.js", "*.cjs"],
"env": {
"node": true
},
"rules": {
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-explicit-any": "off",
"no-console": "off"
"no-console": "off",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true
}
]
}
},
{
Expand Down
3 changes: 3 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"trailingComma": "none"
}
4 changes: 2 additions & 2 deletions ci/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ const main = async (url, branch) => {
repo: url,
branch: branch,
dotfiles: true,
silent: false,
silent: false
});
};

main(repoUrl, branch);
void main(repoUrl, branch);
2 changes: 1 addition & 1 deletion ci/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async function readWorkspace(packagePath) {
name: json.name,
private: !!json.private,
version: json.version,
workspace: packagePath,
workspace: packagePath
};
}

Expand Down
Loading

0 comments on commit 8771798

Please sign in to comment.