diff --git a/.release-it.json b/.release-it.json index b4f3826..a359d13 100644 --- a/.release-it.json +++ b/.release-it.json @@ -1,6 +1,7 @@ { "hooks": { - "before:init": "npm run lint && npm run test" + "before:init": "npm run lint && npm run test", + "after:bump": ["git-cliff -o CHANGELOG.md --tag ${version}"] }, "git": { "commitArgs": ["-S"], diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..98e0b8d --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,126 @@ +### Changelog + +All notable changes to this project will be documented in this file. + +#### [1.4.0](https://github.com/AlecRust/gphotos-takeout-repair/releases/tag/1.4.0) + +> 4 February 2024 + +- Add eslint-plugin-node [`09858c7`](https://github.com/AlecRust/gphotos-takeout-repair/commit/09858c7d11ab875d7fd5a74242652aae46855cb5) +- Fix test file being published [`3100864`](https://github.com/AlecRust/gphotos-takeout-repair/commit/31008647fe4ea29546644f973080cdddbcfa148d) +- Add @jest/globals as dev dependency [`a66228c`](https://github.com/AlecRust/gphotos-takeout-repair/commit/a66228ca14a6d95f2d58b851ce6f67c4d3ac32cf) +- Run lint CI on LTS Node.js [`c81f830`](https://github.com/AlecRust/gphotos-takeout-repair/commit/c81f830b0d8141ebb158011fd21316a325568ac8) +- More specific minimum supported Node.js version [`c36d9d2`](https://github.com/AlecRust/gphotos-takeout-repair/commit/c36d9d25ff2846836ab076b567124e2a930aabb3) +- Bump dev dependencies [`23e0803`](https://github.com/AlecRust/gphotos-takeout-repair/commit/23e080378d94dcb9ff9b280bedcdd66eb43b990b) +- Upgrade husky to v9 [`46458e5`](https://github.com/AlecRust/gphotos-takeout-repair/commit/46458e572d207d0e6d99c6c7b45bd57389a7fc58) +- Remove npm dependabot [`02f9453`](https://github.com/AlecRust/gphotos-takeout-repair/commit/02f945315daf4848193bfc0fc27eaa141bbadd6f) +- Bump deps [`1419ab7`](https://github.com/AlecRust/gphotos-takeout-repair/commit/1419ab7083bc262a5efd9d821cdfd8c9862c7759) +- Merge pull request #11 from AlecRust/dependabot/npm_and_yarn/lint-staged-15.2.0 [`e7d199a`](https://github.com/AlecRust/gphotos-takeout-repair/commit/e7d199a0cb1a92600907384d234aa1212fb06894) +- Bump lint-staged from 15.1.0 to 15.2.0 [`d6bf029`](https://github.com/AlecRust/gphotos-takeout-repair/commit/d6bf0297cae05515c30c0a89c90703ecd3c9d12c) +- Merge pull request #10 from AlecRust/dependabot/npm_and_yarn/eslint-config-prettier-9.1.0 [`7547be8`](https://github.com/AlecRust/gphotos-takeout-repair/commit/7547be8eb18ea63cee568504e7af54fd19f31e55) +- Bump eslint-config-prettier from 9.0.0 to 9.1.0 [`07c3356`](https://github.com/AlecRust/gphotos-takeout-repair/commit/07c3356aa233b99bcb64d3b86a33aac4fe460a66) +- Merge pull request #9 from AlecRust/dependabot/npm_and_yarn/release-it-17.0.1 [`da1ec3f`](https://github.com/AlecRust/gphotos-takeout-repair/commit/da1ec3f96d0cf86202a784f0cba2642ec4ec25f5) +- Bump release-it from 16.3.0 to 17.0.1 [`07b2729`](https://github.com/AlecRust/gphotos-takeout-repair/commit/07b27293c472ad340dd57e792d37eea2973ccf47) +- Merge pull request #8 from AlecRust/dependabot/npm_and_yarn/prettier-3.1.1 [`a201ab7`](https://github.com/AlecRust/gphotos-takeout-repair/commit/a201ab7d1a02a48d56c04999b7ac5994ea0105c0) +- Bump prettier from 3.1.0 to 3.1.1 [`4d92062`](https://github.com/AlecRust/gphotos-takeout-repair/commit/4d92062ec2da9689503985ba72077ae415d2a27b) +- Merge pull request #7 from AlecRust/dependabot/npm_and_yarn/eslint-8.56.0 [`086cbcc`](https://github.com/AlecRust/gphotos-takeout-repair/commit/086cbccd18ddcfb9733ee9c9d6ba89d1b39a2b3a) +- Bump eslint from 8.54.0 to 8.56.0 [`087d7aa`](https://github.com/AlecRust/gphotos-takeout-repair/commit/087d7aa9078703a0fc04af1b557d327bf85b0fc5) +- Merge pull request #6 from AlecRust/dependabot/npm_and_yarn/lint-staged-15.1.0 [`afdf9c5`](https://github.com/AlecRust/gphotos-takeout-repair/commit/afdf9c548a2e6a09c7dc65bb633bfb36ebd6bbaf) +- Bump lint-staged from 15.0.2 to 15.1.0 [`9718eef`](https://github.com/AlecRust/gphotos-takeout-repair/commit/9718eef25562fcaeef87f61038e39a0cdcf42553) +- Merge pull request #5 from AlecRust/dependabot/npm_and_yarn/eslint-8.54.0 [`6fd9cdf`](https://github.com/AlecRust/gphotos-takeout-repair/commit/6fd9cdf3ca179318e0bf667263fcba71d34e3fc2) +- Bump eslint from 8.52.0 to 8.54.0 [`5c207f3`](https://github.com/AlecRust/gphotos-takeout-repair/commit/5c207f3b95e5aef808d01b58c0d22bf26dde263d) +- Merge pull request #4 from AlecRust/dependabot/npm_and_yarn/release-it-16.3.0 [`e452a57`](https://github.com/AlecRust/gphotos-takeout-repair/commit/e452a57c1545bd7228d13074222d43991c9f0030) +- Bump release-it from 16.2.1 to 16.3.0 [`97e695c`](https://github.com/AlecRust/gphotos-takeout-repair/commit/97e695c287a2091d2d425d38e4123b94f9ee0fb5) +- Merge pull request #3 from AlecRust/dependabot/npm_and_yarn/fs-extra-11.2.0 [`c910e71`](https://github.com/AlecRust/gphotos-takeout-repair/commit/c910e71d5a8e04168d1a08a01af2eb042dd5a7aa) +- Bump fs-extra from 11.1.1 to 11.2.0 [`83946c1`](https://github.com/AlecRust/gphotos-takeout-repair/commit/83946c18291ee5bbe42280795ea4e6f4c2f27ba6) +- Merge pull request #2 from AlecRust/dependabot/npm_and_yarn/prettier-3.1.0 [`7ba89f0`](https://github.com/AlecRust/gphotos-takeout-repair/commit/7ba89f00de98924007c1c166657a05524271769b) +- Bump prettier from 3.0.3 to 3.1.0 [`98823e5`](https://github.com/AlecRust/gphotos-takeout-repair/commit/98823e56b0c5adb9286e0034cb6f836c072d3dfa) + +#### [1.3.1](https://github.com/AlecRust/gphotos-takeout-repair/releases/tag/1.3.1) + +> 28 October 2023 + +- Improve timestamp setting [`7aa4713`](https://github.com/AlecRust/gphotos-takeout-repair/commit/7aa4713c54b2a1005c718fc16840b8b388f29594) +- Refactor utility functions to simplify [`5a067db`](https://github.com/AlecRust/gphotos-takeout-repair/commit/5a067db96a98401d5830e8fb736f7cf76a78d104) +- Tidy tests [`667913c`](https://github.com/AlecRust/gphotos-takeout-repair/commit/667913ccaa48c8f489d825623f6e56330fd9d3da) +- Link to related project [`80fd5a5`](https://github.com/AlecRust/gphotos-takeout-repair/commit/80fd5a5e52e66bfd5efbf5799cc7939d240e9f14) +- Extract utility function [`11a1f97`](https://github.com/AlecRust/gphotos-takeout-repair/commit/11a1f97847a0284d508857d285a3bbc14308e417) +- Update README [`99f2c1e`](https://github.com/AlecRust/gphotos-takeout-repair/commit/99f2c1e59d0445bde9e60eb7d1a354241ec2321b) + +#### [1.3.0](https://github.com/AlecRust/gphotos-takeout-repair/releases/tag/1.3.0) + +> 28 October 2023 + +- Improve candidate building to better handle filename periods [`9c6d212`](https://github.com/AlecRust/gphotos-takeout-repair/commit/9c6d2123fdcccacb07587be7135ffb131ba57579) +- Exclude JSON files from candidates array [`21eb820`](https://github.com/AlecRust/gphotos-takeout-repair/commit/21eb820e97d80722be76bdb97f5bccf8aecd1132) +- Reference another related project [`5dc4e22`](https://github.com/AlecRust/gphotos-takeout-repair/commit/5dc4e223216e0eacc2e2a635674446219f62b722) + +#### [1.2.0](https://github.com/AlecRust/gphotos-takeout-repair/releases/tag/1.2.0) + +> 26 October 2023 + +- Add mismatched extensions test case [`ec474b6`](https://github.com/AlecRust/gphotos-takeout-repair/commit/ec474b67410796d4302ea8210c711c0fbf3df5c4) +- Bump eslint-plugin-jest version [`6423eb4`](https://github.com/AlecRust/gphotos-takeout-repair/commit/6423eb462eb9ec46a0028b129f6ae559137434f8) +- Handle ampersands [`7a4c204`](https://github.com/AlecRust/gphotos-takeout-repair/commit/7a4c2041e9ff62e889b1e28f66c98c07b259a6d9) +- Split out complex logic, warn if no media match found [`e1de832`](https://github.com/AlecRust/gphotos-takeout-repair/commit/e1de832b0aa2503b944c82a1c506f997fb83a581) + +#### [1.1.2](https://github.com/AlecRust/gphotos-takeout-repair/releases/tag/1.1.2) + +> 26 October 2023 + +- Fix tests on Node.js v20 [`e91f7ef`](https://github.com/AlecRust/gphotos-takeout-repair/commit/e91f7ef19f0a47a573dfe83bc8c0971600c3bac4) +- Remove "latest" Node version from test matrix [`7975930`](https://github.com/AlecRust/gphotos-takeout-repair/commit/79759304573eeb72c094cc7f0f4ee182b6c489d9) +- Refactor to ESM [`812c855`](https://github.com/AlecRust/gphotos-takeout-repair/commit/812c85578ec10c631a79341c3fb94809bf913f62) +- Fix up README examples [`c2f0dfb`](https://github.com/AlecRust/gphotos-takeout-repair/commit/c2f0dfb39353ce6d0f606af6c5b2adf51135c2b7) +- Add link to tests in README [`83782db`](https://github.com/AlecRust/gphotos-takeout-repair/commit/83782db2b6b2a6622ebfdf17ed3342b5ed1692f4) +- Tidy README [`0068fa1`](https://github.com/AlecRust/gphotos-takeout-repair/commit/0068fa171e464601503c37e6612755e760a0e00d) +- Remove ES6 env from ESLint config [`fceec6a`](https://github.com/AlecRust/gphotos-takeout-repair/commit/fceec6a160e86d7600340cdddff3dc479d3e47c9) +- Use integers in tests where appropriate [`1c0f7de`](https://github.com/AlecRust/gphotos-takeout-repair/commit/1c0f7de48d00758eeaf5df3a448154959aead8d3) +- Improve description [`a6294e0`](https://github.com/AlecRust/gphotos-takeout-repair/commit/a6294e0791ec13eeff4ea9ea4da4134eee3dd9c3) + +#### [1.1.1](https://github.com/AlecRust/gphotos-takeout-repair/releases/tag/1.1.1) + +> 26 October 2023 + +- Set "repository" in package.json [`d857f3e`](https://github.com/AlecRust/gphotos-takeout-repair/commit/d857f3e553fc68d572fbe31087d2ee2b005e6e49) +- Create LICENSE [`6199a5d`](https://github.com/AlecRust/gphotos-takeout-repair/commit/6199a5dd01da41a508a8e7019880cae5996e2750) +- Set MIT license [`b75780d`](https://github.com/AlecRust/gphotos-takeout-repair/commit/b75780d37524481a20b958e12ca1e0e27eee6df0) +- Tidy tests [`dd4275f`](https://github.com/AlecRust/gphotos-takeout-repair/commit/dd4275fdb8b5dd4e07dbc74568d05648ca5102ff) +- Enable monthly dependabot npm updates [`0d56819`](https://github.com/AlecRust/gphotos-takeout-repair/commit/0d5681919bc3a3e196bd680173796647a85478e4) +- Use better npm version badge [`f191d42`](https://github.com/AlecRust/gphotos-takeout-repair/commit/f191d42a990205424ebc098b62b762be3054df25) + +#### [1.1.0](https://github.com/AlecRust/gphotos-takeout-repair/releases/tag/1.1.0) + +> 26 October 2023 + +- Move timestamp debug log behind new --verbose option [`2cf9aab`](https://github.com/AlecRust/gphotos-takeout-repair/commit/2cf9aab43035ed5e6b52dbda1bc9078d404cfbf1) +- Add "retains non-image filenames" test case [`0d35a05`](https://github.com/AlecRust/gphotos-takeout-repair/commit/0d35a054c826d6b2b56c1a8c6f268a735a7a8691) +- Improve handling of different file types with similar filenames [`d59d27c`](https://github.com/AlecRust/gphotos-takeout-repair/commit/d59d27cd741935d0ee7c1d9300fee2174fc51b00) +- Include latest Node.js version in test matrix [`f6a1a47`](https://github.com/AlecRust/gphotos-takeout-repair/commit/f6a1a478da62dd6af94d39cfd0468072a40da6d1) +- Fix tests getting file stats in Node.js v20 [`c55523c`](https://github.com/AlecRust/gphotos-takeout-repair/commit/c55523c28424e6c200750f60a4cf1ee8ba4aca80) +- Add tests [`e4f330d`](https://github.com/AlecRust/gphotos-takeout-repair/commit/e4f330d602b1ef6948928483aa007c598780d2ac) +- Tidy README [`13e5c21`](https://github.com/AlecRust/gphotos-takeout-repair/commit/13e5c214cc9868e74774a82b8356cb889252c92d) + +#### [1.0.2](https://github.com/AlecRust/gphotos-takeout-repair/releases/tag/1.0.2) + +> 25 October 2023 + +- Refactor [`0169d9e`](https://github.com/AlecRust/gphotos-takeout-repair/commit/0169d9e54731fa382cdb704d30df746661613c91) +- Tidy [`8581a68`](https://github.com/AlecRust/gphotos-takeout-repair/commit/8581a68d132de8f8e43b3a8f22f9267ecb13c601) +- Improve log output [`2259270`](https://github.com/AlecRust/gphotos-takeout-repair/commit/2259270a11f63e7c8c2c9ad3047234117e70087a) + +#### [1.0.1](https://github.com/AlecRust/gphotos-takeout-repair/releases/tag/1.0.1) + +> 25 October 2023 + +- Add shebang [`2e82769`](https://github.com/AlecRust/gphotos-takeout-repair/commit/2e82769fa3a5583fc213b51a777a67c8f8e99e6f) +- Tidy README [`a4c7ea0`](https://github.com/AlecRust/gphotos-takeout-repair/commit/a4c7ea04d6ab3c5063728042c4beb55841d27f3e) +- Fix typo [`f7876b2`](https://github.com/AlecRust/gphotos-takeout-repair/commit/f7876b2de2f1ac48bcad5015e9e439e42256a892) +- Merge pull request #1 from AlecRust/dependabot/github_actions/actions/setup-node-4 [`189a57f`](https://github.com/AlecRust/gphotos-takeout-repair/commit/189a57f93e10d3dead453aded7775f147e488dc3) +- Bump actions/setup-node from 3 to 4 [`4b1b451`](https://github.com/AlecRust/gphotos-takeout-repair/commit/4b1b451777fb861c321c5d6ad329cdc3567bbfb1) + +#### [1.0.0](https://github.com/AlecRust/gphotos-takeout-repair/releases/tag/1.0.0) + +> 25 October 2023 + +- Initial commit [`37e0a04`](https://github.com/AlecRust/gphotos-takeout-repair/commit/37e0a04a837a34d76e17244ed82c0a589d1b242d) diff --git a/cliff.toml b/cliff.toml new file mode 100644 index 0000000..294d4aa --- /dev/null +++ b/cliff.toml @@ -0,0 +1,27 @@ +[changelog] +header = """ +### Changelog\n +All notable changes to this project will be documented in this file. +""" +body = """ +{% if version %}\ +\n#### [{{ version | trim_start_matches(pat="v") }}](https://github.com/AlecRust/gphotos-takeout-repair/releases/tag/{{ version | trim_start_matches(pat="v") }})\n +> {{ timestamp | date(format="%-d %B %Y") | default(value="") }}\n +{% for commit in commits %}\ +- {{ commit.message | split(pat="\n") | first | trim }} [`{{ commit.id | truncate(length=7, end="") }}`](https://github.com/AlecRust/gphotos-takeout-repair/commit/{{ commit.id }}) +{% endfor %}\ +{% endif %} +""" + +[git] +conventional_commits = false +filter_unconventional = false +sort_commits = "newest" + +[[git.commit_parsers]] +message = "^Release" +skip = true + +[remote.github] +owner = "AlecRust" +repo = "gphotos-takeout-repair"