Releases: matei-radu/react-recaptcha-v2
Release v2.1.0
Added
tabIndex
prop corresponding to thedata-tabindex
tag attribute.
Changed
- Bump
@rollup/plugin-node-resolve
to version15.2.3
. - Bump
@rollup/plugin-typescript
to version11.1.6
. - Bump
@types/react
to version18.3.3
. - Bump
husky
to version9.0.11
. - Bump
lint-staged
to version15.2.7
. - Bump
nanoid
to version5.0.7
. - Bump
prettier
to version3.3.2
. - Bump
rollup
to version4.18.0
. - Bump
rollup-plugin-copy
to version3.5.0
.
Release v2.0.1
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 oftypes
. - Move lint-staged configuration to its own file
.lintstagedrc.json
. - Bump
@rollup/plugin-node-resolve
to version15.0.2
. - Bump
@rollup/plugin-typescript
to version11.1.0
. - Bump
@types/react
to version18.2.1
. - Bump
husky
to version8.0.3
. - Bump
lint-staged
to version13.2.2
. - Bump
prettier
to version2.8.8
. - Bump
rollup
to version3.21.4
. - Bump
typescript
to version4.9.5
.
Release v2.0.0
Added
- Test project for running tests on
ReCaptcha
with Puppeteer.
Changed
- Change the compiler target from
es5
toes2015
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 version15.0.1
. - Bump
@rollup/plugin-typescript
to version11.0.0
. - Bump
rollup
to version3.17.2
. - Improve build process and commands with
npm-run-all
andshx
. This also allows the project to be developed using
any platform.
Release Candidate v2.0.0-rc.1
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
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
toes2015
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 version15.0.1
. - Bump
@rollup/plugin-typescript
to version11.0.0
. - Bump
rollup
to version3.17.2
.
Release v1.0.9
Added
CHANGELOG.md
.
Changed
- Bump
nanoid
to version3.3.4
. - Bump
@rollup/plugin-node-resolve
to version13.3.0
. - Bump
@rollup/plugin-typescript
to version8.5.0
. - Bump
@types/react
to version18.0.28
. - Bump
lint-staged
to version12.5.0
. - Bump
prettier
to version2.8.4
. - Bump
rollup
to version2.79.1
. - Bump
typescript
to version3.8.3
.