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 <lball@redhat.com>
This commit is contained in:
parent
e7343b7993
commit
aa2cef6e3c
|
@ -1,13 +1,12 @@
|
|||
language: node_js
|
||||
node_js:
|
||||
- 8
|
||||
- 7
|
||||
- 6
|
||||
- 12
|
||||
- 10
|
||||
cache: npm
|
||||
jobs:
|
||||
include:
|
||||
- stage: github release
|
||||
node_js: '6'
|
||||
node_js: '12'
|
||||
deploy:
|
||||
provider: releases
|
||||
api_key:
|
||||
|
@ -17,7 +16,7 @@ jobs:
|
|||
tags: true
|
||||
|
||||
- stage: npm release
|
||||
node_js: '6'
|
||||
node_js: '12'
|
||||
deploy:
|
||||
provider: npm
|
||||
email: fabiojose@gmail.com
|
||||
|
|
|
@ -10,6 +10,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|||
|
||||
- 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.
|
||||
|
||||
### Removed
|
||||
|
||||
- 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.
|
||||
|
||||
## [1.0.0]
|
||||
|
||||
### Added
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
const axios = require("axios");
|
||||
const empty = require("is-empty");
|
||||
var axios = require("axios");
|
||||
|
||||
const Constants = require("./constants.js");
|
||||
const defaults = {};
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
const uuid = require("uuid/v4");
|
||||
const empty = require("is-empty");
|
||||
const Ajv = require("ajv");
|
||||
var uuid = require("uuid/v4");
|
||||
var Ajv = require("ajv");
|
||||
|
||||
// Reserved attributes names
|
||||
const reserved = {
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
const uuid = require("uuid/v4");
|
||||
const empty = require("is-empty");
|
||||
const Ajv = require("ajv");
|
||||
|
||||
const {
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
const uuid = require("uuid/v4");
|
||||
const empty = require("is-empty");
|
||||
const Ajv = require("ajv");
|
||||
const URI = require("uri-js");
|
||||
|
||||
const {
|
||||
asData,
|
||||
|
|
File diff suppressed because it is too large
Load Diff
29
package.json
29
package.json
|
@ -4,9 +4,10 @@
|
|||
"description": "CloudEvents SDK for JavaScript",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "./node_modules/.bin/istanbul cover -x 'test/**/*.js' _mocha -- -C test/**/*.js",
|
||||
"coverage-publish": "./node_modules/.bin/istanbul cover -x 'test/**/*.js' _mocha --report lcovonly -- -C test/**/*.js -R spec && cat ./coverage/lcov.info | ./node_modules/.bin/codacy-coverage && rm -rf ./coverage",
|
||||
"bdd": "./node_modules/.bin/cucumber-js ./test/bdd/feature -r ./test/bdd/step"
|
||||
"test": "mocha test/**/*.js",
|
||||
"coverage": "nyc --reporter=lcov --reporter=text npm run test",
|
||||
"precoverage-publish": "npm run coverage",
|
||||
"coverage-publish": "wget -qO - https://coverage.codacy.com/get.sh | sh -s report -l JavaScript -r coverage/lcov.info"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -31,23 +32,15 @@
|
|||
},
|
||||
"homepage": "https://github.com/cloudevents/sdk-javascript#readme",
|
||||
"dependencies": {
|
||||
"ajv": "^6.7.0",
|
||||
"axios": "0.18.1",
|
||||
"is-empty": "1.2.0",
|
||||
"uri-js": "4.2.2",
|
||||
"uuid": "3.3.2"
|
||||
"ajv": "~6.12.0",
|
||||
"axios": "~0.19.2",
|
||||
"uuid": "~3.3.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"chai": "4.2.0",
|
||||
"chai-http": "4.2.0",
|
||||
"codacy-coverage": "3.3.0",
|
||||
"cucumber": "^5.1.0",
|
||||
"istanbul": "0.4.5",
|
||||
"mocha": "5.2.0",
|
||||
"mocha-lcov-reporter": "1.3.0",
|
||||
"nock": "10.0.2",
|
||||
"request": "^2.88.0",
|
||||
"typescript": "^3.6.4"
|
||||
"chai": "~4.2.0",
|
||||
"mocha": "~7.1.1",
|
||||
"nock": "~12.0.3",
|
||||
"nyc": "~15.0.0"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
var expect = require("chai").expect;
|
||||
var Cloudevent = require("../index.js");
|
||||
var nock = require("nock");
|
||||
var http = require("http");
|
||||
var request = require("request");
|
||||
var Spec02 = require("../lib/specs/spec_0_2.js");
|
||||
|
||||
var {HTTPBinary02} = require("../lib/bindings/http/emitter_binary_0_2.js");
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
const expect = require("chai").expect;
|
||||
const nock = require("nock");
|
||||
const http = require("http");
|
||||
const request = require("request");
|
||||
const BinaryHTTPEmitter =
|
||||
require("../lib/bindings/http/emitter_binary_0_3.js");
|
||||
const Cloudevent = require("../lib/cloudevent.js");
|
||||
|
|
Loading…
Reference in New Issue