From e420eece2f84ac607f76e0b959817c01a469286e Mon Sep 17 00:00:00 2001 From: Lucas Holmquist Date: Mon, 8 Jun 2020 11:54:18 -0400 Subject: [PATCH 1/2] docs: Update references of specific versions to use Latest Supported. fixes #160 Signed-off-by: Lucas Holmquist --- README.md | 2 +- examples/express-ex/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a4783752..fc9452b5 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ binary or structured format, and determine what version of the CloudEvents specification you want to send the event as. By default, the `HTTPEmitter` will emit events over HTTP POST using the -1.0 specification, in binary mode. You can emit 0.3 events by providing +latest supported specification, in binary mode. You can emit version specific events by providing the specication version in the constructor to `HTTPEmitter`. To send structured events, add that string as a parameter to `emitter.sent()`. diff --git a/examples/express-ex/README.md b/examples/express-ex/README.md index 8cf44814..5a41f8fa 100644 --- a/examples/express-ex/README.md +++ b/examples/express-ex/README.md @@ -6,7 +6,7 @@ npm start ``` -## Spec v1.0 +## Latest Supported Spec (v1.0) __A Structured One__ From 21232576bb20294030763ec323c0ddccd246884e Mon Sep 17 00:00:00 2001 From: Lucas Holmquist Date: Mon, 8 Jun 2020 13:37:13 -0400 Subject: [PATCH 2/2] squash: address nits Signed-off-by: Lucas Holmquist --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fc9452b5..b51b3993 100644 --- a/README.md +++ b/README.md @@ -54,9 +54,9 @@ binary or structured format, and determine what version of the CloudEvents specification you want to send the event as. By default, the `HTTPEmitter` will emit events over HTTP POST using the -latest supported specification, in binary mode. You can emit version specific events by providing +latest supported specification version, in binary mode. You can emit version specific events by providing the specication version in the constructor to `HTTPEmitter`. To send -structured events, add that string as a parameter to `emitter.sent()`. +structured events, add that string as a parameter to `emitter.send()`. ```js const { CloudEvent, HTTPEmitter } = require("cloudevents-sdk");