-
Notifications
You must be signed in to change notification settings - Fork 52
feat: implement lp-v3 error codes with backwards compatibility #2501
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
Merged
Merged
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
7455ad8
feat: implement LightPush v3 protocol support
adklempner bab89ea
feat: handle both light push protocols
adklempner 038f930
fix: unsubscribe test
adklempner 4574613
feat: consolidate lpv2/v3 types
adklempner fec84c3
feat(tests): bump nwaku to 0.36.0
adklempner 5f88887
fix: remove extraneous exports
adklempner 6f309d9
fix: add delay to tests
adklempner f5cedc9
fix: remove protocol result types
adklempner 20a7e3b
feat: consolidate light push codec branching
adklempner 4979bf3
fix: revert nwaku image
adklempner 7b84615
fix: remove multicodec
adklempner 169fbf0
fix: remove protocolversion
adklempner d31c974
feat: simplify v2/v3 branching logic to use two stream managers
adklempner e296ac9
fix: remove unused utils
adklempner 988bb4c
fix: remove comments
adklempner f9eaa2a
fix: revert store test
adklempner 9ae3589
fix: cleanup lightpush sdk
adklempner df8cf88
fix: remove unused util
adklempner 4f091e0
fix: remove unused exports
adklempner 801b899
fix: rename file from public to protocol_handler
adklempner aa68533
fix: use proper type for sdk result
adklempner 11879ba
fix: update return types in filter
adklempner dd27869
fix: rebase against latest master
adklempner e2ddac8
fix: use both lightpush codecs when waiting for peer
adklempner 93ef27b
fix: handle both lp codecs
adklempner a536f61
fix: remove unused code
adklempner 3735ec1
feat: use array for multicodec fields
adklempner 406563a
fix: add timestamp if missing in v3 rpc
adklempner 7896ba4
fix: resolve on either lp codec when waiting for peer
adklempner 74682b7
fix: remove unused util
adklempner 6c58606
fix: remove unnecessary abstraction
adklempner 857e12c
feat: accept nwaku docker image as arg, test lp backwards compat
adklempner 3ecaa13
fix: revert filter error
adklempner cc7d648
feat: add legacy flag to enable lightpushv2 only
adklempner c0ee9ec
Revert "feat: accept nwaku docker image as arg, test lp backwards com…
adklempner 9915ab6
fix: remove unused test
adklempner 8d536d4
feat: improve lp3 (#2597)
weboko 90bdf0d
merge with master
weboko 24fe74c
fix v2 v3 condition
weboko adf8408
generate message package earlier
weboko 5dd9002
add log, fix condition
weboko ca1ff37
Merge branch 'master' into feat/lp-v3-sdk
weboko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| export const CODECS = { | ||
| v2: "/vac/waku/lightpush/2.0.0-beta1", | ||
| v3: "/vac/waku/lightpush/3.0.0" | ||
| } as const; | ||
|
|
||
| export const LightPushCodecV2 = CODECS.v2; | ||
| export const LightPushCodec = CODECS.v3; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| export { LightPushCore, LightPushCodec, PushResponse } from "./light_push.js"; | ||
| export { LightPushCore } from "./light_push.js"; | ||
| export { LightPushCodec, LightPushCodecV2 } from "./constants.js"; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.