From cc731242596de69d3e17a4c3a624d4da1c1d1541 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Thu, 21 Dec 2023 07:45:32 +0000 Subject: [PATCH] chore: bump up @react-hookz/web version to v24 (#5359) 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 | |---|---|---|---|---|---| | [@react-hookz/web](https://togithub.com/react-hookz/web) | [`^23.1.0` -> `^24.0.0`](https://renovatebot.com/diffs/npm/@react-hookz%2fweb/23.1.0/24.0.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@react-hookz%2fweb/24.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@react-hookz%2fweb/24.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@react-hookz%2fweb/23.1.0/24.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@react-hookz%2fweb/23.1.0/24.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
react-hookz/web (@​react-hookz/web) ### [`v24.0.1`](https://togithub.com/react-hookz/web/blob/HEAD/CHANGELOG.md#2401-2023-12-20) [Compare Source](https://togithub.com/react-hookz/web/compare/v24.0.0...v24.0.1) ##### Bug Fixes - change build so development and distributed imports match ([6383cdd](https://togithub.com/react-hookz/web/commit/6383cdd5581d60aac3c0000686ebd4139eac6e65)) ### [`v24.0.0`](https://togithub.com/react-hookz/web/blob/HEAD/CHANGELOG.md#2400-2023-12-20) [Compare Source](https://togithub.com/react-hookz/web/compare/v23.1.0...v24.0.0) ##### Features - switch package to module type ([#​1472](https://togithub.com/react-hookz/web/issues/1472)) ([50921ef](https://togithub.com/react-hookz/web/commit/50921efda58aefcd52d50bfff27c31755c9253d9)) ##### BREAKING CHANGES - Hooks are now distrubutes as JS built form TS with target ESNext and ESM module resolution. There is no more sense to distribute CJS version as package is ESM-only. Consequent of above - no more esm and cjs subfolders - hooks are importable from index.js or its own directory which don't have a prefix anymore, thanks to exports directive. All of below examples will lead to same result, choose any on your taste: import { useFirstMountState } from '[@​react-hookz/web](https://togithub.com/react-hookz/web)'; import { useFirstMountState } from '@​react-hookz/web/'; import { useFirstMountState } from '@​react-hookz/web/useFirstMountState/'; import { useFirstMountState } from '@​react-hookz/web/useFirstMountState/index.js'; Thought is seems not to have subfolder, it is only due to exports directive, in real it is @​react-hookz/web/dist/useFirstMountState/index.js. Pakage uses imports directive to define path alias #root - it stays so even in distributed code, thus, some may be affected in case their bundler configured to somehow handle such alias. Those developer shoud configure import rewriter not to handle node_modules or [@​react-hookz/web](https://togithub.com/react-hookz/web) package exclusively. Side-effect for current PR - documentation is broken, as storybook 6 is not working within ESM packages and I'm planning to switch to another domenting engine anyway.
--- ### 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 has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/toeverything/AFFiNE). --- packages/frontend/core/package.json | 2 +- yarn.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/frontend/core/package.json b/packages/frontend/core/package.json index 3a0c6bbdbb..8f44a1d578 100644 --- a/packages/frontend/core/package.json +++ b/packages/frontend/core/package.json @@ -44,7 +44,7 @@ "@radix-ui/react-dialog": "^1.0.4", "@radix-ui/react-scroll-area": "^1.0.5", "@radix-ui/react-select": "^2.0.0", - "@react-hookz/web": "^23.1.0", + "@react-hookz/web": "^24.0.0", "@sentry/integrations": "^7.83.0", "@sentry/react": "^7.83.0", "@toeverything/theme": "^0.7.20", diff --git a/yarn.lock b/yarn.lock index e83e63be31..36d7527dab 100644 --- a/yarn.lock +++ b/yarn.lock @@ -372,7 +372,7 @@ __metadata: "@radix-ui/react-dialog": "npm:^1.0.4" "@radix-ui/react-scroll-area": "npm:^1.0.5" "@radix-ui/react-select": "npm:^2.0.0" - "@react-hookz/web": "npm:^23.1.0" + "@react-hookz/web": "npm:^24.0.0" "@sentry/integrations": "npm:^7.83.0" "@sentry/react": "npm:^7.83.0" "@sentry/webpack-plugin": "npm:^2.8.0" @@ -11238,9 +11238,9 @@ __metadata: languageName: node linkType: hard -"@react-hookz/web@npm:^23.1.0": - version: 23.1.0 - resolution: "@react-hookz/web@npm:23.1.0" +"@react-hookz/web@npm:^24.0.0": + version: 24.0.0 + resolution: "@react-hookz/web@npm:24.0.0" dependencies: "@react-hookz/deep-equal": "npm:^1.0.4" peerDependencies: @@ -11250,7 +11250,7 @@ __metadata: peerDependenciesMeta: js-cookie: optional: true - checksum: 7f345fc286ee3bae74b76b909898213a589250856783805d0356d8ef9ca0e3d1638e7499d8b77ae1dff6350dec230fda468e0e4c8fc05a9997902569d3d81b49 + checksum: 85ec7ebecf3a69f098fecb89c1515ffd8c119f29a74521277df34af637059320669cf8ff6273063cec6a4c86cee4849e24fa8772191d08f81b2b88de69749670 languageName: node linkType: hard