Skip to content

Commit

Permalink
New release for v0.5.0 (#21)
Browse files Browse the repository at this point in the history
* 0.5.0

* Update version

* Update release guide

* Update changelog
  • Loading branch information
JordanMartinez committed Sep 18, 2023
1 parent db25673 commit b202769
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 16 deletions.
11 changes: 0 additions & 11 deletions CHANGELOG.d/breaking_overwrite-readme-only.md

This file was deleted.

39 changes: 39 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,45 @@

Notable changes to this project are documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). This file is updated via [purs-changelog](https://github.com/JordanMartinez/purescript-up-changelog)

## 0.5.0

Breaking changes:

* Replace `--force` with `--overwrite-dir-readme` flag (#14 by @JordanMartinez)

Previously, `--force` would overwrite both the `CHANGELOG.md` file
and the `CHANGELOG.d/README.md` files. However, if a `CHANGELOG.md` file exists,
it's likely because one is already using some changelog file in the first place.
Thus, overwriting it would be annoying and unhelpful.

This CLI args and `init` command's logic have been tweaked, so that only the
`CHANGELOG.d/README.md` file can be overwritten. If the `CHANGELOG.md` file exists,
then we only check whether the `update` command will work in the future by seeing
whether the file can be split into two parts: the preamble and everything else.

* Use shared prefix, `from`, for CLI version args (#18 by @JordanMartinez)

- `--package-json` -> `--from-package-json`
- `--cabal` -> `--from-cabal`
- `--explicit-version` -> `--from-version`

New Features:

* Added `--dry-run` flag (#20 by @JordanMartinez)

See what the new section in the changelog will be before committing it

* Added `--from-custom` (#19 by @JordanMartinez)

Allow user to use custom string for version header

Internal:

* Update Node libraries to latest release (#17 by @JordanMartinez)
* Update PureScript libraries and package set to latest releases (#17 by @JordanMartinez)
* Optimize PureScript output via `purs-backend-es` (#17 by @JordanMartinez)
* Add tests verifying that code works (#18 by @JordanMartinez)

## 0.4.0

Breaking changes:
Expand Down
2 changes: 1 addition & 1 deletion RELEASE_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ git add package.json bin/Main.purs
git commit -m "Update version"

npm run bundle
./bin/index.js update
./bin/index.mjs update
git commit -m "Update changelog"

gh pr create
Expand Down
2 changes: 1 addition & 1 deletion bin/Main.purs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ main = do
launchAff_ $ runApp init { logger: mkLogger logType, cli: options }

version :: String
version = "0.4.0"
version = "0.5.0"

mkLogger :: LoggerType -> Logger Effect
mkLogger = case _ of
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "uplog",
"version": "0.4.0",
"version": "0.5.0",
"description": "A maintainer and contributor-friendly tool for generating a human-readable CHANGELOG.md",
"bin": {
"uplog": "bin/index.mjs"
Expand Down

0 comments on commit b202769

Please sign in to comment.