Skip to content

refactor bump script - #45

Merged
ptesei merged 1 commit into
developfrom
feat/perf-remove-window-load
Aug 5, 2026
Merged

refactor bump script#45
ptesei merged 1 commit into
developfrom
feat/perf-remove-window-load

Conversation

@ptesei

@ptesei ptesei commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Note

Low Risk
Dev-only release tooling with no runtime plugin impact; the main caveat is macOS-specific sed and narrower package-lock edits, which could behave differently on Linux CI than the removed Node script.

Overview
Replaces scripts/bump-version.js with bin/bump.sh and wires npm run bump to bash bin/bump.sh. .distignore and .gitattributes now ignore /bin instead of /scripts.

The new shell script keeps the same release workflow: resolve patch / minor / major or an explicit x.y.z from .plugin-data, then update JSON versions (plugin data, package.json, block block.json files), package-lock.json, blockparty-tabs.php, readme.txt, CHANGELOG.md, the Playground blueprint ref, and README.md when the old version appears. It documents macOS sed -i '' and prints a summary of touched files at the end.

Reviewed by Cursor Bugbot for commit 4283e7f. Bugbot is set up for automated code reviews on this repo. Configure here.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 4283e7f. Configure here.

Comment thread bin/bump.sh
inserted = 1
# Marker is followed by a blank line; skip the consumed blank.
next
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changelog entry can delete lines

Medium Severity

The CHANGELOG.md awk path always getlines and then nexts after the Semantic Versioning line, discarding that next line unconditionally. The readme.txt path only drops a following blank. If the blank after the marker is missing, the following heading or content is removed during a bump. The old script required the blank marker and failed instead of deleting data.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 4283e7f. Configure here.

@ptesei
ptesei merged commit f1b2614 into develop Aug 5, 2026
1 check passed
@firestar300
firestar300 deleted the feat/perf-remove-window-load branch August 24, 2026 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant