From e44a9483c21bdecd6841fc8ac34d9f457ff6bcda Mon Sep 17 00:00:00 2001 From: renovate <29139614+renovate@users.noreply.github.com> Date: Tue, 27 Aug 2024 02:50:52 +0000 Subject: [PATCH] chore: bump up @marsidev/react-turnstile version to v1 (#7940) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@marsidev/react-turnstile](https://togithub.com/marsidev/react-turnstile) | [`^0.7.0` -> `^1.0.0`](https://renovatebot.com/diffs/npm/@marsidev%2freact-turnstile/0.7.2/1.0.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@marsidev%2freact-turnstile/1.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@marsidev%2freact-turnstile/1.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@marsidev%2freact-turnstile/0.7.2/1.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@marsidev%2freact-turnstile/0.7.2/1.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
marsidev/react-turnstile (@​marsidev/react-turnstile) ### [`v1.0.0`](https://togithub.com/marsidev/react-turnstile/releases/tag/v1.0.0) [Compare Source](https://togithub.com/marsidev/react-turnstile/compare/v0.7.2...v1.0.0) ##### 🚨 Breaking Changes - Now we ship ESM-only code, this will decrease the bundle size significantly. If you are a CommonJS user, I suggest you to keep using the version `0.7.2` or upgrade your project to ESM. - Removed "auto" widget size due to is not even a valid size for Cloudflare Turnstile. We have been sending `undefined` when the size was "auto", so if you were using this size, then you can simply remove it. - Peer dependencies for `react` and `react-dom` have been updated to 17.x and above. ##### 🚀 Features - Added callback `onTimeout` - Added render options `refreshTimeout` and `feedbackEnabled` (Closes [#​82](https://togithub.com/marsidev/react-turnstile/issues/82)) - Added new "flexible" widget size (Closes [#​82](https://togithub.com/marsidev/react-turnstile/issues/82)) ##### 🐛 Fixes - Updated "compact" widget size to 150x140 (Closes [#​85](https://togithub.com/marsidev/react-turnstile/issues/85)) ##### 🛠 Misc ##### Build - We migrated from [unbuild](https://togithub.com/unjs/unbuild) to [tsup](https://togithub.com/egoist/tsup) - The generated build is now minified, this will decrease the bundle size significantly. ##### TypeScript - Improved type definitions. Now we expose these types: `AppearanceMode`, `ExecutionMode`, `FailureRetryMode`, `RefreshExpiredMode`, `RefreshTimeoutMode`, `WidgetSize`. Inspired by [@​types/cloudflare-turnstile](https://www.npmjs.com/package/@​types/cloudflare-turnstile) ##### Other - Updated dependencies - Updated docs - Added issue templates and policies #####     [View changes on GitHub](https://togithub.com/marsidev/react-turnstile/compare/v0.7.2...v1.0.0)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View the [repository job log](https://developer.mend.io/github/toeverything/AFFiNE). --- packages/frontend/core/package.json | 2 +- yarn.lock | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/frontend/core/package.json b/packages/frontend/core/package.json index df2b94090..78c7ace71 100644 --- a/packages/frontend/core/package.json +++ b/packages/frontend/core/package.json @@ -33,7 +33,7 @@ "@emotion/styled": "^11.11.5", "@floating-ui/dom": "^1.6.5", "@juggle/resize-observer": "^3.4.0", - "@marsidev/react-turnstile": "^0.7.0", + "@marsidev/react-turnstile": "^1.0.0", "@radix-ui/react-collapsible": "^1.0.3", "@radix-ui/react-dialog": "^1.0.5", "@radix-ui/react-popover": "^1.0.7", diff --git a/yarn.lock b/yarn.lock index ea1d5b735..a790ec7b7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -407,7 +407,7 @@ __metadata: "@emotion/styled": "npm:^11.11.5" "@floating-ui/dom": "npm:^1.6.5" "@juggle/resize-observer": "npm:^3.4.0" - "@marsidev/react-turnstile": "npm:^0.7.0" + "@marsidev/react-turnstile": "npm:^1.0.0" "@perfsee/webpack": "npm:^1.12.2" "@pmmmwh/react-refresh-webpack-plugin": "npm:^0.5.11" "@radix-ui/react-collapsible": "npm:^1.0.3" @@ -6933,13 +6933,13 @@ __metadata: languageName: node linkType: hard -"@marsidev/react-turnstile@npm:^0.7.0": - version: 0.7.2 - resolution: "@marsidev/react-turnstile@npm:0.7.2" +"@marsidev/react-turnstile@npm:^1.0.0": + version: 1.0.0 + resolution: "@marsidev/react-turnstile@npm:1.0.0" peerDependencies: - react: ">=16.8.0" - react-dom: ">=16.8.0" - checksum: 10/70683701f8fcb9fc72743eeaa77c6b6c522089e3ab616d2e368e17ed7769ac075d633ae1221b1858a632a34841cfce78b8a9532bba5bbcf873a6236d6d99669d + react: ^17.0.2 || ^18.0.0 + react-dom: ^17.0.2 || ^18.0.0 + checksum: 10/0d99dae7e495891d92d630526fbfa9ebbaa2ad6f9ae2f39d8a81b1b23fb1b8c68f2d249d26f7670001c1a89f70a9a053c9efde2a08902cc4d3c6e882b4a04590 languageName: node linkType: hard