Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ipfs/aegir
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 712c85353d19c323c9147c6be8ce56e2d592d6b6
Choose a base ref
...
head repository: ipfs/aegir
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: c04a0f7ca593f0dcf0b4cb4406066935eb3a3054
Choose a head ref
Loading
Showing with 37,851 additions and 37,374 deletions.
  1. +2 −2 .aegir.js
  2. +4 −78 .github/dependabot.yml
  3. +11 −0 .github/workflows/automerge.yml
  4. +148 −0 .github/workflows/js-test-and-release.yml
  5. +0 −43 .github/workflows/main.yml
  6. +26 −0 .github/workflows/stale.yml
  7. +2 −1 .gitignore
  8. +546 −3 CHANGELOG.md
  9. +3 −20 LICENSE
  10. +5 −0 LICENSE-APACHE
  11. +19 −0 LICENSE-MIT
  12. +8 −11 README.md
  13. +1 −1 actions/bundle-size/action.yml
  14. +33,206 −35,368 actions/bundle-size/dist/index.js
  15. +1 −1 actions/bundle-size/utils.js
  16. +38 −0 actions/cache-node-modules/action.yml
  17. +17 −0 actions/docker-login/action.yml
  18. +11 −0 actions/install-browser-deps/action.yml
  19. +0 −68 cli.js
  20. +15 −0 md/esm.md
  21. +132 −0 md/migration-to-v37.md
  22. +23 −23 md/ts-jsdoc.md
  23. +251 −113 package.json
  24. +35 −36 src/build/index.js
  25. +77 −0 src/check-project/check-build-files.js
  26. +27 −0 src/check-project/check-licence-files.js
  27. +32 −0 src/check-project/check-monorepo-files.js
  28. +135 −0 src/check-project/check-monorepo-readme.js
  29. +143 −0 src/check-project/check-readme.js
  30. +11 −0 src/check-project/files/.github/dependabot.yml
  31. +4 −0 src/check-project/files/LICENSE
  32. +5 −0 src/check-project/files/LICENSE-APACHE
  33. +19 −0 src/check-project/files/LICENSE-MIT
  34. +10 −0 src/check-project/files/lerna.json
  35. +406 −0 src/check-project/index.js
  36. +32 −0 src/check-project/manifests/monorepo.js
  37. +60 −0 src/check-project/manifests/typed-cjs.js
  38. +76 −0 src/check-project/manifests/typed-esm.js
  39. +86 −0 src/check-project/manifests/typescript.js
  40. +45 −0 src/check-project/manifests/untyped-cjs.js
  41. +46 −0 src/check-project/readme/header.js
  42. +12 −0 src/check-project/readme/install.js
  43. +47 −0 src/check-project/readme/license.js
  44. +27 −0 src/check-project/readme/structure.js
  45. +52 −0 src/check-project/readme/utils.js
  46. +72 −0 src/check-project/semantic-release-config.js
  47. +281 −0 src/check-project/utils.js
  48. +12 −0 src/clean.js
  49. +18 −11 src/cmds/build.js
  50. +30 −0 src/cmds/check-project.js
  51. +24 −16 src/cmds/check.js
  52. +30 −0 src/cmds/clean.js
  53. +16 −27 src/cmds/{z-dependency-check.js → dependency-check.js}
  54. +0 −44 src/cmds/docs.js
  55. +16 −10 src/cmds/{z-lint-package-json.js → lint-package-json.js}
  56. +15 −11 src/cmds/lint.js
  57. +32 −112 src/cmds/release.js
  58. +69 −40 src/cmds/test-dependant.js
  59. +30 −12 src/cmds/test.js
  60. +0 −61 src/cmds/ts.js
  61. +12 −20 src/config/.npmpackagejsonlintrc.json
  62. +6 −3 src/config/pw-test.js
  63. +8 −3 src/config/tsconfig.aegir.json
  64. +57 −25 src/config/user.js
  65. +84 −45 src/dependency-check.js
  66. +0 −112 src/docs/index.js
  67. +97 −2 src/index.js
  68. +51 −7 src/lint.js
  69. +164 −0 src/release.js
  70. +0 −31 src/release/bump.js
  71. +0 −45 src/release/changelog.js
  72. +0 −18 src/release/commit.js
  73. +0 −28 src/release/contributors.js
  74. +0 −23 src/release/github.js
  75. +0 −150 src/release/index.js
  76. +0 −41 src/release/prerelease.js
  77. +0 −40 src/release/publish.js
  78. +0 −24 src/release/push.js
  79. +0 −12 src/release/tag.js
  80. +41 −52 src/test-dependant/index.js
  81. +13 −9 src/test/browser.js
  82. +15 −9 src/test/electron.js
  83. +32 −15 src/test/index.js
  84. +13 −15 src/test/node.js
  85. +10 −8 src/test/react-native.js
  86. +0 −165 src/ts/index.js
  87. +0 −39 src/ts/typedoc-plugin.js
  88. +20 −17 src/{types.d.ts → types.ts}
  89. +93 −49 src/utils.js
  90. +7 −7 test/browser.spec.js
  91. +35 −0 test/build.js
  92. +1 −1 test/config/fixtures/.aegir.js
  93. +11 −8 test/config/user.js
  94. +50 −8 test/dependants.js
  95. +52 −62 test/dependency-check.js
  96. +5 −5 test/fixtures.js
  97. +0 −1 test/fixtures/{.aegir.js → .aegir.cjs}
  98. +11 −0 test/fixtures/dependency-check/esm-fail/package.json
  99. +3 −0 test/fixtures/dependency-check/esm-fail/src/index.js
  100. +3 −0 test/fixtures/dependency-check/esm-fail/src/other.cjs
  101. +15 −0 test/fixtures/dependency-check/esm-pass/package.json
  102. +3 −0 test/fixtures/dependency-check/esm-pass/src/index.js
  103. +3 −0 test/fixtures/dependency-check/esm-pass/src/other.cjs
  104. +2 −2 test/fixtures/dependency-check/fail-prod/index.js
  105. +2 −2 test/fixtures/dependency-check/fail/index.js
  106. +2 −2 test/fixtures/dependency-check/pass-certain-files/derp/foo.js
  107. +1 −1 test/fixtures/dependency-check/pass-certain-files/index.js
  108. +2 −2 test/fixtures/dependency-check/pass/index.js
  109. +2 −2 test/fixtures/dependency-check/with-aegir-config/.aegir.js
  110. +2 −2 test/fixtures/dependency-check/with-aegir-config/index.js
  111. +1 −0 test/fixtures/dependency-check/with-aegir-config/package.json
  112. +1 −4 test/fixtures/js+ts/src/some.js
  113. +12 −0 test/fixtures/projects/a-ts-project/node_modules/a-cjs-dep/package.json
  114. +2 −0 test/fixtures/projects/a-ts-project/node_modules/a-cjs-dep/src/index.d.ts
  115. +4 −0 test/fixtures/projects/a-ts-project/node_modules/a-cjs-dep/src/index.js
  116. +18 −0 test/fixtures/projects/a-ts-project/node_modules/an-esm-dep/package.json
  117. +4 −0 test/fixtures/projects/a-ts-project/node_modules/an-esm-dep/src/index.cjs
  118. +2 −0 test/fixtures/projects/a-ts-project/node_modules/an-esm-dep/src/index.d.ts
  119. +4 −0 test/fixtures/projects/a-ts-project/node_modules/an-esm-dep/src/index.js
  120. +24 −0 test/fixtures/projects/a-ts-project/package.json
  121. +10 −0 test/fixtures/projects/a-ts-project/src/index.ts
  122. +9 −0 test/fixtures/projects/a-ts-project/test/index.spec.ts
  123. +10 −0 test/fixtures/projects/a-ts-project/tsconfig.json
  124. +12 −0 test/fixtures/projects/an-esm-project/node_modules/a-cjs-dep/package.json
  125. +2 −0 test/fixtures/projects/an-esm-project/node_modules/a-cjs-dep/src/index.d.ts
  126. +4 −0 test/fixtures/projects/an-esm-project/node_modules/a-cjs-dep/src/index.js
  127. +18 −0 test/fixtures/projects/an-esm-project/node_modules/an-esm-dep/package.json
  128. +4 −0 test/fixtures/projects/an-esm-project/node_modules/an-esm-dep/src/index.cjs
  129. +2 −0 test/fixtures/projects/an-esm-project/node_modules/an-esm-dep/src/index.d.ts
  130. +4 −0 test/fixtures/projects/an-esm-project/node_modules/an-esm-dep/src/index.js
  131. +18 −0 test/fixtures/projects/an-esm-project/package.json
  132. +10 −0 test/fixtures/projects/an-esm-project/src/index.js
  133. +9 −0 test/fixtures/projects/an-esm-project/test/esm-test.spec.js
  134. +3 −1 test/fixtures/test-dependant/monorepo/packages/submodule/package.json
  135. +0 −1 test/fixtures/test-dependant/monorepo/packages/submodule/test.js
  136. +3 −1 test/fixtures/test-dependant/project/package.json
  137. +0 −1 test/fixtures/test-dependant/project/test.js
  138. +1 −2 test/fixtures/tests/context-access.js
  139. +0 −1 test/fixtures/tests/unhandled-promise-rejection.js
  140. +24 −21 test/lint.js
  141. +9 −9 test/node.js
  142. +79 −0 test/test.js
  143. +14 −16 test/utils/echo-server.js
  144. +4 −4 test/utils/get-port.js
  145. +2 −2 tsconfig.json
  146. +15 −26 utils/chai.js
  147. +9 −13 utils/echo-server.js
  148. +3 −6 utils/fixtures.browser.js
  149. +5 −35 utils/fixtures.js
  150. +2 −7 utils/get-port.js
  151. +9 −0 utils/resolve.browser.js
  152. +56 −0 utils/resolve.js
