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

feat: implement client fallback mechanism #16

Merged
merged 31 commits into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
804978c
feat: implement a nodes list for clients
AmeanAsad Oct 11, 2023
f4d1844
feat: implement a storage interface using indexedDb
AmeanAsad Oct 11, 2023
894d16d
feat: implement a test suite for fallback
AmeanAsad Oct 11, 2023
7009c7a
fix: remove unused code
AmeanAsad Oct 11, 2023
3336a87
fix: eslint an jsdoc
AmeanAsad Oct 11, 2023
696cd8a
fix: formatting and consistency
AmeanAsad Oct 11, 2023
a3dec56
fix: indexDbCheck
AmeanAsad Oct 11, 2023
747d780
Merge branch 'main' into feat/fallback
AmeanAsad Oct 12, 2023
8dec1c7
chore: change storage implementation
AmeanAsad Oct 12, 2023
b0dc673
enhancement: simplify node loading
AmeanAsad Oct 12, 2023
78651fc
naive fallback implementation
AmeanAsad Oct 12, 2023
d15c0ad
modify fallback
AmeanAsad Oct 12, 2023
29e8da1
fix formatting and typos
AmeanAsad Oct 12, 2023
194ce70
typos
AmeanAsad Oct 12, 2023
1d97dc9
Update .eslintrc
AmeanAsad Oct 12, 2023
84a1b8e
enhancement: edit storage impl
AmeanAsad Oct 12, 2023
f688406
enhancement: deal with overlapping byte chunks
AmeanAsad Oct 12, 2023
5b7c215
feat: add fallback test suite
AmeanAsad Oct 14, 2023
6068a90
fix: tests running
AmeanAsad Oct 15, 2023
2c3cc79
cleanup content fetch with fallback
AmeanAsad Oct 16, 2023
4cf0c00
add initial origin fetch to fallback
AmeanAsad Oct 16, 2023
d81038f
formatting and file re-org
AmeanAsad Oct 16, 2023
a1ecd50
feat: merge main into fallback branch (#22)
AmeanAsad Oct 16, 2023
55d56d1
Merge branch 'main' into feat/fallback
AmeanAsad Oct 16, 2023
d2c5c37
load nodes on first success
AmeanAsad Oct 16, 2023
e0065d8
add fallback limit
AmeanAsad Oct 16, 2023
109019b
fix: fallback bug
AmeanAsad Oct 17, 2023
b84ce4a
put eslint settings in package.json
AmeanAsad Oct 17, 2023
7731fe8
add nodesListKey as static
AmeanAsad Oct 17, 2023
e0fcfd8
fix: resolve process in browser
AmeanAsad Oct 18, 2023
ac1b9f8
Merge branch 'main' into feat/fallback
AmeanAsad Oct 19, 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
14 changes: 14 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: if we're going to have this, we should remove the config from package.json: https://github.com/filecoin-saturn/js-client/pull/16/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519L43

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just added the config to the package.json. Didn't notice it was there in the first place, so I just removed the .eslintrc and ported over the updated config.

"plugins": [
"jsdoc",
"promise"
],
"extends": "ipfs",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": "latest"
},
"rules": {
"jsdoc/no-undefined-types": 1
},
}
AmeanAsad marked this conversation as resolved.
Show resolved Hide resolved
Loading
Loading