Repository navigation
feat!: use Fetch API for HTTP transport - #15
Draft
kahirokunn wants to merge 26 commits into
Draft
kahirokunn wants to merge 26 commits into
kahirokunn wants to merge 26 commits into
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This was referenced Oct 13, 2026
Signed-off-by: kahirokunn <okinakahiro@gmail.com>
…loudevents#651) Signed-off-by: kahirokunn <okinakahiro@gmail.com>
…ts#656) * chore: upgrade typescript to 4.9 and typedoc Signed-off-by: kahirokunn <okinakahiro@gmail.com> * chore: upgrade @types/node to match the supported Node.js versions Signed-off-by: kahirokunn <okinakahiro@gmail.com> --------- Signed-off-by: kahirokunn <okinakahiro@gmail.com>
kahirokunn
force-pushed
the
split/http-fetch
branch
from
October 17, 2026 15:38
da558bb to
1298a74
Compare
Signed-off-by: kahirokunn <okinakahiro@gmail.com>
kahirokunn
force-pushed
the
split/http-fetch
branch
2 times, most recently
from
October 18, 2026 12:57
446b6f0 to
77c8f40
Compare
Bumps and [form-data](https://github.com/form-data/form-data). These dependencies needed to be updated together. Updates `form-data` from 2.5.3 to 2.5.5 - [Release notes](https://github.com/form-data/form-data/releases) - [Changelog](https://github.com/form-data/form-data/blob/v2.5.5/CHANGELOG.md) - [Commits](form-data/form-data@v2.5.3...v2.5.5) Updates `form-data` from 4.0.2 to 4.0.4 - [Release notes](https://github.com/form-data/form-data/releases) - [Changelog](https://github.com/form-data/form-data/blob/v2.5.5/CHANGELOG.md) - [Commits](form-data/form-data@v2.5.3...v2.5.5) --- updated-dependencies: - dependency-name: form-data dependency-version: 2.5.5 dependency-type: indirect - dependency-name: form-data dependency-version: 4.0.4 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps and [js-yaml](https://github.com/nodeca/js-yaml). These dependencies needed to be updated together. Updates `js-yaml` from 3.14.1 to 3.14.2 - [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md) - [Commits](nodeca/js-yaml@3.14.1...3.14.2) Updates `js-yaml` from 4.1.0 to 4.1.1 - [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md) - [Commits](nodeca/js-yaml@3.14.1...3.14.2) --- updated-dependencies: - dependency-name: js-yaml dependency-version: 3.14.2 dependency-type: indirect - dependency-name: js-yaml dependency-version: 4.1.1 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
) Bumps [lodash-es](https://github.com/lodash/lodash) from 4.17.21 to 4.17.23. - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](lodash/lodash@4.17.21...4.17.23) --- updated-dependencies: - dependency-name: lodash-es dependency-version: 4.17.23 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.21 to 4.17.23. - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](lodash/lodash@4.17.21...4.17.23) --- updated-dependencies: - dependency-name: lodash dependency-version: 4.17.23 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [webpack](https://github.com/webpack/webpack) from 5.99.9 to 5.105.0. - [Release notes](https://github.com/webpack/webpack/releases) - [Changelog](https://github.com/webpack/webpack/blob/main/CHANGELOG.md) - [Commits](webpack/webpack@v5.99.9...v5.105.0) --- updated-dependencies: - dependency-name: webpack dependency-version: 5.105.0 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [qs](https://github.com/ljharb/qs) from 6.14.0 to 6.14.2. - [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md) - [Commits](ljharb/qs@v6.14.0...v6.14.2) --- updated-dependencies: - dependency-name: qs dependency-version: 6.14.2 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [tmp](https://github.com/raszi/node-tmp) from 0.2.3 to 0.2.4. - [Changelog](https://github.com/raszi/node-tmp/blob/master/CHANGELOG.md) - [Commits](raszi/node-tmp@v0.2.3...v0.2.4) --- updated-dependencies: - dependency-name: tmp dependency-version: 0.2.4 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
…loudevents#661) Bring the test and build tooling that the open Snyk PRs targeted up to date in one change against current main, and fix everything npm audit reports: 33 findings, 18 high, all in dev dependencies except ajv and uuid. - axios 1.x, superagent 10, mocha 12, @cucumber/cucumber 13, nyc 18 - TypeScript 5.9 with typedoc 0.28 and @types/node 22.20; uuid 11 ships type declarations that need TypeScript 5 - ajv ^8.18 and uuid ^11.1.1 at runtime; both are non-breaking, the SDK only calls uuid v4() - override fast-json-patch for ajv-cli, which has no fixed release - drop @types/uuid and @types/cucumber; both packages ship their own types - JSONParser.parse is typed as returning unknown, which is what it already returned; the class is not exported - the axios test helper serializes the object-valued extension header, since axios 1.x coerces every header value to a string - examples/typescript-ex: cloudevents ^10, gts 7 with an eslint flat config in place of tslint, TypeScript 5.9 Supersedes cloudevents#612, cloudevents#613, cloudevents#617, cloudevents#618, cloudevents#619, cloudevents#622, cloudevents#629, cloudevents#632, cloudevents#633, cloudevents#637, cloudevents#638, cloudevents#640, cloudevents#642 and the dependency bumps in cloudevents#645. Signed-off-by: Shiva <shiv@shiv.me>
…ents#662) The CloudEvent constructor, MQTT and Kafka structured mode already decode through base64AsBinary() into a Uint8Array; the HTTP structured path now does the same. The Kafka structured round-trip test is re-enabled. Also added myself to the contributors list. Fixes cloudevents#643 Supersedes cloudevents#644 Signed-off-by: Shiva <shiv@shiv.me> Co-authored-by: Sascha Bratton <sascha@queen.one>
…ers (cloudevents#666) * fix: serialize object-valued extension attributes in binary HTTP headers The current implementation copies binary object and values into the header map as-is. This would produce incorrectly encoded HTTP headers, and the current behaviour relies on object coercion in axios. Instead we are explicitly serializing incompatible types to String. The CloudEvents type system has no object type, so accepting objects as extension values is an SDK convenience rather than spec behavior. In the long run, we should pivot to a spec compliant option, and throw an error for this case, and instead as the client to correctly set headers. Split from cloudevents#646. Signed-off-by: Shiva <shiv@shiv.me> Co-authored-by: Kevin Mathew Sunny <tokevins@protonmail.com> * fix: enhance plain object detection for binary-mode serialization Signed-off-by: Shiva <shiv@shiv.me> * fix: rename extensionHeaderValue to stringifyExtensionValue and update documentation for clarity Signed-off-by: Shiva <shiv@shiv.me> --------- Signed-off-by: Shiva <shiv@shiv.me> Co-authored-by: Kevin Mathew Sunny <tokevins@protonmail.com>
Signed-off-by: kahirokunn <okinakahiro@gmail.com>
…ents#664) Fixes: cloudevents#566 Signed-off-by: Raphael Fakhri <153192858+RaphaelFakhri@users.noreply.github.com>
The cloudevents/spec repo renamed its default branch from master to main and moved the community/ directory to docs/, so the links to the community directory, SDK governance, maintainer guidelines and Code of Conduct all 404. Point them at the current locations and update the link text to the new directory name. Signed-off-by: Adam Boulware <adam@adamboulware.com>
…#668) The cloudevents/spec repository renamed its default branch from master to main and moved spec.md under cloudevents/. Update the code comment in CloudEvent validation that still pointed at the old, now 404, location. Signed-off-by: Adam Boulware <adam@adamboulware.com>
Signed-off-by: kahirokunn <okinakahiro@gmail.com>
Signed-off-by: kahirokunn <okinakahiro@gmail.com>
Signed-off-by: kahirokunn <okinakahiro@gmail.com>
Signed-off-by: kahirokunn <okinakahiro@gmail.com>
Signed-off-by: kahirokunn <okinakahiro@gmail.com>
Signed-off-by: kahirokunn <okinakahiro@gmail.com>
Signed-off-by: kahirokunn <okinakahiro@gmail.com>
Signed-off-by: kahirokunn <okinakahiro@gmail.com>
kahirokunn
force-pushed
the
split/http-fetch
branch
from
November 13, 2026 00:43
77c8f40 to
8dc7749
Compare
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
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.
Fixes: cloudevents#534
Proposed Changes
Use the Fetch API for the built-in HTTP transport.
Description
This removes the Node-only HTTP imports that cause browser bundling failures.
httpTransport()returns the native FetchResponseand the handled body. Non-2xx responses, aborts and network failures reject withHTTPTransportError. The transport also accepts Fetch options, response handlers and abort signals.See
API_TRANSITION_GUIDE.mdfor the breaking changes and migration examples.