Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: hCaptcha/react-hcaptcha
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.9.4
Choose a base ref
...
head repository: hCaptcha/react-hcaptcha
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.10.0
Choose a head ref
  • 1 commit
  • 6 files changed
  • 2 contributors

Commits on Feb 14, 2024

  1. feat: add secureApi and scriptSource (#222)

    Co-authored-by: Brad Peters <brdlyptrs@gmail.com>
    e271828- and brdlyptrs authored Feb 14, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    abmusse Abdirahim Musse
    Copy the full SHA
    d56cbaa View commit details
Showing with 3,328 additions and 11,244 deletions.
  1. +6 −0 README.md
  2. +3,156 −11,114 package-lock.json
  3. +3 −2 package.json
  4. +4 −0 src/index.js
  5. +156 −128 tests/hcaptcha.spec.js
  6. +3 −0 types/index.d.ts
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -138,6 +138,8 @@ return <HCaptcha ref={captchaRef} onLoad={onLoad} sitekey={sitekey} {...props} /
|`imghost`|String|No|`-`|See enterprise docs.|
|`reportapi`|String|No|`-`|See enterprise docs.|
|`sentry`|String|No|`-`|See enterprise docs.|
|`secureApi`|Boolean|No|`-`|See enterprise docs.|
|`scriptSource`|String|No|`-`|See enterprise docs.|
| `cleanup` | Boolean | No | `true` | Remove script tag after setup.|
|`custom`|Boolean|No|`-`|Custom theme: see enterprise docs.|
|`loadAsync`|Boolean|No|`true`|Set if the script should be loaded asynchronously.|
@@ -190,6 +192,10 @@ Please note that "invisible" simply means that no hCaptcha button will be render
3. #### Make sure you are using `reCaptchaCompat=false` if you have the reCAPTCHA JS loaded on the same page.
The hCaptcha "compatibility mode" will interfere with reCAPTCHA, as it adds properties with the same name. If for any reason you are running both hCaptcha and reCAPTCHA in parallel (we recommend only running hCaptcha) then please disable our compatibility mode.

4. #### Avoid conflicts with legacy Sentry package usage on react-hcaptcha 1.9.0+
If you are using Sentry 7.x in your React app, this can conflict with the upstream `hcaptcha-loader` package's Sentry error tracing. You can avoid this issue by setting the `sentry` prop to `false`.



---
### Contributing
Loading