Skip to content

Releases: paulosuzart/starred_ml

0.0.9

18 Mar 16:37

Choose a tag to compare

CHANGES:

  • Extracted HTTP fetch logic into a dedicated Fetcher module (bin/fetcher.ml), separating it from CLI argument definitions in bin/main.ml.
  • Added terminal progress spinner on stderr showing current page and optional page cap (e.g. / Fetching page 3 of 5...); clears itself when done so stdout redirection (e.g. > out.md) is unaffected.
  • Added post-fetch summary on stderr: pages fetched, repository count, and elapsed time in seconds (e.g. ✓ 5 pages • 487 repositories • 3.2s).
  • Bumped jingoo dependency to >= 1.5.2.
  • Fixed Re2 regex compiled once at module load instead of on every paginated response.
  • Cleaned up github.mli: removed [@@deriving ...] attributes from type declarations and replaced with explicit val signatures for the functions actually used externally, narrowing the public API surface.
  • Added unix to bin/dune library dependencies.
  • Using Eio.Stream to accumulate responses.
  • Added PAGE_SIZE cli parameter.
  • Added --timeout / -T CLI arg (default 600s): per-request timeout in seconds passed to the HTTP fetcher.
  • Added --max-retries / -r CLI arg (default 3): number of retry attempts on transient failures or timeouts.
  • Added per-request timeout and exponential-backoff retry in Http_util.fetch using Eio.Time.Timeout.

0.0.8

17 Mar 00:19

Choose a tag to compare

CHANGES:

  • Replaced deprecated Mirage_crypto_rng_eio.run with Mirage_crypto_rng_unix.use_default from mirage-crypto-rng.unix.
  • Improved error handling: HTTP errors (4xx/5xx) print a clean message; unexpected failures show a full stack trace.
  • Bumped dependencies: eio and eio_main >= 1.3, cohttp-eio >= 6.2.1, mirage-crypto-rng >= 1.2.0, alcotest >= 1.9.1, dune lang 3.21.
  • Updated CI to OCaml 5.4.1.
  • Updated README with development setup instructions.
  • Updated OCaml setup GitHub Actions version.

0.0.7

14 Jan 18:02
54bcf91

Choose a tag to compare

CHANGES:

  • IMPORTANT: now use starred_ml render for rendering the template.
  • Removed slug dependency that was actually not enough for the intention.
  • Encourages raw jingoo filters for encoding urls. As in item.language | urlencode.
  • The dafault.jingoo template now takes a the github repositories (the starred list type) and uses groupby Jingoo's feature to print each repository under the corresponding language.

0.0.6

06 Jan 12:34

Choose a tag to compare

CHANGES:

  • Adds a language_slug attribute to the item (repository being rendered) with the slug of the language.
  • Languages sent to jingoo template now are the slug version of the language.

0.0.5

28 Apr 13:27

Choose a tag to compare

CHANGES:

  • More stable sorting
  • Introduces new template variable owner_login for a more complete link to the starred repo.

0.0.4

20 Apr 17:45
9e73d1f

Choose a tag to compare

CHANGES:

  • Added CmdLiner for a smoother experience. The addition is fully compatible with previous TOKEN env var only.
  • Moved some code for better testability, leaving bin for pure execution.
  • Added a bit more tests

0.0.3

07 Apr 08:58
97ed651

Choose a tag to compare

CHANGES:

  • The generated output was using url of the repo, that points to the GitHub API. This release fixes it by using the proper html_url.
  • Some other small typos were fixed
  • A reference to the template repository using starred_ml was also added

0.0.2

05 Apr 15:24

Choose a tag to compare

CHANGES:

Includes pagination and total language count. See the template.