Skip to content

chore: upgrade to Node 22.22.2 and fix yarn build#131

Merged
matiasperrone-exo merged 1 commit into
feat/migrate-from-google-recaptcha-to-cloudflare-turnstilefrom
hotfix/migrate-from-google-recaptcha-to-cloudflare-turnstile-node-22
May 11, 2026
Merged

chore: upgrade to Node 22.22.2 and fix yarn build#131
matiasperrone-exo merged 1 commit into
feat/migrate-from-google-recaptcha-to-cloudflare-turnstilefrom
hotfix/migrate-from-google-recaptcha-to-cloudflare-turnstile-node-22

Conversation

@smarcet
Copy link
Copy Markdown
Collaborator

@smarcet smarcet commented May 10, 2026

- Bump NODE_VERSION 20.20.2 → 22.22.2 in Dockerfile and .nvmrc
- Replace node-sass@8 (EOL, no Node 22 binary) with sass@^1.77 (dart-sass)
- Bump webpack@^5.94, webpack-cli@^5.1.4 (resolves OpenSSL-3 legacy hash issue)
- Bump copy-webpack-plugin@^11 for webpack 5.94+ compatibility
- Add util:false to webpack.common.js resolve.fallback (webpack 5.106 is
  stricter than 5.70 about unresolved Node built-ins; jsdom/tough-cookie
  transitively require util which should not be browser-polyfilled)
- Drop unused devDeps: clean-webpack-plugin, html-webpack-plugin,
  optimize-css-assets-webpack-plugin, path polyfill, webpack-node-externals
- Regenerate yarn.lock
@smarcet smarcet requested a review from matiasperrone-exo May 10, 2026 12:34
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 10, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 4bb6326a-c602-4452-a5b3-3b24513c4fb1

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch hotfix/migrate-from-google-recaptcha-to-cloudflare-turnstile-node-22

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown

📘 OpenAPI / Swagger preview

➡️ https://OpenStackweb.github.io/openstackid/openapi/pr-131/

This page is automatically updated on each push to this PR.

@matiasperrone-exo matiasperrone-exo merged commit 34a6926 into feat/migrate-from-google-recaptcha-to-cloudflare-turnstile May 11, 2026
6 checks passed
smarcet added a commit that referenced this pull request May 27, 2026
* feat: Migrate from Google reCAPTCHA to Cloudflare Turnstile

* chore: Change to vendor recommended implementation

* feat: Update login attempts retrieval to use user data if available

* chore: Add PR's requested changes and Unit tests

- Validation failure when cf-turnstile-response is missing
- Login flow behaviour before/after CAPTCHA threshold
- Rendering of Turnstile on the thresholded login screen
- Auth form submission when Turnstile is expired or not solved

* chore: upgrade to Node 22.22.2 and fix yarn build (#131)

- Bump NODE_VERSION 20.20.2 → 22.22.2 in Dockerfile and .nvmrc
- Replace node-sass@8 (EOL, no Node 22 binary) with sass@^1.77 (dart-sass)
- Bump webpack@^5.94, webpack-cli@^5.1.4 (resolves OpenSSL-3 legacy hash issue)
- Bump copy-webpack-plugin@^11 for webpack 5.94+ compatibility
- Add util:false to webpack.common.js resolve.fallback (webpack 5.106 is
  stricter than 5.70 about unresolved Node built-ins; jsdom/tough-cookie
  transitively require util which should not be browser-polyfilled)
- Drop unused devDeps: clean-webpack-plugin, html-webpack-plugin,
  optimize-css-assets-webpack-plugin, path polyfill, webpack-node-externals
- Regenerate yarn.lock

* chore: Add PR's requested changes

* chore: Add PR's requested changes

* chore: Fix composer.lock update issue

* feat: Add remote IP address to Turnstile verification request

* fix: add timeout and scope retry to connection errors in TurnstileClient

- Add ->timeout(5) to bound max wall time to ~15s during Cloudflare outages
- Restrict retry to ConnectionException only so success:false responses
  (valid HTTP 200) do not trigger wasteful retries

---------

Co-authored-by: sebastian marcet <smarcet@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants