Open jrson83 opened 1 year ago
@jrson83 I agree with your perspective. I have also been using git-cliff in a simple manner before, but I didn't realize it had so many issues. I have thought about developing my own git log generation application, and currently, it seems to be the most reasonable and efficient solution. If we develop this application, I would be delighted to work on it with you because I have a strong interest in git myself and am looking forward to creating a git-related application. Here are a few suggestions from my side:
Additionally, I think the proposal for removing spark.json makes sense. Let's remove it in the next version.
@Geocld I don't know rust. But in Node.js the right approach would be to use streams
.
Node.js can only hold up to 1.67GB in memory at any one time, after that, it throws a JavaScript heap out of memory error.
I recommend reading this post on A Performance Comparison of Node.js Methods for Reading Large Datasets
I have found the problem what causes the multiple issues I opend. Is it possible you please give me access to the repo, to commit to the main branch? So I do not need to wait for PR merge.
@jrson83 Good jobs! I had Invited you to this repo collaborators.
@Geocld Thank you! I will open a new issue to describe the problem, since #14 & #15 come from the same problem. Then I will push the fix.
@Geocld I checked again the issue with monorepo #13. I now understand what problem you had and that you used the current body
for monorepo in javascript, to get the package name
.
I was looking for a secure approach to get the github URL of the repo, but like you see in this issue, there is only a static way, to define the repo to get auto links work, like you do here.
I think this is really bad, especially sparkee is build for monorepo, but git-cliff does not properly support monorepo.
would be delighted to work on it with you
Thank you!
This project is independent of Sparkee
So you mean an independent package, but sparkee can use that package internally to generate a changelog? That would be a good idea!
So we could build a monorepo and create that new changelog
package and include sparkee as standalone package, which has changelog
as dependency. Then we can use a bundler like ptsup to minimize and optimize bundle size of the packages.
Can you please release a new version of sparkee, so we can test if it is working.
@jrson83 New commits had published in v1.3.1.
@Geocld can I restrict the package manager for sparkee repo to pnpm? Guess we use pnpm but in the spark.json it is still npm.
EDIT: OK I just did :grin:
Can you please release next version 💌
Proposal
So at first I thought git-cliff is cool. But there are multiple reasons I would prefer to drop git-cliff and write the changelog generator by ourselfs.
Git-cliff
Configuration files
Before using git-cliff, it was possible to configure the changelog generator using spark.json
logPresetTypes
. Now in addition to spark.conf you need another .toml configuration file.At the moment, the spark.json is actually obsolete, since it holds only two options:
moduleManager
packages
Those options are resolved on init either using package.json or pnpm-workspace.yaml. When keeping git-cliff it would make sense to drop spark.json and resolve the options at run time, from package.json or pnpm-workspace.yaml.
Solution
It would be great if you willing to drop git-cliff and replace it with a custom changelog generator. I be willing to implement the changelog generator.