conventional-changelog 5.1.0 → 6.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.
Files changed (3) hide show
  1. package/README.md +3 -3
  2. package/index.js +3 -7
  3. package/package.json +35 -31
package/README.md CHANGED
@@ -12,7 +12,7 @@ $ npm install --save conventional-changelog
12
12
  ```
13
13
 
14
14
  ```js
15
- var conventionalChangelog = require('conventional-changelog');
15
+ import conventionalChangelog from 'conventional-changelog';
16
16
 
17
17
  conventionalChangelog({
18
18
  preset: 'angular'
@@ -23,9 +23,9 @@ conventionalChangelog({
23
23
  Or if you want to use your own custom preset:
24
24
 
25
25
  ```js
26
- var conventionalChangelog = require('conventional-changelog');
26
+ import conventionalChangelog from 'conventional-changelog';
27
+ import config from '@org/conventional-changelog-custom-preset';
27
28
 
28
- var config = require('@org/conventional-changelog-custom-preset');
29
29
  conventionalChangelog({config})
30
30
  .pipe(process.stdout); // or any writable stream
31
31
  ```
package/index.js CHANGED
@@ -1,9 +1,7 @@
1
- 'use strict'
1
+ import conventionalChangelogCore from 'conventional-changelog-core'
2
+ import { loadPreset } from 'conventional-changelog-preset-loader'
2
3
 
3
- const conventionalChangelogCore = require('conventional-changelog-core')
4
- const { loadPreset } = require('conventional-changelog-preset-loader')
5
-
6
- function conventionalChangelog (options, context, gitRawCommitsOpts, parserOpts, writerOpts) {
4
+ export default function conventionalChangelog (options, context, gitRawCommitsOpts, parserOpts, writerOpts) {
7
5
  options.warn = options.warn || function () {}
8
6
 
9
7
  if (options.preset) {
@@ -22,5 +20,3 @@ function conventionalChangelog (options, context, gitRawCommitsOpts, parserOpts,
22
20
 
23
21
  return conventionalChangelogCore(options, context, gitRawCommitsOpts, parserOpts, writerOpts)
24
22
  }
25
-
26
- module.exports = conventionalChangelog
package/package.json CHANGED
@@ -1,24 +1,9 @@
1
1
  {
2
2
  "name": "conventional-changelog",
3
- "version": "5.1.0",
4
- "description": "Generate a changelog from git metadata",
5
- "repository": {
6
- "type": "git",
7
- "url": "https://github.com/conventional-changelog/conventional-changelog.git"
8
- },
9
- "keywords": [
10
- "conventional-changelog",
11
- "conventional",
12
- "changelog",
13
- "log"
14
- ],
15
- "engines": {
16
- "node": ">=16"
17
- },
18
- "license": "MIT",
19
- "files": [
20
- "index.js"
21
- ],
3
+ "type": "module",
4
+ "version": "6.0.0",
5
+ "description": "Generate a changelog from git metadata.",
6
+ "author": "Steve Mao",
22
7
  "contributors": [
23
8
  {
24
9
  "name": "Brian Ford"
@@ -30,21 +15,40 @@
30
15
  "name": "Andrew Joslin"
31
16
  }
32
17
  ],
18
+ "license": "MIT",
19
+ "homepage": "https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog#readme",
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "https://github.com/conventional-changelog/conventional-changelog.git",
23
+ "directory": "packages/conventional-changelog"
24
+ },
33
25
  "bugs": {
34
26
  "url": "https://github.com/conventional-changelog/conventional-changelog/issues"
35
27
  },
36
- "homepage": "https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog#readme",
28
+ "keywords": [
29
+ "conventional-changelog",
30
+ "conventional",
31
+ "changelog",
32
+ "log"
33
+ ],
34
+ "engines": {
35
+ "node": ">=18"
36
+ },
37
+ "exports": "./index.js",
38
+ "files": [
39
+ "index.js"
40
+ ],
37
41
  "dependencies": {
38
- "conventional-changelog-angular": "^7.0.0",
39
- "conventional-changelog-atom": "^4.0.0",
40
- "conventional-changelog-codemirror": "^4.0.0",
41
- "conventional-changelog-conventionalcommits": "^7.0.2",
42
- "conventional-changelog-core": "^7.0.0",
43
- "conventional-changelog-ember": "^4.0.0",
44
- "conventional-changelog-eslint": "^5.0.0",
45
- "conventional-changelog-express": "^4.0.0",
46
- "conventional-changelog-jquery": "^5.0.0",
47
- "conventional-changelog-jshint": "^4.0.0",
48
- "conventional-changelog-preset-loader": "^4.1.0"
42
+ "conventional-changelog-angular": "^8.0.0",
43
+ "conventional-changelog-codemirror": "^5.0.0",
44
+ "conventional-changelog-conventionalcommits": "^8.0.0",
45
+ "conventional-changelog-core": "^8.0.0",
46
+ "conventional-changelog-eslint": "^6.0.0",
47
+ "conventional-changelog-jquery": "^6.0.0",
48
+ "conventional-changelog-express": "^5.0.0",
49
+ "conventional-changelog-atom": "^5.0.0",
50
+ "conventional-changelog-jshint": "^5.0.0",
51
+ "conventional-changelog-preset-loader": "^5.0.0",
52
+ "conventional-changelog-ember": "^5.0.0"
49
53
  }
50
54
  }