Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Aug 16, 2025

This PR contains the following updates:

Package Change Age Confidence
textlint-rule-no-dead-link 5.2.0 -> 6.0.1 age confidence

Release Notes

textlint-rule/textlint-rule-no-dead-link (textlint-rule-no-dead-link)

v6.0.1

Compare Source

v6.0.0

Compare Source

🎉 Breaking Changes

Node.js 20+ Required
  • Minimum Node.js version updated to v20.0.0
    • Enables use of modern JavaScript features and improved security
    • Native fetch API support

✨ Major Improvements

Significant Dependency Reduction and Modernization
1. Migration to Native APIs (#​161, #​164)
  • Removed node-fetch: Migrated to Native fetch API available in Node.js 18+

    • Reduced external dependencies for better security
    • Improved performance
  • Removed get-url-origin: Now using standard URL object

    // Before
    import getURLOrigin from "get-url-origin";
    const origin = getURLOrigin(uri);
    
    // After  
    const origin = new URL(uri).origin;
  • Removed fs-extra: Eliminated unused dependency

2. minimatch v10 Compatibility (#​165)
  • Updated for minimatch v10 breaking changes
    • Changed from default export to named export
    // Before (v9)
    import minimatch from "minimatch"
    
    // After (v10)
    import { minimatch } from "minimatch"
  • Made Document:exit handler async with proper Promise handling
Testing Infrastructure Improvements
  • Implemented Local Test Server
    • Removed dependency on httpstat.us
    • Improved test stability and speed
    • Enabled offline test execution
CI/CD Optimization (#​163)
  • GitHub Actions Workflow Improvements
    • Prevented duplicate runs: Eliminated double execution on pull requests
    • Push events: Limited to master branch only
    • Pull request events: Runs on all branches
    • Reduced CI execution time and costs

📦 Dependency Changes

Removed Packages
  • node-fetch (^2.6.0) → Native fetch API
  • get-url-origin (^1.0.1) → Native URL API
  • fs-extra (^8.1.0) → Removed as unused
  • @types/node-fetch → No longer needed
Current Core Dependencies
{
  "minimatch": "^10.0.3",
  "p-memoize": "^8.0.0", 
  "p-queue": "^8.1.0",
  "textlint-rule-helper": "^2.3.1"
}

🔧 Technical Details

Enhanced Error Handling
  • Added try-catch for URL parsing to improve robustness against invalid URLs
  • Strengthened asynchronous error handling
Improved TypeScript Type Safety
  • Compliance with minimatch v10 type definitions
  • Consistent use of async/await patterns

📈 Performance Improvements

Benefits from reduced dependencies:

  • Faster installation times
  • Smaller bundle size
  • Improved startup performance

🧪 Testing

  • All 36 tests passing successfully
  • TypeScript type checking completed without errors
  • Stable test environment with local test server

🔄 Migration Guide

Update Node.js Version
### Node.js 20 or higher required
node --version  # Verify v20.0.0 or higher
Installation
npm install textlint-rule-no-dead-link@6.0.0

### or
yarn add textlint-rule-no-dead-link@6.0.0

### or
pnpm add textlint-rule-no-dead-link@6.0.0
Configuration Changes

No configuration changes required. Your existing .textlintrc will work as-is.

What's Changed

New Contributors

Full Changelog: textlint-rule/textlint-rule-no-dead-link@v5.2.0...v6.0.0


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot enabled auto-merge (squash) August 16, 2025 09:49
@dev-hato-app dev-hato-app bot added this to task list Aug 16, 2025
@github-project-automation github-project-automation bot moved this to In Progress in task list Aug 16, 2025
@renovate renovate bot merged commit dbf2a60 into main Aug 16, 2025
28 checks passed
@renovate renovate bot deleted the renovate/textlint-rule-no-dead-link-6.x branch August 16, 2025 09:51
@github-project-automation github-project-automation bot moved this from In Progress to Done in task list Aug 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

0 participants