Skip to content

support for publish v2 for larger publish payload size#271

Merged
mohitpubnub merged 13 commits into
masterfrom
CLEN-3231-publishV2
May 18, 2026
Merged

support for publish v2 for larger publish payload size#271
mohitpubnub merged 13 commits into
masterfrom
CLEN-3231-publishV2

Conversation

@mohitpubnub
Copy link
Copy Markdown
Contributor

@mohitpubnub mohitpubnub commented Feb 10, 2026

feat(publishV2): support for the publish v2 endpoint, allowing feature-enabled keysets to publish messages of size up to 2MB.

Added support for the publish v2 endpoint, allowing feature-enabled keysets to publish messages of size up to 2MB.

@pubnub-ops-terraform
Copy link
Copy Markdown

pubnub-ops-terraform commented Feb 10, 2026

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Mohit Tejani added 2 commits February 16, 2026 15:14
…s not needed

add headers in case of POST request when header is not for content header, add such header for Http request
Copy link
Copy Markdown
Contributor

@jakub-grzesiowski jakub-grzesiowski left a comment

Choose a reason for hiding this comment

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

One comment, other than that LGTM

// 155 bytes covers the fixed overhead from base URL components and
// middleware-injected query params: scheme, origin, path separators,
// uuid, pnsdk, requestid, instanceid, and timestamp.
int estimatedSize = 155;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is there a chance this could change in the future and should be dynamically calculated instead?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Due to design of a common API execution flow, In the Endpoint class only that endpoint related path and query segments added. The common query param values are being added in later stage of API execution.
If we try to get all those params here then It would be good amount of code duplication.
Yes, In future, the design can be better to have those values dynamically calculated.

Mohit Tejani added 2 commits February 24, 2026 00:04
new tests added for message size exceeding 2MiB verification at parameter validation level.
increase request timeout default value for non subscribe http request so that history api can have more time to download the content
@mohitpubnub mohitpubnub self-assigned this Feb 24, 2026
@mohitpubnub mohitpubnub added status: done This issue is considered resolved. priority: medium This PR should be reviewed after all high priority PRs. labels Feb 24, 2026
Copy link
Copy Markdown
Contributor

@jakub-grzesiowski jakub-grzesiowski left a comment

Choose a reason for hiding this comment

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

LGTM

@mohitpubnub
Copy link
Copy Markdown
Contributor Author

@pubnub-release-bot release as v8.2.0

pubnub-release-bot and others added 2 commits May 18, 2026 08:46
…ssage with custom type

Updated test to use random channel and message names for better uniqueness.
@mohitpubnub mohitpubnub merged commit 34efc65 into master May 18, 2026
11 of 17 checks passed
@mohitpubnub mohitpubnub deleted the CLEN-3231-publishV2 branch May 18, 2026 12:34
@pubnub-release-bot
Copy link
Copy Markdown
Contributor

🚀 Release successfully completed 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority: medium This PR should be reviewed after all high priority PRs. status: done This issue is considered resolved.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants