Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

offline-github-changelog

Package Overview
Dependencies
Maintainers
2
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

offline-github-changelog - npm Package Compare versions

Comparing version 2.4.0 to 2.5.0

37

CHANGELOG.md

@@ -0,1 +1,18 @@

### v2.5.0 (2022-05-31)
- [#78](https://github.com/sunesimonsen/offline-github-changelog/pull/78) Upgrade transformation ([Sune Simonsen](mailto:sune@we-knowhow.dk), [Sune Simonsen](mailto:sune@we-knowhow.dk), [Sune Simonsen](mailto:sune@we-knowhow.dk), [Sune Simonsen](mailto:sune@we-knowhow.dk))
- [#74](https://github.com/sunesimonsen/offline-github-changelog/pull/74) Bump sinon from 13.0.2 to 14.0.0 ([dependabot[bot]](mailto:49699333+dependabot[bot]@users.noreply.github.com))
- [#70](https://github.com/sunesimonsen/offline-github-changelog/pull/70) Bump prettier from 2.5.1 to 2.6.2 ([dependabot[bot]](mailto:49699333+dependabot[bot]@users.noreply.github.com))
- [#72](https://github.com/sunesimonsen/offline-github-changelog/pull/72) Bump unexpected from 12.0.4 to 13.0.0 ([dependabot[bot]](mailto:49699333+dependabot[bot]@users.noreply.github.com))
- [#71](https://github.com/sunesimonsen/offline-github-changelog/pull/71) Bump unexpected-snapshot from 1.2.0 to 2.0.0 ([dependabot[bot]](mailto:49699333+dependabot[bot]@users.noreply.github.com))
- [#67](https://github.com/sunesimonsen/offline-github-changelog/pull/67) Bump sinon from 12.0.1 to 13.0.0 ([dependabot[bot]](mailto:49699333+dependabot[bot]@users.noreply.github.com))
- [#47](https://github.com/sunesimonsen/offline-github-changelog/pull/47) Bump eslint-config-prettier from 7.2.0 to 8.3.0 ([Sune Simonsen](mailto:sune@we-knowhow.dk), [dependabot[bot]](mailto:49699333+dependabot[bot]@users.noreply.github.com))
- [#63](https://github.com/sunesimonsen/offline-github-changelog/pull/63) Bump sinon from 11.1.2 to 12.0.1 ([dependabot[bot]](mailto:49699333+dependabot[bot]@users.noreply.github.com))
- [#66](https://github.com/sunesimonsen/offline-github-changelog/pull/66) Bump eslint-plugin-promise from 5.2.0 to 6.0.0 ([dependabot[bot]](mailto:49699333+dependabot[bot]@users.noreply.github.com))
- [#65](https://github.com/sunesimonsen/offline-github-changelog/pull/65) Bump eslint-plugin-mocha from 9.0.0 to 10.0.1 ([dependabot[bot]](mailto:49699333+dependabot[bot]@users.noreply.github.com))
- [#54](https://github.com/sunesimonsen/offline-github-changelog/pull/54) Bump eslint-plugin-mocha from 8.2.0 to 9.0.0 ([dependabot[bot]](mailto:49699333+dependabot[bot]@users.noreply.github.com))
- [#58](https://github.com/sunesimonsen/offline-github-changelog/pull/58) Bump mocha from 8.4.0 to 9.1.3 ([dependabot[bot]](mailto:49699333+dependabot[bot]@users.noreply.github.com))
- [#61](https://github.com/sunesimonsen/offline-github-changelog/pull/61) Bump eslint-plugin-promise from 4.3.1 to 5.2.0 ([dependabot[bot]](mailto:49699333+dependabot[bot]@users.noreply.github.com))
- [#62](https://github.com/sunesimonsen/offline-github-changelog/pull/62) Bump prettier from 2.2.1 to 2.5.1 ([dependabot[bot]](mailto:49699333+dependabot[bot]@users.noreply.github.com))
### v2.4.0 (2021-09-17)

@@ -49,4 +66,4 @@

- [#13](https://github.com/sunesimonsen/offline-github-changelog/pull/13) Use the transformation library \(Major\) ([Sune Simonsen](mailto:sune@we-knowhow.dk))
- [#12](https://github.com/sunesimonsen/offline-github-changelog/pull/12) Update prettier to ~2.0.5 ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
- [#13](https://github.com/sunesimonsen/offline-github-changelog/pull/13) Use the transformation library \(Major\) ([Sune Simonsen](mailto:sune@we-knowhow.dk), [Sune Simonsen](mailto:sune@we-knowhow.dk))
- [#12](https://github.com/sunesimonsen/offline-github-changelog/pull/12) Update prettier to ~2.0.5 ([Andreas Lind](mailto:andreaslindpetersen@gmail.com), [Andreas Lind](mailto:andreaslindpetersen@gmail.com), [Andreas Lind](mailto:andreaslindpetersen@gmail.com), [Andreas Lind](mailto:andreaslindpetersen@gmail.com))

@@ -57,3 +74,3 @@ ### v1.7.0 (2020-07-22)

- [#9](https://github.com/sunesimonsen/offline-github-changelog/pull/9) Add tests ([Andreas Lind](mailto:andreas.lind@peakon.com), [Andreas Lind](mailto:andreaslindpetersen@gmail.com), [Sune Simonsen](mailto:sune@we-knowhow.dk))
- [#9](https://github.com/sunesimonsen/offline-github-changelog/pull/9) Add tests ([Andreas Lind](mailto:andreas.lind@peakon.com), [Andreas Lind](mailto:andreas.lind@peakon.com), [Andreas Lind](mailto:andreaslindpetersen@gmail.com), [Andreas Lind](mailto:andreaslindpetersen@gmail.com), [Andreas Lind](mailto:andreaslindpetersen@gmail.com), [Andreas Lind](mailto:andreaslindpetersen@gmail.com), [Andreas Lind](mailto:andreaslindpetersen@gmail.com), [Andreas Lind](mailto:andreaslindpetersen@gmail.com), [Andreas Lind](mailto:andreaslindpetersen@gmail.com), [Andreas Lind](mailto:andreaslindpetersen@gmail.com), [Andreas Lind](mailto:andreaslindpetersen@gmail.com), [Andreas Lind](mailto:andreaslindpetersen@gmail.com), [Andreas Lind](mailto:andreaslindpetersen@gmail.com), [Andreas Lind](mailto:andreaslindpetersen@gmail.com), [Andreas Lind](mailto:andreaslindpetersen@gmail.com), [Andreas Lind](mailto:andreaslindpetersen@gmail.com), [Andreas Lind](mailto:andreaslindpetersen@gmail.com), [Andreas Lind](mailto:andreaslindpetersen@gmail.com), [Andreas Lind](mailto:andreaslindpetersen@gmail.com), [Andreas Lind](mailto:andreaslindpetersen@gmail.com), [Andreas Lind](mailto:andreaslindpetersen@gmail.com), [Andreas Lind](mailto:andreaslindpetersen@gmail.com), [Sune Simonsen](mailto:sune@we-knowhow.dk))

@@ -68,3 +85,3 @@ #### Commits to master

- [#8](https://github.com/sunesimonsen/offline-github-changelog/pull/8) Fix support for old tags\/refs where %\(ref\) comes out empty for some reason ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
- [#8](https://github.com/sunesimonsen/offline-github-changelog/pull/8) Fix support for old tags\/refs where %\(ref\) comes out empty for some reason ([Andreas Lind](mailto:andreaslindpetersen@gmail.com), [Andreas Lind](mailto:andreaslindpetersen@gmail.com))

@@ -74,20 +91,20 @@ ### v1.6.0 (2019-03-31)

- [#7](https://github.com/sunesimonsen/offline-github-changelog/pull/7) Implement --next switch ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
- [#6](https://github.com/sunesimonsen/offline-github-changelog/pull/6) Add prettier, eslint, and Travis config ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
- [#6](https://github.com/sunesimonsen/offline-github-changelog/pull/6) Add prettier, eslint, and Travis config ([Andreas Lind](mailto:andreaslindpetersen@gmail.com), [Andreas Lind](mailto:andreaslindpetersen@gmail.com), [Andreas Lind](mailto:andreaslindpetersen@gmail.com), [Andreas Lind](mailto:andreaslindpetersen@gmail.com), [Andreas Lind](mailto:andreaslindpetersen@gmail.com))
### v1.5.0 (2019-03-12)
- [#5](https://github.com/sunesimonsen/offline-github-changelog/pull/5) Also include regular commits \(not via PRs\) in the changelog to avoid gaps ([Andreas Lind](mailto:andreaslindpetersen@gmail.com), [Sune Simonsen](mailto:sune@we-knowhow.dk))
- [#5](https://github.com/sunesimonsen/offline-github-changelog/pull/5) Also include regular commits \(not via PRs\) in the changelog to avoid gaps ([Andreas Lind](mailto:andreaslindpetersen@gmail.com), [Andreas Lind](mailto:andreaslindpetersen@gmail.com), [Andreas Lind](mailto:andreaslindpetersen@gmail.com), [Andreas Lind](mailto:andreaslindpetersen@gmail.com), [Sune Simonsen](mailto:sune@we-knowhow.dk), [Sune Simonsen](mailto:sune@we-knowhow.dk))
### v1.4.0 (2019-01-07)
- [#3](https://github.com/sunesimonsen/offline-github-changelog/pull/3) Add a remote cli argument ([Andrea D](mailto:nkjoep@gmail.com))
- [#3](https://github.com/sunesimonsen/offline-github-changelog/pull/3) Add a remote cli argument ([Andrea D](mailto:nkjoep@gmail.com), [Andrea D](mailto:nkjoep@gmail.com))
### v1.3.0 (2019-01-06)
- [#4](https://github.com/sunesimonsen/offline-github-changelog/pull/4) Escape markdown special characters in PR titles ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
- [#4](https://github.com/sunesimonsen/offline-github-changelog/pull/4) Escape markdown special characters in PR titles ([Andreas Lind](mailto:andreaslindpetersen@gmail.com), [Andreas Lind](mailto:andreaslindpetersen@gmail.com))
### v1.1.3 (2019-01-05)
- [#4](https://github.com/sunesimonsen/offline-github-changelog/pull/4) Escape markdown special characters in PR titles ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
- [#2](https://github.com/sunesimonsen/offline-github-changelog/pull/2) Credit authors ([Sune Simonsen](mailto:sune@we-knowhow.dk))
- [#4](https://github.com/sunesimonsen/offline-github-changelog/pull/4) Escape markdown special characters in PR titles ([Andreas Lind](mailto:andreaslindpetersen@gmail.com), [Andreas Lind](mailto:andreaslindpetersen@gmail.com))
- [#2](https://github.com/sunesimonsen/offline-github-changelog/pull/2) Credit authors ([Sune Simonsen](mailto:sune@we-knowhow.dk), [Sune Simonsen](mailto:sune@we-knowhow.dk), [Sune Simonsen](mailto:sune@we-knowhow.dk))

@@ -94,0 +111,0 @@ ### v1.1.2 (2017-10-05)

@@ -8,3 +8,2 @@ const {

map,
uniq,
skipLast,

@@ -79,6 +78,8 @@ toArray,

sort(),
uniq(),
toArray()
),
}),
transform({
authors: (authors) => Array.from(new Set(authors)),
}),
toArray()

@@ -85,0 +86,0 @@ );

{
"name": "offline-github-changelog",
"version": "2.4.0",
"version": "2.5.0",
"description": "A changelog generator for Github projects that only uses the Git history",

@@ -29,6 +29,6 @@ "main": "./lib/index.js",

"dependencies": {
"@transformation/core": "^4.1.1",
"@transformation/ejs": "^4.1.1",
"@transformation/process": "^4.1.1",
"@transformation/stream": "^4.1.1",
"@transformation/core": "^5.1.1",
"@transformation/ejs": "^5.1.1",
"@transformation/process": "^5.1.1",
"@transformation/stream": "^5.1.1",
"markdown-escape": "^1.0.2",

@@ -39,15 +39,15 @@ "meow": "^9.0.0"

"eslint": "^7.14.0",
"eslint-config-prettier": "^7.0.0",
"eslint-config-prettier": "^8.3.0",
"eslint-config-standard": "^16.0.2",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-mocha": "^8.0.0",
"eslint-plugin-mocha": "^10.0.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.0.1",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-standard": "^5.0.0",
"mocha": "^8.2.1",
"prettier": "~2.2.0",
"mocha": "^9.1.3",
"prettier": "~2.6.2",
"semver": "^7.3.2",
"sinon": "^11.0.0",
"unexpected": "^12.0.0",
"unexpected-snapshot": "^1.1.0"
"sinon": "^14.0.0",
"unexpected": "^13.0.0",
"unexpected-snapshot": "^2.1.0"
},

@@ -54,0 +54,0 @@ "scripts": {

@@ -1,4 +0,3 @@

const { printMarkdownChangelog, markdownChangelogString } = require('../');
const { markdownChangelogString } = require('../');
const { inspect } = require('util');
const { resolve } = require('path');

@@ -15,3 +14,2 @@ const sinon = require('sinon');

beforeEach(() => {
sinon.stub(console, 'log');
clock = sinon.useFakeTimers({

@@ -25,3 +23,2 @@ now: new Date('2019-05-02T12:34:56.789Z'),

afterEach(() => {
console.log.restore();
clock.restore();

@@ -31,14 +28,4 @@ process.chdir(originalDir);

function getOutput() {
return console.log.args
.map((values) => {
return values
.map((value) => (typeof value === 'string' ? value : inspect(value)))
.join(' ');
})
.join('\n');
}
it('should generate a changelog', async () => {
await printMarkdownChangelog({
const output = await markdownChangelogString({
originName: 'origin',

@@ -49,3 +36,3 @@ currentBranch: 'master',

expect(
getOutput(),
output,
'to equal snapshot',

@@ -80,51 +67,2 @@ expect.unindent`

it('should attribute the latest commits on master to the given version', async () => {
await printMarkdownChangelog({
originName: 'origin',
nextVersion: '1.2.3',
currentBranch: 'master',
});
expect(
getOutput(),
'to equal snapshot',
expect.unindent`
### v1.2.3 (2019-05-02)
#### Pull requests
- [#123](https://github.com/papandreou/offline-github-changelog-test1/pull/123) The title of some PR ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
- [#3](https://github.com/papandreou/offline-github-changelog-test1/pull/3) An unreleased feature ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
#### Commits to master
- [HTML in commit message: <html dir="rtl">](https://github.com/papandreou/offline-github-changelog-test1/commit/af22733adbc2fc4977862348f68d152b754b4516) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
- [Unreleased commit on master](https://github.com/papandreou/offline-github-changelog-test1/commit/d3987d8212cb43ce39255877f75d45780c00b19a) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
### v1.0.1
#### Pull requests
- [#2](https://github.com/papandreou/offline-github-changelog-test1/pull/2) Feature for one oh one ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
#### Commits to master
- [Release 1.0.1](https://github.com/papandreou/offline-github-changelog-test1/commit/825179ea6b03098ebba60e433be57dfdcef2a3bd) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
- [Another commit to master for 1.0.1](https://github.com/papandreou/offline-github-changelog-test1/commit/f9509628af0dc9753b4d7a69467e8f060fba85d0) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
- [Commit to master for 1.0.1](https://github.com/papandreou/offline-github-changelog-test1/commit/e110b7590329843a20a26ffbb7b971ec3bfd9fd4) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
### v1.0.0
#### Pull requests
- [#1](https://github.com/papandreou/offline-github-changelog-test1/pull/1) Feature commit before first release ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
#### Commits to master
- [Release 1.0.0](https://github.com/papandreou/offline-github-changelog-test1/commit/e1fe60089ad08d31929707a1713d711e9a49b58c) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
- [Commit to master before first release](https://github.com/papandreou/offline-github-changelog-test1/commit/36851b522fc40ada3bb85d52d77183db23285143) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))`
);
});
});
describe('markdownChangelogString', () => {
it('returns the markdown changelog as a string', async () => {
const output = await markdownChangelogString({

@@ -131,0 +69,0 @@ originName: 'origin',

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc