mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-18 02:26:21 +08:00
fc59dff9e26eb65a6fbf3d0cfb65ebb0463e6c2f
10946 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
582340b0b7 | fix: lint | ||
|
|
11d9a41433 |
chore: bump up apple/swift-collections version to from: "1.3.0" (#13688)
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [apple/swift-collections](https://redirect.github.com/apple/swift-collections) | minor | `from: "1.2.1"` -> `from: "1.3.0"` | --- ### Release Notes <details> <summary>apple/swift-collections (apple/swift-collections)</summary> ### [`v1.3.0`](https://redirect.github.com/apple/swift-collections/releases/tag/1.3.0): Swift Collections 1.3.0 [Compare Source](https://redirect.github.com/apple/swift-collections/compare/1.2.1...1.3.0) This feature release supports Swift toolchain versions 6.0, 6.1 and 6.2, and it includes the following improvements: ##### `BasicContainers` module This new module collects ownership-aware, low-level variants of existing data structures in the core standard library. In this release, this module consists of two array variants, `UniqueArray` and `RigidArray`. These new types are provided as less flexible, noncopyable alternatives to the classic `Array` type. The standard `Array` implements value semantics with the copy-on-write optimization; this inherently requires elements to be copyable, and it is itself copyable. `struct UniqueArray<Element>` is a noncopyable array variant that takes away `Array`'s copy-on-write behavior, enabling support for noncopyable elements. This type's noncopyability means mutations can always assume that the array is uniquely owned, with no shared copies (hence the name!). This means that array mutations such as mutating an element at an index can behave much more predictably, with no unexpected performance spikes due to having to copy shared storage. `struct RigidArray<Element>` goes even further, by also disabling dynamic resizing. Rigid arrays have a fixed capacity: they are initialized with room for a particular number of elements, and they never implicitly grow (nor shrink) their storage. When a rigid array's count reaches its capacity, it becomes unable to add any new items -- inserting into a full array is considered a programming error. This makes this a quite inflexible (or *rigid*) type indeed, as avoiding storage overflow requires careful, up front planning on the resource needs of the task at hand. In exchange, rigid arrays can have extremely predictable performance characteristics. `UniqueArray` is a great default choice when a task just needs an array type that is able store noncopyable elements. `RigidArray` is best reserved for use cases that require absolute, pedantic control over memory use or latency -- such as control software running in environments with extremely limited memory, or when a certain task must always be completed in some given amount of time. The `Unique` and `Rigid` prefixes applied here establish a general naming convention for low-level variants of the classic copy-on-write data structure implementations. Future releases are expected to flesh out our zoo of container types by adding `Unique` and `Rigid` variants of the existing `Set`, `Dictionary`, `Deque`, `Heap` and other constructs, with type names such as as `RigidDictionary` and `UniqueDeque`. ##### `TrailingElementsModule` module This new module ships a new `TrailingArray` construct, a preview of a new low-level, ownership-aware variant of `ManagedBuffer`. This is primarily intended as a interoperability helper for C constructs that consist of a fixed-size header directly followed by variable-size storage buffer. ##### `ContainersPreview` module This module is intended to contain previews of an upcoming ownership-aware container model. In this initial release, this module consists of just one construct: `struct Box<T>`. `Box` is a wrapper type that forms a noncopyable, heap allocated box around an arbitrary value. #### What's Changed - Merge release/1.1 to main by [@​lorentey](https://redirect.github.com/lorentey) in [#​204](https://redirect.github.com/apple/swift-collections/pull/204) - Merge relase/1.1 to main, without taking any changes by [@​lorentey](https://redirect.github.com/lorentey) in [#​206](https://redirect.github.com/apple/swift-collections/pull/206) - \[Heap] Add methods to replace minimum/maximum (redux) by [@​lorentey](https://redirect.github.com/lorentey) in [#​208](https://redirect.github.com/apple/swift-collections/pull/208) - Persistent collections updates (part 10) by [@​lorentey](https://redirect.github.com/lorentey) in [#​207](https://redirect.github.com/apple/swift-collections/pull/207) - Update CMakeLists.txt by [@​compnerd](https://redirect.github.com/compnerd) in [#​215](https://redirect.github.com/apple/swift-collections/pull/215) - Merge latest changes from release/1.1 to main by [@​lorentey](https://redirect.github.com/lorentey) in [#​220](https://redirect.github.com/apple/swift-collections/pull/220) - Merge branch release/1.1 to main by [@​lorentey](https://redirect.github.com/lorentey) in [#​231](https://redirect.github.com/apple/swift-collections/pull/231) - \[SortedCollections] Disable tests with [@​testable](https://redirect.github.com/testable) imports in release builds by [@​lorentey](https://redirect.github.com/lorentey) in [#​232](https://redirect.github.com/apple/swift-collections/pull/232) - \[Hashtable] Minor Documentation Fix (Typo) by [@​nickkohrn](https://redirect.github.com/nickkohrn) in [#​241](https://redirect.github.com/apple/swift-collections/pull/241) - Merge branch `release/1.1` to `main` by [@​lorentey](https://redirect.github.com/lorentey) in [#​248](https://redirect.github.com/apple/swift-collections/pull/248) - Update README.md by [@​glessard](https://redirect.github.com/glessard) in [#​251](https://redirect.github.com/apple/swift-collections/pull/251) - \[OrderedDictionary] Explicitly mention in documentation that keys/values are ordered by [@​warpling](https://redirect.github.com/warpling) in [#​254](https://redirect.github.com/apple/swift-collections/pull/254) - build: support ARM64 spelling by [@​compnerd](https://redirect.github.com/compnerd) in [#​282](https://redirect.github.com/apple/swift-collections/pull/282) - Merge release/1.1 to main by [@​lorentey](https://redirect.github.com/lorentey) in [#​284](https://redirect.github.com/apple/swift-collections/pull/284) - Update release checklist by [@​lorentey](https://redirect.github.com/lorentey) in [#​323](https://redirect.github.com/apple/swift-collections/pull/323) - build: update the build rules for adjusted tree layout by [@​compnerd](https://redirect.github.com/compnerd) in [#​331](https://redirect.github.com/apple/swift-collections/pull/331) - build: support using swift-collections in larger projects by [@​compnerd](https://redirect.github.com/compnerd) in [#​330](https://redirect.github.com/apple/swift-collections/pull/330) - Merge release/1.1 to main by [@​lorentey](https://redirect.github.com/lorentey) in [#​332](https://redirect.github.com/apple/swift-collections/pull/332) - build: support building in Debug mode on Windows by [@​compnerd](https://redirect.github.com/compnerd) in [#​333](https://redirect.github.com/apple/swift-collections/pull/333) - Bugfix Incorrect Assert in BTree.removeFirst/removeLast by [@​LeoNavel](https://redirect.github.com/LeoNavel) in [#​349](https://redirect.github.com/apple/swift-collections/pull/349) - Fix typos by [@​rex4539](https://redirect.github.com/rex4539) in [#​356](https://redirect.github.com/apple/swift-collections/pull/356) - Merge branch `release/1.1` to `main` by [@​lorentey](https://redirect.github.com/lorentey) in [#​358](https://redirect.github.com/apple/swift-collections/pull/358) - Merge.1.1→main by [@​lorentey](https://redirect.github.com/lorentey) in [#​361](https://redirect.github.com/apple/swift-collections/pull/361) - Add post-merge CI support by [@​shahmishal](https://redirect.github.com/shahmishal) in [#​367](https://redirect.github.com/apple/swift-collections/pull/367) - Update CODEOWNERS by [@​lorentey](https://redirect.github.com/lorentey) in [#​375](https://redirect.github.com/apple/swift-collections/pull/375) - Merge release/1.1 to main by [@​lorentey](https://redirect.github.com/lorentey) in [#​386](https://redirect.github.com/apple/swift-collections/pull/386) - Merge release/1.1 to main by [@​lorentey](https://redirect.github.com/lorentey) in [#​410](https://redirect.github.com/apple/swift-collections/pull/410) - \[BTree]\[NFC] Rephrase some comments by [@​lorentey](https://redirect.github.com/lorentey) in [#​427](https://redirect.github.com/apple/swift-collections/pull/427) - \[CI] Pull Request testing support via GitHub Actions by [@​shahmishal](https://redirect.github.com/shahmishal) in [#​426](https://redirect.github.com/apple/swift-collections/pull/426) - \[OrderedDictionary Documentation] fix a typo by [@​Gyuni](https://redirect.github.com/Gyuni) in [#​445](https://redirect.github.com/apple/swift-collections/pull/445) - Install swiftmodules with full module triple by [@​etcwilde](https://redirect.github.com/etcwilde) in [#​470](https://redirect.github.com/apple/swift-collections/pull/470) - \[OrderedSet] Add `OrderedSet.appending(contentsOf:)` by [@​pm-dev](https://redirect.github.com/pm-dev) in [#​452](https://redirect.github.com/apple/swift-collections/pull/452) - ManagedBuffer.capacity is unavailable on OpenBSD. by [@​3405691582](https://redirect.github.com/3405691582) in [#​456](https://redirect.github.com/apple/swift-collections/pull/456) - Align Heap.\_UnsafeHandle min/maxValue tie-breaking with Swift.min/max by [@​DakshinD](https://redirect.github.com/DakshinD) in [#​455](https://redirect.github.com/apple/swift-collections/pull/455) - Add Heap.removeAll(where:) by [@​DakshinD](https://redirect.github.com/DakshinD) in [#​454](https://redirect.github.com/apple/swift-collections/pull/454) - Merge release/1.2 to main by [@​lorentey](https://redirect.github.com/lorentey) in [#​450](https://redirect.github.com/apple/swift-collections/pull/450) - Disable `SortedCollections` module by [@​lorentey](https://redirect.github.com/lorentey) in [#​479](https://redirect.github.com/apple/swift-collections/pull/479) - Enable MemberImportVisibility and fix issues uncovered by [@​lorentey](https://redirect.github.com/lorentey) in [#​480](https://redirect.github.com/apple/swift-collections/pull/480) - fix comment for OrderedSet.appending(contentsOf:) by [@​ozumin](https://redirect.github.com/ozumin) in [#​478](https://redirect.github.com/apple/swift-collections/pull/478) - Bump requirements of nested benchmarking package by [@​lorentey](https://redirect.github.com/lorentey) in [#​481](https://redirect.github.com/apple/swift-collections/pull/481) - Fix CMake build by [@​etcwilde](https://redirect.github.com/etcwilde) in [#​482](https://redirect.github.com/apple/swift-collections/pull/482) - Merge changes on `release/1.2` to `main` branch by [@​lorentey](https://redirect.github.com/lorentey) in [#​487](https://redirect.github.com/apple/swift-collections/pull/487) - Enable macOS testing on GitHub Actions by [@​shahmishal](https://redirect.github.com/shahmishal) in [#​483](https://redirect.github.com/apple/swift-collections/pull/483) - Fix API documentation links in README.md by [@​azarovalex](https://redirect.github.com/azarovalex) in [#​490](https://redirect.github.com/apple/swift-collections/pull/490) - Skip Xcode 16.0 and 16.1 in PR workflow by [@​natecook1000](https://redirect.github.com/natecook1000) in [#​493](https://redirect.github.com/apple/swift-collections/pull/493) - Fix OrderedSet example usage by [@​azarovalex](https://redirect.github.com/azarovalex) in [#​491](https://redirect.github.com/apple/swift-collections/pull/491) - Add support for embedded Swift mode by [@​parkera](https://redirect.github.com/parkera) in [#​494](https://redirect.github.com/apple/swift-collections/pull/494) - Include DequeModule in the Foundation toolchain build by [@​cthielen](https://redirect.github.com/cthielen) in [#​495](https://redirect.github.com/apple/swift-collections/pull/495) - Fix CMake build for `release/1.2` by [@​cthielen](https://redirect.github.com/cthielen) in [#​498](https://redirect.github.com/apple/swift-collections/pull/498) - fix minor typo in init docs for Deque.swift by [@​t089](https://redirect.github.com/t089) in [#​503](https://redirect.github.com/apple/swift-collections/pull/503) - \[SortedSet] Fix subtreeCount inconsistency after remove at index by [@​brianchang928](https://redirect.github.com/brianchang928) in [#​502](https://redirect.github.com/apple/swift-collections/pull/502) - Add the missing COLLECTIONS\_SINGLE\_MODULE when import InternalCollectionsUtils by [@​faimin](https://redirect.github.com/faimin) in [#​501](https://redirect.github.com/apple/swift-collections/pull/501) - \[SortedCollections] Fix incorrect offset calculation in BTree.findAnyIndex by [@​brianchang928](https://redirect.github.com/brianchang928) in [#​506](https://redirect.github.com/apple/swift-collections/pull/506) - \[SortedCollections] Fix B-tree root reduction during element removal causing data loss by [@​brianchang928](https://redirect.github.com/brianchang928) in [#​507](https://redirect.github.com/apple/swift-collections/pull/507) - Add checks for Wasm compatibility to `pull_request.yml` by [@​MaxDesiatov](https://redirect.github.com/MaxDesiatov) in [#​509](https://redirect.github.com/apple/swift-collections/pull/509) - First round of noncopyable constructs: `Box`, `RigidArray`, `DynamicArray` by [@​lorentey](https://redirect.github.com/lorentey) in [#​508](https://redirect.github.com/apple/swift-collections/pull/508) - \[actions] exclude Xcode 26 beta 6 by [@​glessard](https://redirect.github.com/glessard) in [#​514](https://redirect.github.com/apple/swift-collections/pull/514) - Add "trailing elements" module with facilities for tail-allocated storage by [@​DougGregor](https://redirect.github.com/DougGregor) in [#​513](https://redirect.github.com/apple/swift-collections/pull/513) - \[Xcode] Add trailing elements to xcodeproj by [@​Azoy](https://redirect.github.com/Azoy) in [#​515](https://redirect.github.com/apple/swift-collections/pull/515) - Containers: Naming updates, minor tweaks by [@​lorentey](https://redirect.github.com/lorentey) in [#​516](https://redirect.github.com/apple/swift-collections/pull/516) - Add BasicContainer rename to xcodeproj by [@​Azoy](https://redirect.github.com/Azoy) in [#​517](https://redirect.github.com/apple/swift-collections/pull/517) - Prepare for tagging 1.3.0 by [@​lorentey](https://redirect.github.com/lorentey) in [#​523](https://redirect.github.com/apple/swift-collections/pull/523) - \[Docs] Fix landing page of collections documentation by [@​Azoy](https://redirect.github.com/Azoy) in [#​520](https://redirect.github.com/apple/swift-collections/pull/520) - build: Install libraries in an `arch` sub-folder by [@​Steelskin](https://redirect.github.com/Steelskin) in [#​505](https://redirect.github.com/apple/swift-collections/pull/505) - More release preparations for 1.3.0 by [@​lorentey](https://redirect.github.com/lorentey) in [#​524](https://redirect.github.com/apple/swift-collections/pull/524) - One last round of documentation updates by [@​lorentey](https://redirect.github.com/lorentey) in [#​525](https://redirect.github.com/apple/swift-collections/pull/525) #### New Contributors - [@​nickkohrn](https://redirect.github.com/nickkohrn) made their first contribution in [#​241](https://redirect.github.com/apple/swift-collections/pull/241) - [@​warpling](https://redirect.github.com/warpling) made their first contribution in [#​254](https://redirect.github.com/apple/swift-collections/pull/254) - [@​LeoNavel](https://redirect.github.com/LeoNavel) made their first contribution in [#​349](https://redirect.github.com/apple/swift-collections/pull/349) - [@​rex4539](https://redirect.github.com/rex4539) made their first contribution in [#​356](https://redirect.github.com/apple/swift-collections/pull/356) - [@​Gyuni](https://redirect.github.com/Gyuni) made their first contribution in [#​445](https://redirect.github.com/apple/swift-collections/pull/445) - [@​pm-dev](https://redirect.github.com/pm-dev) made their first contribution in [#​452](https://redirect.github.com/apple/swift-collections/pull/452) - [@​DakshinD](https://redirect.github.com/DakshinD) made their first contribution in [#​455](https://redirect.github.com/apple/swift-collections/pull/455) - [@​ozumin](https://redirect.github.com/ozumin) made their first contribution in [#​478](https://redirect.github.com/apple/swift-collections/pull/478) - [@​azarovalex](https://redirect.github.com/azarovalex) made their first contribution in [#​490](https://redirect.github.com/apple/swift-collections/pull/490) - [@​natecook1000](https://redirect.github.com/natecook1000) made their first contribution in [#​493](https://redirect.github.com/apple/swift-collections/pull/493) - [@​parkera](https://redirect.github.com/parkera) made their first contribution in [#​494](https://redirect.github.com/apple/swift-collections/pull/494) - [@​t089](https://redirect.github.com/t089) made their first contribution in [#​503](https://redirect.github.com/apple/swift-collections/pull/503) - [@​brianchang928](https://redirect.github.com/brianchang928) made their first contribution in [#​502](https://redirect.github.com/apple/swift-collections/pull/502) - [@​faimin](https://redirect.github.com/faimin) made their first contribution in [#​501](https://redirect.github.com/apple/swift-collections/pull/501) - [@​MaxDesiatov](https://redirect.github.com/MaxDesiatov) made their first contribution in [#​509](https://redirect.github.com/apple/swift-collections/pull/509) - [@​DougGregor](https://redirect.github.com/DougGregor) made their first contribution in [#​513](https://redirect.github.com/apple/swift-collections/pull/513) **Full Changelog**: <https://github.com/apple/swift-collections/compare/1.2.1...1.3.0> </details> --- ### 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. --- - [x] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/toeverything/AFFiNE). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4xMzEuOSIsInVwZGF0ZWRJblZlciI6IjQyLjU5LjAiLCJ0YXJnZXRCcmFuY2giOiJjYW5hcnkiLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
||
|
|
f49f42ce76 |
chore: bump up Lakr233/ListViewKit version to from: "1.1.8" (#14078)
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [Lakr233/ListViewKit](https://redirect.github.com/Lakr233/ListViewKit) | patch | `from: "1.1.6"` -> `from: "1.1.8"` | --- ### Release Notes <details> <summary>Lakr233/ListViewKit (Lakr233/ListViewKit)</summary> ### [`v1.1.8`](https://redirect.github.com/Lakr233/ListViewKit/compare/1.1.7...1.1.8) [Compare Source](https://redirect.github.com/Lakr233/ListViewKit/compare/1.1.7...1.1.8) ### [`v1.1.7`](https://redirect.github.com/Lakr233/ListViewKit/compare/1.1.6...1.1.7) [Compare Source](https://redirect.github.com/Lakr233/ListViewKit/compare/1.1.6...1.1.7) </details> --- ### 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/toeverything/AFFiNE). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi4zMi4yIiwidXBkYXRlZEluVmVyIjoiNDIuMzIuMiIsInRhcmdldEJyYW5jaCI6ImNhbmFyeSIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: DarkSky <25152247+darkskygit@users.noreply.github.com> |
||
|
|
f78dc44690 |
chore: bump up Lakr233/MarkdownView version to from: "3.4.7" (#14090)
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [Lakr233/MarkdownView](https://redirect.github.com/Lakr233/MarkdownView) | patch | `from: "3.4.2"` -> `from: "3.4.7"` | --- ### Release Notes <details> <summary>Lakr233/MarkdownView (Lakr233/MarkdownView)</summary> ### [`v3.4.7`](https://redirect.github.com/Lakr233/MarkdownView/compare/3.4.6...3.4.7) [Compare Source](https://redirect.github.com/Lakr233/MarkdownView/compare/3.4.6...3.4.7) ### [`v3.4.6`](https://redirect.github.com/Lakr233/MarkdownView/compare/3.4.5...3.4.6) [Compare Source](https://redirect.github.com/Lakr233/MarkdownView/compare/3.4.5...3.4.6) ### [`v3.4.5`](https://redirect.github.com/Lakr233/MarkdownView/compare/3.4.4...3.4.5) [Compare Source](https://redirect.github.com/Lakr233/MarkdownView/compare/3.4.4...3.4.5) ### [`v3.4.4`](https://redirect.github.com/Lakr233/MarkdownView/compare/3.4.3...3.4.4) [Compare Source](https://redirect.github.com/Lakr233/MarkdownView/compare/3.4.3...3.4.4) ### [`v3.4.3`](https://redirect.github.com/Lakr233/MarkdownView/compare/3.4.2...3.4.3) [Compare Source](https://redirect.github.com/Lakr233/MarkdownView/compare/3.4.2...3.4.3) </details> --- ### 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. --- - [x] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/toeverything/AFFiNE). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi40Mi4yIiwidXBkYXRlZEluVmVyIjoiNDIuNTkuMCIsInRhcmdldEJyYW5jaCI6ImNhbmFyeSIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
||
|
|
a38e7e58e0 | docs: update template | ||
|
|
4f1d57ade5 |
feat: integrate typst preview & fix mermaid style (#14168)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Typst code block preview with interactive rendering controls (zoom,
pan, reset) and user-friendly error messages
* **Style**
* Centered Mermaid diagram rendering for improved layout
* **Tests**
* Added end-to-end preview validation tests for Typst and Mermaid
* **Chores**
* Added WebAssembly type declarations and updated frontend packages;
removed a build debug configuration entry
<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
|
||
|
|
1b532d5c6c |
fix: inline doc toolbar tooltip (#14169)
fix #14001 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Style** * Updated tooltip text from "Edit" to "Edit Description" in link and toolbar configurations to provide clearer guidance on the edit action's purpose across the application. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
6514614df8 | feat: bump electron (#14158) | ||
|
|
702dbf7be4 |
fix: client indexing & outdated scheme (#14160)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Optimized storage handling with platform-specific
implementations—SQLite for Electron and IndexedDB for other environments
for improved performance.
* **Bug Fixes**
* Enhanced recording file access and retrieval functionality for better
reliability.
* Strengthened local file protocol handling and security restrictions.
<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
|
||
|
|
78949044ec |
feat: improve idb perf (#14159)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Performance**
* Optimized database operations through improved batch processing to
accelerate data retrieval, updates, and deletion operations for better
efficiency.
* **Reliability**
* Enhanced transaction durability handling to strengthen data
consistency and ensure more reliable persistence of database changes and
updates.
<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
|
||
|
|
4eed92cebf | feat: improve electron sandbox (#14156) | ||
|
|
3fe8923fc3 | fix: flatpak bundle (#14155) | ||
|
|
ca386283c5 | feat: bump electron (#14151) | ||
|
|
2e38898937 | feat: refresh index if version changed (#14150) | ||
|
|
e8693a3a25 | feat: introduce fuzzy search for native indexer (#14109) | ||
|
|
b6dc68eddf |
chore(i18n): sync translations (#14054)
New Crowdin translations by [Crowdin GH Action](https://github.com/crowdin/github-action) --------- Co-authored-by: Crowdin Bot <support+bot@crowdin.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: DarkSky <darksky2048@gmail.com> |
||
|
|
08a30edb2d |
chore: correct the wrong file path in building doc (#14145)
When I read the [building-desktop-client-app.md](https://github.com/toeverything/AFFiNE/blob/canary/docs/building-desktop-client-app.md) to build Artifacts locally, I find there have some legacy path due to some project structure updates. So this is a litte fix to correct the unmatched path in the doc. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Updated desktop client app building documentation to reflect changes in the project structure and configuration setup. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
6c9ab603eb |
feat(i18n): updated Norwegian translations to 20% (#14133)
Updated translations for Norwegian Bokmål to 20%. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Localization** * Enhanced Norwegian Bokmål language support with expanded translations covering profile settings, email verification, journal, tags, copy actions, edgeless mode, and additional interface elements. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: DarkSky <25152247+darkskygit@users.noreply.github.com> |
||
|
|
4b721dffe0 |
feat: set admin name when self hosted init (#14146)
fix #14134 |
||
|
|
a1f1c61a9f | fix: ci | ||
|
|
76524084d1 |
feat: multipart blob sync support (#14138)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Flexible blob uploads: GRAPHQL, presigned, and multipart flows with
per‑part URLs, abort/complete operations, presigned proxy endpoints, and
nightly cleanup of expired pending uploads.
* **API / Schema**
* GraphQL additions: new types, mutations, enum and error to manage
upload lifecycle (create, complete, abort, get part URL).
* **Database**
* New blob status enum and columns (status, upload_id); listing now
defaults to completed blobs.
* **Localization**
* Added user-facing message: "Blob is invalid."
* **Tests**
* Expanded unit and end‑to‑end coverage for upload flows, proxy
behavior, multipart and provider integrations.
<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
|
||
|
|
a9937e18b6 | fix: cleanup expired records (#14140) | ||
|
|
7539135c4d |
feat(i18n): Updated Norwegian translations to 12% (#14125)
Updated Norwegian bokmål translations to 12% completeness.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Localization**
* Expanded Norwegian language support with numerous new translations for
UI elements, including workspace settings, keyboard shortcuts,
authentication messages, and cloud features.
* Improved translation coverage for Norwegian, bringing the completeness
metric from 9 to 12 with additional localized strings across the
application.
<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
|
||
|
|
8f59509e73 |
feat(editor): add delete key support for table view (#14119)
This PR allows the user to use the `Delete` key to delete the content of
one or more cells in a Table View. Previously, this was only possible to
do with the `Backspace` key. Both keys can now be used, which is often
the norm in other tools - such as Notion and Excel.
In short, the logic for the `Backspace` key has been moved to a separate
function which is called by keyevents from both the `Backspace` and
`Delete` keys.
Affected files:
-
blocksuite/affine/data-view/src/view-presets/table/pc-virtual/controller/hotkeys.ts
-
blocksuite/affine/data-view/src/view-presets/table/pc/controller/hotkeys.ts
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Refactor**
* Optimized table hotkey handling logic to consolidate delete and
backspace operations for improved code maintainability.
<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
|
||
|
|
321965a424 | feat: impl text delta support (#14132) | ||
|
|
efbdee5508 |
chore: bump up storybook version to v10.1.10 [SECURITY] (#14131)
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [storybook](https://storybook.js.org) ([source](https://redirect.github.com/storybookjs/storybook/tree/HEAD/code/core)) | [`10.1.5` -> `10.1.10`](https://renovatebot.com/diffs/npm/storybook/10.1.5/10.1.10) |  |  | ### GitHub Vulnerability Alerts #### [CVE-2025-68429](https://redirect.github.com/storybookjs/storybook/security/advisories/GHSA-8452-54wp-rmv6) On December 11th, the Storybook team received a responsible disclosure alerting them to a potential vulnerability in certain built and published Storybooks. The vulnerability is a bug in how Storybook handles environment variables defined in a `.env` file, which could, in specific circumstances, lead to those variables being unexpectedly bundled into the artifacts created by the `storybook build` command. When a built Storybook is published to the web, the bundle’s source is viewable, thus potentially exposing those variables to anyone with access. If those variables contained secrets, they should be considered compromised. ## Who is impacted? For a project to be vulnerable to this issue, it must: - Build the Storybook (i.e. run `storybook build` directly or indirectly) in a directory that contains a `.env` file (including variants like `.env.local`) - The `.env` file contains sensitive secrets - Use Storybook version `7.0.0` or above - Publish the built Storybook to the web Storybooks built without a `.env` file at build time are not affected, including common CI-based builds where secrets are provided via platform environment variables rather than `.env` files. Users' Storybook runtime environments (i.e. `storybook dev`) are not affected. Deployed applications that share a repo with a project's Storybook are not affected. Storybook 6 and below are not affected. ## Recommended actions First, Storybook recommends that everyone audit for any sensitive secrets provided via `.env` files and rotate those keys. Second, Storybook has released patched versions of all affected major Storybook versions that no longer have this vulnerability. Projects should upgrade their Storybook—on both local machines and CI environments—to one of these versions **before publishing again**. - `10.1.10+` - `9.1.17+` - `8.6.15+` - `7.6.21+` Finally, some projects may have been relying on the undocumented behavior at the heart of this issue and will need to change how they reference environment variables after this update. If a project can no longer read necessary environmental variable values, it can either prefix the variables with `STORYBOOK_` or use the [`env` property in Storybook’s configuration](https://storybook.js.org/docs/configure/environment-variables#using-storybook-configuration) to manually specify values. In either case, **do not** include sensitive secrets as they *will* be included in the built bundle. ## Further information Details of the vulnerability can be found on the [Storybook announcement](https://storybook.js.org/blog/security-advisory). --- ### Release Notes <details> <summary>storybookjs/storybook (storybook)</summary> ### [`v10.1.10`](https://redirect.github.com/storybookjs/storybook/blob/HEAD/CHANGELOG.md#10110) [Compare Source](https://redirect.github.com/storybookjs/storybook/compare/v10.1.9...v10.1.10) - Core: Fix `.env`-file parsing - [#​33383](https://redirect.github.com/storybookjs/storybook/pull/33383), thanks [@​JReinhold](https://redirect.github.com/JReinhold)! - Next.js: Handle v14 compatibility for draftMode import - [#​33341](https://redirect.github.com/storybookjs/storybook/pull/33341), thanks [@​tanujbhaud](https://redirect.github.com/tanujbhaud)! ### [`v10.1.9`](https://redirect.github.com/storybookjs/storybook/blob/HEAD/CHANGELOG.md#1019) [Compare Source](https://redirect.github.com/storybookjs/storybook/compare/v10.1.8...v10.1.9) - Telemetry: Remove instance of check for sub-error handling - [#​33356](https://redirect.github.com/storybookjs/storybook/pull/33356), thanks [@​valentinpalkovic](https://redirect.github.com/valentinpalkovic)! ### [`v10.1.8`](https://redirect.github.com/storybookjs/storybook/compare/v10.1.7...7cd0cbca4ee2f2c082c9876de2fb2feba6c12bbf) [Compare Source](https://redirect.github.com/storybookjs/storybook/compare/v10.1.7...v10.1.8) ### [`v10.1.7`](https://redirect.github.com/storybookjs/storybook/blob/HEAD/CHANGELOG.md#1017) [Compare Source](https://redirect.github.com/storybookjs/storybook/compare/v10.1.6...v10.1.7) - Automigrate: Fix missing await - [#​33333](https://redirect.github.com/storybookjs/storybook/pull/33333), thanks [@​valentinpalkovic](https://redirect.github.com/valentinpalkovic)! - CLI: Remove REACT\_PROJECT projectType - [#​33334](https://redirect.github.com/storybookjs/storybook/pull/33334), thanks [@​valentinpalkovic](https://redirect.github.com/valentinpalkovic)! - Core: Exclude open from pre-bundling to make local xdg-open reachable - [#​33325](https://redirect.github.com/storybookjs/storybook/pull/33325), thanks [@​Sidnioulz](https://redirect.github.com/Sidnioulz)! - Nextjs-Vite: Install `vite` during migration if not installed yet - [#​33316](https://redirect.github.com/storybookjs/storybook/pull/33316), thanks [@​ghengeveld](https://redirect.github.com/ghengeveld)! - Telemetry: Fix race condition in telemetry cache causing malformed JSON - [#​33323](https://redirect.github.com/storybookjs/storybook/pull/33323), thanks [@​valentinpalkovic](https://redirect.github.com/valentinpalkovic)! ### [`v10.1.6`](https://redirect.github.com/storybookjs/storybook/blob/HEAD/CHANGELOG.md#1016) [Compare Source](https://redirect.github.com/storybookjs/storybook/compare/v10.1.5...v10.1.6) - Manager: Do not display non-existing shortcuts in the settings page - [#​32711](https://redirect.github.com/storybookjs/storybook/pull/32711), thanks [@​DKER2](https://redirect.github.com/DKER2)! - Preview: Enforce inert body if manager is focus-trapped - [#​33186](https://redirect.github.com/storybookjs/storybook/pull/33186), thanks [@​Sidnioulz](https://redirect.github.com/Sidnioulz)! - Telemetry: Await pending operations in getLastEvents to prevent race conditions - [#​33285](https://redirect.github.com/storybookjs/storybook/pull/33285), thanks [@​valentinpalkovic](https://redirect.github.com/valentinpalkovic)! - UI: Fix keyboard navigation bug for "reset" option in `Select` - [#​33268](https://redirect.github.com/storybookjs/storybook/pull/33268), thanks [@​Sidnioulz](https://redirect.github.com/Sidnioulz)! </details> --- ### Configuration 📅 **Schedule**: Branch creation - "" (UTC), 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/toeverything/AFFiNE). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi41OS4wIiwidXBkYXRlZEluVmVyIjoiNDIuNTkuMCIsInRhcmdldEJyYW5jaCI6ImNhbmFyeSIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
||
|
|
28a1ac4772 |
feat(core): focus on text body when opening journal (#14122)
Related to issue https://github.com/toeverything/AFFiNE/issues/14094 This PR makes it so that focus is put on the input body when loading a journal. A check is made when loading the document whether it is a normal document or a journal document. If it is a journal document, the last noteblock in the document is focused on. This does not change how the title is focused on normal documents. This makes it more effortless to use the journal, as you don't have to click on the body of the journal after opening/creating it. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Improved editor focus for journal documents: when opening or switching to a journal the cursor now auto-positions to the end of the last note entry (or the input area) after a short, smooth delay for faster typing and reliable focus behavior. * **Bug Fixes** * Added safeguards and error handling to make automatic focus more robust across load and editor states. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
caeec23ec6 |
feat(i18n): added support for Norwegian (Bokmål) (#14121)
Added support for Norwegian (Bokmål). Translation completeness is currently at 9%. <img width="1908" height="909" alt="Screenshot from 2025-12-18 13-57-15" src="https://github.com/user-attachments/assets/4a6def20-92d5-4415-9976-301e23887187" /> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Norwegian Bokmål (nb-NO) language is now available with localized interface and UI translations. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
a1767ebedb |
fix(core): fixed keyboard shortcut help for Windows and Linux (#14088)
This PR is related to issue https://github.com/toeverything/AFFiNE/issues/13290 Keyboard shortcut for copying a private link works as expected, but the overview of shortcuts shows the Mac shortcut for Windows, web and Linux users. This fix shows the correct (Ctrl+Shift+C) shortcut to the aforementioned users. I have not tested this on a Mac (neither in browser nor in the app), but ideally this should not have an impact for Mac users as the logic for showing the correct shortcut is already implemented. Affected files: - packages/frontend/core/src/components/hooks/affine/use-shortcuts.ts Old: <img width="1402" height="946" alt="old_shortcut" src="https://github.com/user-attachments/assets/5c8f2133-2b4d-49c7-8054-851c7de8f3cd" /> New: <img width="650" height="379" alt="Keyboard shortcut fix" src="https://github.com/user-attachments/assets/a29e2f7a-53d7-4743-a9b1-aa30e7622dd1" /> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Corrected the keyboard shortcut for copying private links on Windows from Command+Shift+C to Ctrl+Shift+C. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
b052c92421 |
fix: fix typo in link shortcut key binding (#14117)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Bug Fixes**
* Corrected keyboard shortcut mapping for link function, ensuring it
properly recognizes Ctrl+K command.
<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
|
||
|
|
66407f2b2f |
feat(core): adapt date fields in database for notion import (#14111)
This is related to issue/feature request https://github.com/toeverything/AFFiNE/issues/13962. This PR extends the Notion import functionality to properly handle date fields from databases. Previously, these were imported as text (see photo below), which served little purpose. These Notion date fields are now parsed as actual dates, and imported to AFFiNE as epoch time (which is what the date field in AFFiNe expects). Because of this, even date fields with time (e.g. 09:00 AM) are also handled correctly - although they are only shown as dates, since AFFiNE's `Date` field does not support time. Tested with several Notion imports both with and without time, and they all seem to work correctly. Affected files: - blocksuite/affine/blocks/database/src/adapters/notion-html.ts Old: <img width="802" height="305" alt="image" src="https://github.com/user-attachments/assets/44019dba-cffb-4a30-a5ea-69cd9f86e0a1" /> New: <img width="804" height="271" alt="image" src="https://github.com/user-attachments/assets/3f52f328-7ee3-4754-9726-10dcfa0f8462" /> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Enhanced Notion imports with automatic date column detection. When importing Notion databases, date fields are now automatically recognized, properly configured as date columns, and formatted correctly. This improvement ensures accurate data preservation, eliminates manual type corrections, and provides a streamlined import experience for all users working with date-rich Notion databases. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
f5076a37ae |
feat(core): find todo list based on 'checkbox' search query (#13982)
This feature enhances the /slash command by allowing users to search for 'checkbox' and have the to-do list item show up as a result. Users come from different systems and environments, and some may use the name 'checkbox' but be confused as they cannot find it in the search menu. This is achieved by adding a `searchAlias` property on the to-do list item block that contains the string `checkbox`. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added search-alias support for slash menu items so entries can be found by alternative terms. * To-do List entry now includes "checkbox" as an additional searchable alias to improve discoverability. * Slash menu search results updated to reflect alias-driven matches (additional item appears when searching). <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: DarkSky <25152247+darkskygit@users.noreply.github.com> |
||
|
|
4717886c9e |
fix: title icon display (#14101)
fix #14073 |
||
|
|
844b9d9592 | feat(server): impl native reader for server (#14100) | ||
|
|
a0eeed0cdb |
feat: implement export as PDF (#14057)
I used [pdfmake](https://www.npmjs.com/package/pdfmake) to implement an "export as PDF" feature, and I am happy to share with you! This should fix #13577, fix #8846, and fix #13959. A showcase: [Getting Started.pdf](https://github.com/user-attachments/files/24013057/Getting.Started.pdf) Although it might miss rendering some properties currently, it can evolve in the long run and provide a more native experience for the users. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** - Experimental "Export to PDF" option added to the export menu (behind a feature flag) - PDF export supports headings, paragraphs, lists, code blocks, tables, images, callouts, linked documents and embedded content * **Chores** - Added PDF rendering library and consolidated PDF utilities - Feature flag introduced to control rollout * **Tests** - Comprehensive unit tests added for PDF content rendering logic <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: DarkSky <darksky2048@gmail.com> |
||
|
|
246e09e0cd |
fix: roll back electron version to v35 (#14089)
In electron v36, all workers do not work. The webpack configuration is too complicated, so go back first. If start a new project with [forge](https://www.electronforge.io/) and latest electron, the worker works well. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Downgraded the Electron development/runtime used for building and testing the desktop app from v36 to v35; this is a development-environment change with no functional or API changes affecting end users. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
7f96c97b67 |
chore: bump up rustc version to v1.92.0 (#13624)
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [rustc](https://redirect.github.com/rust-lang/rust) | minor | `1.91.0` -> `1.92.0` | --- ### Release Notes <details> <summary>rust-lang/rust (rustc)</summary> ### [`v1.92.0`](https://redirect.github.com/rust-lang/rust/blob/HEAD/RELEASES.md#Version-1920-2025-12-11) [Compare Source](https://redirect.github.com/rust-lang/rust/compare/1.91.1...1.92.0) \========================== <a id="1.92.0-Language"></a> ## Language - [Document `MaybeUninit` representation and validity](https://redirect.github.com/rust-lang/rust/pull/140463) - [Allow `&raw [mut | const]` for union field in safe code](https://redirect.github.com/rust-lang/rust/pull/141469) - [Prefer item bounds of associated types over where-bounds for auto-traits and `Sized`](https://redirect.github.com/rust-lang/rust/pull/144064) - [Do not materialize `X` in `[X; 0]` when `X` is unsizing a const](https://redirect.github.com/rust-lang/rust/pull/145277) - [Support combining `#[track_caller]` and `#[no_mangle]` (requires every declaration specifying `#[track_caller]` as well)](https://redirect.github.com/rust-lang/rust/pull/145724) - [Make never type lints `never_type_fallback_flowing_into_unsafe` and `dependency_on_unit_never_type_fallback` deny-by-default](https://redirect.github.com/rust-lang/rust/pull/146167) - [Allow specifying multiple bounds for same associated item, except in trait objects](https://redirect.github.com/rust-lang/rust/pull/146593) - [Slightly strengthen higher-ranked region handling in coherence](https://redirect.github.com/rust-lang/rust/pull/146725) - [The `unused_must_use` lint no longer warns on `Result<(), Uninhabited>` (for instance, `Result<(), !>`), or `ControlFlow<Uninhabited, ()>`](https://redirect.github.com/rust-lang/rust/pull/147382). This avoids having to check for an error that can never happen. <a id="1.92.0-Compiler"></a> ## Compiler - [Make `mips64el-unknown-linux-muslabi64` link dynamically](https://redirect.github.com/rust-lang/rust/pull/146858) - [Remove current code for embedding command-line args in PDB](https://redirect.github.com/rust-lang/rust/pull/147022) Command-line information is typically not needed by debugging tools, and the removed code was causing problems for incremental builds even on targets that don't use PDB debuginfo. <a id="1.92.0-Libraries"></a> ## Libraries - [Specialize `Iterator::eq{_by}` for `TrustedLen` iterators](https://redirect.github.com/rust-lang/rust/pull/137122) - [Simplify `Extend` for tuples](https://redirect.github.com/rust-lang/rust/pull/138799) - [Added details to `Debug` for `EncodeWide`](https://redirect.github.com/rust-lang/rust/pull/140153). - [`iter::Repeat::last`](https://redirect.github.com/rust-lang/rust/pull/147258) and [`count`](https://redirect.github.com/rust-lang/rust/pull/146410) will now panic, rather than looping infinitely. <a id="1.92.0-Stabilized-APIs"></a> ## Stabilized APIs - [`NonZero<u{N}>::div_ceil`](https://doc.rust-lang.org/stable/std/num/struct.NonZero.html#method.div_ceil) - [`Location::file_as_c_str`](https://doc.rust-lang.org/stable/std/panic/struct.Location.html#method.file_as_c_str) - [`RwLockWriteGuard::downgrade`](https://doc.rust-lang.org/stable/std/sync/struct.RwLockWriteGuard.html#method.downgrade) - [`Box::new_zeroed`](https://doc.rust-lang.org/stable/std/boxed/struct.Box.html#method.new_zeroed) - [`Box::new_zeroed_slice`](https://doc.rust-lang.org/stable/std/boxed/struct.Box.html#method.new_zeroed_slice) - [`Rc::new_zeroed`](https://doc.rust-lang.org/stable/std/rc/struct.Rc.html#method.new_zeroed) - [`Rc::new_zeroed_slice`](https://doc.rust-lang.org/stable/std/rc/struct.Rc.html#method.new_zeroed_slice) - [`Arc::new_zeroed`](https://doc.rust-lang.org/stable/std/sync/struct.Arc.html#method.new_zeroed) - [`Arc::new_zeroed_slice`](https://doc.rust-lang.org/stable/std/sync/struct.Arc.html#method.new_zeroed_slice) - [`btree_map::Entry::insert_entry`](https://doc.rust-lang.org/stable/std/collections/btree_map/enum.Entry.html#method.insert_entry) - [`btree_map::VacantEntry::insert_entry`](https://doc.rust-lang.org/stable/std/collections/btree_map/struct.VacantEntry.html#method.insert_entry) - [`impl Extend<proc_macro::Group> for proc_macro::TokenStream`](https://doc.rust-lang.org/stable/proc_macro/struct.TokenStream.html#impl-Extend%3CGroup%3E-for-TokenStream) - [`impl Extend<proc_macro::Literal> for proc_macro::TokenStream`](https://doc.rust-lang.org/stable/proc_macro/struct.TokenStream.html#impl-Extend%3CLiteral%3E-for-TokenStream) - [`impl Extend<proc_macro::Punct> for proc_macro::TokenStream`](https://doc.rust-lang.org/stable/proc_macro/struct.TokenStream.html#impl-Extend%3CPunct%3E-for-TokenStream) - [`impl Extend<proc_macro::Ident> for proc_macro::TokenStream`](https://doc.rust-lang.org/stable/proc_macro/struct.TokenStream.html#impl-Extend%3CIdent%3E-for-TokenStream) These previously stable APIs are now stable in const contexts: - [`<[_]>::rotate_left`](https://doc.rust-lang.org/stable/std/primitive.slice.html#method.rotate_left) - [`<[_]>::rotate_right`](https://doc.rust-lang.org/stable/std/primitive.slice.html#method.rotate_right) <a id="1.92.0-Cargo"></a> ## Cargo - [Added a new chapter](https://redirect.github.com/rust-lang/cargo/issues/16119) to the Cargo book, ["Optimizing Build Performance"](https://doc.rust-lang.org/stable/cargo/guide/build-performance.html). <a id="1.92.0-Rustdoc"></a> ## Rustdoc - [If a trait item appears in rustdoc search, hide the corresponding impl items](https://redirect.github.com/rust-lang/rust/pull/145898). Previously a search for "last" would show both `Iterator::last` as well as impl methods like `std::vec::IntoIter::last`. Now these impl methods will be hidden, freeing up space for inherent methods like `BTreeSet::last`. - [Relax rules for identifiers in search](https://redirect.github.com/rust-lang/rust/pull/147860). Previously you could only search for identifiers that were valid in rust code, now searches only need to be valid as part of an identifier. For example, you can now perform a search that starts with a digit. <a id="1.92.0-Compatibility-Notes"></a> ## Compatibility Notes - [Fix backtraces with `-C panic=abort` on Linux by generating unwind tables by default](https://redirect.github.com/rust-lang/rust/pull/143613). Build with `-C force-unwind-tables=no` to keep omitting unwind tables. * As part of the larger effort refactoring compiler built-in attributes and their diagnostics, [the future-compatibility lint `invalid_macro_export_arguments` is upgraded to deny-by-default and will be reported in dependencies too.](https://redirect.github.com/rust-lang/rust/pull/143857) * [Update the minimum external LLVM to 20](https://redirect.github.com/rust-lang/rust/pull/145071) * [Prevent downstream `impl DerefMut for Pin<LocalType>`](https://redirect.github.com/rust-lang/rust/pull/145608) * [Don't apply temporary lifetime extension rules to the arguments of non-extended `pin!` and formatting macros](https://redirect.github.com/rust-lang/rust/pull/145838) ### [`v1.91.1`](https://redirect.github.com/rust-lang/rust/blob/HEAD/RELEASES.md#Version-1911-2025-11-10) [Compare Source](https://redirect.github.com/rust-lang/rust/compare/1.91.0...1.91.1) \=========================== <a id="1.91.1"></a> - [Enable file locking support in illumos](https://redirect.github.com/rust-lang/rust/pull/148322). This fixes Cargo not locking the build directory on illumos. - [Fix `wasm_import_module` attribute cross-crate](https://redirect.github.com/rust-lang/rust/pull/148363). This fixes linker errors on WASM targets. </details> --- ### 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/toeverything/AFFiNE). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS45Ny4xMCIsInVwZGF0ZWRJblZlciI6IjQyLjQyLjIiLCJ0YXJnZXRCcmFuY2giOiJjYW5hcnkiLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |
||
|
|
f832b28dac |
feat(editor): add date grouping configurations (#12679)
https://github.com/user-attachments/assets/d5578060-2c8c-47a5-ba65-ef2e9430518b This PR adds the ability to group-by date with configuration which an example is shown in the image below:  <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Date-based grouping modes (relative, day, week Sun/Mon, month, year), a date group renderer, and quick lookup for group-by configs by name. * **Improvements** * Enhanced group settings: date sub‑modes, week‑start, per‑group visibility, Hide All/Show All, date sort order, improved drag/drop and reorder. * Consistent popup placement/middleware, nested popup positioning, per‑item close-on-select, and enforced minimum menu heights. * UI: empty groups now display "No <property>"; views defensively handle null/hidden groups. * **Tests** * Added unit tests for date-key sorting and comparison. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Norkz <richardlora557@gmail.com> Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com> |
||
|
|
b258fc3775 | feat: update dmg compress algorithm | ||
|
|
396cda2fff |
feat(i18n): add Polish language support (#14080)
It's my first time making a pull request to any repo. If there are any
issues, let me know.
## Summary
Adds Polish language support. Translation is 98% complete (10,447/10,646
words).
## Changes
- Added `pl` to Language type
- Added Polish to SUPPORTED_LANGUAGES with lazy loading
The `pl.json` file already exists in the repo with good translation
coverage. Some AI-related strings are not yet translated but will fall
back to English.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Added Polish language support to the application, including localized
language name, native language name, and flag emoji.
<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
|
||
|
|
cb0ff04efa | feat: bump more deps (#14079) | ||
|
|
40f3337d45 |
feat: bump deps (#14076)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Chores**
* Updated core dependencies, developer tooling and Rust toolchain to
newer stable versions across the repo
* Upgraded Storybook to v10 and improved ESM path resolution for
storybook tooling
* Broadened native binding platform/architecture support and
strengthened native module version validation, loading and WASI handling
* **New Features**
* Exposed an additional native text export for consumers (enhanced
JS/native surface)
<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
|
||
|
|
215541d331 |
feat: improve indexing perf with native indexer (#14066)
fix #12132, #14006, #13496, #12375, #12132 The previous idb indexer generated a large number of scattered writes when flushing to disk, which caused CPU and disk write spikes. If the document volume is extremely large, the accumulation of write transactions will cause memory usage to continuously increase. This PR introduces batch writes to mitigate write performance on the web side, and adds a native indexer on the Electron side to greatly improve performance. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Full-text search (FTS) added across storage layers and native plugins: indexing, search, document retrieval, match ranges, and index flushing. * New SQLite-backed indexer storage, streaming search/aggregate APIs, and in-memory index with node-building and highlighting. * **Performance** * Indexing rewritten for batched, concurrent writes and parallel metadata updates. * Search scoring enhanced to consider multiple term positions and aggregated term data. * **Other** * Configurable refresh interval and indexer version bump. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
90d0ca847a |
docs(README): Update README with new Sealos features (#14067)
Updated the README to reflect changes in Sealos description, features,
and deployment links.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Documentation**
* Added Sealos-related badges and links to the Self-Host section in the
README.
<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
|
||
|
|
255b4571c0 | chore: bump x86 mac ci | ||
|
|
2efb41fc1a | chore: change releaser | ||
|
|
027f741ed6 |
chore: bump deps (#14065)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Chores**
* Updated dependency versions across the monorepo (notably zod →
^3.25.76 and vitest-related packages → ^3.2.4), plus minor package bumps
to align tooling and libraries. These are manifest/test-tooling updates
only; no public API, behavior, or end-user features were changed.
<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
|
||
|
|
bc115baf35 | chore: update docs | ||
|
|
776ca2c702 | chore: bump version v0.25.7 v0.25.7-beta.0 | ||
|
|
903e0c4d71 |
chore: bump up nodemailer version to v7.0.11 [SECURITY] (#14062)
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [nodemailer](https://nodemailer.com/) ([source](https://redirect.github.com/nodemailer/nodemailer)) | [`7.0.9` -> `7.0.11`](https://renovatebot.com/diffs/npm/nodemailer/7.0.9/7.0.11) |  |  | ### GitHub Vulnerability Alerts #### [GHSA-rcmh-qjqh-p98v](https://redirect.github.com/nodemailer/nodemailer/security/advisories/GHSA-rcmh-qjqh-p98v) ### Summary A DoS can occur that immediately halts the system due to the use of an unsafe function. ### Details According to **RFC 5322**, nested group structures (a group inside another group) are not allowed. Therefore, in lib/addressparser/index.js, the email address parser performs flattening when nested groups appear, since such input is likely to be abnormal. (If the address is valid, it is added as-is.) In other words, the parser flattens all nested groups and inserts them into the final group list. However, the code implemented for this flattening process can be exploited by malicious input and triggers DoS RFC 5322 uses a colon (:) to define a group, and commas (,) are used to separate members within a group. At the following location in lib/addressparser/index.js: https://github.com/nodemailer/nodemailer/blob/master/lib/addressparser/index.js#L90 there is code that performs this flattening. The issue occurs when the email address parser attempts to process the following kind of malicious address header: ```g0: g1: g2: g3: ... gN: victim@example.com;``` Because no recursion depth limit is enforced, the parser repeatedly invokes itself in the pattern `addressparser → _handleAddress → addressparser → ...` for each nested group. As a result, when an attacker sends a header containing many colons, Nodemailer enters infinite recursion, eventually throwing Maximum call stack size exceeded and causing the process to terminate immediately. Due to the structure of this behavior, no authentication is required, and a single request is enough to shut down the service. The problematic code section is as follows: ```js if (isGroup) { ... if (data.group.length) { let parsedGroup = addressparser(data.group.join(',')); // <- boom! parsedGroup.forEach(member => { if (member.group) { groupMembers = groupMembers.concat(member.group); } else { groupMembers.push(member); } }); } } ``` `data.group` is expected to contain members separated by commas, but in the attacker’s payload the group contains colon `(:)` tokens. Because of this, the parser repeatedly triggers recursive calls for each colon, proportional to their number. ### PoC ``` const nodemailer = require('nodemailer'); function buildDeepGroup(depth) { let parts = []; for (let i = 0; i < depth; i++) { parts.push(`g${i}:`); } return parts.join(' ') + ' user@example.com;'; } const DEPTH = 3000; // <- control depth const toHeader = buildDeepGroup(DEPTH); console.log('to header length:', toHeader.length); const transporter = nodemailer.createTransport({ streamTransport: true, buffer: true, newline: 'unix' }); console.log('parsing start'); transporter.sendMail( { from: 'test@example.com', to: toHeader, subject: 'test', text: 'test' }, (err, info) => { if (err) { console.error('error:', err); } else { console.log('finished :', info && info.envelope); } } ); ``` As a result, when the colon is repeated beyond a certain threshold, the Node.js process terminates immediately. ### Impact The attacker can achieve the following: 1. Force an immediate crash of any server/service that uses Nodemailer 2. Kill the backend process with a single web request 3. In environments using PM2/Forever, trigger a continuous restart loop, causing severe resource exhaustion” --- ### Release Notes <details> <summary>nodemailer/nodemailer (nodemailer)</summary> ### [`v7.0.11`](https://redirect.github.com/nodemailer/nodemailer/blob/HEAD/CHANGELOG.md#7011-2025-11-26) [Compare Source](https://redirect.github.com/nodemailer/nodemailer/compare/v7.0.10...v7.0.11) ##### Bug Fixes - prevent stack overflow DoS in addressparser with deeply nested groups ([b61b9c0](https://redirect.github.com/nodemailer/nodemailer/commit/b61b9c0cfd682b6f647754ca338373b68336a150)) ### [`v7.0.10`](https://redirect.github.com/nodemailer/nodemailer/blob/HEAD/CHANGELOG.md#7010-2025-10-23) [Compare Source](https://redirect.github.com/nodemailer/nodemailer/compare/v7.0.9...v7.0.10) ##### Bug Fixes - Increase data URI size limit from 100KB to 50MB and preserve content type ([28dbf3f](https://redirect.github.com/nodemailer/nodemailer/commit/28dbf3fe129653f5756c150a98dc40593bfb2cfe)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "" (UTC), 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/toeverything/AFFiNE). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi4zMi4yIiwidXBkYXRlZEluVmVyIjoiNDIuMzIuMiIsInRhcmdldEJyYW5jaCI6ImNhbmFyeSIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> |