unjs / mkdist

Lightweight file-to-file transpiler.
MIT License
367 stars 25 forks source link

refactor: replace fast-glob with tinyglobby #237

Closed SuperchupuDev closed 1 month ago

SuperchupuDev commented 3 months ago

fast-glob - 17 subdependencies tinyglobby - 2 subdependencies

Like #230, but it switches to an even smaller library

Ref: https://github.com/es-tooling/module-replacements/blob/main/docs/modules/glob.md#tinyglobby

Package size report
===================

Package info for "mkdist@1.5.4": 35 MB
  Released: 2024-07-16 18:18:05.689 +0000 UTC (4w1d ago)
  Downloads last week: 33,732 (42.59%)
  Estimated traffic last week: 1.2 TB
  Subdependencies: 126

Removed dependencies:
  - fast-glob@3.3.2: 512 kB (1.45%)
    Downloads last week: 26,156,119 (N/A% from 3.3.2)
    Downloads last week from "mkdist@1.5.4": 33,732 (N/A%)
    Traffic last week: N/A
    Traffic from "mkdist@1.5.4": 1.2 TB (N/A%)
    Subdependencies: 17 (13.49%)

Added dependencies:
  + tinyglobby@0.2.2: 171 kB (0.48%)
    Downloads last week: 64,157 (N/A% from 0.2.2)
    Estimated traffic last week: N/A
    Subdependencies: 2 (1.58%)

Estimated new statistics:
  Package size: 35 MB → 35 MB (98.87%)
  Subdependencies: 126 → 111 (-15)
  Traffic with last week's downloads:
    For current version: 1.2 TB → 1.2 TB (13 GB saved)
    For all versions: 2.8 TB → 2.8 TB (31 GB saved)
codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 81.04%. Comparing base (9000888) to head (2a10239). Report is 56 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #237 +/- ## ========================================== - Coverage 82.86% 81.04% -1.82% ========================================== Files 12 12 Lines 852 823 -29 Branches 133 172 +39 ========================================== - Hits 706 667 -39 - Misses 144 154 +10 Partials 2 2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.