-
Notifications
You must be signed in to change notification settings - Fork 55
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
Remove callbacks part 1 #1541
Merged
Merged
Remove callbacks part 1 #1541
Conversation
This file contains 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
github-actions
bot
temporarily deployed
to
staging/pull/1541/features
December 11, 2023 14:10
Inactive
github-actions
bot
temporarily deployed
to
staging/pull/1541/bundle-report
December 11, 2023 14:11
Inactive
github-actions
bot
temporarily deployed
to
staging/pull/1541/typedoc
December 11, 2023 14:11
Inactive
lawrence-forooghian
force-pushed
the
remove-callbacks-part-1
branch
from
December 11, 2023 18:35
cb4184d
to
28f4ae5
Compare
github-actions
bot
temporarily deployed
to
staging/pull/1541/features
December 11, 2023 18:35
Inactive
github-actions
bot
temporarily deployed
to
staging/pull/1541/bundle-report
December 11, 2023 18:36
Inactive
github-actions
bot
temporarily deployed
to
staging/pull/1541/typedoc
December 11, 2023 18:36
Inactive
lawrence-forooghian
force-pushed
the
remove-callbacks-part-1
branch
from
December 11, 2023 19:56
28f4ae5
to
17b6103
Compare
github-actions
bot
temporarily deployed
to
staging/pull/1541/features
December 11, 2023 19:57
Inactive
github-actions
bot
temporarily deployed
to
staging/pull/1541/bundle-report
December 11, 2023 19:57
Inactive
github-actions
bot
temporarily deployed
to
staging/pull/1541/typedoc
December 11, 2023 19:57
Inactive
lawrence-forooghian
force-pushed
the
remove-callbacks-part-1
branch
from
December 12, 2023 12:51
17b6103
to
6c0a302
Compare
github-actions
bot
temporarily deployed
to
staging/pull/1541/features
December 12, 2023 12:51
Inactive
github-actions
bot
temporarily deployed
to
staging/pull/1541/bundle-report
December 12, 2023 12:52
Inactive
github-actions
bot
temporarily deployed
to
staging/pull/1541/typedoc
December 12, 2023 12:52
Inactive
lawrence-forooghian
force-pushed
the
remove-callbacks-part-1
branch
from
December 12, 2023 13:56
6c0a302
to
9b895a4
Compare
github-actions
bot
temporarily deployed
to
staging/pull/1541/features
December 12, 2023 13:56
Inactive
github-actions
bot
temporarily deployed
to
staging/pull/1541/bundle-report
December 12, 2023 13:57
Inactive
github-actions
bot
temporarily deployed
to
staging/pull/1541/typedoc
December 12, 2023 13:57
Inactive
lawrence-forooghian
force-pushed
the
remove-callbacks-part-1
branch
from
December 12, 2023 13:58
9b895a4
to
92c15f1
Compare
github-actions
bot
temporarily deployed
to
staging/pull/1541/features
December 12, 2023 13:59
Inactive
github-actions
bot
temporarily deployed
to
staging/pull/1541/bundle-report
December 12, 2023 13:59
Inactive
github-actions
bot
temporarily deployed
to
staging/pull/1541/typedoc
December 12, 2023 13:59
Inactive
lawrence-forooghian
force-pushed
the
remove-callbacks-part-1
branch
from
December 15, 2023 02:21
92c15f1
to
a441596
Compare
lawrence-forooghian
changed the base branch from
integration/v2
to
2023-12-11-merge-main-into-v2
December 15, 2023 02:21
github-actions
bot
temporarily deployed
to
staging/pull/1541/features
December 15, 2023 02:21
Inactive
github-actions
bot
temporarily deployed
to
staging/pull/1541/bundle-report
December 15, 2023 02:22
Inactive
github-actions
bot
temporarily deployed
to
staging/pull/1541/typedoc
December 15, 2023 02:22
Inactive
lawrence-forooghian
force-pushed
the
remove-callbacks-part-1
branch
from
December 15, 2023 02:35
a441596
to
0ca6d7e
Compare
github-actions
bot
temporarily deployed
to
staging/pull/1541/features
December 15, 2023 02:35
Inactive
The `throwError` parameter here is to handle the fact that, when using an HttpPaginatedResponse, PaginatedResource wishes to have access to both the error that comes from the HTTP client _and_ the response body, before deciding how to handle an error (see the `returnErrOnly` function). I’ve converted Resource.do to return a promise here, but I’ll do the full conversion of that method in a separate commit for readability’s sake.
Resolves #1528.
The changes to the `connectionQueuing` test are because the test assumed that the message would get marked as `sendAttempted` synchronously as soon as `publish` was called. This relied on the fact that when no encryption is required, the Message `encode` function called its callback synchronously. However, this was an implementation detail (this function has an asynchronous signature), and one which is no longer true now that promises are used.
Missed this in a0105eb.
I’ve removed the redundant upfront generation of the IV and just kept the generation in `getIv`; this makes it consistent with the web crypto code.
lawrence-forooghian
force-pushed
the
remove-callbacks-part-1
branch
from
January 30, 2024 18:02
14e1e5b
to
b429c13
Compare
VeskeR
approved these changes
Jan 30, 2024
This was referenced Jan 31, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This removes the internal use of callbacks in the codebase, except for the HTTP clients and the realtime functionality. I'll do these in subsequent PRs. See commit messages for more details.
Resolves #1527, resolves #1531, resolves #1532, resolves #1530, resolves #1528.
Jira links: