@gahojin-inc/react-google-recaptcha 2025.10.0 → 2025.10.2

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/README.md +54 -0
  2. package/package.json +2 -3
package/README.md ADDED
@@ -0,0 +1,54 @@
1
+ # react-google-recaptcha
2
+
3
+ [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
4
+ [![NPM Version](https://img.shields.io/npm/v/%40gahojin-inc%2Freact-google-recaptcha?activeTab=versions)](https://www.npmjs.com/package/@gahojin-inc/react-google-recaptcha)
5
+
6
+ Google ReCaptcha V2/V3をReact Hooksとして提供するライブラリ
7
+
8
+ ## 使い方
9
+
10
+ ```javascript
11
+ import { GoogleReCaptchaProvider } from '@gahojin-inc/react-google-recaptcha'
12
+
13
+ const App = () => {
14
+ return (
15
+ <GoogleReCaptchaProvider siteKey={siteKey} language="ja">
16
+ <Example />
17
+ </GoogleReCaptchaProvider>
18
+ )
19
+ }
20
+ ```
21
+
22
+ ```javascript
23
+ import { useGoogleRecaptcha } from '@gahojin-inc/react-google-recaptcha'
24
+
25
+ const Example = () => {
26
+ const { isLoading, execute } = useGoogleRecaptcha()
27
+
28
+ const handleClick = useCallback(async () => {
29
+ const token = await execute('action')
30
+ console.log(token)
31
+ }, [execute])
32
+ }
33
+ ```
34
+
35
+
36
+ ## ライセンス
37
+
38
+ [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0)
39
+
40
+ ```
41
+ Copyright 2025, GAHOJIN, Inc.
42
+
43
+ Licensed under the Apache License, Version 2.0 (the "License");
44
+ you may not use this file except in compliance with the License.
45
+ You may obtain a copy of the License at
46
+
47
+ http://www.apache.org/licenses/LICENSE-2.0
48
+
49
+ Unless required by applicable law or agreed to in writing, software
50
+ distributed under the License is distributed on an "AS IS" BASIS,
51
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
52
+ See the License for the specific language governing permissions and
53
+ limitations under the License.
54
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gahojin-inc/react-google-recaptcha",
3
- "version": "2025.10.0",
3
+ "version": "2025.10.2",
4
4
  "description": "Hooks for Google ReCaptcha V3",
5
5
  "author": "GAHOJIN, Inc.",
6
6
  "license": "Apache-2.0",
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "dependencies": {},
38
38
  "devDependencies": {
39
- "react": "19.1.1"
39
+ "react": "19.2.0"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "react": "^18 || ^19"
@@ -45,7 +45,6 @@
45
45
  "clean": "rimraf dist .turbo *.log",
46
46
  "prebuild": "rimraf dist",
47
47
  "build": "rolldown -c",
48
- "prepublish": "pnpm run build",
49
48
  "lint": "biome check --write src",
50
49
  "check": "tsc --noEmit",
51
50
  "check:packagejson": "attw --pack --profile esm-only .",