Skip to content

Commit

Permalink
fix(component): mark forRoot() method as deprecated
Browse files Browse the repository at this point in the history
It hasn't been required since v4.1.0, as was supposed to be removed in v5, but this fell through the cracks. It'll now certainly be removed in v7.
  • Loading branch information
Ruslan Arkhipau authored and Ruslan Arkhipau committed Dec 1, 2020
1 parent c99cb45 commit dea31e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion recaptcha/recaptcha.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ import { RecaptchaComponent } from './recaptcha.component';
],
})
export class RecaptchaModule {
// We need this to maintain backwards-compatibility with v4. Removing this will be a breaking change
/**
* @deprecated Using `forRoot()` method has not been necessary since v4.1.0. This method will be removed in `ng-recatcha@7`.
*/
public static forRoot() {
return RecaptchaModule;
}
Expand Down

0 comments on commit dea31e5

Please sign in to comment.