Skip to content

August 2025 maintenance #361

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
13 changes: 8 additions & 5 deletions .github/workflows/build-lambda-function.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ jobs:
name: Compile TypeScript
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Enable corepack
run: corepack enable
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: 22
cache: yarn
- name: Compile TypeScript
run: scripts/build-lambda-grader.sh
- uses: actions/upload-artifact@v3
Expand All @@ -22,11 +25,11 @@ jobs:
name: Build native modules
needs: tsc
runs-on: ubuntu-latest
container: amazon/aws-lambda-nodejs:18
container: amazon/aws-lambda-nodejs:22
steps:
- name: install git and tar
run: yum install -y git tar bzip2 zip
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
with:
name: build-lambda
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-xvfb-layer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ jobs:
xvfb:
name: Build Xvfb
runs-on: ubuntu-latest
container: amazon/aws-lambda-nodejs:16
container: amazon/aws-lambda-nodejs:22
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build Xvfb
run: scripts/build-lambda-xvfb.sh
- uses: actions/upload-artifact@v3
Expand Down
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22.14.0
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@
"test": "cross-env TIMEOUT=2000 jest --env=node",
"test-coveralls": "scripts/ci.sh"
},
"packageManager": "[email protected]+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610",
"dependencies": {
"fast-levenshtein": "^3.0.0",
"js-slang": "^1.0.82",
"lodash": "4.17.21",
"node-canvas-webgl": "^0.2.6"
"node-canvas-webgl": "^0.3.0"
},
"devDependencies": {
"@types/jest": "^28.1.6",
Expand All @@ -23,10 +24,11 @@
"cross-zip-cli": "^1.0.0",
"jest": "^28.1.3",
"ts-jest": "^28.0.7",
"typescript": "^5.8.3"
"typescript": "^5.9.2"
},
"resolutions": {
"**/gl": "^6.0.2"
"canvas": "^3.1.2",
"gl": "^8.0.2"
},
"jest": {
"collectCoverageFrom": [
Expand Down
10 changes: 5 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { createContext, runInContext, Result as SourceResult } from 'js-slang'
import { stringify } from 'js-slang/dist/utils/stringify'
import { SourceError, Context, Frame, Value, Variant } from 'js-slang/dist/types'
import {
defineSymbol,
ensureGlobalEnvironmentExist,
importBuiltins,
defineSymbol
importBuiltins
} from 'js-slang/dist/createContext'
import { Context, Frame, SourceError, Value, Variant } from 'js-slang/dist/types'
import { stringify } from 'js-slang/dist/utils/stringify'

import { setupLambdaXvfb } from './setupXvfb'
import { loadCurves, loadRunes } from './graphicsLoader'
import { setupLambdaXvfb } from './setupXvfb'

const externals: any = {}
Object.assign(externals, require('./tree.js'))
Expand Down
4 changes: 2 additions & 2 deletions src/setupXvfb.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { promisify } from 'util'
import { chmod, copyFile, stat } from 'fs'
import { spawn } from 'child_process'
import { chmod, copyFile, stat } from 'fs'
import { promisify } from 'util'

const chmodAsync = promisify(chmod)
const copyAsync = promisify(copyFile)
Expand Down
Loading