4 changes: 2 additions & 2 deletions .aegir.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @type {import("./src/types").PartialOptions} */
module.exports = {
export default {
docs: {
entryPoint: 'utils'
}
}
}
82 changes: 4 additions & 78 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -4,82 +4,8 @@ updates:
directory: "/"
schedule:
interval: daily
time: "11:00"
time: "10:00"
open-pull-requests-limit: 10
reviewers:
- hugomrdias
labels:
- topic/dependencies
ignore:
- dependency-name: "@types/node"
versions:
- 15.0.0
- dependency-name: esbuild
versions:
- 0.10.0
- 0.10.1
- 0.11.0
- 0.11.10
- 0.11.11
- 0.11.12
- 0.11.13
- 0.11.15
- 0.11.2
- 0.11.3
- 0.11.5
- 0.11.6
- 0.11.9
- 0.9.0
- 0.9.1
- 0.9.3
- 0.9.4
- 0.9.6
- dependency-name: electron
versions:
- 12.0.0
- 12.0.1
- 12.0.2
- dependency-name: typescript
versions:
- 4.2.2
- 4.2.3
- dependency-name: sinon
versions:
- 10.0.0
- dependency-name: "@commitlint/load"
versions:
- 12.0.0
- dependency-name: "@commitlint/config-conventional"
versions:
- 12.0.0
- dependency-name: "@commitlint/travis-cli"
versions:
- 12.0.0
- dependency-name: "@commitlint/cli"
versions:
- 12.0.0
- dependency-name: "@commitlint/lint"
versions:
- 12.0.0
- dependency-name: "@commitlint/read"
versions:
- 12.0.0
- dependency-name: eslint-config-ipfs
versions:
- 2.0.0
- dependency-name: webpack-cli
versions:
- 4.4.0
- 4.5.0
- dependency-name: "@types/yargs"
versions:
- 16.0.0
- dependency-name: terser-webpack-plugin
versions:
- 4.2.3
- dependency-name: webpack-bundle-analyzer
versions:
- 4.4.0
- dependency-name: webpack-merge
versions:
- 5.7.3
commit-message:
prefix: "deps"
prefix-development: "deps(dev)"
11 changes: 11 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# File managed by web3-bot. DO NOT EDIT.
# See https://github.com/protocol/.github/ for details.

