news-fragments 2.0.14 → 3.0.0

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/CHANGELOG.md CHANGED
@@ -1,4 +1,27 @@
1
1
 
2
+ [//]: # (s-3.0.0)
3
+
4
+ # [3.0.0] - (2023-06-14)
5
+
6
+ ## Deprecations and Removals
7
+ * Drop support to node 16.
8
+
9
+ ## Misc
10
+ * Update project dependencies.
11
+
12
+ [//]: # (e-3.0.0)
13
+
14
+
15
+ [//]: # (s-2.0.15)
16
+
17
+ # [2.0.15] - (2023-05-02)
18
+
19
+ ## Misc
20
+ * Update project dependencies.
21
+
22
+ [//]: # (e-2.0.15)
23
+
24
+
2
25
  [//]: # (s-2.0.14)
3
26
 
4
27
  # [2.0.14] - (2023-04-03)
package/README.md CHANGED
@@ -10,7 +10,7 @@ Basically, you need to specify a folder to be your center of fragments that will
10
10
 
11
11
  ## Requirements
12
12
 
13
- - Use Node v16+
13
+ - Use Node v18+
14
14
 
15
15
  ## Setup
16
16
 
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "news-fragments",
3
- "version": "2.0.14",
3
+ "version": "3.0.0",
4
4
  "description": "A release-it plugin to manipulate changelogs",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
7
7
  "scripts": {
8
8
  "pretest": "npm run lint:fix",
9
- "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js --detectOpenHandles --collectCoverage --runInBand --verbose --forceExit",
9
+ "test": "npx vitest --run --coverage",
10
+ "test:ui": "npx vitest --ui",
10
11
  "lint": "eslint . --ext .js --ignore-pattern node_modules/",
11
12
  "lint:fix": "eslint . --ext .js --fix --ignore-pattern node_modules/",
12
13
  "release": "release-it"
@@ -30,16 +31,18 @@
30
31
  "homepage": "https://github.com/grupoboticario/news-fragments#readme",
31
32
  "devDependencies": {
32
33
  "@release-it/bumper": "^4.0.0",
34
+ "@vitest/coverage-v8": "^0.32.0",
35
+ "@vitest/ui": "^0.32.0",
33
36
  "eslint": "^8.26.0",
34
37
  "eslint-config-prettier": "^8.3.0",
35
38
  "eslint-plugin-prettier": "^4.1.0",
36
39
  "eslint-plugin-simple-import-sort": "^10.0.0",
37
- "jest": "^29.0.0",
38
40
  "mock-fs": "^5.1.0",
39
41
  "mockdate": "^3.0.5",
40
42
  "prettier": "^2.8.0",
41
43
  "pretty-quick": "^3.1.1",
42
- "semver": "^7.3.5"
44
+ "semver": "^7.3.5",
45
+ "vitest": "^0.32.0"
43
46
  },
44
47
  "dependencies": {
45
48
  "chalk": "^5.2.0",
@@ -47,14 +50,14 @@
47
50
  "fs-extra": "^11.0.0",
48
51
  "handlebars": "^4.7.7",
49
52
  "joi": "^17.4.2",
50
- "marked": "^4.0.14",
53
+ "marked": "^5.0.2",
51
54
  "marked-terminal": "^5.1.1",
52
- "meow": "11.0.0",
55
+ "meow": "12.0.1",
53
56
  "moment": "^2.29.1",
54
57
  "release-it": "^15.8.0"
55
58
  },
56
59
  "engines": {
57
- "node": ">=16"
60
+ "node": ">=18"
58
61
  },
59
62
  "release-it": {
60
63
  "npm": false,
package/src/cli/index.js CHANGED
@@ -28,7 +28,7 @@ import('meow').then(meow => { // eslint-disable-line
28
28
  flags: {
29
29
  previousVersion: {
30
30
  type: "string",
31
- alias: "p",
31
+ shortFlag: "p",
32
32
  },
33
33
  },
34
34
  }
@@ -6,7 +6,9 @@ import { newsFragmentsUserConfig } from "../config.js";
6
6
  import { getChangelogContent, getFragments } from "../file.js";
7
7
 
8
8
  marked.setOptions({
9
- renderer: new TerminalRenderer(),
9
+ renderer: new TerminalRenderer({ tab: 0 }),
10
+ mangle: false,
11
+ headerIds: false,
10
12
  });
11
13
 
12
14
  export const preview = function (inputs, flags) {
@@ -0,0 +1,12 @@
1
+ /// <reference types="vitest" />
2
+
3
+ // Configure Vitest (https://vitest.dev/config/)
4
+
5
+ import { defineConfig } from "vite";
6
+
7
+ export default defineConfig({
8
+ test: {
9
+ /* for example, use global to avoid globals imports (describe, test, expect): */
10
+ globals: true,
11
+ },
12
+ });