Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
changelog2html
Advanced tools
A changelog generator which uses git tags to identify versions and dates for found changelog entry files.
Yet another changelog tool which uses git to build a html changelog.
The changelog will be generated using a set of changelog files. Each change will be documented in its own changelog file which has a unique filename:
The files can be added at any time during your development process but i suggest that you add them in combination with your changes.
The changelog2html tool will iterate over these files and determine which git tag effectively introduced each file. This way a release tag can automatically be linked to each file and thus a version can be assigned to each change. Using this information a swig template will be used to render the changelog. The changelog content must be markdown. A markdown parser will convert the content to html.
The main advantage is that you avoid having conflicts since each change has its own change file. Additionally the changelog is decoupled from the SCM log and thus a enduser friendly changelog can be maintained.
$ npm install changelog2html -g
$ changelog2html
Usage: changelog2html [options] [Changelog folder]
Options:
-h, --help output usage information
-V, --version output the version number
-t, --template [template] Filename of the custom swig template
-o, --output [output] HTML output file
$ changelog2html -t template.html -o build/changelog.html changes
changelog = require('changelog2html');
let templateFile = "template.html";
let pathToChangesFolder = "changes";
changelog(templateFile, pathToChangesFolder).then(function(result) {
console.log(result);
});
Example template:
<h1>{{ pagename|title }}</h1>
<ul>
{% for versionTag, version in versions %}
<li><h2>{{versionTag}} - {{version.date|date('F jS, Y') }}</h2>
<p>
<ul>
{% for change in version.changes %}
<li>
<h2>{{change.type}} - {{change.tag}} - {{change.date|date('F jS, Y') }}</h2>
<p>{{change.contentRendered|safe}}</p>
</li>
{% endfor %}
</ul>
</p>
</li>
{% endfor %}
</ul>
FAQs
A changelog generator which uses git tags to identify versions and dates for found changelog entry files.
We found that changelog2html demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.