Skip to content
Merged
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
12 changes: 6 additions & 6 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ on:

jobs:
deploy:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
ref: ${{ github.event.inputs.branch }}
- name: Enable pnpm
uses: pnpm/action-setup@v4
- name: Use Node.js 22.x
uses: actions/setup-node@v4
uses: pnpm/action-setup@v6
- name: Use Node.js 26.x
uses: actions/setup-node@v7
with:
node-version: 22.x
node-version: 26.x
cache: pnpm
- name: Install dependencies
working-directory: docs
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ jobs:

strategy:
matrix:
node-version: [20, 22, 24, 25]
node-version: [22, 24, 26]
os: [ubuntu-latest, windows-latest, macos-latest]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
- name: Install pnpm
uses: pnpm/action-setup@v4
uses: pnpm/action-setup@v6
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
uses: actions/setup-node@v7
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
Expand All @@ -35,7 +35,9 @@ jobs:
run: npm run ts
- name: Test
run: npm run test
- name: Audit
run: pnpm audit
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
uses: codecov/codecov-action@v7
with:
token: ${{ secrets.CODECOV_TOKEN }}
10 changes: 5 additions & 5 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ jobs:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v6
- uses: actions/checkout@v7
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v7
with:
node-version: 24
node-version: 26
cache: pnpm
- name: Install dependencies
run: pnpm i -r
Expand All @@ -24,7 +24,7 @@ jobs:
run: echo "PLAYWRIGHT_VERSION=$(pnpm ls @playwright/test --parseable | tail -1)" >> $GITHUB_ENV
working-directory: web-test
- name: Cache playwright binaries
uses: actions/cache@v5
uses: actions/cache@v6
id: playwright-cache
with:
path: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
contents: write # Needed for publishing docs
id-token: write # Needed for creating provenance attestation
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v6
- uses: actions/checkout@v7
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v7
with:
node-version: 24
node-version: 26
registry-url: 'https://registry.npmjs.org'
cache: pnpm
- run: pnpm i -r
Expand Down
2 changes: 2 additions & 0 deletions .ncurc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@ module.exports = {
"reject": [
"chai", // Moved to es6
"@types/chai", // Should match chai,
"commander", // Breaks node 22 when updated
],
"cooldown": 7,
};
6 changes: 3 additions & 3 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
"file-saver": "2.0.5",
"jquery": "4.0.0",
"jquery.scrollto": "2.1.3",
"mocha": "11.7.5",
"node-inspect-extracted": "3.3.1"
"mocha": "12.0.3",
"node-inspect-extracted": "3.3.4"
},
"devDependencies": {
"@11ty/eleventy": "^3.1.5"
"@11ty/eleventy": "^3.1.6"
},
"browserslist": [
"defaults, maintained node versions, not op_mini all"
Expand Down
3 changes: 1 addition & 2 deletions lib/compiler/passes/generate-js.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ function wrapInSourceNode(prefix, chunk, location, suffix, name) {
/**
* Generates parser JavaScript code.
*
* @param {PEG.ast.Grammar} ast
* @param {Options} options
* @type {PEG.Pass}
*/
function generateJS(ast, options) {
if (!ast.literals || !ast.locations || !ast.classes
Expand Down
40 changes: 18 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,45 +54,41 @@
"version": "npm run set_version && npm run parser && npm run parser && npm run test && npm run examples && git add lib/version.js lib/parser.js docs/index.html test/cli/fixtures/imports_peggy.js test/cli/fixtures/lib.js docs/js/examples.js"
},
"devDependencies": {
"@peggyjs/eslint-config": "^6.0.13",
"@swc/core": "^1.15.18",
"@peggyjs/eslint-config": "^6.0.16",
"@swc/core": "^1.16.13",
"@types/chai": "^4.3.20",
"@types/jest": "^30.0.0",
"@types/node": "^25.5.0",
"@types/mocha": "^10.0.10",
"@types/node": "^26.6.4",
"@typescript/native": "npm:typescript@^7.0.2",
"chai": "^4.5.0",
"chai-like": "^1.1.3",
"cpy-cli": "^7.0.0",
"esbuild-plugin-umd-wrapper": "^3.0.0",
"eslint": "^10.0.3",
"eslint-plugin-compat": "7.0.1",
"eslint-plugin-mocha": "^11.2.0",
"eslint": "^10.12.0",
"eslint-plugin-compat": "7.0.2",
"eslint-plugin-mocha": "^12.0.2",
"glob": "^13.0.6",
"jest": "^30.3.0",
"package-extract": "^3.1.6",
"jest": "^30.5.2",
"package-extract": "^4.0.1",
"rimraf": "^6.1.3",
"source-map": "^0.7.6",
"ts-jest": "^29.4.6",
"source-map": "^0.8.0",
"ts-jest": "^29.4.14",
"tsup": "^8.5.1",
"typescript": "^5.9.3",
"typescript-eslint": "^8.57.1",
"typescript": "npm:@typescript/typescript6@^6.0.2",
"typescript-eslint": "^8.71.0",
"url": "^0.11.4"
},
"dependencies": {
"@peggyjs/from-mem": "3.1.3",
"@peggyjs/from-mem": "4.0.0",
"commander": "^14.0.3",
"source-map-generator": "2.0.6"
"source-map-generator": "2.0.7"
},
"browserslist": [
"defaults, maintained node versions, not op_mini all"
],
"packageManager": "pnpm@10.32.1",
"pnpm": {
"overrides": {
"mocha@11.7.5>diff": "8.0.3",
"mocha@11.7.5>serialize-javascript": "7.0.3"
}
},
"packageManager": "pnpm@12.9.1",
"engines": {
"node": ">=20"
"node": ">=22"
}
}
Loading
Loading