release-it 14.12.3 → 14.12.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -19,7 +19,6 @@ system, and hooks to execute any command you need to test, build, and/or publish
19
19
 
20
20
  [![Action Status](https://github.com/release-it/release-it/workflows/Cross-OS%20Tests/badge.svg)](https://github.com/release-it/release-it/actions)
21
21
  [![npm version](https://badge.fury.io/js/release-it.svg)](https://www.npmjs.com/package/release-it)
22
- [![codecov](https://codecov.io/gh/release-it/release-it/branch/master/graph/badge.svg)](https://codecov.io/gh/release-it/release-it)
23
22
 
24
23
  ## Links
25
24
 
package/lib/tasks.js CHANGED
@@ -7,7 +7,6 @@ const Prompt = require('./prompt');
7
7
  const Spinner = require('./spinner');
8
8
  const Metrics = require('./metrics');
9
9
  const { reduceUntil, parseVersion } = require('./util');
10
- const handleDeprecated = require('./deprecated');
11
10
 
12
11
  const runTasks = async (opts, di) => {
13
12
  let container = {};
@@ -27,7 +26,7 @@ const runTasks = async (opts, di) => {
27
26
 
28
27
  const { log, metrics, shell, spinner } = container;
29
28
 
30
- const options = handleDeprecated(config.getContext(), log);
29
+ const options = config.getContext();
31
30
 
32
31
  metrics.trackEvent('start', options);
33
32
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-it",
3
- "version": "14.12.3",
3
+ "version": "14.12.4",
4
4
  "description": "Generic CLI tool to automate versioning and package publishing related tasks.",
5
5
  "keywords": [
6
6
  "build",
@@ -46,8 +46,6 @@
46
46
  "lint": "eslint lib test",
47
47
  "format": "prettier --write \"{lib,test}/**/*.js\"",
48
48
  "test": "ava",
49
- "coverage": "nyc --reporter=lcov --reporter=html --config=config/.codecov.yml npm test",
50
- "codecov": "nyc --reporter=json --config=config/.codecov.yml npm test && codecov -f coverage/coverage-final.json",
51
49
  "readme": "markdown-toc README.md -i --maxdepth=2 --bullets=-",
52
50
  "release": "./bin/release-it.js"
53
51
  },
@@ -63,7 +61,6 @@
63
61
  "chalk": "4.1.2",
64
62
  "cosmiconfig": "7.0.1",
65
63
  "debug": "4.3.3",
66
- "deprecated-obj": "2.0.0",
67
64
  "execa": "5.1.1",
68
65
  "form-data": "4.0.0",
69
66
  "git-url-parse": "11.6.0",
@@ -90,7 +87,6 @@
90
87
  "devDependencies": {
91
88
  "@octokit/request-error": "2.1.0",
92
89
  "ava": "3.15.0",
93
- "codecov": "3.8.3",
94
90
  "eslint": "8.7.0",
95
91
  "eslint-config-prettier": "8.3.0",
96
92
  "eslint-plugin-ava": "13.2.0",
@@ -100,7 +96,7 @@
100
96
  "mock-fs": "5.1.2",
101
97
  "mock-stdio": "1.0.3",
102
98
  "nock": "13.2.2",
103
- "nyc": "15.1.0",
99
+ "node-fetch": "2.6.7",
104
100
  "prettier": "2.5.1",
105
101
  "proxyquire": "2.1.3",
106
102
  "sinon": "12.0.1",
@@ -1,5 +0,0 @@
1
- coverage:
2
- parsers:
3
- javascript:
4
- enable_partials: yes
5
- comment: false
@@ -1 +0,0 @@
1
- {}
package/lib/deprecated.js DELETED
@@ -1,20 +0,0 @@
1
- const Deprecated = require('deprecated-obj');
2
- const deprecated = require('../config/deprecated.json');
3
- const Log = require('./log');
4
-
5
- module.exports = (config, log = new Log()) => {
6
- const deprecations = new Deprecated(deprecated, config);
7
- const compliant = deprecations.getCompliant();
8
- const violations = deprecations.getViolations();
9
- if (Object.keys(violations).length > 0) {
10
- log.warn(`Deprecated configuration options found. Please migrate before the next major release.`);
11
- }
12
- for (const d in violations) {
13
- log.warn(
14
- `The "${d}" option is deprecated. ${
15
- violations[d] ? (/^[A-Z]/.test(violations[d]) ? violations[d] : `Please use "${violations[d]}" instead.`) : ''
16
- }`
17
- );
18
- }
19
- return compliant;
20
- };
@@ -1,11 +0,0 @@
1
- const test = require('ava');
2
- const sinon = require('sinon');
3
- const deprecated = require('../lib/deprecated');
4
- const Log = require('../lib/log');
5
-
6
- test('should show deprecation warnings and return compliant object', t => {
7
- const log = sinon.createStubInstance(Log);
8
- const config = deprecated({ keep: 1 }, log);
9
- t.is(log.warn.callCount, 0);
10
- t.deepEqual(config, { keep: 1 });
11
- });