{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":535103658,"defaultBranch":"master","name":"blocksuite","ownerLogin":"toeverything","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2022-09-10T19:51:14.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/78728988?v=4","public":true,"private":false,"isOrgOwned":true},"refInfo":{"name":"","listCacheKey":"v0:1726793609.0","currentOid":""},"activityList":{"items":[{"before":"9d5ea056402e19c43e345d68ca1a101a42ec5427","after":null,"ref":"refs/heads/fundon/09_19_improve_block_or_element_status_detection","pushedAt":"2024-09-20T00:53:29.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"graphite-app[bot]","name":null,"path":"/apps/graphite-app","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/158384?s=80&v=4"}},{"before":"e293ddee706159dedec15337feebfb0299faf4c5","after":"9d5ea056402e19c43e345d68ca1a101a42ec5427","ref":"refs/heads/master","pushedAt":"2024-09-20T00:53:27.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"graphite-app[bot]","name":null,"path":"/apps/graphite-app","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/158384?s=80&v=4"},"commit":{"message":"chore: improve block/element status detection (#8409)\n\nCloses [AF-1393](https://linear.app/affine-design/issue/AF-1393/完善-blockelement-定位)","shortMessageHtmlLink":"chore: improve block/element status detection (#8409)"}},{"before":"06c27ba0d8d2f399e0114d251259bfb1fc614404","after":"9d5ea056402e19c43e345d68ca1a101a42ec5427","ref":"refs/heads/fundon/09_19_improve_block_or_element_status_detection","pushedAt":"2024-09-20T00:48:45.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"fundon","name":"Fangdun Tsai","path":"/fundon","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/27926?s=80&v=4"},"commit":{"message":"chore: improve block/element status detection (#8409)\n\nCloses [AF-1393](https://linear.app/affine-design/issue/AF-1393/完善-blockelement-定位)","shortMessageHtmlLink":"chore: improve block/element status detection (#8409)"}},{"before":"8f616f8234ee60375aa6f7ed1763e4e20be3fa34","after":null,"ref":"refs/heads/09-19-feat_affine_all_in_one_package","pushedAt":"2024-09-20T00:46:56.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"Saul-Mirone","name":"Mirone","path":"/Saul-Mirone","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/10047788?s=80&v=4"}},{"before":"654d29a27a3b77f3db0a46ae2c002f0b5b432beb","after":"e293ddee706159dedec15337feebfb0299faf4c5","ref":"refs/heads/master","pushedAt":"2024-09-20T00:46:54.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"Saul-Mirone","name":"Mirone","path":"/Saul-Mirone","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/10047788?s=80&v=4"},"commit":{"message":"feat: affine all in one package (#8408)","shortMessageHtmlLink":"feat: affine all in one package (#8408)"}},{"before":"a4370799300b09f17c600c57874a4ba1e75669c0","after":"06c27ba0d8d2f399e0114d251259bfb1fc614404","ref":"refs/heads/fundon/09_19_improve_block_or_element_status_detection","pushedAt":"2024-09-19T23:17:57.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"fundon","name":"Fangdun Tsai","path":"/fundon","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/27926?s=80&v=4"},"commit":{"message":"chore: improve block/element status detection","shortMessageHtmlLink":"chore: improve block/element status detection"}},{"before":"9751e7107d71afa5cf14db0b2b63942f4b18f869","after":"a4370799300b09f17c600c57874a4ba1e75669c0","ref":"refs/heads/fundon/09_19_improve_block_or_element_status_detection","pushedAt":"2024-09-19T19:24:51.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"fundon","name":"Fangdun Tsai","path":"/fundon","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/27926?s=80&v=4"},"commit":{"message":"chore: improve block/element status detection","shortMessageHtmlLink":"chore: improve block/element status detection"}},{"before":"dd2b65c671c9a842ed661213da222194967b0d5a","after":"9751e7107d71afa5cf14db0b2b63942f4b18f869","ref":"refs/heads/fundon/09_19_improve_block_or_element_status_detection","pushedAt":"2024-09-19T19:14:01.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"fundon","name":"Fangdun Tsai","path":"/fundon","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/27926?s=80&v=4"},"commit":{"message":"chore: improve block/element status detection","shortMessageHtmlLink":"chore: improve block/element status detection"}},{"before":"305c686ca053016ecc9feca38767d053d96b681a","after":"d4eec4adba4d093bf0541c49b4cebdca4a138f80","ref":"refs/heads/exp-inline-refactor","pushedAt":"2024-09-19T15:26:42.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"Flrande","name":"Flrande","path":"/Flrande","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/50035259?s=80&v=4"},"commit":{"message":"fix: yarn","shortMessageHtmlLink":"fix: yarn"}},{"before":"a342d3580d8200258ae6ab0d2346870dd840743e","after":"305c686ca053016ecc9feca38767d053d96b681a","ref":"refs/heads/exp-inline-refactor","pushedAt":"2024-09-19T15:20:49.000Z","pushType":"push","commitsCount":11,"pusher":{"login":"Flrande","name":"Flrande","path":"/Flrande","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/50035259?s=80&v=4"},"commit":{"message":"Merge branch 'master' into exp-inline-refactor","shortMessageHtmlLink":"Merge branch 'master' into exp-inline-refactor"}},{"before":"9658cedbcfbf76e3cd39a457daa21110b6eb2499","after":"a342d3580d8200258ae6ab0d2346870dd840743e","ref":"refs/heads/exp-inline-refactor","pushedAt":"2024-09-19T15:18:14.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"Flrande","name":"Flrande","path":"/Flrande","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/50035259?s=80&v=4"},"commit":{"message":"fix: fix","shortMessageHtmlLink":"fix: fix"}},{"before":"c4cfee51e616e594665188dab737953c98c28c40","after":"dd2b65c671c9a842ed661213da222194967b0d5a","ref":"refs/heads/fundon/09_19_improve_block_or_element_status_detection","pushedAt":"2024-09-19T13:10:16.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"fundon","name":"Fangdun Tsai","path":"/fundon","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/27926?s=80&v=4"},"commit":{"message":"chore: improve block/element status detection","shortMessageHtmlLink":"chore: improve block/element status detection"}},{"before":null,"after":"c4cfee51e616e594665188dab737953c98c28c40","ref":"refs/heads/fundon/09_19_improve_block_or_element_status_detection","pushedAt":"2024-09-19T13:03:07.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"fundon","name":"Fangdun Tsai","path":"/fundon","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/27926?s=80&v=4"},"commit":{"message":"chore: improve block/element status detection","shortMessageHtmlLink":"chore: improve block/element status detection"}},{"before":"a28aa8faf57326e58c9cc565abcb299617d0ea61","after":"8f616f8234ee60375aa6f7ed1763e4e20be3fa34","ref":"refs/heads/09-19-feat_affine_all_in_one_package","pushedAt":"2024-09-19T12:56:53.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"Saul-Mirone","name":"Mirone","path":"/Saul-Mirone","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/10047788?s=80&v=4"},"commit":{"message":"feat: affine all in one package","shortMessageHtmlLink":"feat: affine all in one package"}},{"before":"3feb0f5dd8d01b686db5b26cdb67b6bd17e8eb28","after":"a85acead3736b3f8b80fdc6d365494b2f9fc4d22","ref":"refs/heads/fix/change-embed-card-style","pushedAt":"2024-09-19T12:21:37.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"akumatus","name":"Yue Wu","path":"/akumatus","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/12724894?s=80&v=4"},"commit":{"message":"fix: duplication occurs when card view is switched to embed view","shortMessageHtmlLink":"fix: duplication occurs when card view is switched to embed view"}},{"before":"1814d860189f79183539d3376e0f95fa5646f849","after":"a28aa8faf57326e58c9cc565abcb299617d0ea61","ref":"refs/heads/09-19-feat_affine_all_in_one_package","pushedAt":"2024-09-19T12:06:43.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"Saul-Mirone","name":"Mirone","path":"/Saul-Mirone","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/10047788?s=80&v=4"},"commit":{"message":"feat: affine all in one package","shortMessageHtmlLink":"feat: affine all in one package"}},{"before":"aa3485a0272fb42ada552fb438a70a644d5e375e","after":"1814d860189f79183539d3376e0f95fa5646f849","ref":"refs/heads/09-19-feat_affine_all_in_one_package","pushedAt":"2024-09-19T11:54:23.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"Saul-Mirone","name":"Mirone","path":"/Saul-Mirone","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/10047788?s=80&v=4"},"commit":{"message":"feat: affine all in one package","shortMessageHtmlLink":"feat: affine all in one package"}},{"before":"a5234100cca5725e48a061c1e65b42a3b8ad6ba4","after":"aa3485a0272fb42ada552fb438a70a644d5e375e","ref":"refs/heads/09-19-feat_affine_all_in_one_package","pushedAt":"2024-09-19T11:53:28.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"Saul-Mirone","name":"Mirone","path":"/Saul-Mirone","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/10047788?s=80&v=4"},"commit":{"message":"feat: affine all in one package","shortMessageHtmlLink":"feat: affine all in one package"}},{"before":"da268ad2762a4b66b7e27a4101ce6dda396c0756","after":"a5234100cca5725e48a061c1e65b42a3b8ad6ba4","ref":"refs/heads/09-19-feat_affine_all_in_one_package","pushedAt":"2024-09-19T11:43:26.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"Saul-Mirone","name":"Mirone","path":"/Saul-Mirone","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/10047788?s=80&v=4"},"commit":{"message":"feat: affine all in one package","shortMessageHtmlLink":"feat: affine all in one package"}},{"before":null,"after":"da268ad2762a4b66b7e27a4101ce6dda396c0756","ref":"refs/heads/09-19-feat_affine_all_in_one_package","pushedAt":"2024-09-19T11:37:36.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"Saul-Mirone","name":"Mirone","path":"/Saul-Mirone","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/10047788?s=80&v=4"},"commit":{"message":"feat: affine all in one package","shortMessageHtmlLink":"feat: affine all in one package"}},{"before":"01e77e4ad1d9fca57e326339a145422c5c0e9c67","after":"3feb0f5dd8d01b686db5b26cdb67b6bd17e8eb28","ref":"refs/heads/fix/change-embed-card-style","pushedAt":"2024-09-19T10:59:30.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"akumatus","name":"Yue Wu","path":"/akumatus","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/12724894?s=80&v=4"},"commit":{"message":"fix: duplication occurs when card view is switched to embed view","shortMessageHtmlLink":"fix: duplication occurs when card view is switched to embed view"}},{"before":"f686ed4663e5c7a23ab025a7799a83f332572669","after":"01e77e4ad1d9fca57e326339a145422c5c0e9c67","ref":"refs/heads/fix/change-embed-card-style","pushedAt":"2024-09-19T10:48:33.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"akumatus","name":"Yue Wu","path":"/akumatus","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/12724894?s=80&v=4"},"commit":{"message":"fix: duplication occurs when card view is switched to embed view","shortMessageHtmlLink":"fix: duplication occurs when card view is switched to embed view"}},{"before":null,"after":"f686ed4663e5c7a23ab025a7799a83f332572669","ref":"refs/heads/fix/change-embed-card-style","pushedAt":"2024-09-19T10:37:20.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"akumatus","name":"Yue Wu","path":"/akumatus","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/12724894?s=80&v=4"},"commit":{"message":"fix: duplication occurs when card view is switched to embed view","shortMessageHtmlLink":"fix: duplication occurs when card view is switched to embed view"}},{"before":null,"after":"71a721bc3f005558e1caf49c695a760cad77eea4","ref":"refs/heads/zzj/fix/padding","pushedAt":"2024-09-19T10:33:54.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"zzj3720","name":"3720","path":"/zzj3720","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/17165520?s=80&v=4"},"commit":{"message":"fix(database): add 72px padding to the full-width mode","shortMessageHtmlLink":"fix(database): add 72px padding to the full-width mode"}},{"before":"12aee3895839709e2c6f4b8fa9163b36ea39f0ce","after":null,"ref":"refs/heads/09-19-ci_cleanup","pushedAt":"2024-09-19T10:17:01.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"Saul-Mirone","name":"Mirone","path":"/Saul-Mirone","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/10047788?s=80&v=4"}},{"before":"204c84a58c2f04d2ec6e4b9a20e920a466010804","after":"654d29a27a3b77f3db0a46ae2c002f0b5b432beb","ref":"refs/heads/master","pushedAt":"2024-09-19T10:17:00.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"Saul-Mirone","name":"Mirone","path":"/Saul-Mirone","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/10047788?s=80&v=4"},"commit":{"message":"ci: cleanup (#8406)","shortMessageHtmlLink":"ci: cleanup (#8406)"}},{"before":"204c84a58c2f04d2ec6e4b9a20e920a466010804","after":null,"ref":"refs/heads/renovate/date-fns-4.x","pushedAt":"2024-09-19T10:12:30.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"graphite-app[bot]","name":null,"path":"/apps/graphite-app","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/158384?s=80&v=4"}},{"before":"b1e7078732b309ee65842b50cc67636ee1ea18e3","after":"204c84a58c2f04d2ec6e4b9a20e920a466010804","ref":"refs/heads/master","pushedAt":"2024-09-19T10:12:28.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"graphite-app[bot]","name":null,"path":"/apps/graphite-app","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/158384?s=80&v=4"},"commit":{"message":"chore: bump up date-fns version to v4 (#8405)\n\nThis PR contains the following updates:\n\n| Package | Change | Age | Adoption | Passing | Confidence |\n|---|---|---|---|---|---|\n| [date-fns](https://redirect.github.com/date-fns/date-fns) | [`^3.6.0` -> `^4.0.0`](https://renovatebot.com/diffs/npm/date-fns/3.6.0/4.1.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/date-fns/4.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/date-fns/4.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/date-fns/3.6.0/4.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/date-fns/3.6.0/4.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |\n\n---\n\n### Release Notes\n\n
\ndate-fns/date-fns (date-fns)\n\n### [`v4.1.0`](https://redirect.github.com/date-fns/date-fns/blob/HEAD/CHANGELOG.md#v410---2024-09-17)\n\n[Compare Source](https://redirect.github.com/date-fns/date-fns/compare/v4.0.0...v4.1.0)\n\nThis release adds time zone support to format functions (that I somehow missed when working on the feature) and fixes a few bugs.\n\nMake sure also upgrade `TZDate` to v1.0.2 as it [includes a bunch of critical bug fixes](https://redirect.github.com/date-fns/tz/blob/main/CHANGELOG.md#v102---2024-09-14).\n\n##### Fixed\n\n- Fixed internal `constructFrom` throwing an exception on `null` arguments. While `null` isn't allowed, the functions should rather return `Invalid Date` or `NaN` in such cases. See [#​3885](https://redirect.github.com/date-fns/date-fns/issues/3885).\n\n##### Added\n\n- Added missing time zone support to `format`, `formatISO`, `formatISO9075`, `formatRelative` and `formatRFC3339`. See [#​3886](https://redirect.github.com/date-fns/date-fns/issues/3886).\n\n### [`v4.0.0`](https://redirect.github.com/date-fns/date-fns/blob/HEAD/CHANGELOG.md#v400---2024-09-16)\n\n[Compare Source](https://redirect.github.com/date-fns/date-fns/compare/v3.6.0...v4.0.0)\n\nI have great news! First, ten years after its release, date-fns finally gets first-class time zone support.\n\nAnother great news is that there aren't many breaking changes in this release. All of them are type-related and will affect only those explicitly using internal date-fns types. Finally, it has been less than a year since the last major release, which is an improvement over the previous four years between v2 and v3. I plan on keeping the pace and minimizing breaking changes moving forward.\n\n[Read more about the release in the announcement blog post](https://blog.date-fns.org/v40-with-time-zone-support/).\n\n\\- [Sasha @​kossnocorp](https://twitter.com/kossnocorp)\n\n##### Added\n\n- Added time zones support via [`@date-fns/tz`](https://redirect.github.com/date-fns/tz)'s `TZDate` class and `tz` helper function. See its [README](https://redirect.github.com/date-fns/tz) for the details about the API.\n\n- All relevant functions now accept the context `in` option, which allows to specify the time zone to make the calculations in. If the function also returns a date, it will be in the specified time zone:\n\n ```ts\n import { addDays, startOfDay } from \"date-fns\";\n import { tz } from \"@​date-fns/tz\";\n\n startOfDay(addDays(Date.now(), 5, { in: tz(\"Asia/Singapore\") }));\n //=> \"2024-09-16T00:00:00.000+08:00\"\n ```\n\n In the example, `addDays` will get the current date and time in Singapore and add 5 days to it. `startOfDay` will inherit the date type and return the start of the day in Singapore.\n\n##### Changed\n\n- The function arguments, as well as `Interval`'s `start` and `end`, now can be of different types, allowing you to mix `UTCDate`, `TZDate`, `Date`, and other extensions, as well as primitives (strings and numbers).\n\n The functions will normalize these values, make calculations, and return the result in the same type, preventing any bugs caused by the discrepancy. If passed, the type will be inferred from the context `in` option or the first encountered argument object type. The `Interval`'s `start` and `end` will be considered separately, starting from `start`.\n\n In the given example, the result will be in the `TZDate` as the first argument is a number, and the `start` takes precedence over the `end`.\n\n ```ts\n clamp(Date.now(), {\n start: new TZDate(start, \"Asia/Singapore\"),\n end: new UTCDate(),\n });\n //=> TZDate\n ```\n\n- **BREAKING**: This release contains a bunch of types changes that should not affect the library's expected usage. The changes are primarily internal and nuanced, so rather than listing them here, I recommend you running the type checker after the upgrade. If there are unfixable problems, please [open an issue](https://redirect.github.com/date-fns/date-fns/issues/new).\n\n- **BREAKING**: The package now is ESM-first. The CommonJS is still support and It should not affect most users, but it might break in certains environments. If you encounter any issues, please [report them](https://redirect.github.com/date-fns/date-fns/issues/new).\n\n##### Fixed\n\n- Fixed CDN build compatibility with jQuery and other tools that expose `$` by properly wrapping the code in an IIFE.\n\n
\n\n---\n\n### Configuration\n\n📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).\n\n🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.\n\n♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.\n\n🔕 **Ignore**: Close this PR and you won't be reminded about this update again.\n\n---\n\n - [ ] If you want to rebase/retry this PR, check this box\n\n---\n\nThis PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/toeverything/blocksuite).\n","shortMessageHtmlLink":"chore: bump up date-fns version to v4 (#8405)"}},{"before":"9574629ea4e011e3f9cd5665af04924cb2d1c98d","after":"12aee3895839709e2c6f4b8fa9163b36ea39f0ce","ref":"refs/heads/09-19-ci_cleanup","pushedAt":"2024-09-19T10:10:40.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"Saul-Mirone","name":"Mirone","path":"/Saul-Mirone","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/10047788?s=80&v=4"},"commit":{"message":"ci: cleanup","shortMessageHtmlLink":"ci: cleanup"}},{"before":"244a385d2e772010c17a49017c5e7229ad10aad2","after":"204c84a58c2f04d2ec6e4b9a20e920a466010804","ref":"refs/heads/renovate/date-fns-4.x","pushedAt":"2024-09-19T10:08:19.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"Saul-Mirone","name":"Mirone","path":"/Saul-Mirone","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/10047788?s=80&v=4"},"commit":{"message":"chore: bump up date-fns version to v4 (#8405)\n\nThis PR contains the following updates:\n\n| Package | Change | Age | Adoption | Passing | Confidence |\n|---|---|---|---|---|---|\n| [date-fns](https://redirect.github.com/date-fns/date-fns) | [`^3.6.0` -> `^4.0.0`](https://renovatebot.com/diffs/npm/date-fns/3.6.0/4.1.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/date-fns/4.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/date-fns/4.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/date-fns/3.6.0/4.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/date-fns/3.6.0/4.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |\n\n---\n\n### Release Notes\n\n
\ndate-fns/date-fns (date-fns)\n\n### [`v4.1.0`](https://redirect.github.com/date-fns/date-fns/blob/HEAD/CHANGELOG.md#v410---2024-09-17)\n\n[Compare Source](https://redirect.github.com/date-fns/date-fns/compare/v4.0.0...v4.1.0)\n\nThis release adds time zone support to format functions (that I somehow missed when working on the feature) and fixes a few bugs.\n\nMake sure also upgrade `TZDate` to v1.0.2 as it [includes a bunch of critical bug fixes](https://redirect.github.com/date-fns/tz/blob/main/CHANGELOG.md#v102---2024-09-14).\n\n##### Fixed\n\n- Fixed internal `constructFrom` throwing an exception on `null` arguments. While `null` isn't allowed, the functions should rather return `Invalid Date` or `NaN` in such cases. See [#​3885](https://redirect.github.com/date-fns/date-fns/issues/3885).\n\n##### Added\n\n- Added missing time zone support to `format`, `formatISO`, `formatISO9075`, `formatRelative` and `formatRFC3339`. See [#​3886](https://redirect.github.com/date-fns/date-fns/issues/3886).\n\n### [`v4.0.0`](https://redirect.github.com/date-fns/date-fns/blob/HEAD/CHANGELOG.md#v400---2024-09-16)\n\n[Compare Source](https://redirect.github.com/date-fns/date-fns/compare/v3.6.0...v4.0.0)\n\nI have great news! First, ten years after its release, date-fns finally gets first-class time zone support.\n\nAnother great news is that there aren't many breaking changes in this release. All of them are type-related and will affect only those explicitly using internal date-fns types. Finally, it has been less than a year since the last major release, which is an improvement over the previous four years between v2 and v3. I plan on keeping the pace and minimizing breaking changes moving forward.\n\n[Read more about the release in the announcement blog post](https://blog.date-fns.org/v40-with-time-zone-support/).\n\n\\- [Sasha @​kossnocorp](https://twitter.com/kossnocorp)\n\n##### Added\n\n- Added time zones support via [`@date-fns/tz`](https://redirect.github.com/date-fns/tz)'s `TZDate` class and `tz` helper function. See its [README](https://redirect.github.com/date-fns/tz) for the details about the API.\n\n- All relevant functions now accept the context `in` option, which allows to specify the time zone to make the calculations in. If the function also returns a date, it will be in the specified time zone:\n\n ```ts\n import { addDays, startOfDay } from \"date-fns\";\n import { tz } from \"@​date-fns/tz\";\n\n startOfDay(addDays(Date.now(), 5, { in: tz(\"Asia/Singapore\") }));\n //=> \"2024-09-16T00:00:00.000+08:00\"\n ```\n\n In the example, `addDays` will get the current date and time in Singapore and add 5 days to it. `startOfDay` will inherit the date type and return the start of the day in Singapore.\n\n##### Changed\n\n- The function arguments, as well as `Interval`'s `start` and `end`, now can be of different types, allowing you to mix `UTCDate`, `TZDate`, `Date`, and other extensions, as well as primitives (strings and numbers).\n\n The functions will normalize these values, make calculations, and return the result in the same type, preventing any bugs caused by the discrepancy. If passed, the type will be inferred from the context `in` option or the first encountered argument object type. The `Interval`'s `start` and `end` will be considered separately, starting from `start`.\n\n In the given example, the result will be in the `TZDate` as the first argument is a number, and the `start` takes precedence over the `end`.\n\n ```ts\n clamp(Date.now(), {\n start: new TZDate(start, \"Asia/Singapore\"),\n end: new UTCDate(),\n });\n //=> TZDate\n ```\n\n- **BREAKING**: This release contains a bunch of types changes that should not affect the library's expected usage. The changes are primarily internal and nuanced, so rather than listing them here, I recommend you running the type checker after the upgrade. If there are unfixable problems, please [open an issue](https://redirect.github.com/date-fns/date-fns/issues/new).\n\n- **BREAKING**: The package now is ESM-first. The CommonJS is still support and It should not affect most users, but it might break in certains environments. If you encounter any issues, please [report them](https://redirect.github.com/date-fns/date-fns/issues/new).\n\n##### Fixed\n\n- Fixed CDN build compatibility with jQuery and other tools that expose `$` by properly wrapping the code in an IIFE.\n\n
\n\n---\n\n### Configuration\n\n📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).\n\n🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.\n\n♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.\n\n🔕 **Ignore**: Close this PR and you won't be reminded about this update again.\n\n---\n\n - [ ] If you want to rebase/retry this PR, check this box\n\n---\n\nThis PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/toeverything/blocksuite).\n","shortMessageHtmlLink":"chore: bump up date-fns version to v4 (#8405)"}}],"hasNextPage":true,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAAEu3EkoAA","startCursor":null,"endCursor":null}},"title":"Activity · toeverything/blocksuite"}