Releases: matei-radu/react-recaptcha-v2
Release list
Release v2.2.1
Changed
- Bump
@rollup/plugin-node-resolveto version15.2.4. - Bump
@types/reactto version18.3.27. - Bump
lint-stagedto version15.2.11. - Bump
nanoidto version5.0.9. - Bump
prettierto version3.3.3. - Bump
rollupto version4.18.1.
Release v2.2.0
Added
- Compatibility with React v19.
Release v2.1.0
Added
tabIndexprop corresponding to thedata-tabindextag attribute.
Changed
- Bump
@rollup/plugin-node-resolveto version15.2.3. - Bump
@rollup/plugin-typescriptto version11.1.6. - Bump
@types/reactto version18.3.3. - Bump
huskyto version9.0.11. - Bump
lint-stagedto version15.2.7. - Bump
nanoidto version5.0.7. - Bump
prettierto version3.3.2. - Bump
rollupto version4.18.0. - Bump
rollup-plugin-copyto 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-declis removed. - TypeScript declarations are now available under
libinstead oftypes. - Move lint-staged configuration to its own file
.lintstagedrc.json. - Bump
@rollup/plugin-node-resolveto version15.0.2. - Bump
@rollup/plugin-typescriptto version11.1.0. - Bump
@types/reactto version18.2.1. - Bump
huskyto version8.0.3. - Bump
lint-stagedto version13.2.2. - Bump
prettierto version2.8.8. - Bump
rollupto version3.21.4. - Bump
typescriptto version4.9.5.
Release v2.0.0
Added
- Test project for running tests on
ReCaptchawith Puppeteer.
Changed
- Change the compiler target from
es5toes2015which has been round for 7+ years. It is time to move on. - Refactor
ReCaptchafrom 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
ReCaptchacomponent. - Refactor some
ReCaptchamethods 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-resolveto version15.0.1. - Bump
@rollup/plugin-typescriptto version11.0.0. - Bump
rollupto version3.17.2. - Improve build process and commands with
npm-run-allandshx. 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
es5toes2015which has been round for 7+ years. It is time to move on. - Refactor
ReCaptchafrom 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
ReCaptchacomponent. - Refactor some
ReCaptchamethods as static functions outside the component. - Update Rollup configuration to be more type-safe.
- Bump
@rollup/plugin-node-resolveto version15.0.1. - Bump
@rollup/plugin-typescriptto version11.0.0. - Bump
rollupto version3.17.2.
Release v1.0.9
Added
CHANGELOG.md.
Changed
- Bump
nanoidto version3.3.4. - Bump
@rollup/plugin-node-resolveto version13.3.0. - Bump
@rollup/plugin-typescriptto version8.5.0. - Bump
@types/reactto version18.0.28. - Bump
lint-stagedto version12.5.0. - Bump
prettierto version2.8.4. - Bump
rollupto version2.79.1. - Bump
typescriptto version3.8.3.