|
1 | 1 | # Changelog |
2 | 2 |
|
| 3 | +## [0.41.0] - 2026-08-07 |
| 4 | + |
| 5 | +### Changed |
| 6 | + |
| 7 | +- Migrated the runtime wrapper and type declarations to TypeScript. Sources now |
| 8 | + live under `src/` and the published root JavaScript entrypoints (`index.js`, |
| 9 | + `addon.js`, `batchHandler.js`, `addonLogging.js`) and their `.d.ts` |
| 10 | + declarations are generated from them and committed. Runtime behaviour and the |
| 11 | + CommonJS export shape are unchanged. |
| 12 | +- The package is exported with `export =` rather than a default export, which |
| 13 | + gives CommonJS consumers a real construct signature (`import LlmLlamacpp = |
| 14 | + require('@qvac/llm-llamacpp')` previously failed with TS2351). A consequence |
| 15 | + is that `import LlmLlamacpp from '@qvac/llm-llamacpp'` now requires |
| 16 | + `esModuleInterop` or `allowSyntheticDefaultImports`; without either, |
| 17 | + TypeScript reports TS1259. |
| 18 | +- `addon` is a public member of the published type instead of `protected`. An |
| 19 | + interface cannot express `protected`, and the property was already public at |
| 20 | + runtime, so this widens what the declarations support rather than changing |
| 21 | + behaviour. |
| 22 | +- `BatchResponse.on` accepts the inherited `EventEmitter` event map in addition |
| 23 | + to the `"output"` overload. Callback types for `"output"` are unchanged, but |
| 24 | + an unrecognised event name no longer fails to compile. |
| 25 | +- `./addonLogging` additionally exports `setLogger` and `releaseLogger` as named |
| 26 | + bindings, so ESM named imports resolve. The default export is unchanged. |
| 27 | + |
3 | 28 | ## [0.40.0] - 2026-08-06 |
4 | 29 |
|
5 | 30 | One model instance can now serve several requests at once. Every `run()` call is |
|
0 commit comments