Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
44a6892
change apis to accept an option object directly
ceifa Jan 18, 2025
fce233a
convert bin to esm
ceifa Jan 18, 2025
867ae70
wip: new improved cli
ceifa Jan 18, 2025
eae545b
implement option to use raw node fs
ceifa Feb 18, 2025
2e0ab5f
drop support for node 18 and 20
ceifa Feb 18, 2025
580e25a
unify build command
ceifa Feb 18, 2025
32fdd5c
specify cjs
ceifa Feb 25, 2025
9fdcef4
add node fs support for windows
ceifa Feb 25, 2025
dbda8f0
more close to real api
ceifa Feb 25, 2025
d9a63f9
remove finalization registry check
ceifa Feb 25, 2025
1e04deb
stdin finally working (at least on linux)
ceifa Feb 25, 2025
048878a
add jsr publish
ceifa Feb 25, 2025
07096b3
update artifact package
ceifa Feb 25, 2025
2683947
lint
ceifa Feb 25, 2025
a315aba
fix jsr.json structure
ceifa Feb 25, 2025
68deb27
package name
ceifa Feb 25, 2025
84ee22c
concatenation
ceifa Feb 25, 2025
745fac6
force include
ceifa Feb 25, 2025
3b4d4e1
force exclude dist
ceifa Feb 25, 2025
f8f95f5
try not checking out repo
ceifa Feb 25, 2025
8acf55d
license
ceifa Feb 25, 2025
b3778d6
test older emscripten version
ceifa Feb 25, 2025
657a079
fix string
ceifa Feb 25, 2025
32af619
disable jsr publish
ceifa Feb 25, 2025
a34ed74
better api for stdio
ceifa Feb 26, 2025
e63fcb6
check for docker
ceifa Feb 26, 2025
ecc6388
changed library api to abstract wasm (but keep it exposed) and change…
ceifa Feb 26, 2025
9dac5f9
update packages, use oxc
ceifa Mar 13, 2026
9fd1b19
fix lua 5.5.1 implementation
ceifa Mar 13, 2026
d41aca8
add a test to ensure no regressions on 64bit numbers
ceifa Mar 14, 2026
a23e34d
optimize build size
ceifa Mar 14, 2026
c326891
lint and readme benchmark
ceifa Mar 14, 2026
4d8c2d4
nodefs
ceifa Mar 25, 2026
dbcb003
nodefs: load the current drive by default
ceifa Mar 25, 2026
0980891
lint
ceifa Mar 25, 2026
c66b3e3
ci: install Playwright browsers before running tests
ceifa Mar 25, 2026
335320e
fix: keep new threads off of stack
ceifa Apr 25, 2026
5c5dee5
cleanup
ceifa Apr 25, 2026
e2535b6
bigint support and fixes
ceifa Jul 28, 2026
29bde9a
chore: update packages
ceifa Jul 28, 2026
d71f6c9
fix utf-8, stdio, and api changes again
ceifa Jul 28, 2026
bba4cf1
better types
ceifa Jul 28, 2026
e128f8d
better browser support
ceifa Jul 29, 2026
779ab40
tests ovehaul
ceifa Jul 29, 2026
85491ab
small api changes
ceifa Jul 29, 2026
d15a105
fix some cli unparity with official lua cli
ceifa Jul 29, 2026
8fea035
perf
ceifa Jul 29, 2026
8dcdab2
fix: memory leaks
ceifa Jul 29, 2026
4913217
better fs support
ceifa Jul 29, 2026
691022b
perf
ceifa Jul 29, 2026
78e23f3
perf
ceifa Jul 29, 2026
031c7cc
fixes
ceifa Jul 29, 2026
836053b
fix object identified as array by mistake
ceifa Sep 1, 2026
9d4467f
update packages
ceifa Sep 1, 2026
c370670
add gc
ceifa Sep 2, 2026
5df0119
save a few bytes
ceifa Sep 2, 2026
ecbe098
construct classes when calling
ceifa Sep 2, 2026
d41c9f5
small fixes
ceifa Sep 4, 2026
f3d9282
reuse object instance when pushed twice
ceifa Sep 4, 2026
40c8c27
proxied arrays act like arrays
ceifa Sep 4, 2026
feeea6b
perf, size, refact
ceifa Sep 4, 2026
cd1845f
fix hook counter surpassing limit
ceifa Sep 5, 2026
2bd30a8
remove unnecessary bigint conversion
ceifa Sep 5, 2026
8b2a0fc
better async model
ceifa Sep 5, 2026
bf9fe9b
simplify async model
ceifa Sep 6, 2026
55c7d96
refact
ceifa Sep 7, 2026
d3e3f44
wip: uncommitted local work on better-async-model (2026-09-07)
ceifa Nov 15, 2026
bad8112
jspi only async
ceifa Nov 15, 2026
accf009
async(fn) for lua functions that await
ceifa Nov 15, 2026
9b4a9a8
friendlier async api
ceifa Nov 15, 2026
63ab32f
drop investigation docs, simplify async helpers
ceifa Nov 16, 2026
e477797
trim redundant comments
ceifa Nov 16, 2026
1062a98
Merge pull request #153 from ceifa/better-async-model
ceifa Nov 19, 2026
5d99d38
remove deno references
ceifa Nov 20, 2026
f31d406
Merge pull request #155 from ceifa/chore/remove-deno-references
ceifa Nov 20, 2026
b2845d3
generate the lua bindings from the headers
ceifa Nov 20, 2026
5ffbbd0
drop the readme note about the bindings generator
ceifa Nov 20, 2026
4169329
Merge pull request #157 from ceifa/refactor/simplify-project-structure-1
ceifa Nov 20, 2026
936576d
declarative marshalling, one limits vocabulary
ceifa Nov 20, 2026
fb93360
Merge pull request #158 from ceifa/refactor/api-structural-improvements
ceifa Nov 20, 2026
dbde796
update the npm dependencies
ceifa Nov 20, 2026
f52eb01
update emscripten to 7.0.0
ceifa Nov 20, 2026
96f9d74
pin lua to the v5.5.1 tag
ceifa Nov 20, 2026
b1992a9
Merge pull request #159 from ceifa/chore/update-dependencies
ceifa Nov 20, 2026
2b90ae3
build the bindings through locals the minifier can shorten
ceifa Nov 20, 2026
0cd201a
Merge pull request #160 from ceifa/perf/reduce-bundle-size
ceifa Nov 20, 2026
e02ab18
add fs: 'none', a glue without the filesystem, and load every glue on…
ceifa Nov 20, 2026
d6d040a
fetch and compile the wasm alongside the glue, once per url
ceifa Nov 20, 2026
bb7aa02
Merge pull request #162 from ceifa/perf/optional-filesystem-glue
ceifa Nov 20, 2026
933e12f
fall back to jsdelivr and hold the wasm to this build's hash
ceifa Nov 20, 2026
149f911
Merge pull request #163 from ceifa/feat/jsdelivr-sri-fallback
ceifa Nov 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 64 additions & 14 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,74 @@ on:
branches: [main]

