Skip to content

Upgrade remark v15 - #6

Merged
JiangWeixian merged 12 commits into
mainfrom
upgrade-remark-v15
May 1, 2026
Merged

Upgrade remark v15#6
JiangWeixian merged 12 commits into
mainfrom
upgrade-remark-v15

Conversation

@JiangWeixian

Copy link
Copy Markdown
Contributor

No description provided.

- Upgrade remark from ^14.0.3 to ^15.0.1
- Upgrade unified from ^10.1.2 to ^11.0.5
- Upgrade remark-cli from ^11.0.0 to ^12.0.1
- Update all remark-lint plugins to latest versions
- Update all retext plugins to latest versions
- Remove incompatible plugins (spaces-around-number, spaces-around-word)
- Fix TypeScript type issue with Preset['settings']
- Test config loads without errors
- Test frontmatter preservation
- Test GFM tables and task lists
- Test formatting rules (dashes, fenced code blocks)
- Test lint rules (heading length, case-police, shell dollars)
- Update snapshots
- Fork remark-lint-spaces-around-number as local plugin
- Fork remark-lint-spaces-around-word as local plugin
- Update both to use unified-lint-rule v3 API
- Add dependencies: unified-lint-rule, unist-util-visit, unist-util-generated
- Add tests for both plugins
- Add dev deps: @types/unist, vfile
- Convert spaces-around-number from linter to auto-fix transformer
- Convert spaces-around-word from linter to auto-fix transformer
- Use two-pass regex replacement to handle both sides correctly
- Remove unused unified-lint-rule dependency
- Update tests to verify auto-fix behavior instead of warnings
- Plugins now both auto-fix and report issues
- Report messages include the specific text that needs spacing
- Tests verify both auto-fix behavior and warning reports
- No false reports when spaces already exist
- Add reference to original remark-lint-spaces-around-number repo
- Add reference to original remark-lint-spaces-around-word repo
- Credit original author LaySent
- Create test/plugins/spaces-around-number.test.ts
- Create test/plugins/spaces-around-word.test.ts
- Remove plugin tests from test/main.test.ts
- Add additional edge case tests for decimal numbers and percentages
- snapshot-release.yml: trigger on workflow_dispatch with branch selection
- Update checkout action to v4 with dynamic ref
- Add branch options for manual snapshot release selection
- Change input type from choice to string
- Users can now enter any branch name for snapshot releases
@JiangWeixian
JiangWeixian merged commit 72ea5d2 into main May 1, 2026
1 check passed
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