Skip to content

Releases: matei-radu/react-recaptcha-v2

Release v2.1.0

12 Jul 17:08
e0e73b7
Compare
Choose a tag to compare

Added

  • tabIndex prop corresponding to the data-tabindex tag attribute.

Changed

  • Bump @rollup/plugin-node-resolve to version 15.2.3.
  • Bump @rollup/plugin-typescript to version 11.1.6.
  • Bump @types/react to version 18.3.3.
  • Bump husky to version 9.0.11.
  • Bump lint-staged to version 15.2.7.
  • Bump nanoid to version 5.0.7.
  • Bump prettier to version 3.3.2.
  • Bump rollup to version 4.18.0.
  • Bump rollup-plugin-copy to version 3.5.0.

Release v2.0.1

03 May 20:06
Compare
Choose a tag to compare

Changed

  • Updating TypeScript to v4.9 has fixed Rollup not being able to output type declarations, so the npm script
    build:ts-decl is removed.
  • TypeScript declarations are now available under lib instead of types.
  • Move lint-staged configuration to its own file .lintstagedrc.json.
  • Bump @rollup/plugin-node-resolve to version 15.0.2.
  • Bump @rollup/plugin-typescript to version 11.1.0.
  • Bump @types/react to version 18.2.1.
  • Bump husky to version 8.0.3.
  • Bump lint-staged to version 13.2.2.
  • Bump prettier to version 2.8.8.
  • Bump rollup to version 3.21.4.
  • Bump typescript to version 4.9.5.

Release v2.0.0

01 Mar 00:21
Compare
Choose a tag to compare

Added

  • Test project for running tests on ReCaptcha with Puppeteer.

Changed

  • Change the compiler target from es5 to es2015 which has been round for 7+ years. It is time to move on.
  • Refactor ReCaptcha from class-based to functional component using React Hooks.
  • Change the minimum supported React version to 16.8.0, which is the first React version to introduce Hooks.
  • Refactor constants outside the ReCaptcha component.
  • Refactor some ReCaptcha methods as static functions outside the component.
  • Update Flow declarations to reflect changes made to ReCaptcha.
  • Update Rollup configuration to be more type-safe.
  • Bump @rollup/plugin-node-resolve to version 15.0.1.
  • Bump @rollup/plugin-typescript to version 11.0.0.
  • Bump rollup to version 3.17.2.
  • Improve build process and commands with npm-run-all and shx. This also allows the project to be developed using
    any platform.

Release Candidate v2.0.0-rc.1

24 Feb 16:51
Compare
Choose a tag to compare
Pre-release

This is an incremental update over 2.0.0-rc.0, so check that release to have a full picture of all the v2 changes.

Changed

  • Update Flow declarations to reflect changes made to ReCaptcha.

Release Candidate v2.0.0-rc.0

24 Feb 15:08
Compare
Choose a tag to compare
Pre-release

This is the first RC for version 2 of this package.

Major (and breaking) changes

ReCaptcha now uses React Hooks, requires React ^16.8.0

The ReCaptcha component is no longer class-based. Instead, it now uses React Hooks. This simplifies the code a bit and it brings the code base to the "modern" era of React.

Consequently React 16.8.0 is the new minimum supported version, since it's the first release to support Hooks. This version was released more than 4 years ago, on February 6, 2019, so I think it is safe to make this transition.

The TypeScript compiler target changed from ES5 to ES2015

TypeScript now transpiles down to ES2015 instead of ES5, giving us simpler, smaller and more modern code. ES2015 has been around for more than 7 years and all modern browsers fully support it.

Complete list of changes

  • Change the compiler target from es5 to es2015 which has been round for 7+ years. It is time to move on.
  • Refactor ReCaptcha from class-based to functional component using React Hooks.
  • Change the minimum supported React version to 16.8.0, which is the first React version to introduce Hooks.
  • Refactor constants outside the ReCaptcha component.
  • Refactor some ReCaptcha methods as static functions outside the component.
  • Update Rollup configuration to be more type-safe.
  • Bump @rollup/plugin-node-resolve to version 15.0.1.
  • Bump @rollup/plugin-typescript to version 11.0.0.
  • Bump rollup to version 3.17.2.

Release v1.0.9

23 Feb 18:34
Compare
Choose a tag to compare

Added

  • CHANGELOG.md.

Changed

  • Bump nanoid to version 3.3.4.
  • Bump @rollup/plugin-node-resolve to version 13.3.0.
  • Bump @rollup/plugin-typescript to version 8.5.0.
  • Bump @types/react to version 18.0.28.
  • Bump lint-staged to version 12.5.0.
  • Bump prettier to version 2.8.4.
  • Bump rollup to version 2.79.1.
  • Bump typescript to version 3.8.3.