From 1f34dcbfb6e0febbb93d5356fa36ac57d697a990 Mon Sep 17 00:00:00 2001 From: nanov Date: Thu, 7 Nov 2019 11:20:34 +0200 Subject: [PATCH 1/2] add changelog configoration --- CHANGELOG.md | 39 +++++++++++++++++++++++++++++++ changelog-template.hbs | 25 ++++++++++++++++++++ package-lock.json | 52 ++++++++++++++++++++++++++++++++++++++++++ package.json | 2 ++ 4 files changed, 118 insertions(+) create mode 100644 CHANGELOG.md create mode 100644 changelog-template.hbs diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..e3ad96c --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,39 @@ +### Changelog + +#### [v0.1.1](https://github.com/eCollect/node-ebics-client/compare/v0.1.0...v0.1.1) + +> 7 November 2019 + +- Closes #17 and #13 [`#21`](https://github.com/eCollect/node-ebics-client/pull/21) +- Drop moment dependency [`#20`](https://github.com/eCollect/node-ebics-client/pull/20) + +- feat: add nyc and cleanup .gitignore [`3e95478`](https://github.com/eCollect/node-ebics-client/commit/3e95478b3be719c86f32c7df10c42e46b7518669) +- feat: drop bn.js [`eea0a49`](https://github.com/eCollect/node-ebics-client/commit/eea0a49130e30c123b110120c69d7b7c19fd12ba) +- feat add BigNumber tests [`0efc46b`](https://github.com/eCollect/node-ebics-client/commit/0efc46b0143cd6deda0e5e748a9da06616a2e55b) + +#### [v0.1.0](https://github.com/eCollect/node-ebics-client/compare/v0.0.4...v0.1.0) + +> 5 November 2019 + +- Feat: handle unsual exponent migrate to node-forge [`#16`](https://github.com/eCollect/node-ebics-client/pull/16) +- Add order generation tests and fix linting [`#15`](https://github.com/eCollect/node-ebics-client/pull/15) +- test script run mocha [`#14`](https://github.com/eCollect/node-ebics-client/pull/14) +- chore: readme maintenance [`#11`](https://github.com/eCollect/node-ebics-client/pull/11) +- Provide examples [`#10`](https://github.com/eCollect/node-ebics-client/pull/10) +- * Add Z53 order type [`#7`](https://github.com/eCollect/node-ebics-client/pull/7) +- remove eCollect from constant and minor verbose error handeling [`#2`](https://github.com/eCollect/node-ebics-client/pull/2) +- add iso pain format XCT order type [`#1`](https://github.com/eCollect/node-ebics-client/pull/1) +- remove eCollect from constant and minor verbose error handaling [`#4`](https://github.com/eCollect/node-ebics-client/pull/4) +- add iso pain format XCT order type [`#5`](https://github.com/eCollect/node-ebics-client/pull/5) +- Fix parsing of the bank keys in the HPB response [`#3`](https://github.com/eCollect/node-ebics-client/pull/3) + +- feat: prepare order generation tests [`e40f79c`](https://github.com/eCollect/node-ebics-client/commit/e40f79cee68a194272c93f07e763175b213a77a1) +- chore: cleanup [`0c01420`](https://github.com/eCollect/node-ebics-client/commit/0c01420c1e14992a4169098ccd47cd196b899f06) + +#### v0.0.4 + +> 3 September 2018 + +- Major changes. Separating responsibilities. Orders builder, serializer. [`ff9a3a1`](https://github.com/eCollect/node-ebics-client/commit/ff9a3a16b47d0a25674134c875bfd651995837e4) +- initial commit [`1f947ff`](https://github.com/eCollect/node-ebics-client/commit/1f947ff1480c522f89fa1f547581b55e2378d920) +- code optimization [`1876360`](https://github.com/eCollect/node-ebics-client/commit/187636019c290d757aca77d4c14fb4f2519acd38) diff --git a/changelog-template.hbs b/changelog-template.hbs new file mode 100644 index 0000000..781ddb1 --- /dev/null +++ b/changelog-template.hbs @@ -0,0 +1,25 @@ +### Changelog + +{{#each releases}} + {{#if href}} + ###{{#unless major}}#{{/unless}} [{{title}}]({{href}}) + {{else}} + #### {{title}} + {{/if}} + + {{#if tag}} + > {{niceDate}} + {{/if}} + + {{#if summary}} + {{summary}} + {{/if}} + + {{#each merges}} + - {{message}}{{#if href}} [`#{{id}}`]({{href}}){{/if}} + {{/each}} + {{#commit-list commits heading='' message='' exclude='wip: '}} + - {{#if breaking}}**Breaking change:** {{/if}}{{subject}}{{#if href}} [`{{shorthash}}`]({{href}}){{/if}} + {{/commit-list}} + +{{/each}} diff --git a/package-lock.json b/package-lock.json index a5f2bf0..9cccb00 100644 --- a/package-lock.json +++ b/package-lock.json @@ -268,6 +268,33 @@ "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" }, + "auto-changelog": { + "version": "1.16.2", + "resolved": "https://registry.npmjs.org/auto-changelog/-/auto-changelog-1.16.2.tgz", + "integrity": "sha512-QL7zKH5FBBHz6tECO8CjZ8LpdevVSJoDskDzzPeoB9Bfe6LyXmRzXUoTIFKJXXdVaX8ydMpDO9Oa8ihZ4Au+CA==", + "requires": { + "commander": "^3.0.1", + "core-js": "^3.2.1", + "handlebars": "^4.1.2", + "lodash.uniqby": "^4.7.0", + "node-fetch": "^2.6.0", + "parse-github-url": "^1.0.2", + "regenerator-runtime": "^0.13.3", + "semver": "^6.3.0" + }, + "dependencies": { + "commander": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/commander/-/commander-3.0.2.tgz", + "integrity": "sha512-Gar0ASD4BDyKC4hl4DwHqDrmvjoxWKZigVnAbn5H1owvm4CxCPdb0HQDehwNYMJpla5+M2tPmPARzhtYuwpHow==" + }, + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" + } + } + }, "aws-sign2": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", @@ -542,6 +569,11 @@ } } }, + "core-js": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.4.0.tgz", + "integrity": "sha512-lQxb4HScV71YugF/X28LtePZj9AB7WqOpcB+YztYxusvhrgZiQXPmCYfPC5LHsw/+ScEtDbXU3xbqH3CjBRmYA==" + }, "core-util-is": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", @@ -1905,6 +1937,11 @@ "integrity": "sha1-+wMJF/hqMTTlvJvsDWngAT3f7bI=", "dev": true }, + "lodash.uniqby": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/lodash.uniqby/-/lodash.uniqby-4.7.0.tgz", + "integrity": "sha1-2ZwHpmnp5tJOE2Lf4mbGdhavEwI=" + }, "log-symbols": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-2.2.0.tgz", @@ -2285,6 +2322,11 @@ "semver": "^5.7.0" } }, + "node-fetch": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.0.tgz", + "integrity": "sha512-8dG4H5ujfvFiqDmVu9fQ5bOHUC15JMjMY/Zumv26oOvvVJjM67KF8koCWIabKQ1GJIa9r2mMZscBq/TbdOcmNA==" + }, "node-forge": { "version": "0.9.1", "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.9.1.tgz", @@ -2619,6 +2661,11 @@ "callsites": "^3.0.0" } }, + "parse-github-url": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/parse-github-url/-/parse-github-url-1.0.2.tgz", + "integrity": "sha512-kgBf6avCbO3Cn6+RnzRGLkUsv4ZVqv/VfAYkRsyBcgkshNvVBkRn1FEZcW0Jb+npXQWm2vHPnnOqFteZxRRGNw==" + }, "parse-json": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", @@ -2836,6 +2883,11 @@ } } }, + "regenerator-runtime": { + "version": "0.13.3", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.3.tgz", + "integrity": "sha512-naKIZz2GQ8JWh///G7L3X6LaQUAMp2lvb1rvwwsURe/VXwD6VMfr+/1NuNw3ag8v2kY1aQ/go5SNn79O9JU7yw==" + }, "regexpp": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-2.0.1.tgz", diff --git a/package.json b/package.json index 6933e75..a6ac335 100644 --- a/package.json +++ b/package.json @@ -41,11 +41,13 @@ ], "license": "GPL-3.0-only", "dependencies": { + "auto-changelog": "^1.16.2", "handlebars": "^4.4.3", "js2xmlparser": "^4.0.0", "node-forge": "^0.9.1", "request": "^2.88.0", "uuid": "^3.3.3", + "version": "auto-changelog -p && git add CHANGELOG.md", "xml-crypto": "^1.4.0", "xmldom": "^0.1.27", "xpath": "0.0.27" From fee2aa46817472edc5fff49f636bde586dde18fb Mon Sep 17 00:00:00 2001 From: nanov Date: Thu, 7 Nov 2019 11:35:11 +0200 Subject: [PATCH 2/2] chore: add version script --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a6ac335..9e6d6be 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "main": "index.js", "scripts": { "lint": "eslint .", - "test": "nyc mocha test/**/*.js" + "test": "nyc mocha test/**/*.js", + "version": "auto-changelog -p && git add CHANGELOG.md", }, "repository": { "type": "git", @@ -47,7 +48,6 @@ "node-forge": "^0.9.1", "request": "^2.88.0", "uuid": "^3.3.3", - "version": "auto-changelog -p && git add CHANGELOG.md", "xml-crypto": "^1.4.0", "xmldom": "^0.1.27", "xpath": "0.0.27"