Commit Graph

196 Commits

Author SHA1 Message Date
Doug Davis bb797ffa79 add some missing governance docs
Signed-off-by: Doug Davis <dug@microsoft.com>
2023-09-11 19:48:36 +00:00
dependabot[bot] 4f265cd142
Bump webpack in /example-projects/reqwest-wasm-example (#208)
Bumps [webpack](https://github.com/webpack/webpack) from 5.75.0 to 5.76.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.75.0...v5.76.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-22 22:09:19 +01:00
Kirin Xiao 77232941e4 Apply suggestions from code review
Signed-off-by: Kirin Xiao <xiaoqilin82@gmail.com>

Co-authored-by: Jim Crossley <jim@crossleys.org>
2023-03-08 08:33:12 -05:00
xiaoqilin 1e147eb560 fix dev-dependencies, bump axum version
Signed-off-by: xiaoqilin <xiaoqilin@bytedance.com>
2023-03-08 08:33:12 -05:00
Lazzaretti 4a86973f22
Prep for 0.7.0 (#203)
Signed-off-by: Fabrizio Lazzaretti <fabrizio@lazzaretti.me>
2023-02-24 12:38:50 +01:00
Mark Mandel 38469b245d Batch Event implementation for reqwest bindings
Added `events(Vec<Event>)` to `RequestBuilderExt` to provide a batched
set of Events to send to an HTTP endpoint, and
`into_events() -> Result<Vec<Event>>` to ResponseExt to parse a batched
Event response.

I deliberately kept things simple, as I thought this would be a good
place to start with Batch support throughout the SDK, and the
implementation was simple enough, that there didn't seem to be much
opportunity for reusable libraries across the SDK.
That could be changed as more Batch support is provided across the SDK,
and opportunities for code reuse present themselves.

Signed-off-by: Mark Mandel <markmandel@google.com>
2023-01-03 17:43:08 -05:00
Jim Crossley 20fd82a651
Merge pull request #201 from cloudevents/dependabot/npm_and_yarn/example-projects/reqwest-wasm-example/json5-and-webpack-and-html-webpack-plugin-2.2.3
Bump json5, webpack and html-webpack-plugin in /example-projects/reqwest-wasm-example
2023-01-03 13:30:30 -05:00
dependabot[bot] 4acd162cb7
Bump json5, webpack and html-webpack-plugin
Bumps [json5](https://github.com/json5/json5) to 2.2.3 and updates ancestor dependencies [json5](https://github.com/json5/json5), [webpack](https://github.com/webpack/webpack) and [html-webpack-plugin](https://github.com/jantimon/html-webpack-plugin). These dependencies need to be updated together.


Updates `json5` from 2.2.0 to 2.2.3
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v2.2.0...v2.2.3)

Updates `webpack` from 4.46.0 to 5.75.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v4.46.0...v5.75.0)

Updates `html-webpack-plugin` from 4.5.2 to 5.5.0
- [Release notes](https://github.com/jantimon/html-webpack-plugin/releases)
- [Changelog](https://github.com/jantimon/html-webpack-plugin/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jantimon/html-webpack-plugin/compare/v4.5.2...v5.5.0)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
- dependency-name: webpack
  dependency-type: direct:development
- dependency-name: html-webpack-plugin
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-02 12:02:21 +00:00
dependabot[bot] c8454bce97
Bump express in /example-projects/reqwest-wasm-example (#199)
Bumps [express](https://github.com/expressjs/express) from 4.17.1 to 4.18.2.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.17.1...4.18.2)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-07 13:55:27 -05:00
dependabot[bot] eee1f82f8d
Bump minimatch in /example-projects/reqwest-wasm-example (#198)
Bumps [minimatch](https://github.com/isaacs/minimatch) from 3.0.4 to 3.1.2.
- [Release notes](https://github.com/isaacs/minimatch/releases)
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.0.4...v3.1.2)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-07 13:55:10 -05:00
dependabot[bot] 6148f2efd3
Bump qs and express in /example-projects/reqwest-wasm-example (#197)
Bumps [qs](https://github.com/ljharb/qs) and [express](https://github.com/expressjs/express). These dependencies needed to be updated together.

Updates `qs` from 6.7.0 to 6.11.0
- [Release notes](https://github.com/ljharb/qs/releases)
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ljharb/qs/compare/v6.7.0...v6.11.0)

Updates `express` from 4.17.1 to 4.18.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.17.1...4.18.2)

---
updated-dependencies:
- dependency-name: qs
  dependency-type: indirect
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-07 13:54:51 -05:00
dependabot[bot] bc1fc8e79c
Bump decode-uri-component in /example-projects/reqwest-wasm-example (#196)
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2.
- [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases)
- [Commits](https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.0...v0.2.2)

---
updated-dependencies:
- dependency-name: decode-uri-component
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-07 13:29:25 -05:00
dependabot[bot] ee987c9955
Bump loader-utils in /example-projects/reqwest-wasm-example (#195)
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 1.4.1 to 1.4.2.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v1.4.2/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v1.4.1...v1.4.2)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-23 17:47:18 +01:00
dependabot[bot] e3a86d642a
Bump loader-utils in /example-projects/reqwest-wasm-example (#194)
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v1.4.1/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v1.4.0...v1.4.1)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-08 11:21:45 -05:00
Jim Crossley e28424e198
Prep for 0.6.0 release (#193)
Signed-off-by: Jim Crossley <jim@crossleys.org>
2022-11-07 18:33:03 -05:00
Jim Crossley c6a84b3c5a Address clippy warnings
Signed-off-by: Jim Crossley <jim@crossleys.org>
2022-11-04 10:34:13 -04:00
Jim Crossley 7c2ff41960
Bump to latest rdkafka 0.29 (#192)
* Bump to latest rdkafka 0.29

* Updated example

Apps will be required to bump their dep to 0.29, too.

* Using the new iter() fn for message headers
2022-11-04 10:32:45 -04:00
Jim Crossley c380078bf4
Fix off-by-one bug in Event serializer (#191)
Fixes #189

Added breaking tests for both V03 and V10 to confirm bug and changed
the logic slightly to clarify intent

Signed-off-by: Jim Crossley <jim@crossleys.org>
2022-09-26 12:14:57 -04:00
minghuaw b8487af97c
Show feature gated bindings in documentaion (#187)
* show feature gated bindings in docsrs

* moved crate root docsrs feature

* fixed cargo fmt check

* removed files that should go with another PR

Signed-off-by: minghuaw <michael.wu1107@gmail.com>
2022-08-24 17:30:43 -04:00
dependabot[bot] e2066527e6 Bump terser in /example-projects/reqwest-wasm-example
Bumps [terser](https://github.com/terser/terser) from 4.8.0 to 4.8.1.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

---
updated-dependencies:
- dependency-name: terser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-22 16:04:55 -04:00
Jakub Noga 8dde763c06
New feature: NATS bindings (#185)
* feat: add NATS protocol bindings

Signed-off-by: Jakub Noga <jakub.noga@softchameleon.io>

* chore: run cargo fix & fmt

Signed-off-by: Jakub Noga <jakub.noga@softchameleon.io>

* fix: issues with docs

Signed-off-by: Jakub Noga <jakub.noga@softchameleon.io>

* Apply suggestions from code review

Co-authored-by: Lazzaretti <fabrizio@lazzaretti.me>

Signed-off-by: Jakub Noga <jakub.noga@softchameleon.io>

* feat: apply suggestions from code review

Signed-off-by: Jakub Noga <jakub.noga@softchameleon.io>

* feat: add test for v0.3 deserialization

Signed-off-by: Jakub Noga <jakub.noga@softchameleon.io>

* chore: run cargo fmt

Signed-off-by: Fabrizio Lazzaretti <fabrizio@lazzaretti.me>

Co-authored-by: Jakub Noga <jakub.noga@softchameleon.io>
Co-authored-by: Lazzaretti <fabrizio@lazzaretti.me>
2022-07-12 21:51:04 +02:00
Lazzaretti 6848cb15bd
Merge pull request #177 from cloudevents/dependabot/npm_and_yarn/example-projects/reqwest-wasm-example/minimist-1.2.6
Bump minimist from 1.2.5 to 1.2.6 in /example-projects/reqwest-wasm-example
2022-07-09 13:37:40 +02:00
dependabot[bot] cb9d9ddf16
Bump minimist in /example-projects/reqwest-wasm-example
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-09 11:22:30 +00:00
Jim Crossley 9882d5c521 Fix reqwest build by enabling js feature
Per https://docs.rs/getrandom/latest/getrandom/#webassembly-support

Signed-off-by: Jim Crossley <jim@crossleys.org>
2022-06-14 10:52:44 -04:00
Jim Crossley 8b77dd8c33 Bump uuid dep to version 1
Fixes #183

Signed-off-by: Jim Crossley <jim@crossleys.org>
2022-06-14 10:52:44 -04:00
Jim Crossley 6653e46059 Fix automated tests master->main
Signed-off-by: Jim Crossley <jim@crossleys.org>
2022-06-13 16:02:26 -04:00
dependabot[bot] 87c98aa26e
Bump eventsource in /example-projects/reqwest-wasm-example (#181)
Bumps [eventsource](https://github.com/EventSource/eventsource) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/EventSource/eventsource/releases)
- [Changelog](https://github.com/EventSource/eventsource/blob/master/HISTORY.md)
- [Commits](https://github.com/EventSource/eventsource/compare/v1.1.0...v1.1.1)

---
updated-dependencies:
- dependency-name: eventsource
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-02 09:54:00 -04:00
Yoshiki Kudo 24aec9320c
Support for Axum v0.5.x (#179)
* Support for Axum x0.5.x

* Upgrade axum v0.5 for example-project

Signed-off-by: Yoshiki Kudo <actionstar619@yahoo.co.jp>
2022-05-03 13:47:04 -04:00
dependabot[bot] 515fa81a77
Bump async from 2.6.3 to 2.6.4 in /example-projects/reqwest-wasm-example (#178)
Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md)
- [Commits](https://github.com/caolan/async/compare/v2.6.3...v2.6.4)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-02 10:25:42 -04:00
Jim Crossley 2c5933bad4
Prep for 0.5.0 release (#176)
Signed-off-by: Jim Crossley <jim@crossleys.org>
2022-03-16 23:45:46 -04:00
dependabot[bot] 1f29640b50
Bump url-parse in /example-projects/reqwest-wasm-example (#175)
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.7 to 1.5.10.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.7...1.5.10)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-16 17:56:24 -04:00
Jim Crossley 5a9f64868d
Update to actix-web 4 (#167)
* Compatiblity with actix-web 4

Fixes #114

Main challenge here was no longer being able to to construct
web::Payload instances from dev::Payload instances. Instead, we now
invoke the web::Payload FromRequest impl directly.

Also adapted to the latest upstream test and body redesign.

Macros are featurized now so enabled default features for the doc
tests to pass.

Signed-off-by: Jim Crossley <jim@crossleys.org>
2022-02-28 13:02:00 -05:00
dependabot[bot] 6af7d1e8ec
Bump nth-check in /example-projects/reqwest-wasm-example (#174)
Bumps [nth-check](https://github.com/fb55/nth-check) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/fb55/nth-check/releases)
- [Commits](https://github.com/fb55/nth-check/compare/v2.0.0...v2.0.1)

---
updated-dependencies:
- dependency-name: nth-check
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-28 12:23:33 -05:00
dependabot[bot] 32b3134981
Bump nanoid in /example-projects/reqwest-wasm-example (#173)
Bumps [nanoid](https://github.com/ai/nanoid) from 3.1.23 to 3.3.1.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/3.1.23...3.3.1)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-28 12:23:08 -05:00
dependabot[bot] 785786f251
Bump follow-redirects in /example-projects/reqwest-wasm-example (#171)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.1 to 1.14.8.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.1...v1.14.8)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-28 12:19:06 -05:00
dependabot[bot] 2742de5307
Bump url-parse in /example-projects/reqwest-wasm-example (#172)
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.1 to 1.5.7.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.1...1.5.7)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-21 09:11:47 -05:00
Roman Kudryashov 2b66c959d1
Bump rdkafka version (#170)
Signed-off-by: Roman Kudryashov <rskudryashov@gmail.com>
2022-02-05 12:07:41 -05:00
Andrew ae83a69f7f
Axum 0.4.0 (#168)
* axum 0.4.0

Signed-off-by: andrew webber (personal) <andrewvwebber@googlemail.com>
2022-01-17 09:23:12 -05:00
Jim Crossley ba798f30cb Fix latest breaking change from poem
Pin to latest version to prevent this in the future

Signed-off-by: Jim Crossley <jim@crossleys.org>
2022-01-14 18:51:03 -05:00
Jim Crossley 6d8e78bf99 Fix clippy warnings 2022-01-14 16:14:46 -05:00
Jim Crossley f3d106b3b1
Account for poem 1.2 breaking changes (#166)
* Account for poem 1.2 breaking changes

* Update the poem example, too

Signed-off-by: Jim Crossley <jim@crossleys.org>
2022-01-06 00:37:49 -05:00
Jim Crossley 7f538a3f37 Pin poem version to fix CI
Signed-off-by: Jim Crossley <jim@crossleys.org>
2021-12-15 09:33:57 -05:00
Jim Crossley 70e3b6681b Fix TryFrom<Data> impl for Vec<u8>
Fixes #163

Signed-off-by: Jim Crossley <jim@crossleys.org>
2021-12-15 09:33:57 -05:00
Jim Crossley 65a4782853
Merge pull request #159 from sunli829/master
New feature: cloudevents-poem
2021-11-13 13:00:26 -05:00
Jim Crossley 82f08f85ea Ignore useless warning
Signed-off-by: Jim Crossley <jim@crossleys.org>
2021-11-12 09:13:35 -05:00
Jim Crossley 66b9bfde1b De-macro-fy data parsing
The code is more legible without them, I think. I'm not sure their
complexity is justified.

Signed-off-by: Jim Crossley <jim@crossleys.org>
2021-11-12 09:13:35 -05:00
Sunli 127d0cec4b Update poem example
Signed-off-by: Sunli <scott_s829@163.com>
2021-11-12 11:38:02 +08:00
Sunli e16e9667cf Add poem-example
Signed-off-by: Sunli <scott_s829@163.com>
2021-11-11 09:34:05 +08:00
Jim Crossley 05807fdf28 Don't fail to deserialize data_base64 even if datacontenttype lies
This fixes #160

From the spec: "When a CloudEvent is deserialized from JSON, the
presence of the data_base64 member clearly indicates that the value is
a Base64 encoded binary data, which the deserializer MUST decode into
a binary runtime data type. The deserializer MAY further interpret
this binary data according to the datacontenttype."
https://github.com/cloudevents/spec/blob/master/cloudevents/formats/json-format.md#312-payload-deserialization

Signed-off-by: Jim Crossley <jim@crossleys.org>
2021-11-10 13:06:24 -05:00
Sunli 8928803e67 Remove useless `in_band_lifetimes` feature
Signed-off-by: Sunli <scott_s829@163.com>
2021-11-10 11:42:45 +08:00