1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 11:22:43 +02:00
metamask-extension/development/lib
Mark Stacey 312f2afc41
Refactor changelog parsing and generation (#10847)
The `auto-changelog.js` script has been refactoring into various
different modules. This was done in preparation for migrating this to
a separate repository, where it can be used in our libraries as well.

Functionally this should act _mostly_ the same way, but there have been
some changes. It was difficult to make this a pure refactor because of
the strategy used to validate the changelog and ensure each addition
remained valid. Instead of being updated in-place, the changelog is now
parsed upfront and stored as a "Changelog" instance, which is a new
class that was written to allow only valid changes. The new changelog
is then stringified and completely overwrites the old one.

The parsing had to be much more strict, as any unanticipated content
would otherwise be erased unintentionally. This script now also
normalizes the formatting of the changelog (though the individual
change descriptions are still unformatted).

The changelog stringification now accommodates non-linear releases as
well. For example, you can now release v1.0.1 *after* v2.0.0, and it
will be listed in chronological order while also correctly constructing
the `compare` URLs for each release.
2021-04-08 16:14:30 -02:30
..
changelog Refactor changelog parsing and generation (#10847) 2021-04-08 16:14:30 -02:30
create-segment-server.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
locales.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
parse-port.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
runCommand.js Rewrite changelog script from Bash to JavaScript (#10782) 2021-03-31 14:15:53 -02:30