fastify-cloudevents
Advanced tools
Comparing version 2.6.0 to 2.10.0
# Change Log | ||
## [2.10.0](https://github.com/smartiniOnGitHub/fastify-cloudevents/releases/tag/2.10.0) (2022-04-16) | ||
[Full Changelog](https://github.com/smartiniOnGitHub/fastify-cloudevents/compare/2.6.0...2.10.0) | ||
Summary Changelog: | ||
- Update dependency on cloudevent to '0.9.x' which implements the | ||
[v1.0.2 - CloudEvents Spec](https://github.com/cloudevents/spec/releases/tag/v1.0.2) | ||
with some simplifications/clarifications | ||
- Update requirements to latest Fastify 2.x, so currently release '^2.15.3' | ||
- Update all other dependencies | ||
- Breaking change: update requirements to Node.js 10 LTS | ||
- Breaking change: the 'time' attribute now is managed as a string in the ISO format | ||
(accordingly with the spec format and schema) but constructor will accept | ||
same inputs (undefined/null, a Date, now even a string | ||
that could be checked during validation of the event); | ||
a getter method 'timeAsDate' has been added just for convenience | ||
- Note: this is last release for Fastify 2.x | ||
## [2.6.0](https://github.com/smartiniOnGitHub/fastify-cloudevents/releases/tag/2.6.0) (2021-03-28) | ||
@@ -4,0 +20,0 @@ [Full Changelog](https://github.com/smartiniOnGitHub/fastify-cloudevents/compare/2.5.0...2.6.0) |
/* | ||
* Copyright 2018-2021 the original author or authors. | ||
* Copyright 2018-2022 the original author or authors. | ||
* | ||
@@ -18,3 +18,3 @@ * Licensed under the Apache License, Version 2.0 (the "License"); | ||
const assert = require('assert') | ||
const assert = require('assert').strict | ||
const fastify = require('fastify')() | ||
@@ -21,0 +21,0 @@ const fastifyVersion = require('fastify/package.json').version // get Fastify version |
/* | ||
* Copyright 2018-2021 the original author or authors. | ||
* Copyright 2018-2022 the original author or authors. | ||
* | ||
@@ -4,0 +4,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"); |
{ | ||
"name": "fastify-cloudevents", | ||
"version": "2.6.0", | ||
"version": "2.10.0", | ||
"description": "Fastify Plugin to serialize events in the CloudEvents standard format", | ||
"main": "src/plugin", | ||
"scripts": { | ||
"clean:install": "rm -rf ./package-lock.json ./node_modules/", | ||
"dependency:log": "npm list > ./temp/dependencies.log", | ||
@@ -11,30 +12,30 @@ "docs:clean": "rm -rf ./docs/*", | ||
"docs": "npm run docs:clean && npm run docs:generate", | ||
"example-enhanced:debug": "node --inspect-brk example/example-enhanced", | ||
"example-enhanced": "node example/example-enhanced", | ||
"example:debug": "node --inspect-brk example/example", | ||
"example-enhanced:debug": "node --inspect-brk example/example-enhanced", | ||
"example": "node example/example", | ||
"example-enhanced": "node example/example-enhanced", | ||
"lint": "npm run lint:standard", | ||
"lint:fix": "standard --fix", | ||
"lint:standard": "standard --verbose", | ||
"lint": "npm run lint:standard", | ||
"test:clean": "rm -rf .nyc_output/* ./coverage/*", | ||
"test:coverage": "npm run test:unit -- --cov --coverage-report=html", | ||
"test:unit": "tap -J --comments --no-esm --strict test/*.test.js", | ||
"test:unit:dev": "tap -J --comments --no-esm --strict --watch test/*.test.js", | ||
"test:unit:debug": "tap -T --node-arg=--inspect-brk --comments --no-esm --strict test/*.test.js", | ||
"test:unit:debug": "tap -T --node-arg=--inspect-brk test/*.test.js", | ||
"test:unit:dev": "tap -J --watch test/*.test.js", | ||
"test:unit": "tap -J test/*.test.js", | ||
"test": "npm run lint && npm run test:unit" | ||
}, | ||
"dependencies": { | ||
"fastify-plugin": "^1.6.1", | ||
"cloudevent": "~0.9.0", | ||
"fast-json-stringify": "^1.21.0", | ||
"cloudevent": "~0.8.0" | ||
"fastify-plugin": "^1.6.1" | ||
}, | ||
"devDependencies": { | ||
"jsdoc": "^3.6.6", | ||
"fastify": "^2.15.3", | ||
"standard": "^16.0.3", | ||
"tap": "^14.11.0" | ||
"jsdoc": "^3.6.10", | ||
"standard": "^16.0.4", | ||
"tap": "^15.2.3" | ||
}, | ||
"peerDependencies": {}, | ||
"engines": { | ||
"node": ">=8.17.0" | ||
"node": ">=10.13.0" | ||
}, | ||
@@ -41,0 +42,0 @@ "homepage": "https://github.com/smartiniOnGitHub/fastify-cloudevents#readme", |
@@ -7,4 +7,2 @@ # fastify-cloudevents | ||
[![Coverage Status](https://coveralls.io/repos/github/smartiniOnGitHub/fastify-cloudevents/badge.svg?branch=master)](https://coveralls.io/github/smartiniOnGitHub/fastify-cloudevents/?branch=master) | ||
[![dependencies Status](https://david-dm.org/smartiniOnGitHub/fastify-cloudevents/status.svg)](https://david-dm.org/smartiniOnGitHub/fastify-cloudevents) | ||
[![devDependencies Status](https://david-dm.org/smartiniOnGitHub/fastify-cloudevents/dev-status.svg)](https://david-dm.org/smartiniOnGitHub/fastify-cloudevents?type=dev) | ||
[![Known Vulnerabilities](https://snyk.io//test/github/smartiniOnGitHub/fastify-cloudevents/badge.svg?targetFile=package.json)](https://snyk.io//test/github/smartiniOnGitHub/fastify-cloudevents?targetFile=package.json) | ||
@@ -14,3 +12,3 @@ | ||
Current release uses the v1.0.1 of the CloudEvents Spec. | ||
Current release uses the v1.0.2 of the CloudEvents Spec. | ||
@@ -64,6 +62,7 @@ The purpose of this plugin is to let Fastify web applications create instances of CloudEvents | ||
Fastify ^2.15.3 , Node.js 8.17.x (but recommended 10.23.1) or later. | ||
Note that plugin releases 2.x are for Fastify 2.x, etc. | ||
Fastify ^2.15.3 , Node.js 10 LTS (10.13.0) or later. | ||
Note that plugin releases 2.x are for Fastify 2.x, 3.x are for Fastify 3.x, etc. | ||
## Sources | ||
@@ -70,0 +69,0 @@ |
/* | ||
* Copyright 2018-2021 the original author or authors. | ||
* Copyright 2018-2022 the original author or authors. | ||
* | ||
@@ -4,0 +4,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"); |
/* | ||
* Copyright 2018-2021 the original author or authors. | ||
* Copyright 2018-2022 the original author or authors. | ||
* | ||
@@ -4,0 +4,0 @@ * Licensed under the Apache License, Version 2.0 (the "License"); |
/* | ||
* Copyright 2018-2021 the original author or authors. | ||
* Copyright 2018-2022 the original author or authors. | ||
* | ||
@@ -79,3 +79,3 @@ * Licensed under the Apache License, Version 2.0 (the "License"); | ||
// remove the definition of time, or it won't be managed in the right way | ||
delete ceSchema.properties.time | ||
// delete ceSchema.properties.time // no more needed now that time is set as a string | ||
// add additionalProperties, to let serialization export properties not in schema | ||
@@ -82,0 +82,0 @@ // ceSchema.additionalProperties = true // already in schema, so no need to add here |
69948
169
+ Addedcloudevent@0.9.0(transitive)
- Removedcloudevent@0.8.0(transitive)
Updatedcloudevent@~0.9.0