Skip to content

Commit aa2cef6

Browse files
committed
deps: update old and remove unused dependencies
This commit updates all of the dependencies in package.json to their most recent versions. It also removes dependencies that were specified in package.json but not used - or only used in a `require()` statement. These changes have some ripple effects. Istanbul has not been supported for some time, so it has been replaced with nyc. The code coverage reporting tool from codacy has been updated as well. This could not be tested without having the API token. Finally, the CI job has been modified to run tests on Node.js versions 10x and 12x. All older versions of Node.js are no longer maintained. Signed-off-by: Lance Ball <[email protected]>
1 parent e7343b7 commit aa2cef6

File tree

10 files changed

+2237
-35
lines changed

10 files changed

+2237
-35
lines changed

.travis.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
language: node_js
22
node_js:
3-
- 8
4-
- 7
5-
- 6
3+
- 12
4+
- 10
65
cache: npm
76
jobs:
87
include:
98
- stage: github release
10-
node_js: '6'
9+
node_js: '12'
1110
deploy:
1211
provider: releases
1312
api_key:
@@ -17,7 +16,7 @@ jobs:
1716
tags: true
1817

1918
- stage: npm release
20-
node_js: '6'
19+
node_js: '12'
2120
deploy:
2221
provider: npm
2322

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
1010

1111
- Support for mTLS in v1.0 Binary and Structured Emitters: issue [#48](https://github.com/cloudevents/sdk-javascript/issues/48). Note that this fix is only valid for v1.0 and does not address the problem in v0.3 and below.
1212

13+
### Removed
14+
15+
- Removed support for Node.js 6, 7 and 8 - all of which are EOL at this point. Travis CI modified to test on Node.js 10 and 12.
16+
1317
## [1.0.0]
1418

1519
### Added

lib/bindings/http/emitter_binary.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
const axios = require("axios");
2-
const empty = require("is-empty");
1+
var axios = require("axios");
32

43
const Constants = require("./constants.js");
54
const defaults = {};

lib/specs/spec_0_2.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
const uuid = require("uuid/v4");
2-
const empty = require("is-empty");
3-
const Ajv = require("ajv");
1+
var uuid = require("uuid/v4");
2+
var Ajv = require("ajv");
43

54
// Reserved attributes names
65
const reserved = {

lib/specs/spec_0_3.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const uuid = require("uuid/v4");
2-
const empty = require("is-empty");
32
const Ajv = require("ajv");
43

54
const {

lib/specs/spec_1.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
const uuid = require("uuid/v4");
2-
const empty = require("is-empty");
32
const Ajv = require("ajv");
4-
const URI = require("uri-js");
53

64
const {
75
asData,

0 commit comments

Comments
 (0)