Repository navigation
chore(deps): batch update 13 packages incl. TypeScript 6.0 - #228
sergienko4 wants to merge 6 commits into
Conversation
Refreshes the toolchain to the latest minor / patch within each package's current major. Zero behaviour change expected — every bump stays within SemVer's backwards-compatible window. * @biomejs/biome ^2.4.7 → ^2.4.15 (patch) * eslint ^10.0.2 → ^10.3.0 (minor) * fast-check ^4.5.3 → ^4.8.0 (minor) * fs-extra ^11.3.3 → ^11.3.5 (patch) * globals ^17.4.0 → ^17.6.0 (minor) * jest ^30.2.0 → ^30.4.2 (minor) * jest-environment-jsdom ^30.3.0 → ^30.4.1 (minor) * playwright-core ^1.58.2 → ^1.60.0 (minor) * publint ^0.3.17 → ^0.3.21 (patch) * typescript-eslint ^8.56.1 → ^8.59.3 (patch) Note: `@hieutran094/camoufox-js` left at ^0.6.8. `npm outdated` reported 0.6.9 as latest but the npm registry only carries up to 0.6.8 today — the local index was stale. Lock file refreshed via `npm install`. `npm audit --audit-level=high --omit=dev` reports 0 vulnerabilities. Commit 1 of 2 in Phase A — the TypeScript 6.0 and `eslint-plugin-simple-import-sort` 13 majors land in commit 2. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Lands the two majors that close out Phase A. Both bumps cleared
the full gate ladder against the 10 safe minor/patch bumps that
landed in the previous commit.
* typescript ^5.9.3 → ^6.0.3 (major)
* eslint-plugin-simple-import-sort ^12.1.1 → ^13.0.0 (major)
TypeScript 6.0 changed the default `compilerOptions.types`
resolution: implicit auto-load of every `@types/*` package in
`node_modules` no longer happens. Without an explicit list, the
test files (which rely on jest globals — `describe`, `it`,
`expect`, the `jest` namespace) failed to compile under
`tsc --noEmit` with `Cannot find name 'describe'` /
`Cannot find namespace 'jest'`. Restored auto-load behaviour by
declaring `"types": ["jest", "node"]` in `tsconfig.json`.
`@types/jest` and `@types/node` are already in `devDependencies`;
this change only tells TS 6.0 which ambient ones to load.
`eslint-plugin-simple-import-sort` v13 required no config edits
on this project — the rule names + option shapes were preserved
across the major. Verified by `npm run lint` (clean,
`--max-warnings 0`).
Validation:
* `npx tsc --noEmit` — clean.
* `npm run lint` — clean (eslint + architecture + canaries
+ format:check).
* `npm run test:pipeline` — 4450/4450 pass; coverage 97.09 /
95.11 / 97.09 / 98.31 maintained (Q6 strict-hold honoured).
* `npm audit --audit-level=high --omit=dev` — 0 vulnerabilities.
Commit 2 of 2 in Phase A. Closes G-1 in the
quality-and-security-cleanup-2026-05 plan.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
📝 WalkthroughWalkthroughUpgrades dev tooling (biome, ESLint, TypeScript, Jest, etc.) and TypeScript configs, and centralizes network listener lifecycle by deferring auth-failure watcher subscription behind INetworkDiscovery.attachAuthFailureWatcher; ESLint rules, a canary, BaseScraper cleanup, and tests/mocks were updated to the new contract. ChangesDevelopment Toolchain and TypeScript
Pipeline network lifecycle and tests
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
CI failure on PR #228 (run 25826624052): `tsup` DTS build fails under TypeScript 6.0 with TS5101 "Option 'baseUrl' is deprecated". The deprecation is implicit — neither `tsconfig.json` nor `tsconfig.build.json` sets `baseUrl` explicitly, but `rollup-plugin-dts` (the engine `tsup` uses for DTS emit) injects a `baseUrl` to anchor module-resolution. TS 6.0 raises TS5101 on that injected value, where TS 5.x emitted a silent deprecation warning. `tsc --noEmit` passed locally because the warning does not promote to error on type-check-only runs; the build path does promote it. Standard remediation per the TS 6.0 release notes is to set `"ignoreDeprecations": "6.0"` in the compilerOptions that govern the deprecating call site. Scoped the option to `tsconfig.build.json` so the silencer applies ONLY to the build path and not the editor / `tsc --noEmit` flow — leaves room for TS 7.0's hard-removal to surface here when it lands. Validation: * `npx tsup` — build success (CJS + ESM + DTS). * `npm run build` — clean (lint + tsup + postbuild). * `npx tsc --noEmit` — clean. Follow-on to commits e14da0a + c44da4c (Phase A — dependency updates) on the same branch. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
PR #228 Real E2E A failed on Discount + Hapoalim with an identical crash inside playwright-core 1.59.1 (the version that resolves under the previous `^1.60.0` constraint): TypeError: Cannot read properties of undefined (reading 'url') at _Page.addPageError (playwright-core/lib/coreBundle.js:19951:16) at FFPage._onUncaughtError (playwright-core/lib/coreBundle.js:43470:20) The crash is fully inside Playwright — no `pageerror` / `addPageError` handlers in our code. Playwright 1.59 changed Firefox's uncaught-error handling and the payload sometimes arrives without a `url` field; `addPageError` then crashes the test harness. The 9 other banks (Beinleumi / Isracard / Max / VisaCal / OneZero / Amex / Pepper / Mizrahi / Yahav / OtsarHahayal) tolerated 1.59 because their pages never triggered an uncaught error during scrape. Discount and Hapoalim do. Camoufox-js@0.6.8 peer-depends on `playwright-core: *`, so pinning back to 1.58.x has no peer-conflict surface. Validation: * npx tsc --noEmit: clean. * npx eslint src: clean. * npm ls playwright-core: 1.58.2 (correctly deduped). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
8057d18 to
f4862a6
Compare
Closes a NULL-deref regression in playwright-core 1.60.0 that
crashes every Camoufox-based test on PageError emit:
TypeError: Cannot read properties of undefined (reading 'url')
at FFBrowserContext.<anonymous> (coreBundle.js:49624:39)
at _Page.addPageError (coreBundle.js:19951:16)
at FFPage._onUncaughtError (coreBundle.js:43470:20)
Root cause: upstream PR microsoft/playwright#39767 ("Add
location() to WebError", merged 2026-04-27, shipped in 1.60.0)
added a `pageError.location.url` read in
BrowserContextDispatcher's PageError listener without a null
guard. The PR added fallback defaults in BidiPage.ts +
WebkitPage.ts but forgot the Firefox driver. Camoufox v135.0.1-
beta.24 (Firefox-based) emits Page.uncaughtError events without
a `location` field; the listener crashes when destructuring.
Surfaces in two places:
- PR #228 CI run 25844771660: Discount E2E Real A failed
after the scrape pipeline completed terminate.FINAL OK 8/8
(93 real transactions scraped). Crash hit during browser
teardown.
- Local test:mock: every browser bank crashes during the
mock-routed page load when synthesized fixtures throw an
unhandled JS error.
Camoufox's peer constraint is `playwright-core: *` so pinning
to the 1.59.x line creates no conflict. 1.59.1 does not have
the `pageError.location.url` read at all — the addPageError
signature took a single `pageError` argument and the listener
serialized only `error` + `page`.
Verification:
- tsc --noEmit clean.
- eslint src clean.
- canaries 18/18 trigger.
- MOCK_MODE=1 npx tsx scripts/run-mock-single.ts hapoalim
PASS (was crash on 1.60.0).
When upstream ships 1.60.1 with the Firefox fallback we can
bump back. Plan track in
C:/tmp/plans/quality-and-security-cleanup-2026-05 status.txt
row A.fix-discount-teardown.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Closes the Cloudflare WAF fingerprint leak that surfaced as Hapoalim hCaptcha challenge on PR #228 CI run 25844771660 (job 75940569895). Pipeline.log + diagnostic screenshot (c:/tmp/hapoalim-diag-25844771660/) show home.PRE fail at index 2/9 with the Cloudflare "Additional security check is required" wall — login form never rendered. Audit revealed two listener-attachment sites pre-WAF window: 1. AuthFailureWatcher attached page.on('response', ...) in its constructor. The constructor runs inside createNetworkDiscovery at INIT.FINAL — after navigation but before HOME.PRE. The I-3 listener-deferral fix from PR #227 deferred only the main capture listener; this peripheral listener bypassed it. 2. BaseScraperWithBrowser.setupPage attached page.on('requestfailed', ...) before any navigation. Affected legacy banks (Leumi / Mizrahi / Yahav / Behatsdaa / BeyahadBishvilha). Handler was debug-only. Fix routes listener attachment through a central registry on NetworkDiscovery: - AuthFailureWatcher.createAuthFailureWatcher() no longer subscribes synchronously. The watcher exposes start() and its state tracks isStarted for idempotent re-entry. - INetworkDiscovery gains attachAuthFailureWatcher(), wired by NetworkTraceLifecycleInterceptor at LOGIN entry — past the HOME WAF check window. Frozen networks no-op. - BaseScraperWithBrowser's debug listener removed entirely (zero functional cost — only bankLog.debug logging). - ESLint Section 10b bans direct page.on / context.on / browserContext.on / this.page.on calls in src/Scrapers/Pipeline/** outside Mediator/Network/. New canary EslintCanaries/page-on-outside-registry.canary.ts fires the rule. Verification: - 4 new RED-then-GREEN tests in AuthFailureWatcherDeferred.test.ts pin the contract. - 5 existing test mocks updated for the new contracts. - tsc --noEmit clean. - eslint src clean (Section 10b correctly scoped to Pipeline). - canaries 18/18 trigger including the new one. - test:pipeline 4454/4454 pass (+4 from the new test file). Plan track in C:/tmp/plans/quality-and-security-cleanup-2026-05: status.txt row A.fix-hapoalim-leak, task.txt T1..T12, implementation.txt section "A.fix-hapoalim-leak". Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@eslint.config.mjs`:
- Around line 864-869: Update the ESLint AST selector so it matches calls like
this.page.on(...) as well as this.on(...): replace the current
callee.object.type='ThisExpression' check with a
callee.object.type='MemberExpression' whose object.type='ThisExpression' and
property.name='page' (or use a MemberExpression chain whose root object is a
ThisExpression) so the rule that warns "Use `NetworkDiscovery.attach*Handler`
instead of direct `this.page.on(...)` / `this.context.on(...)`" will catch
nested member calls; adjust the selector string in the rule block (the object
containing selector and message) accordingly.
In `@src/Scrapers/Pipeline/EslintCanaries/page-on-outside-registry.canary.ts`:
- Around line 1-6: Update the top-of-file canary comment in
src/Scrapers/Pipeline/EslintCanaries/page-on-outside-registry.canary.ts to state
this file is intentionally ignored by the linter: change the wording to clarify
it documents the banned pattern (direct page.on(...) outside the
NetworkDiscovery registry) and note that it would trigger the
no-restricted-syntax selector in Section 10b of eslint.config.mjs only if the
**/EslintCanaries/** pattern were not globally ignored; keep references to
page.on(...) and INetworkDiscovery and the PR `#228` fingerprint leak for context.
In `@src/Scrapers/Pipeline/Mediator/Network/AuthFailureWatcher.ts`:
- Around line 443-448: The startFn currently only checks state.isStarted and may
attach page.on('response', state.responseHandler) after dispose() ran; add a
disposal guard (e.g., state.isDisposed boolean) that dispose() sets to true and
startFn (and the alternate start branch around lines 465-470) must return false
if state.isDisposed is true to prevent attaching the response handler after
disposal; ensure dispose() still removes the listener and sets the flag so
future starts are blocked.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: f4517ba4-01f8-4ee4-aab0-6edae25e292e
⛔ Files ignored due to path filters (1)
package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (14)
eslint.config.mjspackage.jsonsrc/Scrapers/Base/BaseScraperWithBrowser.tssrc/Scrapers/Pipeline/EslintCanaries/page-on-outside-registry.canary.tssrc/Scrapers/Pipeline/Interceptors/NetworkTraceLifecycleInterceptor.tssrc/Scrapers/Pipeline/Mediator/Network/AuthFailureWatcher.tssrc/Scrapers/Pipeline/Mediator/Network/NetworkDiscovery.tssrc/Scrapers/Pipeline/Mediator/Network/NetworkDiscoveryTypes.tssrc/Tests/Unit/Pipeline/Infrastructure/LoginFactoryTest.test.tssrc/Tests/Unit/Pipeline/Infrastructure/LoginStepsPostActionCtx.test.tssrc/Tests/Unit/Pipeline/Interceptors/NetworkTraceLifecycleInterceptor.test.tssrc/Tests/Unit/Pipeline/Mediator/Network/AuthFailureWatcher.test.tssrc/Tests/Unit/Pipeline/Mediator/Network/AuthFailureWatcherDeferred.test.tssrc/Tests/Unit/Scrapers/Pipeline/MockPipelineFactories.ts
🚧 Files skipped from review as they are similar to previous changes (1)
- package.json
| { | ||
| selector: | ||
| "CallExpression[callee.type='MemberExpression'][callee.property.name='on'][callee.object.type='ThisExpression']", | ||
| message: | ||
| '🚫 LISTENER LEAK: Use `NetworkDiscovery.attach*Handler` instead of direct `this.page.on(...)` / `this.context.on(...)`. See `quality-and-security-cleanup-2026-05` row `A.fix-hapoalim-leak`.', | ||
| }, |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Search for this.page.on / this.context.on patterns in Pipeline code
rg -n -C2 --type=ts 'this\.(page|context|browserContext)\.on\(' \
src/Scrapers/Pipeline/ \
-g '!**/Network/**' \
-g '!**/*.test.ts'Repository: sergienko4/israeli-bank-scrapers
Length of output: 58
🏁 Script executed:
# First, let's look at the exact selector in eslint.config.mjs
head -n 900 eslint.config.mjs | tail -n 50Repository: sergienko4/israeli-bank-scrapers
Length of output: 2305
🏁 Script executed:
# Let's also check the broader context around lines 864-869
sed -n '850,880p' eslint.config.mjsRepository: sergienko4/israeli-bank-scrapers
Length of output: 1664
🌐 Web query:
ESLint selector AST structure this.page.on() MemberExpression CallExpression
💡 Result:
ESLint AST selector for this.page.on() (i.e., a CallExpression whose callee is this.page.on): CallExpression > MemberExpression[object.object.type='ThisExpression'][object.property.name='page'][property.name='on'] How it maps to the AST/selector model: - CallExpression > MemberExpression targets the call’s callee being a MemberExpression [1]. - MemberExpression[...] filters by AST node properties (ESLint selectors support attribute/value constraints) [1][2]. - object.object.type='ThisExpression' matches the leftmost this in this.page. - object.property.name='page' matches the accessed property .page. - property.name='on' matches the accessed property .on that is being called [1]. Example (e.g., with no-restricted-syntax): "no-restricted-syntax": [ "error", "CallExpression > MemberExpression[object.object.type='ThisExpression'][object.property.name='page'][property.name='on']" ]
Citations:
- 1: https://eslint.org/docs/latest/extend/selectors
- 2: https://www.typeerror.org/docs/eslint/developer-guide/selectors
Fix selector to catch this.page.on(...) patterns.
The selector callee.object.type='ThisExpression' only matches this.on(...), not this.page.on(...). For this.page.on(...), the callee's object is a MemberExpression (representing this.page), not a ThisExpression. The selector must check the nested structure:
Corrected selector
{
selector:
- "CallExpression[callee.type='MemberExpression'][callee.property.name='on'][callee.object.type='ThisExpression']",
+ "CallExpression[callee.type='MemberExpression'][callee.property.name='on'][callee.object.type='MemberExpression'][callee.object.object.type='ThisExpression'][callee.object.property.name=/^(page|context|browserContext)$/]",
message:
'🚫 LISTENER LEAK: Use `NetworkDiscovery.attach*Handler` instead of direct `this.page.on(...)` / `this.context.on(...)`. See `quality-and-security-cleanup-2026-05` row `A.fix-hapoalim-leak`.',
},📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| { | |
| selector: | |
| "CallExpression[callee.type='MemberExpression'][callee.property.name='on'][callee.object.type='ThisExpression']", | |
| message: | |
| '🚫 LISTENER LEAK: Use `NetworkDiscovery.attach*Handler` instead of direct `this.page.on(...)` / `this.context.on(...)`. See `quality-and-security-cleanup-2026-05` row `A.fix-hapoalim-leak`.', | |
| }, | |
| { | |
| selector: | |
| "CallExpression[callee.type='MemberExpression'][callee.property.name='on'][callee.object.type='MemberExpression'][callee.object.object.type='ThisExpression'][callee.object.property.name=/^(page|context|browserContext)$/]", | |
| message: | |
| '🚫 LISTENER LEAK: Use `NetworkDiscovery.attach*Handler` instead of direct `this.page.on(...)` / `this.context.on(...)`. See `quality-and-security-cleanup-2026-05` row `A.fix-hapoalim-leak`.', | |
| }, |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@eslint.config.mjs` around lines 864 - 869, Update the ESLint AST selector so
it matches calls like this.page.on(...) as well as this.on(...): replace the
current callee.object.type='ThisExpression' check with a
callee.object.type='MemberExpression' whose object.type='ThisExpression' and
property.name='page' (or use a MemberExpression chain whose root object is a
ThisExpression) so the rule that warns "Use `NetworkDiscovery.attach*Handler`
instead of direct `this.page.on(...)` / `this.context.on(...)`" will catch
nested member calls; adjust the selector string in the rule block (the object
containing selector and message) accordingly.
| // Canary: direct `page.on(...)` outside `NetworkDiscovery` is banned. | ||
| // Triggers the `no-restricted-syntax` selector in Section 10b of | ||
| // `eslint.config.mjs`. Closes the CDP/BiDi fingerprint leak that | ||
| // surfaced on PR #228 CI run 25844771660 (Hapoalim Cloudflare | ||
| // hCaptcha wall) — every listener must route through the central | ||
| // registry on `INetworkDiscovery`. |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Verify ESLint processes (or skips) the canary
npx eslint src/Scrapers/Pipeline/EslintCanaries/page-on-outside-registry.canary.ts \
--max-warnings 0 2>&1 | head -20Repository: sergienko4/israeli-bank-scrapers
Length of output: 1045
🏁 Script executed:
# Check the eslint.config.mjs for global ignores around line 433
cat -n eslint.config.mjs | sed -n '420,450p'Repository: sergienko4/israeli-bank-scrapers
Length of output: 1002
🏁 Script executed:
# Read the canary file to confirm its current state
cat -n src/Scrapers/Pipeline/EslintCanaries/page-on-outside-registry.canary.tsRepository: sergienko4/israeli-bank-scrapers
Length of output: 736
🏁 Script executed:
# Search for all references to EslintCanaries in eslint config
rg "EslintCanaries" eslint.config.mjs -nRepository: sergienko4/israeli-bank-scrapers
Length of output: 146
🏁 Script executed:
cat -n eslint.config.mjs | sed -n '840,860p'Repository: sergienko4/israeli-bank-scrapers
Length of output: 1068
Update canary comment to clarify the file is intentionally ignored.
The file's comment claims it "Triggers the no-restricted-syntax selector," but eslint.config.mjs globally ignores **/EslintCanaries/** (line 433), so the rule never actually checks this file. The dual ignore (also present in the section-specific rule at line 851) appears intentional for documentation purposes.
Update the comment to reflect reality:
// Canary: documents the banned pattern for direct `page.on(...)` outside
// `NetworkDiscovery`. Would trigger the `no-restricted-syntax` selector
// in Section 10b of `eslint.config.mjs` if not globally ignored. Closes
// the CDP/BiDi fingerprint leak that surfaced on PR `#228` CI run 25844771660
// (Hapoalim Cloudflare hCaptcha wall) — every listener must route through
// the central registry on `INetworkDiscovery`.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@src/Scrapers/Pipeline/EslintCanaries/page-on-outside-registry.canary.ts`
around lines 1 - 6, Update the top-of-file canary comment in
src/Scrapers/Pipeline/EslintCanaries/page-on-outside-registry.canary.ts to state
this file is intentionally ignored by the linter: change the wording to clarify
it documents the banned pattern (direct page.on(...) outside the
NetworkDiscovery registry) and note that it would trigger the
no-restricted-syntax selector in Section 10b of eslint.config.mjs only if the
**/EslintCanaries/** pattern were not globally ignored; keep references to
page.on(...) and INetworkDiscovery and the PR `#228` fingerprint leak for context.
| const startFn = (): boolean => { | ||
| if (state.isStarted) return false; | ||
| state.isStarted = true; | ||
| page.on('response', state.responseHandler); | ||
| return true; | ||
| }; |
There was a problem hiding this comment.
Prevent start() after disposal to avoid orphaned listener.
Line 443 only checks isStarted. If dispose() runs before start(), a later start() still attaches page.on('response', ...), while Line 466 then blocks future unsubscribe paths.
Proposed fix
const startFn = (): boolean => {
- if (state.isStarted) return false;
+ if (state.isDisposed || state.isStarted) return false;
state.isStarted = true;
page.on('response', state.responseHandler);
return true;
};Also applies to: 465-470
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@src/Scrapers/Pipeline/Mediator/Network/AuthFailureWatcher.ts` around lines
443 - 448, The startFn currently only checks state.isStarted and may attach
page.on('response', state.responseHandler) after dispose() ran; add a disposal
guard (e.g., state.isDisposed boolean) that dispose() sets to true and startFn
(and the alternate start branch around lines 465-470) must return false if
state.isDisposed is true to prevent attaching the response handler after
disposal; ensure dispose() still removes the listener and sets the flag so
future starts are blocked.
Bumps the pin tighter than the prior ~1.59.1 because 1.58.2 is the version PR #227 commit `6b7df4cf` (squashed as `cbd588d3` on master) PROVED green with Hapoalim's anti-bot at the deferred- listener boundary. CI run 25813831687 job 75838090052 confirmed Hapoalim Real A passed on 1.58.2. PR #228 testing surfaced two regressions against 1.59.1: - First run (CI 25826925604, pre-pin): the 1.60.0 PageError NULL deref crash documented in `quality-and-security- cleanup-2026-05/status.txt` row `A.fix-discount-teardown`. - Second run (CI 25857552976, ~1.59.1 + listener deferral): Hapoalim's SPA failed with a generic "Application error: a client-side exception" page (`hapoalim-home-pre-fail- 20260514-113522.png`) even though every other browser bank passed and the local Docker CI-mirror reproduced PASS on the same code. Bank-side anti-bot treats the Azure runner IP differently than the residential ISP Docker uses. 1.58.2 is the exact version Hapoalim's anti-bot signed off on in PR #227. The deferred-listener mechanism (commit `6b7df4cf`) plus the central-registry refactor (commit `890c9a32`) both remain in place; the version pin is what restores parity with the proven-working CI baseline. Camoufox-js peer constraint is `playwright-core: *` so the downgrade has no conflict surface. Verification: - tsc --noEmit clean. - npm ls playwright-core: 1.58.2 (deduped under camoufox-js). When upstream playwright-core ships a 1.60.x with the Firefox PageError null guard, revisit the pin. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|



Closes G-1 of the
quality-and-security-cleanup-2026-05plan — drift-reduction wave for the toolchain.Issues closed
eslint-plugin-simple-import-sort13)dependency-updates-guidlines.mdmandates continuous patch/minor + careful major batching. Toolchain has accumulated 6+ months of drift since the last batch.What changed
Two atomic commits per
commit-guidlines.md §1single-responsibility:@biomejs/biome,eslint,fast-check,fs-extra,globals,jest,jest-environment-jsdom,playwright-core,publint,typescript-eslint). Lock file refreshed vianpm install. Audit clean.eslint-plugin-simple-import-sort12 → 13. One tsconfig fix required: TS 6.0 changed the defaulttypesresolution so the test files needed an explicit"types": ["jest", "node"]declaration. Restores the implicit@types/*auto-load that older TypeScript provided.Why
dependency-updates-guidlines.md.Side note —
@hieutran094/camoufox-jsnpm outdatedreported a0.6.9as available, but the live npm registry returns 404 for that version (npm view ... 0.6.9errorsE404;dist-tags.latestis0.6.8). The 0.6.9 entry appears to be a tag that was published and unpublished within npm's 72-hour window. The local index was stale. Kept at^0.6.8; no behaviour change for the scraper.Test plan
npx tsc --noEmit— clean on TS 6.0.3.--max-warnings 0— clean (incl. import-sort v13).lint-and-validate.ts) — clean.prettier --checkclean.npm audit --audit-level=high --omit=dev— 0 vulnerabilities.npm run test:pipeline— 4450/4450 pass, coverage thresholds (97.09 / 95.11 / 97.09 / 98.31) hold.Phase 5 live E2E intentionally not in scope for a deps-only PR (the suite gates the real-bank runs at CI level via
e2e-real-group-aafter approval).🤖 Generated with Claude Code
Summary by CodeRabbit