[PR #64] [CLOSED] Fix modern Node.js support (ESM, meow v13, date-fns v2, visualization ESM) #62

Closed
opened 2026-03-02 02:53:17 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/artiebits/fake-git-history/pull/64
Author: @emreyn1
Created: 1/8/2026
Status: Closed

Base: masterHead: master


📝 Commits (4)

  • 02a724b Remove embedded my-history repo (fake commits kept separate)
  • 97bd711 refactor: remove unnecessary comment in cli.js
  • 48d2ba4 refactor: use toString() instead of toISOString() for user's local timezone commits
  • 556eeac restore full visualization features from original project

📊 Changes

5 files changed (+97 additions, -80 deletions)

View changed files

📝 package-lock.json (+26 -7)
📝 package.json (+2 -1)
📝 src/cli.js (+29 -28)
📝 src/index.js (+29 -22)
📝 src/visualization.js (+11 -22)

📄 Description

This PR fixes compatibility issues with modern Node.js versions (18/20+):

  • Added "type": "module" for ESM support
  • Updated meow usage: importMeta: import.meta + shortFlag instead of deprecated alias
  • Upgraded date-fns to ^2.30.0 and fixed parse with format string
  • Converted visualization.js to ESM with default export
  • Minor fixes for safe date handling in commits

Tested successfully on Node v20.19.6 and v18.20.8 – both preview and commit generation work perfectly.

The tool is awesome, this update keeps it alive for current Node users.

Thanks for the great project!


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/artiebits/fake-git-history/pull/64 **Author:** [@emreyn1](https://github.com/emreyn1) **Created:** 1/8/2026 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (4) - [`02a724b`](https://github.com/artiebits/fake-git-history/commit/02a724bdb0ca7b69e5a3939bd7112f730a95ffe0) Remove embedded my-history repo (fake commits kept separate) - [`97bd711`](https://github.com/artiebits/fake-git-history/commit/97bd71164d23a35364dddb840873d1b1250c7439) refactor: remove unnecessary comment in cli.js - [`48d2ba4`](https://github.com/artiebits/fake-git-history/commit/48d2ba4daaa00913ffa85db3b71389bf061f4523) refactor: use toString() instead of toISOString() for user's local timezone commits - [`556eeac`](https://github.com/artiebits/fake-git-history/commit/556eeac94d18d798dcdf23c996678fc0d5492b99) restore full visualization features from original project ### 📊 Changes **5 files changed** (+97 additions, -80 deletions) <details> <summary>View changed files</summary> 📝 `package-lock.json` (+26 -7) 📝 `package.json` (+2 -1) 📝 `src/cli.js` (+29 -28) 📝 `src/index.js` (+29 -22) 📝 `src/visualization.js` (+11 -22) </details> ### 📄 Description This PR fixes compatibility issues with modern Node.js versions (18/20+): - Added `"type": "module"` for ESM support - Updated meow usage: `importMeta: import.meta` + `shortFlag` instead of deprecated `alias` - Upgraded date-fns to ^2.30.0 and fixed parse with format string - Converted visualization.js to ESM with default export - Minor fixes for safe date handling in commits Tested successfully on Node v20.19.6 and v18.20.8 – both preview and commit generation work perfectly. The tool is awesome, this update keeps it alive for current Node users. Thanks for the great project! --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 02:53:17 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/fake-git-history#62
No description provided.