You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: use tinygo instead of go to create smaller wasm binary
This commit refactors the wasm and JavaScript parts to make use of
TinyGo for creating even smaller wasm binaries.
It also introduces another wasm-opt pass that shaves off ~500K.
The API has changed: Previously the exported `createLinter()` function
was synchronous and returned an async function to lint a single file.
Now the `createLinter()` function is asynchronous and the returned
linter function is synchronous.
```js
import { createLinter } from "actionlint";
const linter = await createLinter();
const results = linter("on: psuh", "borked.yml");
```
BREAKING CHANGE: The `createLinter()` function is now asynchronous and
resolves to a function that synchronously invokes the actionlint binary.
0 commit comments