@mservices-tech/scripts 4.0.1 → 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,6 +1,11 @@
1
+ ### 4.0.2 (2026-05-18)
1
2
 
2
- ### 4.0.1 (2026-03-27)
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)
4
9
 
5
10
  ### Bug Fixes
6
11
 
@@ -9,7 +14,6 @@
9
14
 
10
15
  ## 4.0.0 (2026-03-24)
11
16
 
12
-
13
17
  ### ⚠ BREAKING CHANGES
14
18
 
15
19
  - **scripts:** Refactor removeGitHashesFromMarkdownFile to bash
@@ -18,7 +22,6 @@
18
22
 
19
23
  - **scripts:** Enable to pass versionrc path
20
24
 
21
-
22
25
  ### Bug Fixes
23
26
 
24
27
  - **scripts:** Fix utils path in remove_git_hashes_from_markdown_file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mservices-tech/scripts",
3
- "version": "4.0.1",
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 "$@"