Skip to content

Commit 298e83d

Browse files
authored
Merge pull request #104 from maxatwork/codex/fix-security-alerts
[codex] fix security alerts
2 parents c56b070 + 0564395 commit 298e83d

8 files changed

Lines changed: 2581 additions & 4792 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
node-version: [18, 20, 22]
19+
node-version: [22.14.0]
2020

2121
steps:
2222
- name: Checkout
@@ -47,7 +47,7 @@ jobs:
4747
run: npm run pack:dry-run
4848

4949
docs-e2e:
50-
name: docs-e2e (node 20)
50+
name: docs-e2e (node 22.14.0)
5151
runs-on: ubuntu-latest
5252

5353
steps:
@@ -57,7 +57,7 @@ jobs:
5757
- name: Setup Node
5858
uses: actions/setup-node@v4
5959
with:
60-
node-version: 20
60+
node-version: 22.14.0
6161
cache: npm
6262

6363
- name: Install

.github/workflows/pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Setup Node
3636
uses: actions/setup-node@v4
3737
with:
38-
node-version: 20
38+
node-version: 22.14.0
3939
cache: npm
4040

4141
- name: Install

apps/docs/package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,29 @@
99
"test": "vitest run",
1010
"test:e2e": "playwright test",
1111
"lint": "eslint \"src/**/*.{ts,tsx}\" \"test/**/*.{ts,tsx}\" \"test-e2e/**/*.ts\"",
12-
"typecheck": "astro check",
12+
"typecheck": "astro sync && tsc --noEmit",
1313
"clean": "rimraf dist .astro"
1414
},
1515
"dependencies": {
16+
"@astrojs/react": "^5.0.2",
1617
"@form2js/core": "3.4.0",
1718
"@form2js/dom": "3.4.0",
1819
"@form2js/form-data": "3.4.0",
1920
"@form2js/jquery": "3.4.0",
2021
"@form2js/js2form": "3.4.0",
2122
"@form2js/react": "3.4.0",
22-
"@astrojs/react": "^4.4.0",
23-
"astro": "^5.7.0",
23+
"astro": "^6.1.1",
2424
"jquery": "^3.7.1",
25-
"rehype-stringify": "^10.0.1",
2625
"react": "^19.1.1",
2726
"react-dom": "^19.1.1",
27+
"rehype-stringify": "^10.0.1",
2828
"remark-gfm": "^4.0.1",
2929
"remark-parse": "^11.0.0",
3030
"remark-rehype": "^11.1.2",
3131
"unified": "^11.0.5",
3232
"zod": "^4.1.5"
3333
},
3434
"devDependencies": {
35-
"@astrojs/check": "^0.9.4",
3635
"@playwright/test": "^1.54.2",
3736
"@types/jquery": "^3.5.33",
3837
"@types/react": "^19.1.12",

apps/docs/test/playground-shell.test.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,11 @@ declare global {
136136

137137
let container: HTMLDivElement;
138138
let root: ReturnType<typeof createRoot>;
139-
let consoleErrorSpy: ReturnType<typeof vi.spyOn>;
140139

141140
beforeEach(() => {
142141
globalThis.IS_REACT_ACT_ENVIRONMENT = true;
143142
resetMockVariants();
144-
consoleErrorSpy = vi.spyOn(console, "error").mockImplementation(() => undefined);
143+
vi.spyOn(console, "error").mockImplementation(() => undefined);
145144
container = document.createElement("div");
146145
document.body.append(container);
147146
root = createRoot(container);
@@ -154,8 +153,7 @@ afterEach(() => {
154153
});
155154
container.remove();
156155
resetMockVariants();
157-
consoleErrorSpy.mockRestore();
158-
vi.clearAllMocks();
156+
vi.restoreAllMocks();
159157
});
160158

161159
function renderShell(): void {

0 commit comments

Comments
 (0)