Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v10.0.0 tracking #199

Closed
wants to merge 50 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
5e097bd
feat: define CID as interface
Gozala Jan 19, 2022
4918193
chore: add missing type params
Gozala Jan 19, 2022
0cca27f
chore: remove unecessary exports
Gozala Jan 19, 2022
6f5c30c
chore: add clarifying comments
Gozala Jan 19, 2022
1046c84
fix: type errors
Gozala Jan 19, 2022
dd10716
chore: cleanup block module
Gozala Jan 19, 2022
254d380
chore: remove uintented changes
Gozala Jan 19, 2022
7ca5e92
chore: rename Algorithm to Alg
Gozala Jan 19, 2022
6494d3d
chore: undo unintended change
Gozala Jan 19, 2022
bdfc544
chore: fix import
Gozala Jan 19, 2022
e0ced10
fix: revert CID class
Gozala Mar 30, 2022
319c243
fix: add test to improve coverage
Gozala Mar 30, 2022
099764b
fix: add missing files
Gozala Mar 31, 2022
fc03103
fix: type errors
Gozala Mar 31, 2022
a4c82f5
Apply suggestions from code review
Gozala Mar 31, 2022
852b851
retain CID type info in Block impl
Gozala Jun 10, 2022
b0ef3d5
fix: type errors
Gozala Jun 10, 2022
2b5f1cb
try to fix typecheck
Gozala Jun 14, 2022
211169e
feat: add link module & interface
Gozala Aug 26, 2022
d578b4a
fix: remaining failures
Gozala Aug 26, 2022
7968265
fix: type error
Gozala Aug 27, 2022
fedab6d
Update src/block.js
Gozala Aug 29, 2022
266eda3
Apply suggestions from code review
Gozala Aug 29, 2022
58c6346
fix: restore jsdoc descriptions
rvagg Sep 6, 2022
df174d5
feat: use aegir for build/testing/release
RangerMauve Aug 26, 2022
6a2bf90
Clean up README
RangerMauve Aug 30, 2022
8f6624a
fix: changes for new lint rules
RangerMauve Aug 30, 2022
c72c02a
fix: address JS & TS linting complaints
rvagg Sep 6, 2022
fe78727
fix: additional lint items from Link interface work
rvagg Sep 6, 2022
01e24ee
fix: only release on master
rvagg Sep 6, 2022
e7747c4
fix: test on all branches and pull requests
rvagg Sep 6, 2022
8680326
fix: add "browser" field, remove named local imports
rvagg Sep 7, 2022
de492ba
feat: add complete set of aegir-based scripts
rvagg Sep 7, 2022
d7d2ad5
fix: ts-use import path
rvagg Sep 7, 2022
564c5cb
fix: --no-cov for all but chrome main
rvagg Sep 7, 2022
2b46fa4
10.0.0-pre.1
rvagg Sep 7, 2022
995c6de
fix: properly export types, build more complete pack
rvagg Sep 7, 2022
75efba7
10.0.0-pre.2
rvagg Sep 7, 2022
746ac36
fix: run coverage only where it's supposed to
rvagg Sep 20, 2022
3c8c3f3
fix: use parent `tsc` in ts-use
rvagg Sep 20, 2022
ccbc078
feat: remove deprecated CID properties & methods
rvagg Sep 20, 2022
1037be9
fix: distribute types in dist/types/
rvagg Sep 20, 2022
4a251dd
10.0.0-pre.3
rvagg Sep 20, 2022
cc375cd
fix: use extensions for relative ts imports
rvagg Sep 21, 2022
9706c36
10.0.0-pre.4
rvagg Sep 21, 2022
b206c9b
fix: remove use of Object.defineProperties in CID class
achingbrain Sep 22, 2022
122d461
test: check for non-enumerability of asCID property
achingbrain Sep 23, 2022
48fbba0
chore: add test for structural copying (#206)
Gozala Oct 4, 2022
b1aaeac
fix: make CID#asCID a regular property
rvagg Oct 8, 2022
6bc85af
fix: remove "main"
rvagg Oct 8, 2022
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
13 changes: 0 additions & 13 deletions .eslintrc

This file was deleted.

23 changes: 9 additions & 14 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
version: 2
updates:
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'daily'
commit-message:
prefix: 'chore'
include: 'scope'
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'daily'
commit-message:
prefix: 'chore'
include: 'scope'
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
time: "10:00"
open-pull-requests-limit: 10
commit-message:
prefix: "deps"
prefix-development: "deps(dev)"
8 changes: 8 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Automerge
on: [ pull_request ]

jobs:
automerge:
uses: protocol/.github/.github/workflows/automerge.yml@master
with:
job: 'automerge'
139 changes: 139 additions & 0 deletions .github/workflows/js-test-and-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
name: test & maybe release
on: [push, pull_request]

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'
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 }}
61 changes: 0 additions & 61 deletions .github/workflows/test-and-release.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/typecheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ jobs:
- name: Typecheck
uses: gozala/typescript-error-reporter-action@v1.0.8
with:
project: test/tsconfig.json
project: tsconfig.json
8 changes: 3 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
.nyc_output
build
dist
coverage
.coverage
package-lock.json
node_modules
.DS_Store
yarn.lock
types
test/ts-use/tsconfig.tsbuildinfo
test/tsconfig.tsbuildinfo
types/tsconfig.tsbuildinfo
*.log
4 changes: 4 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
This project is dual licensed under MIT and Apache-2.0.

MIT: https://www.opensource.org/licenses/mit
Apache-2.0: https://www.apache.org/licenses/license-2.0
14 changes: 3 additions & 11 deletions LICENSE-APACHE
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
Copyright 2020 Protocol Labs
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
20 changes: 16 additions & 4 deletions LICENSE-MIT
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
Copyright 2020 Protocol Labs
The MIT License (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Loading