• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

microlinkhq / microlink / 40959679108
82%

Build:
DEFAULT BRANCH: master
Ran 29 Oct 2026 09:40PM UTC
Jobs 4
Files 62
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 Oct 2026 09:39PM UTC coverage: 81.999% (+0.1%) from 81.882%
40959679108

push

github

web-flow
fix(types): describe the mql CommonJS export with export = (#82)

* fix(types): describe the mql CommonJS export with export =

@microlink/mql is CommonJS (module.exports = mql) but its declarations
said `export default`, so TypeScript saw a `.default` property that does
not exist at runtime, and the named exports the ESM entry provides
(arrayBuffer, buffer, extend, fetchFromApi, getApiUrl, mapRules, stream)
were missing from the types.

Move the declarations next to src/index.js, declare the main export with
`export =` and the public types and members in a namespace merged with
it. extend() now returns the bare client it creates at runtime.
@microlink/function imports mql with `import = require`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(types): match empty stream and fetchFromApi to runtime

An empty stream or embed stays JSON, and fetchFromApi requires responseType because a missing one throws. The type tests now cover those branches and the members an extended client does not have.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(types): narrow fetchFromApi when responseType is literal

A json body is the payload and an arrayBuffer body is the raw response. A general string still allows either, which is what getApiUrl returns.

Co-authored-by: Cursor <cursoragent@cursor.com>

* test(mql): lock MicrolinkError name and message as readonly

Error already declares both as writable strings, so dropping the class fields stayed green. Assigning to them is now a type error.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>

897 of 1142 branches covered (78.55%)

Branch coverage included in aggregate %.

5175 of 6263 relevant lines covered (82.63%)

28.25 hits per line

Jobs
ID Job ID Ran Files Coverage
1 @microlink/mcp - 40959679108.1 29 Oct 2026 09:40PM UTC 34
96.94
GitHub Action Run
2 microlink.io - 40959679108.2 29 Oct 2026 09:40PM UTC 22
83.53
GitHub Action Run
3 @microlink/mql - 40959679108.3 29 Oct 2026 09:40PM UTC 4
67.76
GitHub Action Run
4 @microlink/function - 40959679108.4 29 Oct 2026 09:40PM UTC 2
94.67
GitHub Action Run
Source Files on build 40959679108
  • Tree
  • List 62
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #40959679108
  • 850cf4ec on github
  • Prev Build on master (#40840621957)
  • Next Build on master (#40961798366)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc