@adobe-commerce/recaptcha 1.1.0-alpha-202603181630 → 1.1.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/package.json +1 -1
package/CHANGELOG.md ADDED
@@ -0,0 +1,17 @@
1
+ # @adobe-commerce/recaptcha
2
+
3
+ ## 1.1.0-beta.0
4
+
5
+ ### Minor Changes
6
+
7
+ - d054150: ### Summary
8
+
9
+ - Replaces the `recaptchaV3Config` GraphQL query with `recaptchaFormConfig`, which supports both reCAPTCHA v3 and Enterprise
10
+ - Queries all form types in a single request using GraphQL aliases and normalizes the per-form response into the existing config shape
11
+ - Loads `enterprise.js` or `api.js` based on the detected `re_captcha_type` from the backend
12
+ - Uses `grecaptcha.enterprise.*` namespace for token generation and badge rendering when Enterprise is configured
13
+ - Skips forms with empty `website_key` (enabled but not usable)
14
+ - Warns and disables reCAPTCHA entirely if mixed types (v3 + Enterprise) are detected across forms
15
+ - Adds `[ReCaptcha]`-prefixed debug logging throughout the lifecycle (gated behind `enableLogger`)
16
+ - Renames all `V3`-suffixed types to generic names (`ReCaptchaModel`, `ReCaptchaResponse`, etc.)
17
+ - Updates README with Enterprise support documentation
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe-commerce/recaptcha",
3
- "version": "1.1.0-alpha-202603181630",
3
+ "version": "1.1.0-beta.0",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "description": "Module allows to efficiently verify that users are humans, not bots or spammers",
6
6
  "engines": {