ng-recaptcha-2 15.0.3-rc2 → 15.0.3

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,93 @@
1
+ <a name="15.0.3"></a>
2
+ ## 15.0.3 (2025-03-26)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * **build:** fix AoT builds ([921be50](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/921be50)), closes [#57](https://github.com/LakhveerChahal/ng-recaptcha-2/issues/57) [#65](https://github.com/LakhveerChahal/ng-recaptcha-2/issues/65)
8
+ * **component-v3:** fix a potential metadata error in v3 service ([ed885b5](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/ed885b5))
9
+ * **component:** catch and propagate grecaptcha errors, closes [#175](https://github.com/LakhveerChahal/ng-recaptcha-2/issues/175) ([075edd0](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/075edd0))
10
+ * **component:** correct type when using strict mode ([a687d13](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/a687d13)), closes [#211](https://github.com/LakhveerChahal/ng-recaptcha-2/issues/211)
11
+ * **component:** correctly emit `resolved` event ([25d4246](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/25d4246))
12
+ * **component:** correctly reset captcha during `ngOnDestroy` ([b31d57f](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/b31d57f)), closes [#12](https://github.com/LakhveerChahal/ng-recaptcha-2/issues/12)
13
+ * **component:** delay invisible recaptcha execution until it's rendered ([99292b7](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/99292b7)), closes [#127](https://github.com/LakhveerChahal/ng-recaptcha-2/issues/127)
14
+ * **component:** emit `resolved(null)` event when recaptcha expires ([491d99a](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/491d99a)), closes [#11](https://github.com/LakhveerChahal/ng-recaptcha-2/issues/11)
15
+ * **component:** ensure that component is destroyed safely ([1e51d56](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/1e51d56)), closes [#46](https://github.com/LakhveerChahal/ng-recaptcha-2/issues/46)
16
+ * **component:** fix a potential error during recaptcha rendering ([1c395b5](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/1c395b5))
17
+ * **component:** fix custom languages for reCAPTCHA v3 ([a2b145d](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/a2b145d)), closes [#174](https://github.com/LakhveerChahal/ng-recaptcha-2/issues/174)
18
+ * **component:** fix server-side rendering ([7a5bc6c](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/7a5bc6c)), closes [#34](https://github.com/LakhveerChahal/ng-recaptcha-2/issues/34) [/github.com/angular/angular/blob/master/CHANGELOG.md#features-20](https://github.com//github.com/angular/angular/blob/master/CHANGELOG.md/issues/features-20)
19
+ * **component:** fix the injection error when using slandalone `RecaptchaV3Module` ([c93b99c](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/c93b99c))
20
+ * **component:** handle id input parameter correctly ([b578fe5](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/b578fe5))
21
+ * **component:** handle top-level `execute` errors for reCAPTCHA v3 ([c7d02ce](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/c7d02ce)), closes [#194](https://github.com/LakhveerChahal/ng-recaptcha-2/issues/194)
22
+ * **component:** improve reCAPTCHA v2 and v3 interoperability ([79fc85b](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/79fc85b)), closes [#152](https://github.com/LakhveerChahal/ng-recaptcha-2/issues/152)
23
+ * **component:** mark `forRoot()` method as deprecated ([dea31e5](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/dea31e5))
24
+ * **component:** Replace `OpaqueToken` with `InjectionToken` ([2b7db9b](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/2b7db9b))
25
+ * **component:** reset form-bound captcha value after component destruction ([9e5c5e7](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/9e5c5e7)), closes [#201](https://github.com/LakhveerChahal/ng-recaptcha-2/issues/201)
26
+ * **component:** reset form-bound captcha value after component destruction ([0e550c4](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/0e550c4)), closes [#201](https://github.com/LakhveerChahal/ng-recaptcha-2/issues/201)
27
+ * **component:** reset the captcha when the component is destroyed ([e1441c8](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/e1441c8)), closes [#10](https://github.com/LakhveerChahal/ng-recaptcha-2/issues/10)
28
+ * **component:** set CSP nonce as attribute ([abcb9a6](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/abcb9a6))
29
+ * **component:** unblock protractor tests after <re-captcha> destruction ([a5f2fe9](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/a5f2fe9))
30
+ * **component:** use ElementRef to access component's native element ([d3a8409](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/d3a8409)), closes [#48](https://github.com/LakhveerChahal/ng-recaptcha-2/issues/48) [#68](https://github.com/LakhveerChahal/ng-recaptcha-2/issues/68)
31
+ * **demo:** re-add a missing systemjs config file ([b51694a](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/b51694a))
32
+ * **module:** Adding the value accessor directive to the forms barrel, which was missing. ([ad73e2e](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/ad73e2e))
33
+ * **package:** convert the `README.md` file back to a proper symlink ([e0c5c99](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/e0c5c99))
34
+ * **package:** fix publishing empty package ([e4685fe](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/e4685fe))
35
+ * **package:** make `[@types](https://github.com/types)/grecaptcha` a non-optional dependency ([bc5ad51](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/bc5ad51)), closes [#205](https://github.com/LakhveerChahal/ng-recaptcha-2/issues/205)
36
+ * **rxjs:** change import of `of` operator ([3e0bda6](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/3e0bda6)), closes [#95](https://github.com/LakhveerChahal/ng-recaptcha-2/issues/95)
37
+
38
+
39
+ ### Features
40
+
41
+ * **component:** *deprecate* `error` output in favor of `errored` ([6b002bb](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/6b002bb))
42
+ * **component:** add `exportAs` annotation ([3e2e217](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/3e2e217))
43
+ * **component:** add a new `RECAPTCHA_LOADER_OPTIONS` injection token as a way of manipulating script load parameters (such as base URL, language, trusted types, WAF, etc) ([b3c7213](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/b3c7213))
44
+ * **component:** Add Angular 11 support ([918fe90](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/918fe90))
45
+ * **component:** add support for `badge` property ([5a16430](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/5a16430)), closes [#30](https://github.com/LakhveerChahal/ng-recaptcha-2/issues/30)
46
+ * **component:** add support for invisible reCAPTCHA ([c19489d](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/c19489d)), closes [#18](https://github.com/LakhveerChahal/ng-recaptcha-2/issues/18)
47
+ * **component:** add support for reCAPTCHA v3 ([4a083c6](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/4a083c6)), closes [#129](https://github.com/LakhveerChahal/ng-recaptcha-2/issues/129)
48
+ * **component:** add the ability to handle reCAPTCHA errors ([80c9e6e](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/80c9e6e)), closes [#199](https://github.com/LakhveerChahal/ng-recaptcha-2/issues/199)
49
+ * **component:** add the ability to provide `nonce` to the script tag ([8f55b19](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/8f55b19)), closes [#100](https://github.com/LakhveerChahal/ng-recaptcha-2/issues/100)
50
+ * **component:** add the ability to specify component props globally ([d9c5f55](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/d9c5f55)), closes [#45](https://github.com/LakhveerChahal/ng-recaptcha-2/issues/45)
51
+ * **component:** adjust dependencies for Angular 6 support ([736c7ae](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/736c7ae))
52
+ * **component:** allow to specify a base url for loading recaptcha ([df505fd](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/df505fd)), closes [#101](https://github.com/LakhveerChahal/ng-recaptcha-2/issues/101)
53
+ * **component:** change component and directive selectors ([58a01b4](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/58a01b4))
54
+ * **component:** load recaptcha script using code compatible with trusted types ([88d257b](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/88d257b)), closes [#304](https://github.com/LakhveerChahal/ng-recaptcha-2/issues/304)
55
+ * **component:** make Angular 10.0.0 a supported peer dependency ([3d7756b](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/3d7756b)), closes [#177](https://github.com/LakhveerChahal/ng-recaptcha-2/issues/177)
56
+ * **component:** make Angular 8.0.0 a supported peer dependency ([f003ff2](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/f003ff2))
57
+ * **component:** make Angular 9.0.0 a supported peer dependency ([98edce6](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/98edce6)), closes [#168](https://github.com/LakhveerChahal/ng-recaptcha-2/issues/168)
58
+ * **component:** remove deprecated `forRoot` method ([514beaf](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/514beaf))
59
+ * **misc:** Annotating a static field with nocollapse so that we doesn't have issues closure compiler in advanced mode. ([55e5932](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/55e5932))
60
+ * **module:** change the way recaptcha modules work ([6e13389](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/6e13389))
61
+ * **module:** skip `forRoot()` when importing `RecaptchaModule` ([7fb97fb](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/7fb97fb)), closes [#113](https://github.com/LakhveerChahal/ng-recaptcha-2/issues/113) [#116](https://github.com/LakhveerChahal/ng-recaptcha-2/issues/116)
62
+ * **package management:** add `[@types](https://github.com/types)/grecaptcha` as optional dependency ([85fbfba](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/85fbfba))
63
+ * **package:** add Angular 12 support ([a212a21](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/a212a21))
64
+ * **package:** add Angular 14 support ([eac6858](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/eac6858))
65
+ * **package:** add Angular 15 support ([6c62634](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/6c62634)), closes [#275](https://github.com/LakhveerChahal/ng-recaptcha-2/issues/275)
66
+ * **package:** add Angular 16 support ([77a7d1f](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/77a7d1f)), closes [#288](https://github.com/LakhveerChahal/ng-recaptcha-2/issues/288)
67
+ * **package:** add Angular 17 support ([83714aa](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/83714aa)), closes [#310](https://github.com/LakhveerChahal/ng-recaptcha-2/issues/310)
68
+ * **package:** implement Angular Package format ([71340c4](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/71340c4))
69
+ * **package:** update `"[@types](https://github.com/types)/grecaptcha"` optional dependency version to ^3 ([e1ee7b9](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/e1ee7b9))
70
+ * **package:** update peer dependencies to include Angular 7 ([929ef7a](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/929ef7a))
71
+ * **package:** update peer dependencies to include Angular v4 ([b2f04e8](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/b2f04e8))
72
+ * **package:** upgrade to Angular 13 ([af08641](https://github.com/LakhveerChahal/ng-recaptcha-2/commit/af08641)), closes [#245](https://github.com/LakhveerChahal/ng-recaptcha-2/issues/245)
73
+
74
+
75
+ ### BREAKING CHANGES
76
+
77
+ * **package:** - Angular v16 is no longer supported with this version. Pin `ng-recaptcha` to `v12.x.x` to retain support for a previous Angular version
78
+ * **package:** - Angular v15 is no longer supported with this version. Pin `ng-recaptcha` to `v11.x.x` to retain support for a previous Angular version
79
+ * **component:** Support for previous versions of Angular has been dropped. Starting from v7 only one version of Angular will be supported.
80
+ * **component:** The `RecaptchaModule.forRoot()` method has been obsolete since v4.1.0 (since it has no longer been required). It is now removed. To migrate your code, simply use `RecaptchaModule` where you previously used `RecaptchaModule.forRoot()`
81
+ * **package:** * `ng-recaptcha/forms` entry point has been removed. `RecaptchaFormsModule` and `RecaptchaValueAccessorDirective` should now be imported directly from `ng-recaptcha`
82
+ * `tslib` is now a package dependency to ensure minimum possible bundle size. If your project doesn't yet have a dependency on `tslib`, run `npm install -D tslib@^1.9.0` (or `yarn add -D tslib@^1.9.0` if you use yarn)
83
+ * **component:** The peer dependency for `@angular/core` has been bumped to `^6.0.0`
84
+ * **component:**
85
+ * **component:** component selector changed from `recaptcha` to `re-captcha`
86
+ * **module:** module handling has changed.
87
+ Users of `RecaptchaNoFormsModule` should instead use `import { RecaptchaModule } from 'ng-recaptcha'`. Users of v1 `RecaptchaModule` should also `import { RecaptchaFormsModule } from 'ng-recaptcha/forms'`. SystemJS users must also re-setup module "main" file to `index.js`
88
+
89
+
90
+
1
91
  <a name="15.0.2"></a>
2
92
 
3
93
  ## [15.0.2](https://github.com/LakhveerChahal/ng-recaptcha-2/compare/v15.0.2-rc1...v15.0.2) (2024-12-07)
package/README.md CHANGED
@@ -1,16 +1,18 @@
1
1
  # Angular component for Google reCAPTCHA
2
2
 
3
- ## ng-recaptcha-2 [![npm version](https://badge.fury.io/js/ng-recaptcha.svg)](https://www.npmjs.com/package/ng-recaptcha-2)
3
+ ## ng-recaptcha-2 [![npm version](https://badge.fury.io/js/ng-recaptcha-2.svg)](https://www.npmjs.com/package/ng-recaptcha-2)
4
4
 
5
5
  Parent project [(ng-recaptcha)](https://dethariel.github.io/ng-recaptcha/)
6
6
 
7
7
  [![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/dethariel/ng-recaptcha/master/LICENSE)
8
8
  [![Build Status](https://app.travis-ci.com/DethAriel/ng-recaptcha.svg?branch=master)](https://app.travis-ci.com/DethAriel/ng-recaptcha)
9
9
  [![Coverage Status](https://coveralls.io/repos/github/DethAriel/ng-recaptcha/badge.svg?branch=master)](https://coveralls.io/github/DethAriel/ng-recaptcha?branch=master)
10
- [![NPM downloads](https://img.shields.io/npm/dm/ng-recaptcha)](https://www.npmjs.com/package/ng-recaptcha)
10
+ [![NPM downloads](https://img.shields.io/npm/dm/ng-recaptcha-2)](https://www.npmjs.com/package/ng-recaptcha-2)
11
11
 
12
12
  A simple, configurable, easy-to-start component for handling reCAPTCHA v2 and v3.
13
13
 
14
+ [!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/lucky.devs)
15
+
14
16
  ## Table of contents
15
17
 
16
18
  1. [Installation](#installation)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ng-recaptcha-2",
3
3
  "description": "Angular component for Google reCAPTCHA for Angular v18 and onwards",
4
- "version": "15.0.3-rc2",
4
+ "version": "15.0.3",
5
5
  "author": "Ruslan Arkhipau <dethariel@gmail.com>",
6
6
  "license": "MIT",
7
7
  "repository": {