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

Implementation Review PR #3

Closed
wants to merge 44 commits into from
Closed
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
92936f5
chore: add src
hugomrdias Feb 4, 2022
ad97751
chore: readme
hugomrdias Feb 4, 2022
ee1f8a0
chore: spec draft
hackmd-deploy Feb 4, 2022
b5b64a7
feat: add common and service packages
hugomrdias Feb 18, 2022
a502c14
feat: keypair export/import and utils clean up
hugomrdias Feb 23, 2022
34e03d8
feat: new caps validation
hugomrdias Feb 23, 2022
d41a0b0
feat: repo structure and tests
hugomrdias Mar 2, 2022
9669d3b
chore: readme pnpm
hugomrdias Mar 2, 2022
5d2dfa5
feat: parse did and isUcan methods
hugomrdias Mar 3, 2022
ea47bc9
feat: service validation
hugomrdias Mar 3, 2022
84461d4
feat: add cli
hugomrdias Mar 4, 2022
e5be57a
chore: types
hugomrdias Mar 4, 2022
91fdeeb
feat: improve validateFromCaps
hugomrdias Mar 4, 2022
35bb5dc
feat: cli issue ucan with proofs
hugomrdias Mar 4, 2022
f4e872b
feat: cli validate ucan
hugomrdias Mar 4, 2022
3677eca
feat: refresh ucan and issue with 2 week ttl
hugomrdias Mar 4, 2022
7d7c14c
chore: tests and ci (#4)
hugomrdias Mar 7, 2022
7f7a9fb
chore: add release type
hugomrdias Mar 7, 2022
2acb702
chore: ignore win test
hugomrdias Mar 7, 2022
f1f433f
fix: make multihash optional
hugomrdias Mar 7, 2022
8a7d01b
docs: fill in README and update doc comments (#1)
yusefnapora Mar 8, 2022
1fc5eb4
chore(docs): add cli examples to README (#8)
yusefnapora Mar 9, 2022
0670b7d
chore: update docs to say feature is in beta (#7)
dchoi27 Mar 9, 2022
6cd372e
feat: support node 14 (#18)
hugomrdias Mar 10, 2022
4db034e
chore: fix ci
hugomrdias Mar 10, 2022
3e59de6
fix: update spec and readme regarding delegation of storage sub-paths…
adamalton Mar 10, 2022
ba0dcc6
chore(main): release 1.0.0 (#6)
github-actions[bot] Mar 10, 2022
673abb6
chore: remove md from prettier
hugomrdias Mar 10, 2022
eb57331
chore: fix ci release
hugomrdias Mar 10, 2022
62672b3
fix: docs, js comments and minor improvements (#5)
flea89 Mar 14, 2022
73dfbc3
feat: export ucan-chain
hugomrdias Mar 28, 2022
a3678eb
chore(main): release 1.1.0 (#19)
github-actions[bot] Mar 28, 2022
b07a335
fix: add github repo to package.json
hugomrdias Mar 28, 2022
dba531f
chore(main): release 1.1.1 (#20)
github-actions[bot] Mar 28, 2022
a4b1b8c
docs: typo
vasco-santos Mar 29, 2022
34e20bc
fix: update readme
hugomrdias Mar 29, 2022
87c797f
chore(main): release 1.1.2 (#21)
github-actions[bot] Mar 29, 2022
5a91d1a
fix: add registry to ci
hugomrdias Mar 29, 2022
d8cfd1e
chore(main): release 1.1.3 (#23)
github-actions[bot] Mar 29, 2022
7f969db
chore: remove upload/IMPORT from readme (#26)
yusefnapora Apr 26, 2022
3dbf983
feat: expose ucan and fix types
hugomrdias Apr 28, 2022
af63457
chore(main): release 1.2.0 (#27)
github-actions[bot] Apr 28, 2022
e7e84f0
feat: add token issuer to validateFromCaps result (#31)
Gozala Jul 28, 2022
6ca5257
chore(main): release 1.3.0 (#32)
github-actions[bot] Jul 28, 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
26 changes: 26 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build and Deploy
on: [push]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: pnpm/[email protected]
with:
version: 6.32.x
- uses: actions/setup-node@v2
with:
node-version: 16
cache: 'pnpm'
- run: pnpm install
- name: Lint 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
run: pnpm run lint

- name: Docs 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
run: pnpm run docs

- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: docs # The folder the action should deploy.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ coverage

# misc
.DS_Store
dist
docs

# debug
npm-debug.log*
Expand Down
87 changes: 72 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,84 @@
{
"name": "ucan.storage",
"name": "ucan-storage",
"version": "1.0.0",
"main": "src/index.js",
"types": "dist/src/index.d.ts",
"typedocMain": "dist/src/index.js",
"type": "module",
"license": "MIT",
"devDependencies": {
"eslint-config-prettier": "^8.3.0",
"typescript": "^4.5.5",
"eslint": "^8.7.0",
"eslint-config-ipfs": "^2.1.0",
"ucans": "^0.9.0-alpha3"
"bin": {
"ucan-storage": "./src/cli.js"
},
"exports": {
".": "./src/index.js",
"./package.json": "./package.json",
"./keypair": "./src/keypair.js",
"./types": "./src/types.ts",
"./did": "./src/did.js",
"./service": "./src/service.js",
"./ucan-storage": "./src/ucan-storage.js"
},
"typesVersions": {
"*": {
"*": [
"dist/src/*"
],
"types": [
"src/types.ts"
]
}
},
"scripts": {
"format": "prettier --write '**/*.{js,ts,md,yml,json}' --ignore-path .gitignore",
"format:check": "prettier --check '**/*.{js,ts,md,yml,json}' --ignore-path .gitignore",
"clean": "rm -rf node_modules yarn.lock dist pnpm-lock.yaml",
"docs": "pnpm run lint && typedoc src/ucan-storage.js src/keypair.js --out docs",
"lint": "eslint '**/*.{js,ts,.d.ts}' && pnpm run format:check && tsc",
"test": "uvu tests",
"test:watch": "watchlist src tests -- yarn test"
},
"files": [
"src",
"dist/src/*.d.ts",
"dist/src/*.d.ts.map"
],
"dependencies": {
"@noble/ed25519": "^1.5.2",
"uint8arrays": "^3.0.0"
"base-x": "^4.0.0",
"sade": "^1.8.1"
},
"devDependencies": {
"@types/node": "^17.0.21",
"hd-scripts": "^1.1.0",
"lint-staged": "^12.3.4",
"prettier": "2.5.1",
"simple-git-hooks": "^2.7.0",
"typedoc": "^0.22.11",
"typedoc-plugin-missing-exports": "^0.22.6",
"typescript": "4.5.5",
"uvu": "^0.5.3",
"watchlist": "^0.3.1"
},
"engines": {
"node": ">= 16.0.0"
},
"simple-git-hooks": {
"pre-commit": "npx lint-staged"
},
"lint-staged": {
"*.{js,ts,d.ts,md,yml,json}": "prettier --write",
"*.js": "eslint --fix"
},
"eslintConfig": {
"extends": [
"ipfs",
"prettier"
],
"parserOptions": {
"sourceType": "module"
}
}
"./node_modules/hd-scripts/eslint/index.js"
]
},
"prettier": "./node_modules/hd-scripts/prettier.config.js",
"eslintIgnore": [
"node_modules",
"coverage",
"dist",
"docs"
]
}
Loading