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

Initial Release #2

Merged
merged 80 commits into from
Dec 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
837dfe9
Rough Working Draft
jtsmedley Nov 28, 2023
b0e4508
Add Name Support and JSDocs
jtsmedley Nov 30, 2023
989b4e6
Docs Updates
jtsmedley Nov 30, 2023
fa1a7a3
Documentation Updates
jtsmedley Dec 1, 2023
1560e5d
Update Tests
jtsmedley Dec 1, 2023
ff847fc
Update nameManager.js
jtsmedley Dec 1, 2023
a9cdaec
Update nameManager.js
jtsmedley Dec 1, 2023
cdd0f98
Add Code Examples
jtsmedley Dec 3, 2023
9d7103c
Update readme.md
jtsmedley Dec 3, 2023
da9e831
Update Authentication
jtsmedley Dec 4, 2023
e4dcf26
Fixes and Tests
jtsmedley Dec 4, 2023
cbdb19d
Remove Copy from ObjectManager
jtsmedley Dec 4, 2023
8eb0f7e
Make Client Private
jtsmedley Dec 4, 2023
9cc25ec
Minor Docs
jtsmedley Dec 4, 2023
e2535f0
Update readme.md
jtsmedley Dec 4, 2023
888b62f
Tested and Fixed IPNS SDK
jtsmedley Dec 4, 2023
1d86ff7
Add options to import
jtsmedley Dec 4, 2023
17b6493
Update Testing Scripts
jtsmedley Dec 5, 2023
c471124
Add Test Workflow
jtsmedley Dec 5, 2023
850f4e8
Update test.yml
jtsmedley Dec 5, 2023
ee1dc8e
Update test.yml
jtsmedley Dec 5, 2023
83da672
Update test.yml
jtsmedley Dec 5, 2023
0eeb71c
Update test.yml
jtsmedley Dec 5, 2023
483d72e
Update test.yml
jtsmedley Dec 5, 2023
fa5c7e8
Remove CJS Compatibility
jtsmedley Dec 5, 2023
a60e34f
Update package-lock.json
jtsmedley Dec 5, 2023
7bfb5ae
Test Cleanup
jtsmedley Dec 5, 2023
06913ac
Create publish.yml
jtsmedley Dec 5, 2023
8fd2c29
Update publish.yml
jtsmedley Dec 5, 2023
aba9b34
Update Package Name
jtsmedley Dec 5, 2023
04d2b6c
Update bucketManager.js
jtsmedley Dec 5, 2023
d893086
Update nameManager.js
jtsmedley Dec 6, 2023
bf7bf5b
Add Types for Docs
jtsmedley Dec 8, 2023
e2e0a02
Examples
jtsmedley Dec 9, 2023
f8af990
Fix Test
jtsmedley Dec 9, 2023
77c1853
Fix One more Test
jtsmedley Dec 9, 2023
2f91c8d
Update readme.md
jtsmedley Dec 9, 2023
5673e8e
Default Endpoints Hidden from Params
jtsmedley Dec 9, 2023
dd2a7bd
Add Resolve Method to Name
jtsmedley Dec 10, 2023
a2bd15f
Fix Test
jtsmedley Dec 10, 2023
9d3b9cc
Fix Test
jtsmedley Dec 10, 2023
787b3f0
Add Gateway Support to SDK
jtsmedley Dec 10, 2023
17b93a1
Update test.yml
jtsmedley Dec 10, 2023
0c0c5ff
Minor Fixes for Docs
jtsmedley Dec 10, 2023
c4c33e5
Simplify Constructor
jtsmedley Dec 11, 2023
39aea8c
Testing & Privacy
jtsmedley Dec 11, 2023
35175dc
Update test.yml
jtsmedley Dec 11, 2023
2ed42e8
Update test.yml
jtsmedley Dec 11, 2023
0ce9ab6
Stash Copy Support
jtsmedley Dec 12, 2023
fbf61b2
Simple docs update
jtsmedley Dec 12, 2023
0cd8de4
Docs Updates
jtsmedley Dec 12, 2023
b663d18
Cleanup Packages
jtsmedley Dec 13, 2023
2fb8c0d
Review Updates
jtsmedley Dec 14, 2023
2753b50
Update Test and Repo Link
jtsmedley Dec 14, 2023
19b69b2
Wrap Tests for Better Deletion
jtsmedley Dec 14, 2023
e72447a
Minor Updates
jtsmedley Dec 17, 2023
cf09852
Add Pin Manager
jtsmedley Dec 17, 2023
bbd109d
Update objectManager.js
jtsmedley Dec 17, 2023
910e8f6
Download Support and Test Concurrency
jtsmedley Dec 18, 2023
dd1cee5
Add Object Download by Ref Test
jtsmedley Dec 18, 2023
c6ede7b
Fixup Docs
jtsmedley Dec 18, 2023
6e896cd
Add Tutorials
jtsmedley Dec 18, 2023
3b9ff31
Update pinManager.spec.js
jtsmedley Dec 18, 2023
cbf2f2e
Update Tests
jtsmedley Dec 19, 2023
42ac818
Update test.yml
jtsmedley Dec 19, 2023
f1c6d13
Cleanup for Replace Fix
jtsmedley Dec 19, 2023
aea5bb1
Pinning Test Fix
jtsmedley Dec 19, 2023
581f15d
Merge branch 'initial-draft-withCopy' into initial-draft-withPinManager
jtsmedley Dec 19, 2023
7055bf9
Update Test
jtsmedley Dec 19, 2023
615efc5
Update objectManager.spec.js
jtsmedley Dec 19, 2023
108c932
Fix Copy Object Test
jtsmedley Dec 19, 2023
8de88a5
Update readme.md
jtsmedley Dec 21, 2023
8ab75db
Add License and Update package.json
jtsmedley Dec 21, 2023
b855685
Pass Errors through API Handler
jtsmedley Dec 21, 2023
b87fbdb
Update LICENSE
acejam Dec 21, 2023
f28f080
Update test.yml
jtsmedley Dec 21, 2023
eb6bc19
Update Action to Deploy Documentation on Publish to Master
jtsmedley Dec 21, 2023
1ad23c9
Cleanup Tests
jtsmedley Dec 21, 2023
f45d906
Update test.yml
jtsmedley Dec 21, 2023
dfb884c
Fix Tutorials
jtsmedley Dec 21, 2023
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
24 changes: 24 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build Documentation and Deploy to GitHub Pages
on:
push:
branches:
- master
permissions:
contents: write
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3

