@mservices-tech/scripts 4.0.1-changelog-selector-style-rc.0 → 4.0.2

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/CHANGELOG.md CHANGED
@@ -1,24 +1,35 @@
1
+ ### 4.0.2 (2026-05-18)
1
2
 
2
- ## 4.0.0 (2026-03-24)
3
+ ### Bug Fixes
4
+
5
+ - **scripts:** Remove trailing whitespace and multiple blank lines in remove_git_hashes_from_markdown_file.sh
6
+ - **styleguide:** Use Portal component to fix missing CSS variables for portal contents
3
7
 
8
+ ### 4.0.1 (2026-03-27)
9
+
10
+ ### Bug Fixes
11
+
12
+ - **scripts:** Convert changelog bullet style from * to -
13
+ - **scripts:** Updated @mservices-tech/scripts and @mservices-tech/utils
14
+
15
+ ## 4.0.0 (2026-03-24)
4
16
 
5
17
  ### ⚠ BREAKING CHANGES
6
18
 
7
- * **scripts:** Refactor removeGitHashesFromMarkdownFile to bash
19
+ - **scripts:** Refactor removeGitHashesFromMarkdownFile to bash
8
20
 
9
21
  ### Features
10
22
 
11
- * **scripts:** Enable to pass versionrc path
12
-
23
+ - **scripts:** Enable to pass versionrc path
13
24
 
14
25
  ### Bug Fixes
15
26
 
16
- * **scripts:** Fix utils path in remove_git_hashes_from_markdown_file
17
- * **scripts:** Refactor removeGitHashesFromMarkdownFile to bash
18
- * **scripts:** Remove self dependency
19
- * **scripts:** Use @mservices-tech/eslint-config-node and @mservices-tech/prettier-config
20
- * **scripts:** Use @mservices-tech/utils package
21
- * **scripts:** Use proper scope in bump_version
27
+ - **scripts:** Fix utils path in remove_git_hashes_from_markdown_file
28
+ - **scripts:** Refactor removeGitHashesFromMarkdownFile to bash
29
+ - **scripts:** Remove self dependency
30
+ - **scripts:** Use @mservices-tech/eslint-config-node and @mservices-tech/prettier-config
31
+ - **scripts:** Use @mservices-tech/utils package
32
+ - **scripts:** Use proper scope in bump_version
22
33
 
23
34
  ### 3.2.2 (2026-03-19)
24
35
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mservices-tech/scripts",
3
- "version": "4.0.1-changelog-selector-style-rc.0",
3
+ "version": "4.0.2",
4
4
  "license": "MIT",
5
5
  "packageManager": "yarn@4.4.1",
6
6
  "bin": {
@@ -29,13 +29,20 @@ function main() {
29
29
  fi
30
30
 
31
31
  # Remove git hash links: ([abc1234](https://...)) or ([#123](https://...))
32
- perl -i -pe 's/\(\[(?:[a-f0-9]{7}|#\d+)\]\(https?:\/\/[\w#.\/?=-]+\)\)//g' "$markdown_file"
32
+ # Also consume any whitespace preceding the link so we don't leave trailing
33
+ # spaces on bullet lines (which fail Prettier checks).
34
+ perl -i -pe 's/\s*\(\[(?:[a-f0-9]{7}|#\d+)\]\(https?:\/\/[\w#.\/?=-]+\)\)//g' "$markdown_file"
33
35
 
34
36
  # Remove version compare links: [1.2.3](https://...) → 1.2.3
35
37
  perl -i -pe 's/\[(\d+\.\d+\.\d+[^\]]*)\]\(https?:\/\/[\w#.\/?=-]+\)/$1/g' "$markdown_file"
36
38
 
37
39
  # Convert '*' list bullets to '-' (standard-version generates '*', but we use '-')
38
40
  perl -i -pe 's/^\* /- /' "$markdown_file"
41
+
42
+ # Normalize whitespace: strip leading blank lines and collapse runs of blank
43
+ # lines to a single blank line. standard-version's template emits a leading
44
+ # newline and double blank lines after version headings, which Prettier flags.
45
+ perl -0777 -i -pe 's/\A\n+//; s/\n{3,}/\n\n/g' "$markdown_file"
39
46
  }
40
47
 
41
48
  main "$@"