jobs:
publish:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Checkout repository
uses: actions/checkout@v7
with:
submodules: recursive
- uses: mymindstorm/setup-emsdk@v14
- name: Use Node.js 22.x
uses: actions/setup-node@v4

- name: Setup EMSDK
uses: emscripten-core/setup-emsdk@v16
with:
version: 7.0.0
actions-cache-folder: emsdk-cache

- name: Use Node.js 26.x
uses: actions/setup-node@v7
with:
node-version: 26.x

- name: Install dependencies
run: npm ci

- name: Run lint (no fix)
run: npm run lint:nofix

- name: Build WASM
run: npm run build:wasm

- name: Build project
run: npm run build

- name: Install Playwright browsers
run: npx playwright install --with-deps chromium

- name: Run tests
run: npm test

- name: Run Lua tests
run: npm run luatests

- name: Upload build artifact
uses: actions/upload-artifact@v7
with:
name: build-artifact
path: |
package.json
package-lock.json
dist/
bin/
LICENSE

publish_npm:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout repository
uses: actions/checkout@v7

- name: Download build artifact
uses: actions/download-artifact@v8
with:
node-version: 22.x
- run: npm ci
- run: npm run lint:nofix
- run: npm run build:wasm
- run: npm run build
- run: npm test
- run: npm run luatests
- uses: JS-DevTools/npm-publish@v3
name: build-artifact
path: build-artifact

- name: Restore build artifact
run: cp -r build-artifact/* .

- name: Publish to npm
uses: JS-DevTools/npm-publish@v4
with:
token: ${{ secrets.NPM_TOKEN }}
27 changes: 23 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,39 @@ jobs:

strategy:
matrix:
node-version: [18, 20, 22]
node-version: [26]

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
submodules: recursive
- uses: mymindstorm/setup-emsdk@v12
- uses: emscripten-core/setup-emsdk@v16
with:
version: 7.0.0
actions-cache-folder: emsdk-cache
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
uses: actions/setup-node@v7
with:
node-version: ${{ matrix.node-version }}
cache: npm
# The lua submodule follows release tags, never a commit in between them. Asked of the
# remote rather than the checkout, which fetches the submodule without its tags.
- name: Check the lua submodule is on a release tag
run: |
commit=$(git -C lua rev-parse HEAD)
tag=$(git ls-remote --tags https://github.com/lua/lua | awk -v c="$commit" '$1 == c { sub("refs/tags/", "", $2); sub(/\^\{\}$/, "", $2); print $2 }' | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' | head -1)
if [ -z "$tag" ]; then
echo "lua is at $commit, which is not a release tag of lua/lua" >&2
exit 1
fi
echo "lua is at $tag"
- run: npm ci
- run: npm run lint:nofix
- run: npm run build:wasm
# build:wasm regenerates the bindings from the Lua headers, so a difference here means the
# committed file was edited by hand or left behind by a change to the generator.
- run: git diff --exit-code src/bindings.gen.ts
- run: npm run build
- run: npx playwright install --with-deps chromium
- run: npm test
- run: npm run luatests
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@
.rollup.cache/
tsconfig.tsbuildinfo
build/
.eslintcache
4 changes: 3 additions & 1 deletion .prettierrc → .oxfmtrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@
"quoteProps": "consistent",
"semi": false,
"printWidth": 140,
"tabWidth": 4
"tabWidth": 4,
"sortPackageJson": false,
"ignorePatterns": ["rolldown.config.*.js", "src/bindings.gen.ts"]
}
18 changes: 18 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"plugins": ["import", "promise", "node"],
"categories": {
"correctness": "deny",
"suspicious": "deny"
},
"rules": {
"no-shadow": "off",
"no-extend-native": "off",
"no-underscore-dangle": "off",
"consistent-function-scoping": "off",
"promise/always-return": "off"
},
"ignorePatterns": ["dist/**", "build/**", "rolldown.config.ts", "rolldown.config.*.js", "utils/**"],
"env": {
"builtin": true
}
}
6 changes: 0 additions & 6 deletions .prettierignore

This file was deleted.

Loading
Loading