fastify-cloudevents
Advanced tools
Comparing version 0.4.0 to 1.0.0
# Change Log | ||
## [1.0.0](https://github.com/smartiniOnGitHub/fastify-cloudevents/releases/tag/1.0.0) (2019-03-26) | ||
Summary Changelog: | ||
- Updated all dependencies | ||
- Note that this release number means that the plugin is stable, | ||
and for Fastify v1 | ||
- Test example server scripts under load, using | ||
[clinic](https://www.npmjs.com/package/clinic) and | ||
[autocannon](https://www.npmjs.com/package/autocannon), | ||
to ensure that there aren't memory leaks, slowness, or other problems | ||
- Small updates in code and examples | ||
- Pin dependency on cloudevent to '0.4.x' | ||
## [0.4.0](https://github.com/smartiniOnGitHub/fastify-cloudevents/releases/tag/0.4.0) (2019-03-16) | ||
@@ -4,0 +16,0 @@ Summary Changelog: |
@@ -86,3 +86,3 @@ /* | ||
{ | ||
timestamp: Math.floor(Date.now()), | ||
timestamp: Date.now(), | ||
description: 'Fastify server startup begin', | ||
@@ -173,3 +173,3 @@ version: fastifyVersion, | ||
{ | ||
timestamp: Math.floor(Date.now()), | ||
timestamp: Date.now(), | ||
status: 'listening', | ||
@@ -210,3 +210,3 @@ ...processInfoAsData, | ||
{ | ||
timestamp: Math.floor(Date.now()), | ||
timestamp: Date.now(), | ||
status: 'ready', | ||
@@ -213,0 +213,0 @@ ...processInfoAsData |
@@ -90,3 +90,3 @@ /* | ||
{ | ||
timestamp: Math.floor(Date.now()), | ||
timestamp: Date.now(), | ||
status: 'listening', | ||
@@ -111,3 +111,3 @@ hostname: hostname, | ||
{ | ||
timestamp: Math.floor(Date.now()), | ||
timestamp: Date.now(), | ||
status: 'ready', | ||
@@ -114,0 +114,0 @@ hostname: hostname, |
{ | ||
"name": "fastify-cloudevents", | ||
"version": "0.4.0", | ||
"version": "1.0.0", | ||
"description": "Fastify Plugin to serialize events in the CloudEvents standard format", | ||
@@ -18,4 +18,4 @@ "main": "src/plugin", | ||
"fastify-plugin": "^1.5.0", | ||
"fast-json-stringify": "^1.11.3", | ||
"cloudevent": "^0.4.0" | ||
"fast-json-stringify": "^1.11.4", | ||
"cloudevent": "~0.4.0" | ||
}, | ||
@@ -25,3 +25,3 @@ "devDependencies": { | ||
"standard": "^12.0.1", | ||
"tap": "^12.6.0" | ||
"tap": "^12.6.1" | ||
}, | ||
@@ -28,0 +28,0 @@ "peerDependencies": {}, |
@@ -116,13 +116,21 @@ /* | ||
function buildSourceUrl (url = '') { | ||
if (serverUrlMode === null || serverUrlMode === 'pluginAndRequestSimplified') { | ||
return serverUrl + CloudEventTransformer.uriStripArguments(url) | ||
} else if (serverUrlMode === 'pluginAndRequestUrl') { | ||
return serverUrl + url | ||
} else if (serverUrlMode === 'pluginServerUrl') { | ||
return serverUrl | ||
} else if (serverUrlMode === 'requestUrl') { | ||
return url | ||
} else { | ||
throw new Error(`Illegal value for serverUrlMode: '${serverUrlMode}'`) | ||
let sourceUrl | ||
switch (serverUrlMode) { | ||
case null: | ||
case 'pluginAndRequestSimplified': | ||
sourceUrl = serverUrl + CloudEventTransformer.uriStripArguments(url) | ||
break | ||
case 'pluginAndRequestUrl': | ||
sourceUrl = serverUrl + url | ||
break | ||
case 'pluginServerUrl': | ||
sourceUrl = serverUrl | ||
break | ||
case 'requestUrl': | ||
sourceUrl = url | ||
break | ||
default: | ||
throw new Error(`Illegal value for serverUrlMode: '${serverUrlMode}'`) | ||
} | ||
return sourceUrl | ||
} | ||
@@ -129,0 +137,0 @@ |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
50669
693
0
Updatedcloudevent@~0.4.0
Updatedfast-json-stringify@^1.11.4