Skip to content

feat: modernize codebase with async/await and updated dependencies#18

Merged
tinsever merged 1 commit intov3-devfrom
feature/modernize-dependencies
Dec 31, 2025
Merged

feat: modernize codebase with async/await and updated dependencies#18
tinsever merged 1 commit intov3-devfrom
feature/modernize-dependencies

Conversation

@tinsever
Copy link
Owner

  • Remove async library dependency, replace with native async/await
  • Remove mv package, use native fs.promises.rename()
  • Update commander v2 -> v12 (latest)
  • Update file-type v3 -> v19 (latest)
  • Convert all callback-based code to async/await in:
    • lib/system-font.js
    • lib/google-font.js
    • lib/google-font-list.js
    • lib/request.js
  • Maintain backward compatibility with callback APIs
  • Use native Array methods instead of async library
  • Use fs.promises instead of callback-based fs
  • Update CLI to use new Commander API

BREAKING CHANGES:

  • Requires Node.js 14+ for fs.promises and recursive mkdir
  • Commander v12 requires new Command() syntax

- Remove async library dependency, replace with native async/await
- Remove mv package, use native fs.promises.rename()
- Update commander v2 -> v12 (latest)
- Update file-type v3 -> v19 (latest)
- Convert all callback-based code to async/await in:
  - lib/system-font.js
  - lib/google-font.js
  - lib/google-font-list.js
  - lib/request.js
- Maintain backward compatibility with callback APIs
- Use native Array methods instead of async library
- Use fs.promises instead of callback-based fs
- Update CLI to use new Commander API

BREAKING CHANGES:
- Requires Node.js 14+ for fs.promises and recursive mkdir
- Commander v12 requires new Command() syntax
@tinsever tinsever merged commit f2f346e into v3-dev Dec 31, 2025
@tinsever tinsever mentioned this pull request Dec 31, 2025
@tinsever tinsever deleted the feature/modernize-dependencies branch January 1, 2026 17:47
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