Skip to content

feat: Add dependency changelog viewer and improve ESLint configuration for mixed TypeScript/JavaScript projects#47

Merged
laendoor merged 18 commits intomainfrom
dep-upgrades
Nov 2, 2025
Merged

feat: Add dependency changelog viewer and improve ESLint configuration for mixed TypeScript/JavaScript projects#47
laendoor merged 18 commits intomainfrom
dep-upgrades

Conversation

@laendoor
Copy link
Member

@laendoor laendoor commented Nov 2, 2025

Changes

1. Add ncu-changelog utility script

  • Created ncu-changelog.js to enhance npm-check-updates workflow
  • Automatically fetches repository URLs for each outdated package
  • Displays formatted output with current → latest versions alongside changelog links (GitHub releases pages)
  • Helps developers quickly review breaking changes before upgrading dependencies

2. Improve ESLint configuration

  • Refactored eslint.config.mjs to support mixed file types:

    • TypeScript files in src/ and __tests__/ directories: Strict TypeScript checking with full parser options
    • Root-level JavaScript files (utilities, configs): Plain JavaScript parsing without TypeScript requirements
  • Resolves "parserOptions.project" errors when linting utility scripts

  • Maintains strict type checking for core application code

3. Add npm script

  • Added "ncu": "node ncu-changelog.js" to package.json for easy access

Why This Matters

  • Developers can now see dependency changelogs before upgrading, reducing the risk of breaking changes
  • ESLint configuration is now flexible enough to handle both TypeScript and JavaScript files without conflicts
  • Maintains project code quality while supporting utility scripts

Testing

  • All linting passes (yarn lint)
  • Tested with real outdated dependencies to verify changelog URL generation
  • Verified cron upgrade path (v3.1.6 → v4.3.3) contains no breaking changes

Usage:

yarn ncu

Related Issue

Improves dependency management workflow and resolves TypeScript linting errors for utility scripts.

laendoor and others added 14 commits November 1, 2025 17:04
Upgrades ESLint and related TypeScript dependencies,
adds flat config, and backs up the old setup.
Co-authored-by: aider (anthropic/claude-haiku-4-5) <aider@aider.chat>
Adds project coding and style guidelines;
removes legacy ESLint and run scripts.
Bumps numerous dependency versions for improved stability.
Upgrades ESLint, TypeScript, Prettier, and related packages
Bump versions for telegraf, winston, nock, ts-jest, and others
Bumps numerous package versions in the lock file for improved stability and compatibility.
Adds a script that fetches and formats changelog URLs for updated dependencies.
Updates package scripts accordingly.
Refines linting rules and file patterns,
simplifies error handling in changelog,
and upgrades dependency versions.
Updates cron, dotenv, and dotenv-cli to latest compatible versions.
Upgrades husky to v9 and refactors pre-commit hook script for consistency.
Updates various packages and their lockfile entries.
Upgrade Express to 5.1.0 and update related packages in lock file.
@codacy-production
Copy link

codacy-production bot commented Nov 2, 2025

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.00% (target: -1.00%)
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (26df343) 195 153 78.46%
Head commit (b33e139) 195 (+0) 153 (+0) 78.46% (+0.00%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#47) 0 0 ∅ (not applicable)

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

@laendoor laendoor merged commit 60ee101 into main Nov 2, 2025
3 of 4 checks passed
@laendoor laendoor deleted the dep-upgrades branch November 2, 2025 23:35
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