sdk-javascript
sdk-javascript copied to clipboard
JavaScript/TypeScript SDK for CloudEvents
**Describe the Bug** The types for return values from `Kafka.structured(cloudEventInstance)` seem to be incorrect. The returned object has the following structure if viewed using logs or a debugger: ```js {...
Snyk has created this PR to fix one or more vulnerable packages in the `npm` dependencies of this project.  #### Changes included in this PR - Changes to...
:robot: I have created a release \*beep\* \*boop\* --- ### [6.0.3](https://www.github.com/cloudevents/sdk-javascript/compare/v6.0.2...v6.0.3) (2022-09-02) ### Bug Fixes * improve validation on extension attribute ([#502](https://www.github.com/cloudevents/sdk-javascript/issues/502)) ([ea94a4d](https://www.github.com/cloudevents/sdk-javascript/commit/ea94a4d779d0744ef40abc81d08ab8b7e93e9133)) --- This PR was generated with [Release...
Bumps [terser](https://github.com/terser/terser) from 5.10.0 to 5.14.2. Changelog Sourced from terser's changelog. v5.14.2 Security fix for RegExps that should not be evaluated (regexp DDOS) Source maps improvements (#1211) Performance improvements in...
An event may have data that contains a BigInt. The builtin `JSON` parser for JavaScript does not handle the `BigInt` types. The introduced `json-bigint` dependency (34k) does. Fixes: https://github.com/cloudevents/sdk-javascript/issues/489 Signed-off-by:...
**Describe the Bug** When parsing JSON data, if a JSON field value is a number, and that number is really big, JavaScript loses precision. For example, the Twitter API exposes...
With the recent release of [5.3.0](https://github.com/cloudevents/sdk-javascript/releases/tag/v5.3.0) and its ability to format Kafka messages, we should create an example like we have for the [HTTP protocol](https://github.com/cloudevents/sdk-javascript/tree/main/examples/express-ex)
With the recent release of [5.3.0](https://github.com/cloudevents/sdk-javascript/releases/tag/v5.3.0) and its ability to format MQTT messages, we should create an example like we have for the [HTTP protocol](https://github.com/cloudevents/sdk-javascript/tree/main/examples/express-ex)
**Describe the Bug** Some HTTP requests may follow the CE traceparent extension. Currently, the default way of parsing this extension does not work as expected. Concretely, this extension / attributes...
**Is your feature request related to a problem? Please describe.** A Distributed Tracing Extension is part of [the specification](https://github.com/cloudevents/spec/blob/master/extensions/distributed-tracing.md). Javascript SDK should support it. **Describe the solution you would like...