- name: Install and Build 🔧
run: |
npm ci
npm run doc

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: documentation
19 changes: 19 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Publish to NPM
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Publish package on NPM 📦
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build SDK and Test

on: [push]

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
- run: npm ci
- run: node --test --test-concurrency 1
env:
TEST_KEY: ${{ secrets.TEST_S3_KEY }}
TEST_SECRET: ${{ secrets.TEST_S3_SECRET }}
TEST_IPFS_GATEWAY: ${{ vars.TEST_IPFS_GATEWAY }}
TEST_IPNS_PRIVATE_KEY: ${{ secrets.TEST_IPNS_PRIVATE_KEY }}
TEST_NAME_CID: ${{ vars.TEST_NAME_CID }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dist
node_modules
documentation
.env
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Filebase, Inc.

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 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.
35 changes: 35 additions & 0 deletions jsdoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"source": {
"include": ["src"],
"includePattern": ".js$",
"excludePattern": "(node_modules/|docs)"
},
"plugins": ["plugins/markdown", "plugins/summarize"],
"templates": {
"referenceTitle": "Filebase SDK",
"cleverLinks": true
},
"opts": {
"template": "node_modules/clean-jsdoc-theme",
"recurse": true,
"tutorials": "./tutorials",
"destination": "./documentation/",
"readme": "./readme.md",
"theme_opts": {
"title": "Filebase SDK",
"homepageTitle": "Filebase SDK",
"favicon": "https://console.filebase.com/favicon.ico",
"default_theme": "fallback-dark",
"sort": false,
"menu": [{
"title": "Github",
"link": "https://github.com/filebase/filebase-sdk",
"target": "_blank"
},{
"title": "npm",
"link": "https://www.npmjs.com/package/@filebase/sdk",
"target": "_blank"
}]
}
}
}
Loading