name: Automerge
on: [ pull_request ]

jobs:
automerge:
uses: protocol/.github/.github/workflows/automerge.yml@master
with:
job: 'automerge'
148 changes: 148 additions & 0 deletions .github/workflows/js-test-and-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
# File managed by web3-bot. DO NOT EDIT.
# See https://github.com/protocol/.github/ for details.

name: test & maybe release
on:
push:
branches:
- master # with #262 - ${{{ github.default_branch }}}
pull_request:
branches:
- master # with #262 - ${{{ github.default_branch }}}

jobs:

check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: lts/*
- uses: ipfs/aegir/actions/cache-node-modules@master
- run: npm run --if-present lint
- run: npm run --if-present dep-check

test-node:
needs: check
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
node: [16]
fail-fast: true
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- uses: ipfs/aegir/actions/cache-node-modules@master
- run: npm run --if-present test:node
- uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 # v3.1.0
with:
flags: node

test-chrome:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: lts/*
- uses: ipfs/aegir/actions/cache-node-modules@master
- run: npm run --if-present test:chrome
- uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 # v3.1.0
with:
flags: chrome

test-chrome-webworker:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: lts/*
- uses: ipfs/aegir/actions/cache-node-modules@master
- run: npm run --if-present test:chrome-webworker
- uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 # v3.1.0
with:
flags: chrome-webworker

test-firefox:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: lts/*
- uses: ipfs/aegir/actions/cache-node-modules@master
- run: npm run --if-present test:firefox
- uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 # v3.1.0
with:
flags: firefox

test-firefox-webworker:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: lts/*
- uses: ipfs/aegir/actions/cache-node-modules@master
- run: npm run --if-present test:firefox-webworker
- uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 # v3.1.0
with:
flags: firefox-webworker

test-electron-main:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: lts/*
- uses: ipfs/aegir/actions/cache-node-modules@master
- run: npx xvfb-maybe npm run --if-present test:electron-main
- uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 # v3.1.0
with:
flags: electron-main

test-electron-renderer:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: lts/*
- uses: ipfs/aegir/actions/cache-node-modules@master
- run: npx xvfb-maybe npm run --if-present test:electron-renderer
- uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 # v3.1.0
with:
flags: electron-renderer

release:
needs: [test-node, test-chrome, test-chrome-webworker, test-firefox, test-firefox-webworker, test-electron-main, test-electron-renderer]
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/master' # with #262 - 'refs/heads/${{{ github.default_branch }}}'
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: lts/*
- uses: ipfs/aegir/actions/cache-node-modules@master
- uses: ipfs/aegir/actions/docker-login@master
with:
docker-token: ${{ secrets.DOCKER_TOKEN }}
docker-username: ${{ secrets.DOCKER_USERNAME }}
- run: npm run --if-present release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
43 changes: 0 additions & 43 deletions .github/workflows/main.yml

This file was deleted.

26 changes: 26 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Close and mark stale issue

on:
schedule:
- cron: '0 0 * * *'

jobs:
stale:

runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write

steps:
- uses: actions/stale@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'Oops, seems like we needed more information for this issue, please comment with more details or this issue will be closed in 7 days.'
close-issue-message: 'This issue was closed because it is missing author input.'
stale-issue-label: 'kind/stale'
any-of-labels: 'need/author-input'
exempt-issue-labels: 'need/triage,need/community-input,need/maintainer-input,need/maintainers-input,need/analysis,status/blocked,status/in-progress,status/ready,status/deferred,status/inactive'
days-before-issue-stale: 6
days-before-issue-close: 7
enable-statistics: true
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package-lock.json
yarn.lock
node_modules
/node_modules
/actions/bundle-size/node_modules
/coverage
/dist
/docs
Loading