All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
8.0.0 (2023-07-24)
- use string instead of enum for Version (#561) (15f6505)
TypeScript does not consider enum values equivalent, even if the string
representation is the same. So, when a module imports
cloudevents
and also has a dependency oncloudevents
this can cause conflicts where theCloudEvent.version
attribute is not considered equal when, in fact, it is.
- add
npm run build:schema
to the doc generation action (#557) (fa388f7) - modify release-please to use Signed-Off-By on commits (#559) (089520a)
- release 8.0.0 (#563) (1ed43c8)
7.0.2 (2023-07-05)
- add the provenance flag when publishing to npm (#556) (a0d8682)
- fix the release-please automation script. (#554) (023171d)
7.0.1 (2023-05-30)
- add publish automation (#550) (3931b22)
- remove old Node versions from the readme (#549) (11442d3)
- Update compatible node version (#552) (f3659eb)
7.0.0 (2023-05-03)
- remove node 12 and node 14 (#545)
- add the build script to the pretest script. (#539) (c06ffc1)
- fix release-please-action (#543) (ec83abc)
- release 6.0.5 (#542) (343382e)
- release 7.0.0 (#546) (0120d22)
- Update CI action to node 18.x (#533) (7ff64f8)
6.0.3 (2023-02-16)
- improve validation on extension attribute (#502) (ea94a4d)
- Make CloudEvent data field immutable and enumerable using Object.keys() (#515) (#516) (2d5fab1)
- This fixes bug #525 where the browser version was breaking becuase of process not being found. (#526) (e5ee836)
- added the engines property to the package.json (bc3aaca)
- bump cucumber to full release version (#514) (c09a9cc)
- bump mocha to 10.1.0 (#512) (4831e6a)
- bump webpack to 5.74.0 (#509) (760a024)
- release 6.0.3 (#503) (3619ef2)
- Typos (953bc2a)
- examples: add mqtt example (#523) (b374d9a)
6.0.3 (2022-11-01)
- improve validation on extension attribute (#502) (ea94a4d)
- Make CloudEvent data field immutable and enumerable using Object.keys() (#515) (#516) (2d5fab1)
- bump cucumber to full release version (#514) (c09a9cc)
- bump mocha to 10.1.0 (#512) (4831e6a)
- bump webpack to 5.74.0 (#509) (760a024)
6.0.2 (2022-06-21)
- allow
TypedArray
for binary data (#494) (921e273) - HTTP headers for extensions with false values (#493) (d6f52ca)
- package.json & package-lock.json to reduce vulnerabilities (ed63f14)
6.0.1 (2022-03-21)
- update dependencies to inlude ajv-formats (#484) (c0b1f77), closes /github.com/cloudevents/sdk-javascript/pull/471/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519R128
6.0.0 (2022-03-21)
- add http transport and remove axios (#481)
- add an npm test:once script (#480) (b4d7aa9)
- update package.json format and deps (#479) (6204805)
- update the release documentation (#476) (c420da4)
5.3.2 (2022-02-11)
5.3.1 (2022-02-02)
- improve binary data detection in HTTP transport (#468) (cd4dea9)
- package.json & package-lock.json to reduce vulnerabilities (#462) (ae8fa79)
5.3.0 (2022-01-14)
- refactor: prefer interfaces over concrete classes (#457) (2ac731e)
- update cucumber dependency and remove prettier (#453) (320354f)
5.2.0 (2021-12-07)
5.1.0 (2021-12-01)
- do not assume an empty content-type header is JSON (#444) (52ea7de)
- package.json & package-lock.json to reduce vulnerabilities (#439) (0f5a4c0)
5.0.0 (2021-10-04)
- remove support for 0.3 events (#425)
- update express example with framework features. (#429) (272bcea), closes #379
- ensure source property has min length of 1 (#438) (2ff7852)
- package.json & package-lock.json to reduce vulnerabilities (#433) (cf47248)
- package.json & package-lock.json to reduce vulnerabilities (#434) (8814919)
- package.json & package-lock.json to reduce vulnerabilities (#436) (2dc846c)
- remove node 10 from ci (#435) (a7db466)
- remove support for 0.3 events (#425) (2bd9a5a)
- update eslint and prettier dependencies (#424) (061c122)
- use git submodules for conformance tests (#427) (2118488)
4.0.3 (2021-07-06)
- do not modify incoming event's specversion (#419) (22e42dd)
- do not modify incoming event's specversion (#419) (7c05ade)
- throw on validation if extensions are improperly named (#420) (7f6b658)
- add copyrights header and lint rules (#418) (80d987c)
- add Lance Ball to maintainers in package.json (#411) (d68b85a)
- be more forgiving parsing JSON as a string (#417) (db4be6b)
4.0.2 (2021-04-21)
- defaults properly handled for emitterFor() (#399) (0f11b02)
- ensure loose validation for isEvent and toEvent (#394) (efe466a)
- examples/typescript-ex/package.json to reduce vulnerabilities (#395) (d359355)
- add markdown linter (#403) (fea5ac2)
- externalize remark-lint config (#406) (192c6a3)
- remove @types/axios and add axios in dev (#408) (a0009f6)
- remove standard-version (#402) (edd3c7f)
- tweak PR template (#407) (26ceb90)
- update CI workflow to include Node.js 14.x (#404) (cc43f3b)
- update codacy badges (#409) (66f0b42)
4.0.1 (2021-03-08)
- cloudevents from 3.2.0 to 4.0.0 (#376) (6be3b27)
- Emitter should not extend EventEmitter (1af3d43)
- examples/websocket/package.json to reduce vulnerabilities (#375) (2b1e1ec)
- package.json & package-lock.json to reduce vulnerabilities (#384) (39812f7)
4.0.0 (2020-12-10)
- Remove All API's that are labeled "Remove in 4.0" (#362)
- event: make the event's time property only a string (#330)
-
add a constructor parameter for loose validation (#328) (1fa3a05)
-
add EventEmitter to Emitter and singleton paradigm (25f9c48)
-
allow ensureDelivery to be able to ensure delivery on emit (43d9e01)
-
introduce Message, Serializer, Deserializer and Binding interfaces (#324) (f3953a9)
-
Remove All API's that are labeled "Remove in 4.0" (#362) (875f700)
-
extend Node.js IncomingHttpHeaders in our Headers type (#346) (f6be285)
-
improve error messages when validating extensions (9f86cfd)
-
package.json & package-lock.json to reduce vulnerabilities (132f052)
-
package.json & package-lock.json to reduce vulnerabilities (#338) (eca43d9)
-
add Emitter logic example (bda8581)
-
tag v3.2.0 as release-v3.2.0 for release-please (#353) (765b81c)
-
ci,releases: bump release-please-action to 2.5.5 (#350) (c4afacb)
-
update release please to the latest release(2.4.1) (#345) (76688c4)
-
event: make the event's time property only a string (#330) (6cd310c)
-
example: Replaced body parser with express JSON parser (#334) (4779d89)
-
add cucumber.js to list of files to lint and /docs to .gitignore (#327) (17d4bc8)
-
Update README with correct links for the support specification versions (#321) (73f0bec), closes #320
3.1.0 (2020-08-11)
- Add Correct Headers to emitted Binary Event (#302) (ad0c434), closes #301
- ensure that data encoded as base64 is parsed as an object (#285) (ed9ea95)
- update browser name to cloudevents. (#292) (48d182b), closes #286
- fix promise tests to break the build when they fail (#305) (a5249de), closes #303
- no import star (#297) (31c2005)
- Update examples to use latest sdk changes (#282) (763838c)
- Update readme with correct Receiver usage (#287) (e219a30)
- update the release script to signoff the commit (#307) (f3cc2b4)
- improve readme receiver example (#309) (d590e3a)
- Release Guidelines (#306) (08bf15d)
- update badge name (#289) (3fab5f2)
3.0.1 (2020-07-29)
3.0.0 (2020-07-27)
-
This validates the value of the cloud event extension based on the spec, https://github.com/cloudevents/spec/blob/master/spec.md#type-system
-
This changes the modules name from cloudevents-sdk to cloudevents
-
feat: use npm name cloudevents
-
src: * Extension names are now validated during object creation. The values are defined by the specification, and can be lowercase(a-z) or digits(0-9) and must be no longer that 20 characters
-
src: * This change makes the CloudEvent Read-only and validates the input during object creation.
-
To augment an already created CloudEvent object, we have added a
cloneWith
method that takes attributes to add/update.
- add types to package.json (#216) (4265281)
- introduce browser support (#201) (8b2725b)
- pass extension into the constructor. (#214) (0378f4c), closes #209
- remove unused plugins (#262) (4014da2)
- simplify validation logic/imports (#265) (4b54b27)
- use npm name cloudevents (#260) (565f867), closes #215
- src: A CloudEvent should be readonly but provide a way to augment itself. (#234) (c7a8477)
- src: add ext name validation (#246) (84f1ed9)
- do not require an HTTP body on incoming binary event messages (a7c326b)
- ensure that the HTTP receiver sanitizes headers in accept() (#239) (51035dc)
- package.json & package-lock.json to reduce vulnerabilities (#253) (2ed5f84)
- parse method mutating its input (#231) (060b21b)
- upgrade uuid from 8.0.0 to 8.1.0 (#220) (25077a9)
- upgrade uuid from 8.1.0 to 8.2.0 (#250) (13bcdb4)
- clean up spec compliance table on README.md (#252) (c496931)
- README: fix wrong order of arguments in the accept example (#224) (850e893), closes #222
- README: Update readme to mention that CloudEvents are read-only now (#248) (de6f0a2)
- generate api documentation as a GitHub workflow (#217) (44b791b)
- Update references of specific versions to use Latest Supported. (#211) (ed1d328), closes #160
- add vscode task JSON and GitHub issue/pr templates (#268) (1613595)
- adds the return type for the extensions (#221) (5ab8164)
- bump GH stale action to v3 (#243) (90a9984)
- combine v03 and v1 event interfaces, specs and schemas into single files(#270) (129ec48)
- consolidate HTTP parsers and header maps into single files (#267) (45850e3)
- simplify ce version parsers (#274) (3d82fb6)
- simplify parser logic and duplicated code (#269) (a6124cc)
- actions: don't auto-close stale issues and pull requests (#235) (d65b013)
- Update examples to use the latest sdk version(2.0.2) (#206) (dcb3c4e)
- webpack should publish to bundles not _bundles (#227) (7012433)
2.0.2 (2020-06-08)
- add correct types to improve TypeScript behavior (#202) (da365e0)
- fix references to constants - remove .js extension (#200) (c757a2b)
- use /lib in gitignore so src/lib is not ignored (#199) (fba3294)
2.0.1 (2020-06-01)
- initialize CloudEvent's extensions property (#192) (0710166)
- introduce CloudEventV1 and CloudEventV03 interfaces (#194) (a5befbe)
- CI workflow to only upload report if CODACY_PROJECT_TOKEN is set (#193) (aa320e7)
- minor typos in guidance docs (#196) (15cd763)
2.0.0 (2020-05-27)
- change CloudEvent to use direct object notation and get/set properties (#172)
- refactor HTTP bindings and specifications (#165)
- expose a version agnostic event emitter (#141)
- unmarshaller: remove asynchronous 0.3 unmarshaller API (#126)
- add ValidationError type extending TypeError (#151) (09b0c76)
- expose a mode and version agnostic event receiver (#120) (54f242b)
- expose a version agnostic event emitter (#141) (250a0a1)
- unmarshaller: remove asynchronous 0.3 unmarshaller API (#126) (63ae1ad)
- formatter.js es6 (#87) (c36f194)
- use CloudEvents not cloudevents everywhere (#101) (05ecbde)
- ensure binary events can handle no content-type header (#134) (72a87df)
- Fix Express example installation (#77) (bb8e0f9)
- make application/json the default content type in binary mode (#118) (d9e9ae6)
- misspelled word (#113) (cd6a3ee)
- misspelled word (#115) (53524ac)
- protects the consts from being changed in other parts of the code. (fbcbcec)
- remove d.ts types. Fixes #83 (#84) (6c223e2)
- support mTLS in 1.0 Binary and Structured emitters (3a063d7)
- throw "no cloud event detected" if one can't be read (#139) (ef7550d)
- remove uuid require in spec_03_tests.js (#145) (c56c203)
- use constants in spec_03_tests.js (#144) (2882aff)
- use header constants in receiver tests (#131) (60bf05c)
- use header constants in unmarshaller tests (#60) (e087805)
- change CloudEvent to use direct object notation and get/set properties (#172) (abc114b)
- refactor HTTP bindings and specifications (#165) (6f0b5ea)
- add instructions and details to contributors guide (#105) (fd99cb1)
- add JSDocs for top level API objects (#140) (b283583)
- add maintainer guidelines for landing PRs (#177) (fdc79ae)
- organize README badges and remove TS example (#112) (07323e0)
- remove 0.1, 0.2 spec support from README (56036b0)
- remove repo structure docs (#111) (223a7c6)
- update README and examples with new API (#138) (b866edd)
- add action to detect and close stale issues (5a6cde5)
- add coverage GitHub action (#185) (349fe8e)
- add eslint configuration and npm script (3f238a0)
- add GitHub action for CI on master and prs (#181) (0fe57d1)
- add npm fix command (#74) (005d532)
- add standard-version and release script (f47bca4)
- adds files section in package.json (#147) (f8a62b2)
- es6 base64 parser (#75) (d042ef1)
- es6 parser (#98) (cd6decd)
- es6 unmarshaller (#108) (79ec3ef)
- fix CI code coverage publishing (#78) (8fb0ddf)
- Modify CI to also build backport branch(es) (#122) (c1fda94)
- remove note with bad link and non SDK docs (#109) (f30c814)
- update eslint rules to disallow var usage (e83db29)
- Update uuid dependency (42246ce)
- use es6 for cloudevents.js (#73) (12ac181)
- Support for Spec v1.0
- Typescript types for Spec v1.0: see an example
- Unmarshaller docs from README, moving them to OLDOCS.md
- Fix the special
data
handling: issue #33
- Axios version to
0.18.1
due the CVE-2019-10742 - Fix the
subject
attribute unmarshal error: issue #32