Commit 4a65f39
fix(changelog): handle frozen commit objects from conventional-changelog-writer
The conventional-changelog-writer library freezes commit objects, but
presets like angular expect to mutate them. This causes a "Cannot modify
immutable object" error when the transform function tries to change
commit.type.
Add a wrapTransform helper that deep clones commits before passing them
to the original transform function, allowing mutation while preserving
the original frozen objects.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent b91c297 commit 4a65f39
1 file changed
Lines changed: 19 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
155 | 170 | | |
156 | 171 | | |
157 | 172 | | |
| |||
165 | 180 | | |
166 | 181 | | |
167 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
168 | 186 | | |
169 | 187 | | |
170 | 188 | | |
171 | 189 | | |
172 | 190 | | |
173 | | - | |
| 191 | + | |
174 | 192 | | |
175 | 193 | | |
176 | 194 | | |
| |||
0 commit comments