Skip to content

release: v0.1.2 - build dist one file per module instead of bundling - #89

Merged
cldmv-bot[bot] merged 5 commits into
masterfrom
next
Nov 29, 2026
Merged

cldmv-bot[bot] merged 5 commits into
masterfrom
next

Conversation

@cldmv-bot

@cldmv-bot cldmv-bot Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

gitmulti v0.1.2 Changelog

Release Date: November 2026
Release Type: Patch
Branch: next → master


Overview

The published dist/ and bin/ are now built one file per module instead of as two bundles. The gitmulti command, the import and require() API and the exports are unchanged. No runtime behavior changed.


🔧 Build

dist/ mirrors src/, and bin/ is a thin launcher (#88, fixes #83)

The tsup bundles are replaced by scripts/build.mjs. It runs esbuild over every src/**/*.mjs file except the executable with bundle: false, minifying each module on its own (names kept for stack traces) into dist/ at the same relative path, with source maps next to them. src/index.cjs is still copied verbatim to dist/index.cjs, and the target stays node22.

bin/gitmulti.mjs is the minified src/bin/gitmulti.mjs with its one relative import repointed from ../cli.mjs to ../dist/cli.mjs. Before, the executable was its own bundle and carried a second copy of the library; now it is a few lines that import the built library from dist/, so the code exists once. commander stays an external import, installed from dependencies. The .map files are still left out of the tarball by files.

The gitmulti bin entry, the package exports and the shape of require() and import are unchanged. The tarball now holds one .mjs file per source module in dist/ instead of a single index.mjs.

🔧 CI & tooling

  • bundle-size.yml measures dist/**.mjs, dist/**.cjs and bin/**.mjs, the published runtime files, so source maps no longer count (#88).
  • ci.yml and src/index.cjs comments name the per-module build instead of tsup (#88).

📚 Documentation

  • NEW: docs/changelog/v0/v0.1.2.md, this changelog.
  • README What's New promoted to v0.1.2. v0.1.1 moves to Recent Releases and v0.0.10 drops off.

🔧 Dependencies

Development dependencies only (#88): esbuild ^0.28.2 added and tsup removed. The lockfile drops about 900 lines of tsup's dependency tree. commander is unchanged.


Upgrade notes

  • No breaking changes. Drop-in for v0.1.1; the gitmulti command and the API behave the same.
👥 Contributors

coverage

Metric Coverage
Statements 100.0%
Branches 100.0%
Functions 100.0%
Lines 100.0%

Avg: 100.0% · ecf3a13 · Node lts/*

Co-authored-by: Shinrai [email protected]

Shinrai and others added 3 commits November 28, 2026 10:19
The build is now esbuild with bundle: false, emitting one minified file per source module in dist/, with bin/gitmulti.mjs a thin file importing ../dist/cli.mjs. The require()/import shapes and exported subpaths are unchanged.

Resolves #83
## 🚀 What's Changed

### 💥 Breaking Changes
_No breaking changes_

### ✨ Features
_No new features_

### 🐛 Bug Fixes
_No bug fixes_

### 📦 Dependencies
_No dependency updates_

### 🔧 Other Changes
- refactor: build dist one file per module instead of bundling (1d7398b)



<details>
<summary>👥 Contributors</summary>

- @Shinrai

</details>
@cldmv-bot cldmv-bot Bot added ! release → master v4 flow: persistent next → master release PR (carries the next feature release) release Marks a pull request as a pending release — merge to publish a new version semver: patch This release contains only backwards-compatible bug fixes labels Nov 28, 2026
@cldmv-bot

cldmv-bot Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor Author

🔒 Dependency Review

  • ✅ 0 vulnerable package(s)
  • ✅ 0 package(s) with incompatible licenses
  • ✅ 0 package(s) with invalid SPDX license definitions
  • ✅ 0 package(s) with unknown licenses
  • ✅ 0 denied package(s)
  • ✅ 0 package(s) with OpenSSF Scorecard score < 3

Full job summary

@cldmv-bot cldmv-bot Bot added area: core Touches core library / runtime source code type: ci Changes to CI workflows, actions, or build pipelines type: config Changes to repository or project configuration files type: dependencies Relates to dependency updates, version bumps, or package management labels Nov 28, 2026
@cldmv-bot

cldmv-bot Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor Author

⚠️ Bundle size increased

File Raw Δ Raw Gzipped Δ Gzipped
bin/gitmulti.mjs 101 B −1.2 kB (-92.1%) ✅ 117 B −627 B
dist/cli.mjs 1004 B +1004 B (+100.0%) ⚠️ 611 B +611 B
dist/index.cjs 988 B +2 B (+0.2%) 606 B —
dist/index.mjs 193 B −1.1 kB (-85.3%) ✅ 152 B −599 B
dist/list.mjs 494 B +494 B (+100.0%) ⚠️ 357 B +357 B
Total 2.7 kB −802 B 1.8 kB −258 B

📊 Generated by bundle-size. Brotli sizes also measured but omitted from the table for brevity.

Shinrai and others added 2 commits November 28, 2026 15:02
## 🚀 What's Changed

### 💥 Breaking Changes
_No breaking changes_

### ✨ Features
_No new features_

### 🐛 Bug Fixes
_No bug fixes_

### 📦 Dependencies
_No dependency updates_

### 🔧 Other Changes
- docs: add the v0.1.2 changelog and promote What's New (2154910)



<details>
<summary>👥 Contributors</summary>

- @Shinrai

</details>
@cldmv-bot cldmv-bot Bot added the type: documentation Relates to docs, README updates, guides, or inline code comments label Nov 29, 2026
@cldmv-bot
cldmv-bot Bot merged commit 2728b17 into master Nov 29, 2026
43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: core Touches core library / runtime source code ! release → master v4 flow: persistent next → master release PR (carries the next feature release) release Marks a pull request as a pending release — merge to publish a new version semver: patch This release contains only backwards-compatible bug fixes type: ci Changes to CI workflows, actions, or build pipelines type: config Changes to repository or project configuration files type: dependencies Relates to dependency updates, version bumps, or package management type: documentation Relates to docs, README updates, guides, or inline code comments

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stop bundling: ship dist/ as one file per module, CLI imports the library

1 participant