Releases: hashicorp/copywrite
Releases · hashicorp/copywrite
v0.25.0
Improvements
- Major Performance Optimizations (#191): Significantly improved performance by caching git repository information and reducing redundant lookups during header processing
- Auto-Migration from HashiCorp to IBM (#189): Added automatic detection and migration of HashiCorp copyright holders to IBM format, supporting all comment styles and preserving year information
v0.24.2
v0.24.2
Bug Fixes
Fix .hbs file copyright parsing to prevent code corruption
Fixed a critical bug where the copyright detection logic was incorrectly modifying JavaScript code inside .hbs (Handlebars) template files. Previously, any indented line containing "copyright" (such as copyright: 'Copyright Acme Inc.' in JavaScript objects) was being treated as a copyright header and modified.
What changed:
- Implemented comment block tracking for
.hbsfiles to distinguish between actual copyright headers inside{{! ... }}comment blocks and regular code - Removed the generic two-space prefix from global comment detection to prevent false positives
- Indented copyright lines are now only detected when inside handlebars
{{! ... }}comment blocks
Impact:
- ✅
.hbsfiles with multi-line copyright headers in{{! ... }}blocks work correctly - ✅ JavaScript code with "copyright" keywords (e.g., in config objects) is no longer modified
- ✅ All other file types (
.js,.go,.py, etc.) are unaffected
This fix was tested against the hashicorp/boundary-ui repository and confirmed to resolve the issue without introducing regressions.
v0.24.1
What's Changed
- Fix .hbs file copyright parsing by supporting indented content by @CreatorHead in #188
v0.24.0
What's Changed
- Rollback: Diff comparision for copyright headers. by @mohanmanikanta2299 in #185
- Update README.md by @mohanmanikanta2299 in #187
Full Changelog: v0.23.0...v0.24.0
v0.23.0
What's Changed
- pin reused github action by @abhijeetviswa in #128
- Add changelog file for standardisation. by @mohanmanikanta2299 in #129
- IND-3799 parameter addition to dependabot by @KaushikiAnand in #130
- Update Heimdall ownership to match CODEOWNERS by @mukeshjc in #143
- fix(pre-commit): Hooks should use the copywrite binary by @bhundven in #120
- fix(.pre-commit-config.yaml): fix hook id to match actual name by @Paillat-dev in #123
- Updated Copyright to IBM Headers by @mohanmanikanta2299 in #170
- Update copyright format for IBM Corp with year ranges by @CreatorHead in #179
- Ibm copyright format by @CreatorHead in #180
- Copyright symbol removal to get inline with policy. by @mohanmanikanta2299 in #183
- Update feature added for headers command. by @mohanmanikanta2299 in #181
New Contributors
- @abhijeetviswa made their first contribution in #128
- @compliance-pr-automation-bot[bot] made their first contribution in #149
- @bhundven made their first contribution in #120
- @Paillat-dev made their first contribution in #123
- @ssagarverma made their first contribution in #172
- @CreatorHead made their first contribution in #179
Full Changelog: v0.22.0...v0.23.0
v0.22.0
What's Changed
- Coverage test by @KaushikiAnand in #125
- [Chore] - add .gjs and .gts files by @emoncuso in #126
New Contributors
- @KaushikiAnand made their first contribution in #125
- @emoncuso made their first contribution in #126
Full Changelog: v0.21.0...v0.22.0
v0.21.0
v0.20.0
What's Changed
- [PSS-362] Update META.d category to reflect reality by @jeffwecan in #111
- Add CODEOWNERS file in .github/CODEOWNERS by @mukeshjc in #112
- Vulnerability fix by @mohanmanikanta2299 in #114
New Contributors
- @jeffwecan made their first contribution in #111
- @mukeshjc made their first contribution in #112
- @mohanmanikanta2299 made their first contribution in #114
Full Changelog: v0.19.0...v0.20.0
v0.19.0
What's Changed
- chore: remove dupe 'uses' and bump to latest GHA setup action version by @bschaatsbergen in #107
- Ignore node_modules subdirectories by @jpogran in #109
- Update codeowners & heimdall config by @mdeggies in #108
- Add support for
.txtarfiles by @SBGoods in #104
New Contributors
- @bschaatsbergen made their first contribution in #107
- @mdeggies made their first contribution in #108
- @SBGoods made their first contribution in #104
Full Changelog: v0.18.0...v0.19.0
What's Changed
- chore: remove dupe 'uses' and bump to latest GHA setup action version by @bschaatsbergen in #107
- Ignore node_modules subdirectories by @jpogran in #109
- Update codeowners & heimdall config by @mdeggies in #108
- Add support for
.txtarfiles by @SBGoods in #104 - Upgrade GoReleaser to V2 by @dlaguerta in #110
New Contributors
- @bschaatsbergen made their first contribution in #107
- @mdeggies made their first contribution in #108
- @SBGoods made their first contribution in #104
Full Changelog: v0.18.0...v0.19.0