@deriv-com/smartcharts-champion 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deriv-com/smartcharts-champion",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "main": "dist/smartcharts.js",
5
5
  "author": "vinu@deriv.com",
6
6
  "config": {
@@ -61,6 +61,7 @@
61
61
  "@commitlint/cli": "^19.3.0",
62
62
  "@commitlint/config-conventional": "^19.2.2",
63
63
  "@commitlint/cz-commitlint": "^19.2.0",
64
+ "@deriv-com/shiftai-cli": "^1.0.7",
64
65
  "@semantic-release/changelog": "^6.0.3",
65
66
  "@semantic-release/github": "^9.2.6",
66
67
  "@semantic-release/npm": "^11.0.3",
package/release.utils.cjs CHANGED
@@ -147,16 +147,14 @@ const COMMIT_HASH_LENGTH = 7;
147
147
  * @param {Object} context `conventional-changelog` context.
148
148
  * @return {Object} the transformed commit.
149
149
  */
150
- // [AI]
151
150
  const customTransform = (commit, context) => {
152
- // Create a new commit object to avoid modifying the immutable original
151
+ // Create a copy of the commit object to avoid modifying the immutable object
153
152
  const transformedCommit = { ...commit };
154
153
 
155
154
  if (transformedCommit.notes) {
156
- transformedCommit.notes = transformedCommit.notes.map(note => ({
157
- ...note,
158
- title: 'Breaking changes',
159
- }));
155
+ transformedCommit.notes.forEach(note => {
156
+ note.title = 'Breaking changes';
157
+ });
160
158
  }
161
159
 
162
160
  if (
@@ -215,5 +213,4 @@ const customTransform = (commit, context) => {
215
213
 
216
214
  return transformedCommit;
217
215
  };
218
- // [/AI]
219
216
  module.exports = customTransform;