instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
TTLApp__time-to-leave__428
TTLApp/time-to-leave
428
defect
26b0f98d2a6fb2c64281af54fd4b558ccbbacff1
acd1df2989486ed3e344cd7f5629a23a66ebceb5
improve coverage for Preferences.js test
#### Related issue #386 #### Context / Background - Attempted to increase coverage of Preferences.js #### What change is being introduced by this PR? - Extracted functions in `Preferences.js` - Refactored some functions when there's a `change` event - Increased coverage to ~62% for `Preferences.js`
diff --git a/__tests__/__renderer__/preferences.js b/__tests__/__renderer__/preferences.js index a8e099694..68b64c13e 100644 --- a/__tests__/__renderer__/preferences.js +++ b/__tests__/__renderer__/preferences.js @@ -6,13 +6,18 @@ const path = require('path'); const { defaultPreferences, getPreferencesFilePa...
4
3
1
[{"id": "G0", "claim": "Test all the preference items, not just a couple, ideally through a shared test helper that takes the testPreferences object and checks that every rendered value matches it, avoiding code duplication.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id...
null
TTLApp__time-to-leave__466
TTLApp/time-to-leave
466
defect
df6014654482413096e501777dae02db1a9faddb
7fba1f11e2cdcac942b1d4ee3ac7c9e27cc3a65d
increased coverage for Preferences to ~75%
#### Related issue #386 #### Context / Background - Bumped preferences coverage to ~75% #### What change is being introduced by this PR? - Changes made to `testPreference` won't reflect on `DefaultPreferences` anymore. - Called `.trigger()` on the items when 'change' is fired. - Added a `istanbul ignore e...
diff --git a/__tests__/__renderer__/preferences.js b/__tests__/__renderer__/preferences.js index 3f0ea461d..65a130453 100644 --- a/__tests__/__renderer__/preferences.js +++ b/__tests__/__renderer__/preferences.js @@ -42,13 +42,18 @@ function prepareMockup() function changeItemValue(item, value) { testPreferences...
1
1
0
[{"id": "G0", "claim": "The commented-out 'Changing language from en to pt-BR' test should be removed rather than left as comments.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
TTLApp__time-to-leave__647
TTLApp/time-to-leave
647
defect
bf10fdc29374ace5c9dd26864e51b565ab504081
6636bfaa0fa64e01b52874a100d012c158687119
removing confirmation for empty entry #645
#### Related issue Closes #645 #### Context / Background When clicking the minus sign to remove a pair of entries, we are prompt with confirmation message for empty pairs also #### What change is being introduced by this PR? Removed confirmation for empty pairs. #### How will this be tested? <!-- - How w...
diff --git a/RELEASING.md b/RELEASING.md index 057d0ddd7..85728ad09 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -9,6 +9,7 @@ This will trigger the release action which creates a draft for the release notes After publushing the release: 1. Bump `changelog.md` to developer version (version + 1)-dev. Use the follo...
3
3
1
[{"id": "G0", "claim": "A commented-out console.log debug line was left in the added code.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The emptiness check should test the last and the second-to-last inputs, since the action removes the pair, ...
null
TTLApp__time-to-leave__880
TTLApp/time-to-leave
880
defect
b4e1519f27ef3e39e88c35d7f007e83025f89721
008611be6578107f88f7f0e4db26fb68a6cb9894
Improve user-preferences test
#### Related issue Closes #868 #### Context / Background Adds an extensive suite of tests to `user-preferences.js` and a couple of fixes as a consequence of these tests. #### What change is being introduced by this PR? I tried to get 100% coverage on the test going over all the functions. Some preferences l...
diff --git a/__tests__/__main__/user-preferences.js b/__tests__/__main__/user-preferences.js index acfec6545..d570ed2c7 100644 --- a/__tests__/__main__/user-preferences.js +++ b/__tests__/__main__/user-preferences.js @@ -1,9 +1,31 @@ /* eslint-disable no-undef */ 'use strict'; -const { defaultPreferences, getDefaul...
19
18
0
[{"id": "G0", "claim": "Add spaces after all the commas in the new test code to follow the project style.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Rename the 'Saving invalid language' test (the one saving the number 5) so its title differs from the ...
null
TTLApp__time-to-leave__895
TTLApp/time-to-leave
895
defect
15d4eb6a1f43baf854be8d61e41e85998d776481
81ad26283496d08ce819399aac0133a5b8ff3705
Preferences sort languages
#### Related issue Closes #863 #### Context / Background Languages codes in `app.config.js`, which are used to fill the values of the select options in preferences, were not sorted alphabetically giving some unexpected values. #### What change is being introduced by this PR? Language codes are now alphabeti...
diff --git a/__tests__/__main__/user-preferences.js b/__tests__/__main__/user-preferences.js index 67bb10506..a5099260a 100644 --- a/__tests__/__main__/user-preferences.js +++ b/__tests__/__main__/user-preferences.js @@ -4,6 +4,7 @@ const { booleanInputs, defaultPreferences, getDefaultWidthHeight, getPreferencesFilePa...
2
1
1
[{"id": "G0", "claim": "The Minerês easter-egg language, implemented under the 'dev' code, should remain sorted near the normal Português rather than under 'dev'.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "Wonders, tentatively, whether the sorti...
null
TTLApp__time-to-leave__908
TTLApp/time-to-leave
908
defect
6ff81438c0e291cc612737d791f8755c96bce39f
4e7321a07127acf7257afd91bb5f1d3f5a65b677
Close #907: Translate Time to Leave to Portuguese (pt-PT)
#### Related issue Closes #907 #### Context / Background I added the translation to Portuguese from Portugal (pt-PT) #### What change is being introduced by this PR? I have followed all the guidelines in the issue #475 to do the translation correctly, hope I didn't forget anything. ---- <!-- - If this PR ...
diff --git a/README.md b/README.md index a19fe89da..dd905da24 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ [Homepage](https://timetoleave.app/) <a href="docs/README-pt-BR.md"><img src="https://img.shields.io/badge/pt--BR-Portugu%C3%AAs-purple" alt="Esse documento também está disponível em Português (Brasi...
1
1
0
[{"id": "G0", "claim": "\"Quando for horas\" in the pt-PT README intro appears to be missing a verbal connector between \"for\" and \"horas\" (it should presumably be \"forem horas\").", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
TTLApp__time-to-leave__939
TTLApp/time-to-leave
939
defect
3040f66028c1df445b580b61eef80e4244d3daeb
e178d6eac1b74731900e61daf32d55415332d1e0
Refactor calendar and raise coverage
#### Related issue Not a specific issue but an attempt to raise the coverage #### Context / Background During a previous PR I was getting that the coverage was not enough so I started writing tests, but ended up being bigger than expected. So now I started to group tests and changes that are only related between t...
diff --git a/__tests__/__renderer__/classes/BaseCalendar.js b/__tests__/__renderer__/classes/BaseCalendar.js new file mode 100644 index 000000000..dadb23798 --- /dev/null +++ b/__tests__/__renderer__/classes/BaseCalendar.js @@ -0,0 +1,452 @@ +import ElectronStore from 'electron-store'; +import { BaseCalendar } from '.....
13
13
0
[{"id": "G0", "claim": "Add braces around the single-line if statement that throws for an unsupported view in CalendarFactory.getInstance.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Format the destructuring of ipcRenderer with spaces inside ...
null
TTLApp__time-to-leave__950
TTLApp/time-to-leave
950
defect
6ee667d76e231c1d7ad516859bb21ea812d6ed63
a499d6a44bd3a65a44f71e99aeca3c6baf30dcac
Close #937: Add Ukrainian [uk-UA] localization
#### Related issue Closes #937 #### Context / Background Adds Ukrainian localization #### What change is being introduced by this PR? Introduced localization into Ukrainian #### How will this be tested? * added test for getLanguageName ---- <!-- - If this PR is for translation, please mark the box be...
diff --git a/README.md b/README.md index fcb1214ac..ebe63137e 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,7 @@ <a href="docs/README-bn.md"><img src="https://img.shields.io/badge/bn-বাংলা-purple" alt="এই নথিও পাওয়া যায় বাংলায়"></a> <a href="docs/README-he.md"><img src="https://img.shields.io/badge/he-עברית-...
3
3
0
[{"id": "G0", "claim": "The new uk-UA assertion in the getLanguageName test should be placed after the zh-TW assertion so the list stays sorted by language code.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The translated Ukrainian README shou...
null
TTLApp__time-to-leave__957
TTLApp/time-to-leave
957
defect
25144813079cea8b2556543a01c6b27b213f0625
e20072dd2572d24314a6258085cad215e24a8afa
Fix ISO code for Catalan language
#### Context / Background The ISO code for the Catalonia is [ES-CT](https://en.wikipedia.org/wiki/Catalonia), not CA. Since the language is also spoken outside of Catalonia, I suggest not adding the ISO code to the shield.
diff --git a/README.md b/README.md index d14dd9eab..902af6f4e 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ <a href="docs/README-th-TH.md"><img src="https://img.shields.io/badge/th--TH-ภาษาไทย-purple" alt="เอกสารฉบับนี้มีให้บริการในรูปแบบภาษาไทย"></a> <a href="docs/README-fr-FR.md"><img src="https://img.sh...
1
1
1
[{"id": "G0", "claim": "The rename from 'ca-CA' to 'ca' is incomplete and leaves the tests failing - remaining references such as locales/ca-CA/translation.missing.json and the test expectation at __tests__/__main__/user-preferences.js#L481 still use 'ca-CA' and must be renamed/updated too (and the change should reach ...
null
TabbyML__tabby__2649
TabbyML/tabby
2,649
defect
3362daad049fd1859676b05b8e25d641bb3569f0
c608c7e08d4ab12b9c7069f92547f77f8d5aab08
feat(config): support configure input length
close https://github.com/TabbyML/tabby/issues/2638
diff --git a/crates/llama-cpp-server/src/lib.rs b/crates/llama-cpp-server/src/lib.rs index 5c6017797156..b96d9ec7049c 100644 --- a/crates/llama-cpp-server/src/lib.rs +++ b/crates/llama-cpp-server/src/lib.rs @@ -30,6 +30,7 @@ impl EmbeddingServer { model_path: &str, parallelism: u8, enable_fas...
4
4
1
[{"id": "G0", "claim": "The new supervisor parameter `llama_context_size` should be renamed to `context_size` per the suggestion block.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new `completion_max_input_length` field on ModelConfigGrou...
null
TabbyML__tabby__3463
TabbyML/tabby
3,463
defect
a03054c8e044c8fc57c10f28872d60a9641b860b
5d0f6afaf68d719c062729d0e9a148e460a11f4f
fix(index): delete skipped documents for StructuredDoc
created a pr: ![CleanShot X 2024-11-25 13 50 13](https://github.com/user-attachments/assets/fd1b1693-c728-475a-a7d1-f40b9f35e41d) close PR and reindex logs: ``` 2024-11-25T14:22:13.800883+08:00 [INFO]: Pulling source code for repository zwpaper/testing 2024-11-25T14:22:13.800956+08:00 [INFO]: Building source cod...
diff --git a/crates/tabby-index/src/structured_doc/public.rs b/crates/tabby-index/src/structured_doc/public.rs index 0832d48c8bb9..2b54a5b9731a 100644 --- a/crates/tabby-index/src/structured_doc/public.rs +++ b/crates/tabby-index/src/structured_doc/public.rs @@ -44,6 +44,15 @@ impl StructuredDocIndexer { true ...
2
2
2
[{"id": "G0", "claim": "The job's per-document loop should not branch on `state.should_clean` and delete in the caller; revert this change and let the indexer decide whether to delete the document based on `state` (as the suggested `if !index.add(state, doc).await` does).", "category": "design", "verdict": "supported",...
null
TabbyML__tabby__3513
TabbyML/tabby
3,513
defect
f931697578c7005ab3ed29f091a91a1dae193328
2481896c412618f76301be3c9d18b2f775ae05c1
feat(index): add indexed author_email field to issue and pull
![CleanShot 2024-12-05 at 18 57 43@2x](https://github.com/user-attachments/assets/cf50df6a-04e8-49b8-983f-ac3509877153)
diff --git a/crates/tabby-common/src/api/structured_doc.rs b/crates/tabby-common/src/api/structured_doc.rs index e524222af63d..8173e0495149 100644 --- a/crates/tabby-common/src/api/structured_doc.rs +++ b/crates/tabby-common/src/api/structured_doc.rs @@ -62,6 +62,7 @@ pub struct DocSearchWebDocument { pub struct DocSe...
4
4
1
[{"id": "G0", "claim": "Move the `pub field_failed_chunks_count: Field,` declaration to line 64 of IndexSchema, i.e. into the 'Fields for document' section.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "The comment above the ExistsQuery in do...
null
TabbyML__tabby__3577
TabbyML/tabby
3,577
defect
81de67bad8309cc361cdbd29f3fe8fd6998b3923
e695d5cbde17b9b57ff0b0c608e55158261cb44f
feat(index): add commit to CodeSearchDocument
this PR does: 1. check code indexes, and reindex if no commit field 2. index code with commit as a field 3. return commit in codeAttachment commit in response: ![CleanShot 2024-12-17 at 19 59 08@2x](https://github.com/user-attachments/assets/222d9ab7-16f6-433e-96b4-ff6f796bf44c)
diff --git a/crates/tabby-common/src/api/code.rs b/crates/tabby-common/src/api/code.rs index ecd4aafc12c5..a170b6b023e7 100644 --- a/crates/tabby-common/src/api/code.rs +++ b/crates/tabby-common/src/api/code.rs @@ -30,6 +30,7 @@ pub struct CodeSearchDocument { pub body: String, pub filepath: String, pub ...
3
3
2
[{"id": "G0", "claim": "The `commit` field should be marked optional for now and flipped back to required after two releases, instead of being a required field that defaults to an empty string.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pull requ...
null
TagStudioDev__TagStudio__1068
TagStudioDev/TagStudio
1,068
defect
4704b9280446070077cce9cc494762b2afd43606
ea8352c2b5ff71af433cbbb32160fed5f79d32c7
refactor: unwrap instead of assert not None
### Summary As discussed on discord, introduces an `unwrap` method which accepts an argument of type `T | None` and returns `T` or throws an exceptions if the argument is `None`. ### Tasks Completed - Platforms Tested: - [x] Windows x86 - [ ] Windows ARM - [ ] macOS x86 - [ ] macOS AR...
diff --git a/src/tagstudio/core/library/alchemy/library.py b/src/tagstudio/core/library/alchemy/library.py index 9dfdd8e71..fa69cf06b 100644 --- a/src/tagstudio/core/library/alchemy/library.py +++ b/src/tagstudio/core/library/alchemy/library.py @@ -84,6 +84,7 @@ ) from tagstudio.core.library.alchemy.visitors import S...
2
2
0
[{"id": "G0", "claim": "The `assert not self.id` in Tag.__init__ does not appear to serve a purpose and should be safe to remove.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "match_missing_file_entry should use the unwrap() method instead of...
null
TagStudioDev__TagStudio__1103
TagStudioDev/TagStudio
1,103
defect
7a8d34e190e09284e6ea06215849c216a3bcc3a7
c4aa3efbb5e0cf7ba878c97b88194800268a0dcb
refactor: fix most pyright issues in `library/alchemy/`
### Summary A version of #1067 that addresses the same Pyright issues in `src/tagstudio/core/library/alchemy/`, minus the large refactoring due to the [`reportImportCycles`](https://docs.basedpyright.com/v1.31.4/configuration/config-files/#reportImportCycles) error. ### Tasks Completed <!-- No requirements, just...
diff --git a/pyproject.toml b/pyproject.toml index 31210019b..bf88057f8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -85,7 +85,11 @@ ignore_errors = true qt_api = "pyside6" [tool.pyright] -ignore = ["src/tagstudio/qt/helpers/vendored/pydub/", ".venv/**"] +ignore = [ + ".venv/**", + "src/tagstudio/core/...
6
5
1
[{"id": "G0", "claim": "The NOTE comment added at the top of library.py misspells 'necessary' as 'nessisary' and should be corrected to the spelling given in the suggestion block.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "remove_tag should ac...
null
TagStudioDev__TagStudio__1129
TagStudioDev/TagStudio
1,129
defect
23323431b8bb98100c94274f04c4b86f171be82e
30d9403452cd2ec04ecf155ef9dbe551b9699a76
perf: Optimize searching tags with DB indexes
### Summary Create indexes on columns commonly used in queries. `Tag.name, Tag.shorthand` finding tags by name `TagParent.child_id` fetching tag hierarchies `TagEntry.entry_id` fetching entries with their tags Change query in `Library.search_tags` so it will use above indexes. Sort results before applying limit...
diff --git a/src/tagstudio/core/library/alchemy/library.py b/src/tagstudio/core/library/alchemy/library.py index a25231e95..5157de64e 100644 --- a/src/tagstudio/core/library/alchemy/library.py +++ b/src/tagstudio/core/library/alchemy/library.py @@ -75,7 +75,6 @@ DB_VERSION_LEGACY_KEY, JSON_FILENAME, SQL_...
5
4
2
[{"id": "G0", "claim": "Limiting the results before the priority sorting means the returned rows can differ from the behaviour when searching, since sorting no longer happens before truncation.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The manu...
null
TagStudioDev__TagStudio__1368
TagStudioDev/TagStudio
1,368
defect
a7b6636a0b3629e2d3ceb4fc6f2a1c3ac4260c4e
e7b30516acb9309fdf5076f304e1cc085bd6da8a
fix(ci): address remaining pyright errors
### Summary This PR addresses the remaining pyright errors present either by correcting the underlying issues or suppressing the errors where appropriate. Some warnings and basedpyright-specific issues were addressed as well. Unblocks #1232. ### Tasks Completed <!-- No requirements, just context for reviewe...
diff --git a/pyproject.toml b/pyproject.toml index 8051f01e9..5d7c4ddf0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -102,6 +102,7 @@ include = ["src/tagstudio", "tests"] reportAny = false reportIgnoreCommentWithoutRule = false reportImplicitStringConcatenation = false +reportImportCycles = false reportMissi...
2
2
0
[{"id": "G0", "claim": "The rawpy exception references in the except clause should be moved to a top-level import (as done in the other file) instead of qualifying them inline with pyright ignores.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "...
null
TagStudioDev__TagStudio__481
TagStudioDev/TagStudio
481
defect
2e8efa288d96a5f444e634e65602226d17268e19
33aa7866cf27db162025baaf85b321495a5bc981
Fix tag search to not require wildcards
Previously, searching for tags required % wildcards to be added either side in order to search for a tag without an exact match, however this removes that requirement.
diff --git a/tagstudio/src/core/library/alchemy/library.py b/tagstudio/src/core/library/alchemy/library.py index 72b3e4d39..6ad037c03 100644 --- a/tagstudio/src/core/library/alchemy/library.py +++ b/tagstudio/src/core/library/alchemy/library.py @@ -429,8 +429,8 @@ def search_tags( if search.tag: ...
2
1
1
[{"id": "G0", "claim": "Add a test for the wildcard-free tag search scenario so there is no regression in future.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "It would be better, though optional, to use @pytest.mark.parametrize() in the tag name looku...
null
TagStudioDev__TagStudio__503
TagStudioDev/TagStudio
503
defect
073d51734b0812beccf148a85d181539c97c9915
b5bb10400d61ce9ff2298036f7be2bcd11c89f0a
feat: store `Entry` suffix separately
Initially the main and only goal was to add the column for file suffix into `Entry` table. However having a new non-nullable column doesnt work with a previously created DB, so I added a popup showing error to make it obvious why it's not working. To write tests more easily, the library-opening-evaluating was ext...
diff --git a/tagstudio/src/core/constants.py b/tagstudio/src/core/constants.py index 64ff62142a..98e59e4337 100644 --- a/tagstudio/src/core/constants.py +++ b/tagstudio/src/core/constants.py @@ -7,7 +7,6 @@ TS_FOLDER_NAME: str = ".TagStudio" BACKUP_FOLDER_NAME: str = "backups" COLLAGE_FOLDER_NAME: str = "collages" -...
1
1
1
[{"id": "G0", "claim": "When the library's DB version differs from the expected one, the condition is not clearly surfaced — there is no log message explaining the version mismatch (and in practice no dialog either), so users only see a hard-to-interpret traceback.", "category": "correctness", "verdict": "supported", "...
null
TagStudioDev__TagStudio__534
TagStudioDev/TagStudio
534
defect
1c7aaf0a16c272d777899679b3c2822f4bab9798
715dbe04473b9d5fe4536970cb23a7a548605d72
fix: subtags/parent tags & aliases update the UI for building a tag
The following has moved to https://github.com/TagStudioDev/TagStudio/pull/596 <del>subtags can be added and removed when creating or editing a Tag <del> - parent tags would not be listed before <del> - parent tags could not be removed before <del>can exclude tags from the tag search panel <del> - it was...
diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000000..1e5f24e5fa --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,7 @@ +{ + "cSpell.words": [ + "Abendshien", + "qtbot", + "Voxel" + ] +} \ No newline at end of file diff --git a/tagstudio/src/core/library/alchemy...
15
15
11
[{"id": "G0", "claim": "Commenting out the existing tag-widget edit test is not convincing; the test should be re-enabled and properly implemented instead of disabled.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The whole .vscode directory should be ...
null
TagStudioDev__TagStudio__540
TagStudioDev/TagStudio
540
defect
68c166d8d34c3935324b485b92aed5803589b173
2b0ce83d5a06b5277059c5ce0b1117b3af634a82
feat: add svg thumbnail support (port #442)
*This PR is a port of #442 which previously targeted thumbnails/Alpha-v9.4 to main (aka v9.5x).* This adds thumbnail/preview support for SVG files.
diff --git a/tagstudio/src/qt/widgets/thumb_renderer.py b/tagstudio/src/qt/widgets/thumb_renderer.py index 83eb1c579..f715a1d82 100644 --- a/tagstudio/src/qt/widgets/thumb_renderer.py +++ b/tagstudio/src/qt/widgets/thumb_renderer.py @@ -28,8 +28,9 @@ from PIL.Image import DecompressionBombError from pillow_heif impor...
1
1
0
[{"id": "G0", "claim": "The isValid() check in _image_vector_thumb should be flipped to an early `if not svg.isValid(): raise UnidentifiedImageError` so the main rendering code is not nested inside the if branch.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
TagStudioDev__TagStudio__569
TagStudioDev/TagStudio
569
defect
d3c3e634b93353750c9fc810af9973e64e21de71
7add23e14ef5552a487f810b140d1263ae48ee15
feat: remove and create tags from tag database panel
Added a button in the tag database panel for creating new tags added ability to delete tags from the tag database panel ![image](https://github.com/user-attachments/assets/f52be386-af9e-46a5-8638-9d7ebcb39b30)
diff --git a/tagstudio/src/core/library/alchemy/library.py b/tagstudio/src/core/library/alchemy/library.py index 34267eab8..ebc316b68 100644 --- a/tagstudio/src/core/library/alchemy/library.py +++ b/tagstudio/src/core/library/alchemy/library.py @@ -546,6 +546,29 @@ def update_entry_path(self, entry_id: int | Entry, pat...
6
6
3
[{"id": "G0", "claim": "Connect the create-tag button directly with `self.build_tag` instead of wrapping it in the redundant `lambda: self.build_tag()`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Use `functools.partial(self.remove_tag, tag)`...
null
TagStudioDev__TagStudio__673
TagStudioDev/TagStudio
673
defect
40bfee050263cf105363f7dd7a8c70848449696c
c051442adcca40cb507a291e173d1bf4f6554a84
feat: implement parent tag search
Searching for a tag now includes entries that are only tagged with child tags of the tag. A search for `Nintendo` would therefore also include entries that only have the tag `Mario` or `Luigi` (assuming that `Nintendo` is a parent tag of `Mario` and `Luigi`). Close #661.
diff --git a/tagstudio/src/core/library/alchemy/visitors.py b/tagstudio/src/core/library/alchemy/visitors.py index 1756bb089..82299003f 100644 --- a/tagstudio/src/core/library/alchemy/visitors.py +++ b/tagstudio/src/core/library/alchemy/visitors.py @@ -1,6 +1,7 @@ from typing import TYPE_CHECKING -from sqlalchemy im...
2
1
0
[{"id": "G0", "claim": "The debug log message misspells \"ambiguous\" as \"ambiguos\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Query times can get very high (16+ seconds) for larger libraries and tag sets because the parent-tag search uses ...
null
TagStudioDev__TagStudio__722
TagStudioDev/TagStudio
722
defect
a1ab335dcb309cee1801de48429debd8d0420ea9
26faff5f1eff20ba0ff9106d70b72d9b72268ba7
feat: copy/paste fields and tags
implementing #660 using stuff from #79. copying and pasting fields and tags with ctrl+c & ctrl+v from one or several entries (copying only works with a single entry). i got the preview to update properly, but im having some issues updating the badge when pasting to several entries at once. the system for doing so seems...
diff --git a/tagstudio/resources/translations/en.json b/tagstudio/resources/translations/en.json index 921cb6713..86a885886 100644 --- a/tagstudio/resources/translations/en.json +++ b/tagstudio/resources/translations/en.json @@ -182,6 +182,8 @@ "preview.no_selection": "No Items Selected", "select.all": "Selec...
4
4
1
[{"id": "G0", "claim": "Rename the `copypaste` term in the translation keys to `edit` for clarity and consistency.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Pasting a group of tags to an entry which already contains one or more of those tag...
null
TagStudioDev__TagStudio__841
TagStudioDev/TagStudio
841
defect
8c90f21c13a7700f11d1fcc4611894fc817ecb17
17181319c9d29eb443fe2c013db9e224f6ff3266
feat: add setting to not display full file path
### Summary This PR adds the functionality described in #301, this being an option to not display the full file path but rather the path relative to a library or just the file name. - Displaying only the file name ![image](https://github.com/user-attachments/assets/f60323fd-2574-4871-af77-2c95a373da33) - Displ...
diff --git a/src/tagstudio/core/enums.py b/src/tagstudio/core/enums.py index 2a11a12fd..4d5cfe7c7 100644 --- a/src/tagstudio/core/enums.py +++ b/src/tagstudio/core/enums.py @@ -15,6 +15,7 @@ class SettingItems(str, enum.Enum): LIBS_LIST = "libs_list" WINDOW_SHOW_LIBS = "window_show_libs" SHOW_FILENAMES =...
1
1
1
[{"id": "G0", "claim": "Replace the hardcoded English filepath-option strings with a ShowFilepathOption int enum driving the combobox indexes and setting values, and add the base translation strings for the setting to en.json.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
TagStudioDev__TagStudio__952
TagStudioDev/TagStudio
952
defect
717690827438406f16a9545ce749e2ee43d70a62
18508a1b06d4afdbf3cc2789f61a6154ffec4b05
refactor(preview_panel): mvc split
### Summary Splits the current preview panel into View and Controller in accordance with the proposal in #950. ### Tasks Completed - Platforms Tested: - [x] Windows x86 - [ ] Windows ARM - [ ] macOS x86 - [ ] macOS ARM - [ ] Linux x86 - [ ] Linux ARM - Tested For: ...
diff --git a/pyproject.toml b/pyproject.toml index c173364f8..1ccb444e8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -84,7 +84,8 @@ qt_api = "pyside6" [tool.pyright] ignore = [".venv/**"] -include = ["src/tagstudio/**"] +include = ["src/tagstudio", "tests"] +extraPaths = ["src/tagstudio", "tests"] reportAny...
1
1
1
[{"id": "G0", "claim": "Renaming a tag raises 'TypeError: object of type 'bool' has no len()' in preview_panel_view.set_selection instead of visually updating the tag name.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
Talus-Network__nexus-sdk__141
Talus-Network/nexus-sdk
141
defect
72116c471db3fc9108096f40d1b3f03a581e0b43
368ded0367191ec685ef683207e57f5251f503ac
[nexus-sdk] Walrus client integration
## Notable changes - This pull request includes the development of an SDK that interacts with Walrus to fulfill the desired functionality. It primarily provides five core features: - File Upload - File Download - JSON Upload - JSON Read - Blob Verification The library within the SDK can be invoked either us...
diff --git a/sdk/Cargo.toml b/sdk/Cargo.toml index fb6a4c8e3..0fb817dfa 100644 --- a/sdk/Cargo.toml +++ b/sdk/Cargo.toml @@ -46,6 +46,10 @@ object_crawler = ["sui_types", "serde_json"] # used in the CLI and tests and hide away PTBs for various Nexus operations. transactions = ["sui_idents"] +# Walrus client feature...
7
7
3
[{"id": "G0", "claim": "The tokio dependency should use the narrower io-util feature instead of full (as the reviewer's suggestion block proposes) rather than pulling in all of tokio's features.", "category": "dependency", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The depe...
null
Talus-Network__nexus-sdk__143
Talus-Network/nexus-sdk
143
defect
3668ca360a2db0cce5e80e3afe6f39f909c1ede4
10d4a240cec071fd509722f9029bd05a7d08f95f
Chore: syncing md file names with gitbook UI
## Notable changes - Sync with a change made on the gitbook frontend to name markdown files with lowercase and hyphen - Add some extra clarification around entry groups / ports ref #128 - made `staging` the target branch for docs sync with gitbook-docs repo ## Checklist - [X] create or update documentation ...
diff --git a/.github/workflows/sync_docs.yml b/.github/workflows/sync_docs.yml index 40efdc4ea..176da630f 100644 --- a/.github/workflows/sync_docs.yml +++ b/.github/workflows/sync_docs.yml @@ -3,7 +3,7 @@ name: Sync Documentation on: push: branches: - - main # or your default branch + - staging ...
1
1
0
[{"id": "G0", "claim": "Fix the misspelling \"Ubiqutously\" to \"Ubiquitously\" in the glossary sentence in docs/index.md.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Talus-Network__nexus-sdk__149
Talus-Network/nexus-sdk
149
defect
823ff46251ed8abe9183197f8e35114d94786996
b1c713bc1b2dfbf03aa321221adbda77e50d1c59
Feat/tool walrus tool 1.endpoint is upload json
## Notable changes This pr includes are - The Walrus tool has been initialized, the main folder has been added, and a README.md file has been created. - The first tool, the JSON upload functionality, has been added. Necessary input definitions have been made. The tool output has been structured based on either th...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f79c09ea..fae5660bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `test_utils::contracts` now creates a `Move.lock` if it doesn't exist yet - Fixed a bug that erases the...
6
6
2
[{"id": "G0", "claim": "Every `err` response in the tools should carry error codes (machine-readable error kind/status) so future logical tools can match against a known code instead of parsing messages.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The...
null
Talus-Network__nexus-sdk__152
Talus-Network/nexus-sdk
152
defect
dc4828b7e1f3cf003247b881f77ebe304139967e
3f6f4e4e60a1fc5bc48f18171d83aedab9290eae
feat(tool): walrus tool 4.endpoint is download file
## Notable changes - This pull request covers the file download functionality within the Walrus tool. Users can download any file from Walrus by providing the blob id ## Checklist - [x] keep a changelog - [x] write tests - [ ] ~~create tickets for `TODO: <>` statements~~ - [ ] ~~create or update documentati...
diff --git a/Cargo.lock b/Cargo.lock index 8bc71ebb6..6dd36615c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1864,7 +1864,16 @@ version = "4.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ca3aa72a6f96ea37bbc5aa912f6788242832f75369bdfdadcb0e38423f100059" dependencies = [ - "dirs-sys...
5
5
3
[{"id": "G0", "claim": "The `aggregator_url` input should be typed as `Option<Url>` from `reqwest::Url` so it parses automatically, making sure the schema is generated correctly (possibly by hinting a regex via a doc).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1"...
null
Talus-Network__nexus-sdk__215
Talus-Network/nexus-sdk
215
defect
c5274b3709dba6c22d1b8b2e30262055ff235e0c
aea732b28d4e68a3fea321d6403465c4c84cbe53
fix: Prevent URL scheme injection attacks in meta_handler
## Notable changes ## Description This PR adds validation for the X-Forwarded-Proto header in the meta_handler function to prevent potential URL injection attacks. The change ensures that only 'http' and 'https' schemes are allowed, rejecting any potentially malicious schemes that could lead to security vulnerabili...
diff --git a/toolkit-rust/src/runtime.rs b/toolkit-rust/src/runtime.rs index 21d733e9a..038c44ca9 100644 --- a/toolkit-rust/src/runtime.rs +++ b/toolkit-rust/src/runtime.rs @@ -223,6 +223,20 @@ async fn meta_handler<T: NexusTool>( // // Ref: https://github.com/Talus-Network/nexus-sdk/issues/77 let scheme...
1
1
0
[{"id": "G0", "claim": "The change reformatting the input_deserialization_error details (adding a 'Failed to parse input:' prefix and keeping only the first line) is of unclear necessity and should be motivated or reverted.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"...
null
Talus-Network__nexus-sdk__28
Talus-Network/nexus-sdk
28
defect
6f2d868b71778fcfba1ee8b30674997846710acb
0ce0b29d5be28d8dca6c71325e33f88355d11c73
[nexus-tool] some i64 math tools
Adding some basic math operations as tools and a DAG using them for testing. Also overhauled Nexus Tool runtime, simplifying the interface and allowing for Tool bundling (it was needed as running a webserver to add 2 numbers is a bit excessive). ``` #[tokio::main] async fn main() { nexus_toolkit::bootstrap...
diff --git a/.gitignore b/.gitignore index 71b95ecc6..2c5669be3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ # Build files -target \ No newline at end of file +target + +# Environment +.env diff --git a/Cargo.lock b/Cargo.lock index ac0c127d8..659bf440e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3426,7 +...
4
4
0
[{"id": "G0", "claim": "The doc comment of the newly added `path()` trait method says it defaults to '/' with a trailing slash, while the default implementation returns an empty string, so the returned value may not match the description.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope":...
null
Talus-Network__nexus-sdk__62
Talus-Network/nexus-sdk
62
defect
e0228760464113c5c4f8dea14c1092c9facedb49
8eeda0a21a64cddb72014b4c5632a27842b35ace
[sdk] improved wallet structure + licence
- creating ephemeral wallet context instead of in mem keystore - test env for publishing packages - changed licence to apache 2 --- references https://github.com/Talus-Network/nexus-next/issues/101 references #52
diff --git a/.gitignore b/.gitignore index c71956bd4..ba5c3ce34 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,6 @@ # Build files target sdk/tests/move/object_crawler_test/build -sdk/tests/move/object_crawler_test/Move.lock # Environment .env diff --git a/Cargo.lock b/Cargo.lock index 80b95f778..8ed5f8360 1...
1
1
1
[{"id": "G0", "claim": "Adding a license requires adding the actual license text (per each license's own application requirements), and the PR must clarify what applying the Apache-2.0 license contributes and what approving it means in relation to #52, rather than using a license as a placeholder.", "category": "docume...
null
TanStack__db__1082
TanStack/db
1,082
defect
cebf933c2c468181e7e9de949d31ef429f254496
e5cb7801caafb7e03017479d1313625f51b78ca5
Fix QueryCompilationError with undefined expression type
…perator usage When users accidentally use JavaScript's comparison operators (===, !==, <, >, etc.) in where() callbacks instead of query builder functions (eq, gt, etc.), the query builder now throws a helpful InvalidWhereExpressionError with clear guidance. Previously, this mistake would result in a confusing "...
diff --git a/.changeset/fix-invalid-where-expression.md b/.changeset/fix-invalid-where-expression.md new file mode 100644 index 0000000000..5ae372f7de --- /dev/null +++ b/.changeset/fix-invalid-where-expression.md @@ -0,0 +1,14 @@ +--- +'@tanstack/db': patch +--- + +Add validation for where() and having() expressions t...
1
1
0
[{"id": "G0", "claim": "The expression-validation block added at line 421 is an exact copy of the one at L365-378, so it should be extracted into a helper function used in both places, probably turning the valueType constant into a function.", "category": "maintainability", "verdict": "supported", "priority": "P2", "sc...
null
TanStack__db__1114
TanStack/db
1,114
defect
26fad771835237a22414f4e748a9a15015a7f127
bcf96276fe8dae103e744941007ad4cfdae02749
fix(db): batch D2 output callbacks to prevent duplicate key errors in joins
## Summary Fixes `isReady()` returning `true` while `toArray()` returns `[]`. Also fixes a latent bug that was exposed by the timing fix. --- ## The Bug Report > I have a case where `collection.toArray` is empty, but `collection.isReady()` is already true. Just to confirm, isReady should only be true once the query...
diff --git a/.changeset/fix-live-query-join-duplicates.md b/.changeset/fix-live-query-join-duplicates.md new file mode 100644 index 0000000000..77a95d163d --- /dev/null +++ b/.changeset/fix-live-query-join-duplicates.md @@ -0,0 +1,7 @@ +--- +'@tanstack/db': patch +--- + +Fix `isReady()` returning `true` while `toArray(...
1
1
0
[{"id": "G0", "claim": "Keep the accumulateChanges helper function instead of inlining its logic in the output callback.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
TanStack__db__1130
TanStack/db
1,130
defect
d9c663c1874b1717d72bf289277d45e875e36bc2
d75453caae58c15b434051b23860e6fd924f36ba
Fix syncedData not updating on manual writes in mutationFn
## Summary Manual write operations (`writeUpsert`, `writeInsert`, `writeUpdate`, `writeDelete`) now correctly update `syncedData` when called from within mutation handlers that include async operations. Previously, `syncedData` would appear stale until the next sync cycle. --- ## Root Cause The bug occurs in this s...
diff --git a/.changeset/fix-synced-data-writes.md b/.changeset/fix-synced-data-writes.md new file mode 100644 index 0000000000..82aa30f77b --- /dev/null +++ b/.changeset/fix-synced-data-writes.md @@ -0,0 +1,6 @@ +--- +'@tanstack/db': patch +'@tanstack/query-db-collection': patch +--- + +Fix syncedData not updating when...
1
1
0
[{"id": "G0", "claim": "The `t.immediate === true` check (and the same `t.truncate === true` check three lines above) can be shortened to truthiness checks since the fields are booleans.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
TanStack__db__1192
TanStack/db
1,192
defect
908d6dba282e688d26fa86a03775b124bdf249fb
3f23362f8abab3f0cfa48319365e830087bf01a7
fix(db): track loadSubset promise for on-demand live queries
## Summary Fixes `isReady` tracking for on-demand live queries. This PR addresses two related issues: 1. **Non-ordered queries**: Were incorrectly marked as ready before data finished loading 2. **Ordered queries with paging**: Could hang indefinitely when multiple live queries share a source collection or when pagin...
diff --git a/.changeset/fix-on-demand-isready.md b/.changeset/fix-on-demand-isready.md new file mode 100644 index 0000000000..c49e8e4ae9 --- /dev/null +++ b/.changeset/fix-on-demand-isready.md @@ -0,0 +1,6 @@ +--- +'@tanstack/db': patch +'@tanstack/query-db-collection': patch +--- + +Fix `isReady` tracking for on-deman...
2
2
0
[{"id": "G0", "claim": "The subscription loading-promise creation block is duplicated at line 93 and line 141 and should be extracted into a shared function.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The change introduces yet more state var...
null
TanStack__db__1211
TanStack/db
1,211
defect
d45e0dc8e1ca423817be6d61d8883faddce58715
c2ed7adedf3a52128d75d924166456186ebb95b1
Query once API implementation
## 🎯 Changes Implements the `queryOnce` API, enabling one-shot execution of queries. This function creates a temporary live query collection, preloads data, extracts results, and automatically cleans up the collection. This is useful for scenarios where a persistent live query is not needed, such as: - AI/LLM contex...
diff --git a/.changeset/query-once-api.md b/.changeset/query-once-api.md new file mode 100644 index 0000000000..79398af272 --- /dev/null +++ b/.changeset/query-once-api.md @@ -0,0 +1,5 @@ +--- +'@tanstack/db': minor +--- + +Add `queryOnce` helper for one-shot query execution, including `findOne()` support and optional ...
1
1
0
[{"id": "G0", "claim": "The reviewer asks what the purpose of `first ?? undefined` is and whether `first` could be null, implying the explicit conversion to undefined may be redundant.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
TanStack__db__1274
TanStack/db
1,274
defect
66d3cd0c9ad7f8505387c639348bb70b6b349d4d
7da55cbcac61196fd8b1894c19be12c7e21684f3
fix(db): support aggregates nested inside expressions (#720)
## Summary Fixes https://github.com/TanStack/db/issues/720. Aggregates wrapped inside other expressions (e.g. `coalesce(count(...), 0)`) threw `QueryCompilationError: Unknown expression type: agg` because the compiler only recognized top-level aggregates in SELECT, not aggregates nested inside function expressions. ...
diff --git a/.changeset/support-nested-aggregates.md b/.changeset/support-nested-aggregates.md new file mode 100644 index 0000000000..f7ec16621e --- /dev/null +++ b/.changeset/support-nested-aggregates.md @@ -0,0 +1,5 @@ +--- +'@tanstack/db': patch +--- + +fix: support aggregates nested inside expressions (e.g. `coales...
3
3
2
[{"id": "G0", "claim": "Synthetic `__agg_{n}` keys are exposed on the projected result rows.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "None of the new tests check the exact data on the projected rows, so they fail to validate that no extra keys...
null
TanStack__db__1300
TanStack/db
1,300
defect
49c9374a27b0cc543107f970cddb24829109f6bc
9dce67929c4355424ec67c33e0d66b49a4dfa86b
fix(offline-transactions): enforce strict FIFO when retries are pending
## Summary Enforce strict FIFO ordering in `KeyScheduler.getNextBatch` so that a transaction waiting for retry delay blocks all later transactions from executing. Previously, later transactions could jump the queue, causing dependent UPDATE-before-INSERT failures. ## Root Cause `getNextBatch` used `.find()` to locat...
diff --git a/.changeset/fix-keyscheduler-strict-fifo.md b/.changeset/fix-keyscheduler-strict-fifo.md new file mode 100644 index 0000000000..3d9d550687 --- /dev/null +++ b/.changeset/fix-keyscheduler-strict-fifo.md @@ -0,0 +1,5 @@ +--- +'@tanstack/offline-transactions': patch +--- + +Fix KeyScheduler to enforce strict F...
1
1
0
[{"id": "G0", "claim": "getNextBatch has return type Array<OfflineTransaction> but it always returns 0 or 1 transactions, so OfflineTransaction | undefined or OfflineTransaction | null would be slightly more precise.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
TanStack__db__1301
TanStack/db
1,301
defect
fdf9d2d5afee5c149667b8be5320c498ac455856
36ec2397ec367de1dc25d256a84503318793b1e9
fix(offline-transactions): infinite retries by default and online-status gating
## Fix offline transaction retry behavior and add online-status gating Transactions were being permanently dropped after 10 failed retries, and retry attempts were wasted while the device was offline. Both issues are now fixed — retries are infinite by default and gated on connectivity. ## Root Cause Two separate is...
diff --git a/.changeset/fix-offline-retry-and-online-gating.md b/.changeset/fix-offline-retry-and-online-gating.md new file mode 100644 index 0000000000..47f1f39532 --- /dev/null +++ b/.changeset/fix-offline-retry-and-online-gating.md @@ -0,0 +1,5 @@ +--- +'@tanstack/offline-transactions': patch +--- + +Fix retry behav...
1
1
0
[{"id": "G0", "claim": "In `toConnectivityState`, `state.isConnected === true` could be written more simply as `state.isConnected`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
TanStack__db__1317
TanStack/db
1,317
defect
3ca70b9f0291cbd0a4e72304b981979d2262072a
1296aee725efbebf6f08b8dfbcc269138556344c
Docs for includes
Add an Includes section to `docs/guides/live-queries.md` covering: - Basic includes with correlation conditions - Additional filters including parent-referencing WHERE clauses - Ordering and limiting per parent - `toArray()` for plain array results - Aggregates per parent - Nested includes
diff --git a/docs/guides/live-queries.md b/docs/guides/live-queries.md index b69689e16b..7ea66612c7 100644 --- a/docs/guides/live-queries.md +++ b/docs/guides/live-queries.md @@ -37,6 +37,7 @@ The result types are automatically inferred from your query structure, providing - [Select Projections](#select) - [Joins](#j...
2
1
1
[{"id": "G0", "claim": "Docs should be added for using includes in React, since child collections need to be passed to a subcomponent with its own useLiveQuery(childCollection).", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The includes runtime k...
null
TanStack__db__1370
TanStack/db
1,370
defect
1270156c5982a62cc68adf02b88331381b130fc4
962ed2f33c7158fe9a3ef710dc075d8b5a7a0438
fix(db, db-ivm): support Temporal objects in join hashing and normalization
Temporal objects (e.g. `Temporal.PlainDate`) break live query updates when joins are involved. Simple queries without joins work fine. Incorporates #1368 by @goatrenterguy (Ben Guericke) which provides the core hash fix and tests. ## Root Cause The structural hash function in `db-ivm` uses `Object.keys()` to hash ob...
diff --git a/.changeset/fix-temporal-join-hashing.md b/.changeset/fix-temporal-join-hashing.md new file mode 100644 index 0000000000..3b8e13b453 --- /dev/null +++ b/.changeset/fix-temporal-join-hashing.md @@ -0,0 +1,6 @@ +--- +'@tanstack/db': patch +'@tanstack/db-ivm': patch +--- + +Fix Temporal objects breaking live q...
4
2
0
[{"id": "G0", "claim": "Replace the newly introduced `as any` casts in hash.ts with proper type guards, by defining a TemporalLike type and making isTemporal a type guard so hashTemporal needs no unsafe casts.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1"...
null
TanStack__db__186
TanStack/db
186
defect
e15ecd4cab2c852ba78a996b0443a7238f69bf32
91ba3488e8563bff23034d2054d123d57d3c3605
If a schema is passed, use that for the collection type
You now must either pass an explicit type or schema - passing both will conflict. I also removed the broken `preloadCollection` so I didn't have to fix its types 😆 the plan is make collections lazy by default and expose a `.start()` method which returns a promise that resolves when the collection finishes loading. ...
diff --git a/.changeset/tiny-adults-shave.md b/.changeset/tiny-adults-shave.md new file mode 100644 index 0000000000..38bbfed71e --- /dev/null +++ b/.changeset/tiny-adults-shave.md @@ -0,0 +1,8 @@ +--- +"@tanstack/db-collections": patch +"@tanstack/db": patch +--- + +If a schema is passed, use that for the collection t...
1
1
0
[{"id": "G0", "claim": "An `else` should be added to the insert/update/delete branch chain that throws a \"this should never happen\" error (triggering a debugger in dev), because if the branch logic is wrong the error is currently silently eaten.", "category": "correctness", "verdict": "supported", "priority": "P2", "...
null
TanStack__db__30
TanStack/db
30
defect
d8c07211e4904f68941d77cceb540bb72029700c
b67835223c02edf03e5632b32f80ac2a339a0166
feat: subscribeChanges
This adds a few public APIs: - `collection.derivedChanges` is a tanstack/store `Derived` state, it is replaced with the latest changes (insert/update/delete) each time the derived state changes. This can be used inside an `Effect` along with other collections to essentially subscribe to a set of charges across the c...
diff --git a/packages/optimistic/src/collection.ts b/packages/optimistic/src/collection.ts index f525ac2752..c85d448a00 100644 --- a/packages/optimistic/src/collection.ts +++ b/packages/optimistic/src/collection.ts @@ -155,10 +155,11 @@ export class Collection<T extends object = Record<string, unknown>> { public opt...
4
4
1
[{"id": "G0", "claim": "The `if (changes.length > 0)` guard around the inserted-key assertions in the test is unnecessary because the preceding length expectation should already fail if the changes are empty.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"...
null
TanStack__db__314
TanStack/db
314
defect
cd30e09aa57c673592cfad29c083d1dca85ac651
af65503a6aeba172098aacad2743c6123d771853
Configuration options for sortBy
Fixes https://github.com/TanStack/db/issues/212 and fixes https://github.com/TanStack/db/issues/229 by adding a configuration argument to `orderBy`: ```ts orderBy( callback: OrderByCallback<TContext>, options: OrderByDirection | OrderByOptions = `asc` ) type OrderByOptions = { direction?: OrderByDirectio...
diff --git a/.changeset/late-icons-fly.md b/.changeset/late-icons-fly.md new file mode 100644 index 0000000000..172c6113c2 --- /dev/null +++ b/.changeset/late-icons-fly.md @@ -0,0 +1,5 @@ +--- +"@tanstack/db": patch +--- + +Configurable ordering of null values in orderBy diff --git a/packages/db/src/query/builder/index...
4
3
1
[{"id": "G0", "claim": "Suggests the orderBy null-ordering default mimic PostgreSQL's, where NULLS FIRST is the default for DESC order and NULLS LAST otherwise, instead of the PR's default of always nulls first.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim"...
null
TanStack__db__405
TanStack/db
405
defect
bbed2f250e4f01520d966b0fff34f32c7e654fda
30eae17e251815bd7fa898636f14e4cfbd04589e
Modify topK and orderBy to track by key instead of by object reference
This PR modifies the topK and orderBy operators. Previoiusly, the topK was computing a topK per key and it tracked multiplicities for each value associated to that key. We were always keying by `null` in ts/db and the values were entire rows, i.e. objects. However, the objects are always different objects (even for the...
diff --git a/.changeset/polite-islands-kiss.md b/.changeset/polite-islands-kiss.md new file mode 100644 index 0000000000..15a30d8b1d --- /dev/null +++ b/.changeset/polite-islands-kiss.md @@ -0,0 +1,6 @@ +--- +"@tanstack/db-ivm": patch +"@tanstack/db": patch +--- + +Fix bug with orderBy that resulted in query results ha...
2
1
0
[{"id": "G0", "claim": "The test was changed to reuse one object reference for key1's insert and removal, and the reviewer asks whether a test exists that explicitly exercises the operator with a new object reference for the same key.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduc...
null
TanStack__db__410
TanStack/db
410
defect
6b51914066173e8c5b4b4b5da1b08808839aeb2f
45b9c0854974560805eaeffa2ba347898527017e
Optimized order by that lazily loads more data when needed
This PR optimizes the `orderBy` operator by only loading the first `limit + offset` rows into the query pipeline. If later more rows are needed (e.g. because some rows are updated or deleted), then it lazily loads more rows until the query results contain `limit` rows again (or there are no more rows available). Thi...
diff --git a/.changeset/sour-emus-count.md b/.changeset/sour-emus-count.md new file mode 100644 index 0000000000..dcceba53e4 --- /dev/null +++ b/.changeset/sour-emus-count.md @@ -0,0 +1,6 @@ +--- +"@tanstack/db-ivm": patch +"@tanstack/db": patch +--- + +Optimize joins to use index on the join key when available. diff -...
6
3
1
[{"id": "G0", "claim": "A tracking issue should be made for the lazy-load optimization's single-column limitation, and a first step might be to use the index for the first column of a composite orderBy.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A co...
null
TanStack__db__434
TanStack/db
434
defect
25c43cdae02c586fcad2a1b661ab620643093bcf
127c940372433a36281b5efd4ab5e8d4234a7adc
fix: handle Temporal objects correctly in proxy deepClone and deepEqual
## Summary - Fixes an issue where Temporal objects (like `Temporal.ZonedDateTime`) were being converted to empty objects during proxy tracking operations - Adds proper support for all Temporal API objects in the proxy's `deepClone` and `deepEqual` functions - Prevents unnecessary proxy creation for immutable Temporal o...
diff --git a/.changeset/thick-singers-appear.md b/.changeset/thick-singers-appear.md new file mode 100644 index 0000000000..8e541b42fe --- /dev/null +++ b/.changeset/thick-singers-appear.md @@ -0,0 +1,11 @@ +--- +"@tanstack/db": patch +--- + +Fix handling of Temporal objects in proxy's deepClone and deepEqual functions...
7
5
1
[{"id": "G0", "claim": "collection.ts's own deep-equality check does not handle Temporal objects the way the PR's proxy.ts changes do, so live query results get out of sync with the store data after a refetch; it needs logic like proxy.ts's, e.g. by cherry-picking the offered commit that unifies the scattered deep-equa...
null
TanStack__db__511
TanStack/db
511
defect
bafeaa1e9f161ac2200ce86537e442b2aa8e2a5b
4b9660bcac8c122c6fba6f0668161ab04565a1ef
fix chains joins
Fixes #474 - the bug is entirely with the validation logic. replaces #475
diff --git a/.changeset/seven-eggs-beam.md b/.changeset/seven-eggs-beam.md new file mode 100644 index 0000000000..6c06752bbf --- /dev/null +++ b/.changeset/seven-eggs-beam.md @@ -0,0 +1,5 @@ +--- +"@tanstack/db": patch +--- + +fix a bug that prevented chains joins (joining collectionB to collectionA, then collectionC t...
1
1
0
[{"id": "G0", "claim": "The changeset's summary text contains a typo: \"that prevented chains joins\" should read \"that prevented chaining joins\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
TanStack__db__604
TanStack/db
604
defect
59b406edb57a087f440eace8fc6a75453d91796e
72eef560c0b5e12f5ba7edb50a2a938046dbaa52
fix repeated renders when markReady called when collection already ready
This fixes #597 We were emitting an empty change event whenever `markReady` was called, which would happed after each Electric long polling request returned. The code that triggers these additional empty events was added in #532 to fix a suck loading state. That PR introduced a test case that failed without this ...
diff --git a/.changeset/polite-eels-laugh.md b/.changeset/polite-eels-laugh.md new file mode 100644 index 0000000000..381432686d --- /dev/null +++ b/.changeset/polite-eels-laugh.md @@ -0,0 +1,6 @@ +--- +"@tanstack/electric-db-collection": patch +"@tanstack/db": patch +--- + +Fix repeated renders when markReady called w...
5
3
0
[{"id": "G0", "claim": "Maybe remove setStatus entirely, keeping proper functions where more logic can be placed when needed.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The error message wording should be changed to `You can't directly call \"setSt...
null
TanStack__db__728
TanStack/db
728
defect
2d4d5e121a9c5f25622f461648ebfb641c46b553
5d0b3ce684f891cbd6f9f66a138ef48548a042bc
Enable auto-indexing for nested field paths
This fix allows auto-indexes to be created for nested field paths (e.g., `profile.score`, `metadata.stats.views`), not just top-level fields. This resolves performance issues where queries with `eq()`, `gt()`, etc. on nested fields were forced to do full table scans instead of using indexes. Changes: - Remove the `...
diff --git a/packages/db/src/indexes/auto-index.ts b/packages/db/src/indexes/auto-index.ts index f9387c968a..121825ed01 100644 --- a/packages/db/src/indexes/auto-index.ts +++ b/packages/db/src/indexes/auto-index.ts @@ -44,14 +44,25 @@ export function ensureIndexForField< // Create a new index for this field using ...
2
2
0
[{"id": "G0", "claim": "Auto-indexes should not be named by joining the field path with underscores, because different paths could produce the same name; they should use a conflict-free format like \"auto:path.to.field\".", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"i...
null
TanStack__db__732
TanStack/db
732
defect
673824791bcfae04acf42fc35e5d6d8755adceb2
db75cc723dddf92bc905476da49ae2daedcc4a6b
Fix: Optimizer Missing Final Step - Combine Remaining WHERE Clauses
## Overview Fixes issue #445 - performance issue when using multiple `.where()` calls. The root cause was broader than initially identified: **the optimizer was missing "step 3"** (combining remaining WHERE clauses), affecting both queries with and without joins. ## Problem Analysis ### The Optimizer's Intende...
diff --git a/.changeset/optimize-multiple-where-clauses.md b/.changeset/optimize-multiple-where-clauses.md new file mode 100644 index 0000000000..6f2d55850a --- /dev/null +++ b/.changeset/optimize-multiple-where-clauses.md @@ -0,0 +1,10 @@ +--- +"@tanstack/db": patch +--- + +Fixed performance issue where using multiple...
1
1
0
[{"id": "G0", "claim": "Remove the reference to issue #445 from the code comment in packages/db/src/query/optimizer.ts.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
TanStack__db__779
TanStack/db
779
defect
5078c4a4d29b1f2d3279fa8e6b851a01e38b7cef
bee92eeae170512f9235d9a6df10e11ae88f6952
Hash small Uint8Arrays (≤128 bytes) by content rather than reference
Small Uint8Arrays (≤128 bytes) are now hashed by their content rather than by reference, enabling proper equality comparisons for binary IDs like ULIDs (16 bytes). Large arrays (>128 bytes) continue to be hashed by reference to avoid performance costs. This allows the `eq` expression function to correctly compare bi...
diff --git a/.changeset/fix-uint8array-comparison.md b/.changeset/fix-uint8array-comparison.md new file mode 100644 index 0000000000..d41bb47f9e --- /dev/null +++ b/.changeset/fix-uint8array-comparison.md @@ -0,0 +1,6 @@ +--- +"@tanstack/db": patch +"@tanstack/db-ivm": patch +--- + +Fix Uint8Array/Buffer comparison to ...
1
1
0
[{"id": "G0", "claim": "hashUint8Array should call a public writeByte method instead of bypassing the private _writeByte with a @ts-expect-error comment.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
TanStack__db__845
TanStack/db
845
defect
7cd4dde1fba239da4374555375c9c3425b92496e
85d2d7564aded93dce79e15b39f8a395da0dd6ac
Fix localStorage collections for numeric IDs
Fixes https://github.com/TanStack/db/issues/397 Fix localStorage collections failing to update/delete items with numeric IDs. Previously, operations would target the wrong item or fail entirely when using numeric IDs (e.g., `id: 1`, `id: 2`) after the page reloaded, due to a type mismatch between numeric keys in mem...
diff --git a/.changeset/fix-numeric-id-localStorage.md b/.changeset/fix-numeric-id-localStorage.md new file mode 100644 index 0000000000..6ddf6060c9 --- /dev/null +++ b/.changeset/fix-numeric-id-localStorage.md @@ -0,0 +1,5 @@ +--- +"@tanstack/db": patch +--- + +Fix localStorage collections failing to update/delete ite...
4
4
3
[{"id": "G0", "claim": "The `__number__` prefix is not a proper solution because a numeric key 1 can still collide with a string key that is literally \"__number__1\", and a proper encoding scheme that encodes both the type and the stringified value should be applied to all supported key types.", "category": "correctne...
null
TanStack__db__851
TanStack/db
851
defect
db764b74c105c1bf52f14a1ea234679b0bfd44ac
348d1389faa7962f63c5287d9967ab11d60ed192
Always pass where clause to loadSubset
Fixes https://github.com/TanStack/db/issues/819 The root cause was the `convertToBasicExpression` function that would filter out operations we can't (or currently don't) index. However, filtering those operators out here is unnecessary because the `extractIndexableExpressions` function also does the filtering. Hence...
diff --git a/.changeset/poor-walls-taste.md b/.changeset/poor-walls-taste.md new file mode 100644 index 0000000000..2193e6a837 --- /dev/null +++ b/.changeset/poor-walls-taste.md @@ -0,0 +1,5 @@ +--- +"@tanstack/db": patch +--- + +Pass all operators in where clauses to the collection's loadSubset function diff --git a/p...
1
1
0
[{"id": "G0", "claim": "The PR modifies pnpm-lock.yaml even though there are no package.json changes, and the reviewer does not see why that change is needed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
TanStack__db__875
TanStack/db
875
defect
66603d79fe384bf9c99d9bb3015ef8f9f3617bcb
01f8671003a814704b05254c3d0db2d8a47e585b
Throw a clear error when anything other than an object with an collection is passed to "from"
Fixes #873 The issue was that users were getting a confusing error message when passing a string (or other invalid type) to the .from() method instead of an object with a collection. For example: ```javascript // Incorrect usage q.from("conversations") // String instead of object // Correct usage q.from({...
diff --git a/.changeset/improve-from-clause-error-messages.md b/.changeset/improve-from-clause-error-messages.md new file mode 100644 index 0000000000..ce7b5a2b1b --- /dev/null +++ b/.changeset/improve-from-clause-error-messages.md @@ -0,0 +1,5 @@ +--- +"@tanstack/db": patch +--- + +Improved error messages when invalid...
1
1
0
[{"id": "G0", "claim": "The duplicated 'Invalid source' error strings should be moved into errors.ts as a dedicated error class and used in all four throw sites instead of duplicating the strings.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
TanStack__db__910
TanStack/db
910
defect
489ed26d8674d141a2e4675804205130b0946482
752fa93bd9e8842e95735bb77c6e7fe17c46e58a
Fix change tracking for array items accessed via iteration methods (find, forEach, for...of, etc.)
Previously, modifications to array items retrieved via iteration methods were not tracked by the change proxy because these methods returned raw array elements instead of proxied versions. This caused `getChanges()` to return an empty object, which in turn caused `createOptimisticAction`'s `mutationFn` to never be call...
diff --git a/.changeset/fix-array-iteration-proxy.md b/.changeset/fix-array-iteration-proxy.md new file mode 100644 index 0000000000..449cb09356 --- /dev/null +++ b/.changeset/fix-array-iteration-proxy.md @@ -0,0 +1,18 @@ +--- +"@tanstack/db": patch +--- + +Fix change tracking for array items accessed via iteration met...
2
2
0
[{"id": "G0", "claim": "The proxy `get` method, which the new array-iteration branch inflated to a ~450-line function, should be broken up — at minimum by moving this branch out into a helper function for handling iteration.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced...
null
TanStack__db__943
TanStack/db
943
defect
94ebec7bb5ce612454bcea34e7ee8ac7aae0e6a2
459b74197a1b794a77a24a2a51711f598ffcaede
Find whereExpression examples in subscribeChanges
Add a `where` callback option to `SubscribeChangesOptions` that allows filtering changes using query builder functions (eq, gt, and, etc.) with a row proxy, instead of requiring manual IR construction with PropRef. Before: ```ts import { eq, PropRef } from "@tanstack/db" collection.subscribeChanges(callback, { ...
diff --git a/.changeset/where-callback-subscribe-changes.md b/.changeset/where-callback-subscribe-changes.md new file mode 100644 index 0000000000..86027ff39b --- /dev/null +++ b/.changeset/where-callback-subscribe-changes.md @@ -0,0 +1,23 @@ +--- +"@tanstack/db": patch +--- + +Add `where` callback option to `subscribe...
1
1
0
[{"id": "G0", "claim": "The reviewer would rather keep spreading the options when building the CollectionSubscription — using `const { where, ...opts } = options` destructuring and passing `...opts` — instead of manually listing only `includeInitialState` and `whereExpression`, so any options fields added in future are...
null
TanStack__db__951
TanStack/db
951
defect
747c1477aaaf7d91bcf44c3be15c0dc350b14185
9401b42761d91c1001469119d504277fe3b32416
Fix serializing null/undefined when generating subset queries
When comparison operators (eq, gt, lt, etc.) were used with null/undefined values, the SQL compiler would generate placeholders ($1, $2) in the WHERE clause but skip adding the params to the dictionary because serialize() returns empty string for null/undefined. This resulted in invalid queries being sent to Electri...
diff --git a/.changeset/fix-electric-null-params.md b/.changeset/fix-electric-null-params.md new file mode 100644 index 0000000000..b97c395e39 --- /dev/null +++ b/.changeset/fix-electric-null-params.md @@ -0,0 +1,12 @@ +--- +"@tanstack/electric-db-collection": patch +--- + +Fix invalid Electric proxy queries with missi...
3
2
1
[{"id": "G0", "claim": "The design doc docs/design/eq-null-handling.md reads like an internal AI-written rationale file not intended for the codebase and should be removed before merge.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The changeset ...
null
TanStack__db__958
TanStack/db
958
defect
747c1477aaaf7d91bcf44c3be15c0dc350b14185
5f4b2515f50e9b1b078bce92fe06335fdd4661b0
fix(db): ensure deterministic iteration order for collections and indexes
## Summary This PR ensures deterministic iteration order for collections and indexes when multiple items have equal sort values. It builds on #957 which added stable tie-breaking for ORDER BY operations in the query engine. **Changes:** - **SortedMap**: Added key-based tie-breaking when values compare as equal, and ...
diff --git a/.changeset/deterministic-collection-ordering.md b/.changeset/deterministic-collection-ordering.md new file mode 100644 index 0000000000..2c7ec3f7f6 --- /dev/null +++ b/.changeset/deterministic-collection-ordering.md @@ -0,0 +1,23 @@ +--- +"@tanstack/db": patch +--- + +Ensure deterministic iteration order f...
1
1
0
[{"id": "G0", "claim": "The single-key fast path in BTreeIndex.takeInternal is an over-optimization and should be dropped, since sorting a singleton array is fine.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
TanStack__devtools__97
TanStack/devtools
97
defect
ea751ad8b0bc40023276314825fad077f848bdcb
5a01980423bf62e8bbe80034c9af4cc0f7f83550
fix(devtools): URL encode source parameter
This prevents issues when the filename contains special chars like `+` Closes #85
diff --git a/packages/devtools-vite/src/utils.ts b/packages/devtools-vite/src/utils.ts index 914b2b196..1a53ad5a3 100644 --- a/packages/devtools-vite/src/utils.ts +++ b/packages/devtools-vite/src/utils.ts @@ -15,7 +15,12 @@ export const handleDevToolsViteRequest = ( if (!source) { return } - const [...
1
1
0
[{"id": "G0", "claim": "Extract the file/line/col source-parsing logic in handleDevToolsViteRequest into a util and add tests for it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
TanStack__form__1234
TanStack/form
1,234
defect
6c67a262485172762ab5d0a6e665a208a8970989
6975e8cf82dd7643f6c4a40055e47e97978dd604
feat(form-core): add canSubmitWhenInvalid form option
Allows to submit a form when invalid with the new `canSubmitWhenInvalid` form option. Resolves #1109.
diff --git a/docs/reference/classes/formapi.md b/docs/reference/classes/formapi.md index b276d961bf..fa2b1b2f74 100644 --- a/docs/reference/classes/formapi.md +++ b/docs/reference/classes/formapi.md @@ -7,7 +7,7 @@ title: FormApi # Class: FormApi\<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync...
3
3
1
[{"id": "G0", "claim": "The new canSubmit logic does not work and `pnpm test:lib` yields failing tests; the reviewer proposes extracting `const submitInvalid = this.options.canSubmitWhenInvalid ?? false` and using it in both canSubmit branches.", "category": "correctness", "verdict": "supported", "priority": "P0", "sco...
null
TanStack__form__1241
TanStack/form
1,241
defect
135b88686bf9d10115828cd852ef2bd1201f5776
66843e736529f389d244ec46cfad00555f7ca21d
fix(form-core): listen to array onChange events
Listen to array field events Closes #1226
diff --git a/docs/reference/classes/fieldapi.md b/docs/reference/classes/fieldapi.md index be77a75c50..3eb93027ab 100644 --- a/docs/reference/classes/fieldapi.md +++ b/docs/reference/classes/fieldapi.md @@ -213,7 +213,7 @@ Use `field.state.value` instead. handleBlur(): void ``` -Defined in: [packages/form-core/src/...
2
2
1
[{"id": "G0", "claim": "The redundant this.validate('change') calls added after array mutations are unnecessary because formApi already validates the field on change, and the reasoning for adding them should be explained.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"i...
null
TanStack__form__1497
TanStack/form
1,497
defect
bfb8c4244420daa093cc88bdc041ae2927eace8c
3e99f6f950c0172657ccd85fed6b7184c331f8a2
fix(form-core): fix form.resetField() ignoring nested fields
Closes #1496 See the issue for more details. The main issue is that the field name was assumed to be a shallow `keyof TFormData` when it is actually `DeepKeys<TFormData>`. TypeScript didn't complain because there was an `as` assertion. This PR implements the unit test provided in the issue and fixes it.
diff --git a/packages/form-core/src/FormApi.ts b/packages/form-core/src/FormApi.ts index f7762b40d7..a7b541ebb8 100644 --- a/packages/form-core/src/FormApi.ts +++ b/packages/form-core/src/FormApi.ts @@ -2109,12 +2109,9 @@ export class FormApi< ...prev.fieldMetaBase, [field]: defaultFieldMeta, ...
1
1
0
[{"id": "G0", "claim": "The variable named defaultValues in the test 'should preserve nested fields on resetField if defaultValues is not provided' should be renamed (it holds defaultState values), as was done in a prior PR.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced...
null
TanStack__form__1689
TanStack/form
1,689
defect
9e092e291428181481473033414f6a4e3e9925a9
b3f6cd1f7770dace3493ff9a3666b6f3764d067f
fix(form-core): handle string array indices in prefixSchemaToErrors
## Description This PR fixes a bug in the `prefixSchemaToErrors` function within `standardSchemaValidator.ts` where array indices passed as strings (like '0', '1') were not being properly converted to bracket notation, causing validation errors for array fields to be incorrectly formatted. ### Problem - Standard...
diff --git a/packages/form-core/src/standardSchemaValidator.ts b/packages/form-core/src/standardSchemaValidator.ts index c0c5bde690..7948c799ff 100644 --- a/packages/form-core/src/standardSchemaValidator.ts +++ b/packages/form-core/src/standardSchemaValidator.ts @@ -27,9 +27,12 @@ function prefixSchemaToErrors(issues: ...
3
3
1
[{"id": "G0", "claim": "The regex-based array-index detection brackets numeric string segments even when they are numeric object properties (e.g. foo.01234.bar), breaking those paths; the validator should instead use the validated form value to decide whether a segment is array access, and unit tests should cover the n...
null
TanStack__form__1691
TanStack/form
1,691
defect
090d2efb1dc38be8cae6293a95920f7a8fbcea20
94dcbd5e4df32a45ab3711d68455e5a7366d66a0
fix: sync validation errors for delayed-mounted fields
Fixes validation errors not appearing on fields that mount after form initialization ## Problem When fields are mounted after the form's initial validation runs, validation errors from form-level validators (like [onMount]) are not displayed on these delayed fields, leading to inconsistent validation UX. ## S...
diff --git a/packages/form-core/src/FieldApi.ts b/packages/form-core/src/FieldApi.ts index a343bda81d..5a2915c285 100644 --- a/packages/form-core/src/FieldApi.ts +++ b/packages/form-core/src/FieldApi.ts @@ -1241,6 +1241,34 @@ export class FieldApi< info.instance = this as never this.update(this.options as n...
4
4
2
[{"id": "G0", "claim": "Persisting form validation errors in a separate `_allFieldErrors` state is not the right approach because it duplicates error state (errors exist in both `fieldMeta` and `_allFieldErrors`) and stores errors for all unmounted fields with memory overhead; instead, missing `fieldMeta` entries shoul...
null
TanStack__form__1787
TanStack/form
1,787
defect
efa5dd702c1ec2cd0e810cde2f0bdd3045d50517
df8f012613fa6929a3487d40fd4b9eac6177fda0
fix(form-core): make fieldMeta values optional to reflect runtime behaviour.
## Description Fixes #1774 This PR addresses a type safety issue where `fieldMeta` is typed as `Record<DeepKeys<TData>, AnyFieldMeta>` but is initialized as an empty object, causing runtime crashes when accessing field metadata during the first render. ## Changes - ✅ Updated `FormState` interface to include...
diff --git a/.changeset/bumpy-boats-roll.md b/.changeset/bumpy-boats-roll.md new file mode 100644 index 0000000000..56fa437b66 --- /dev/null +++ b/.changeset/bumpy-boats-roll.md @@ -0,0 +1,27 @@ +--- +'@tanstack/form-core': major +--- + +Make fieldMeta values optional to reflect runtime behavior and prevent crashes + +...
7
7
1
[{"id": "G0", "claim": "The changeset should declare a patch release instead of major, because type changes are not considered breaking changes.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The changeset description is uncertain how GH actions wil...
null
TanStack__form__442
TanStack/form
442
defect
9424ed94f8418374ca7a3b887d947ccc1fcd18f0
9ae2c18d4ed3666c31dcb3cff49f543fd62e5c9f
feature(FieldAPI): Change from touched error message and error message to error map and array of errors
We'd like to change our validators to return an object and array of errors to avoid UX limitations for any app that uses TanStack Form. Quoted from @crutchcorn. Based on the changes, an example usage in our react adapter would be: ``` <form.Field name="firstName" children={(field) => { const errArr = f...
diff --git a/packages/form-core/src/FieldApi.ts b/packages/form-core/src/FieldApi.ts index 8dcd342c87..9638bb5e31 100644 --- a/packages/form-core/src/FieldApi.ts +++ b/packages/form-core/src/FieldApi.ts @@ -1,8 +1,13 @@ -import type { DeepKeys, DeepValue, Updater } from './utils' -import type { FormApi, ValidationError...
3
3
1
[{"id": "G0", "claim": "The ValidationErrorMapKeys type should be defined as `on${Capitalize<ValidationCause>}` instead of the manually enumerated 'onChange' | 'onSubmit' | 'onBlur'.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "getErrorMapKey ...
null
TanStack__form__606
TanStack/form
606
defect
e42f3ab690c10d889c90e095a1c4520dfe832a97
ab591c93afe7e536755e4be1abe1e8a1bd938f02
Remove UID and Field Instances
This PR removes the concept of multiple `instances` of a Field for a given `name`, which in turn removes UID and, in happenstance, fixes #571. This should be good-to-go, but breaks the ability to have multiple `Field` items with the same `name`. The question is if any of the @TanStack/form-maintainers can think of a...
diff --git a/docs/config.json b/docs/config.json index ea14d4fd68..eaf6aec8b6 100644 --- a/docs/config.json +++ b/docs/config.json @@ -85,7 +85,10 @@ { "label": "SSR/Next.js", "to": "framework/react/guides/ssr" - + }, + { + "label": "Debuggin...
2
2
1
[{"id": "G0", "claim": "The new form.Subscribe usage with a tuple selector in useField.test.tsx makes the TS 5.0.4 type-check CI job fail because of a TypeScript inference bug, and it should be addressed by ignoring the test files for 5.0.4 in the CI, adding a warning comment at the Subscribe type definition, and menti...
null
TanStack__router__4746
TanStack/router
4,746
defect
dae8833a463448af695d65428bd649836988d074
a3bdffdae4369fe732b48d8a0ddc054441303423
fix: update error handling in MatchInner to access error data directly
fixes #4744 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Not-found components now receive spread props for direct access to payload fields. * Not-found component props updated: data is optional; isNotFound and routeId are provided. * A...
diff --git a/packages/react-router/src/renderRouteNotFound.tsx b/packages/react-router/src/renderRouteNotFound.tsx index 26cf5b09288..86f31dfc220 100644 --- a/packages/react-router/src/renderRouteNotFound.tsx +++ b/packages/react-router/src/renderRouteNotFound.tsx @@ -10,7 +10,7 @@ export function renderRouteNotFound( ...
5
4
1
[{"id": "G0", "claim": "Spreading the not-found error object into the component causes the props structure to become nested like data: { data: ... }.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Runtime tests should be added for the various not-fo...
null
TanStack__router__5033
TanStack/router
5,033
defect
a98c89c5e29efbf649069ecbf0f5ae2c837a337e
966534a8f2ac12d6a2f70f206394fce2f2888ef5
fix(solid-router): RouteProvider Wrap and Match InnerWrap support propagating context to their children
Refactored a bit router options.Wrap and options.InnerWrap usage in RouterProvider and Match components. Now they will be able to provide context for their children components. Added few tests for scenarios that were failing before. Fixes #3744 <!-- This is an auto-generated comment: release notes by coderabbit...
diff --git a/packages/solid-router/src/Matches.tsx b/packages/solid-router/src/Matches.tsx index cf83c6b5060..f9fa1d34f7a 100644 --- a/packages/solid-router/src/Matches.tsx +++ b/packages/solid-router/src/Matches.tsx @@ -38,27 +38,27 @@ declare module '@tanstack/router-core' { export function Matches() { const rout...
7
2
0
[{"id": "G0", "claim": "Wrap is rendered outside the router context provider so Wrap cannot call useRouter; the order should be inverted (and the wrapper typed explicitly with ?? instead of ||) to avoid a potential breaking change, or the restriction that Wrap must not read router context should be documented.", "categ...
null
TanStack__router__5124
TanStack/router
5,124
defect
9a86563ae032480764b51a53015ded3742dce20f
9ad73692f5b83332cb9d6557934733d1761e0adf
fix(router-core): params.parse should run as minimally as possible
resolves #5123 and adds checks to tests to ensure this runs as minimally as possible <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Performance** * Reuses existing route matches to reduce redundant param parsing and stabilize navigation/loading behavio...
diff --git a/packages/react-router/tests/useParams.test.tsx b/packages/react-router/tests/useParams.test.tsx index 25043987925..dfbdba43567 100644 --- a/packages/react-router/tests/useParams.test.tsx +++ b/packages/react-router/tests/useParams.test.tsx @@ -1,4 +1,4 @@ -import { expect, test } from 'vitest' +import { ex...
7
1
0
[{"id": "G0", "claim": "The empty console.log() added inside params.parse in the React and Solid useParams tests should be removed or given a descriptive message, or replaced with a dedicated test spy.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim...
null
TanStack__router__5135
TanStack/router
5,135
defect
e2167659cd251a05cbbbf36e7777f02d0726834b
3cf7a9ee32775e629b9620ab68501ef5a1de770c
fix(router-core): _strictParams and path defining characters
This PR resolves #5133 by making the _strictParams more conscious of path defining characters and other wildcards. It also adds e2e tests for react and solid <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added “Non-nested path params” ...
diff --git a/e2e/react-router/basic-file-based/src/routeTree.gen.ts b/e2e/react-router/basic-file-based/src/routeTree.gen.ts index 6c4c9159418..2ba33a64143 100644 --- a/e2e/react-router/basic-file-based/src/routeTree.gen.ts +++ b/e2e/react-router/basic-file-based/src/routeTree.gen.ts @@ -38,6 +38,7 @@ import { Route as...
5
1
0
[{"id": "G0", "claim": "interpolatePath(route.fullPath) should be passed this.parsePathnameCache so parsing stays cached like the matchId call, for consistency and performance.", "category": "performance", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In both the React and Sol...
null
TanStack__router__5165
TanStack/router
5,165
defect
fb4c6a1b82d7d214ba1ee617fc97e8326910ab0d
f768adfa7cfd33f97f79301c3935f3f77a2c8a91
fix(router-core): parse non-nested path params correctly
When parsing path params to interpolate the path non-nested path params ```/path/$param_``` was being parsed in the same manner as regular path params ```/path/$param```. This PR adds consideration for the trailing underscore when parsing the path for non-nested path params as well as unit tests on path interpolatio...
diff --git a/e2e/react-router/basic-file-based/src/routes/params-ps/non-nested/route.tsx b/e2e/react-router/basic-file-based/src/routes/params-ps/non-nested/route.tsx index 3760bde7088..a8fde97b61c 100644 --- a/e2e/react-router/basic-file-based/src/routes/params-ps/non-nested/route.tsx +++ b/e2e/react-router/basic-file...
7
4
2
[{"id": "G0", "claim": "In the React and Solid e2e specs, pagePathname2 is captured before waiting for the navigation to complete, which can intermittently read the pre-navigation URL and make the test flaky.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim"...
null
TanStack__router__5470
TanStack/router
5,470
defect
5436818ed5782deef55ee15fa7c3dd320c45b2d9
6a36d348d14135aef83d82475ca03a9ddb008e82
fix: do not pass signal into server function
instead of the previously passed in signal, use this to get the signal inside the server function: ```tsx import { getRequest } from '@tanstack/react-start/server' const request = getRequest() const signal = request.signal ``` closes #4651
diff --git a/e2e/react-start/basic-react-query/package.json b/e2e/react-start/basic-react-query/package.json index 804d9e261b2..10af95fc4a0 100644 --- a/e2e/react-start/basic-react-query/package.json +++ b/e2e/react-start/basic-react-query/package.json @@ -32,7 +32,7 @@ "@vitejs/plugin-react": "^4.3.4", "auto...
3
1
1
[{"id": "G0", "claim": "The bumped srvx dependency (^0.8.16) does not include h3js/srvx#122's changes, so update srvx to a released version that exposes request.signal (or defer the dependency bump until that upstream PR merges and a release is out) before merging, otherwise the rewritten e2e abort-signal route may not...
null
TanStack__router__5485
TanStack/router
5,485
defect
975e32ffa322d2dc747d898513eb86ef679b1a36
2b27ca287f9532ecc763c5319ec8a1db7adf937e
fix(router-core): `onStay` callback should use 'current' matches not 'previous'
This PR fixes #1901 `onStay` route hook currently gives the previous `match` instead of the current one. Now, same as `onEnter` hook, you get the current `match` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * More accurate detection of whic...
diff --git a/packages/router-core/src/router.ts b/packages/router-core/src/router.ts index 78b5e11608b..41c1d684838 100644 --- a/packages/router-core/src/router.ts +++ b/packages/router-core/src/router.ts @@ -2049,8 +2049,8 @@ export class RouterCore< (match) => !previous...
1
1
1
[{"id": "G0", "claim": "Add a test to make sure the new onStay behaviour (staying matches derived from current matches) is being enforced.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
TanStack__router__5495
TanStack/router
5,495
defect
4303a8a716c7f3d7ca292a6793b0cc4896394b8b
dd78c82cadcdc5fa15c56484493bdeccbfbdc909
fix(react-router,solid-router): top-level `Matches` should use `pendingComponent` on root route
fixes #2317 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Route-level pending UI: root routes can now specify their own loading placeholder. * **Bug Fixes** * Pending-component selection now prefers a route's pending UI and falls back to ...
diff --git a/packages/react-router/src/Matches.tsx b/packages/react-router/src/Matches.tsx index c75fb19b8e0..3198bcebbc7 100644 --- a/packages/react-router/src/Matches.tsx +++ b/packages/react-router/src/Matches.tsx @@ -12,6 +12,7 @@ import type { ValidateSelected, } from './structuralSharing' import type { + An...
4
2
0
[{"id": "G0", "claim": "Remove the unused `import * as React from 'react'` from packages/solid-router/src/Matches.tsx, since that file implements Solid bindings and should not depend on React.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In pa...
null
TanStack__router__5691
TanStack/router
5,691
defect
1ec38819b62343534b83ace70aa6f7318688079f
73b4984c893f03ff8aa2604b3136e8fff9135994
fix(solid-router): implement navigation transitions
closes #5636 - #5636 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a /transition route (examples for multiple frameworks) demonstrating in-place data transitions. * **Bug Fixes** * Navigation now preserves previous view ...
diff --git a/e2e/solid-router/basic-file-based/src/routeTree.gen.ts b/e2e/solid-router/basic-file-based/src/routeTree.gen.ts index 136c0dc9da0..544ba70d76e 100644 --- a/e2e/solid-router/basic-file-based/src/routeTree.gen.ts +++ b/e2e/solid-router/basic-file-based/src/routeTree.gen.ts @@ -21,6 +21,7 @@ import { Route as...
6
3
1
[{"id": "G0", "claim": "Clear the polling interval in a finally block in the basic-file-based transition e2e test so a thrown assertion cannot leave the timer running against a disposed page and make later tests flaky or hang.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"...
null
TanStack__router__5851
TanStack/router
5,851
defect
ecd9312f3307553009ebe564cf570b6b67d3c645
9efbeca28b9a5daf29946e1fcfb6bd1759fa7d65
refactor(router-core): use original nextTo path when building location in its route form
During the matching process, when building the location, we interpolate the next path while leaving the params in place, i.e. returning the route back in its original route form. This is unnecessary and can be avoided by just using the original next.to path. This also simplifies interpolatePath in that leaveParams i...
diff --git a/packages/react-router/tests/Matches.test.tsx b/packages/react-router/tests/Matches.test.tsx index 3cb4f5c2b73..ab70c1fee30 100644 --- a/packages/react-router/tests/Matches.test.tsx +++ b/packages/react-router/tests/Matches.test.tsx @@ -1,5 +1,6 @@ -import { expect, test } from 'vitest' -import { fireEvent,...
4
3
1
[{"id": "G0", "claim": "Remove the redundant `const value = encodeParam(segment.value)` in the splat leaveParams branch: it looks up '$' instead of the '_splat'/'*' key so it returns undefined, and it shadows the correctly computed outer `value`, making the code confusing and error-prone.", "category": "maintainability...
null
TanStack__router__5944
TanStack/router
5,944
defect
3a14ffcea061afaeac635721c12b4f98afa9419a
c3b1c0d54e476bb2ad1ed6180a0f7f5d82434e10
fix: Links always scroll to URL hash on hover (#5930)
closes #5930 # Fix: Prevent hash scroll on preload-only transitions by gating handleHashScroll to true navigations ## What was the issue (#5930) Hovering a Link with defaultPreload set to "intent" (or any programmatic preload) caused the router to trigger a hash scroll even though no navigation occurred. This ...
diff --git a/e2e/react-router/basic-file-based/tests/hover-preload-hash.spec.ts b/e2e/react-router/basic-file-based/tests/hover-preload-hash.spec.ts new file mode 100644 index 00000000000..9ee14359afe --- /dev/null +++ b/e2e/react-router/basic-file-based/tests/hover-preload-hash.spec.ts @@ -0,0 +1,22 @@ +import { expec...
7
4
1
[{"id": "G0", "claim": "A test based on the issue reproduction should be added so the hash-scroll fix is guarded against regressions later.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The fixed scrollBy(0, -300) assumes 300px is always enough to move...
null
TanStack__router__6053
TanStack/router
6,053
defect
98dc05073dcf7490d38f9158833f3df22c005e96
42d4a67a6ef1c41e4bfeee5a79bf8264555fa925
fix: commit route context
fixes #6040 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Ensured route context is consistently merged and committed only after loaders complete, preventing components from seeing incomplete context during immediate navigations. * **Te...
diff --git a/packages/react-router/tests/routeContext.test.tsx b/packages/react-router/tests/routeContext.test.tsx index eef424c867f..e42b10d6035 100644 --- a/packages/react-router/tests/routeContext.test.tsx +++ b/packages/react-router/tests/routeContext.test.tsx @@ -9,6 +9,7 @@ import { import { afterEach, beforeEac...
7
2
1
[{"id": "G0", "claim": "commitContext builds a match's context from its immediate parent's possibly-uncommitted context, so when a child's loader completes before its parent's the child's committed context can miss the parent's __routeContext/__beforeLoadContext contributions; it should mirror getLoaderContext and aggr...
null
TanStack__router__6387
TanStack/router
6,387
defect
0ca572b22ef40489f4c7bdd8c3c7486e21dd99f5
e5ce02e515b3f12a09a7e77cfa1b5f1852ba0f54
fix(router): ensure useParams returns parsed params when strict is false
fixes #6385 This PR fixes issue #6385, where `useParams({ strict: false })` in a parent route would return unparsed parameter values from a child route. ### The Fix The fix the issue by ensuring that parsed parameters from child routes are correctly propagated to their parents when `strict: false` is used. ...
diff --git a/e2e/react-router/basic-file-based/src/routeTree.gen.ts b/e2e/react-router/basic-file-based/src/routeTree.gen.ts index 28197e4d987..56301f56e1f 100644 --- a/e2e/react-router/basic-file-based/src/routeTree.gen.ts +++ b/e2e/react-router/basic-file-based/src/routeTree.gen.ts @@ -41,6 +41,7 @@ import { Route as...
1
1
0
[{"id": "G0", "claim": "The PR sets match.params both when the match is constructed and again in the second loop, so it looks like the params-update work is now done twice; maybe match.params should not be set in the first iteration.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "intro...
null
TanStack__router__6398
TanStack/router
6,398
defect
86605e3858580e8ac68207031968890869f6bbc6
ffc5d6c4b2bb26b432ce2409dade8788742e551a
refactor: don't reparse upon navigation
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Navigation operations are now asynchronous and return a result indicating success or blocked. * Navigation state now includes cached route-match snapshots to speed back/forward navigation. * ...
diff --git a/packages/history/src/index.ts b/packages/history/src/index.ts index 53e4aa1b7fb..4f489d78fe2 100644 --- a/packages/history/src/index.ts +++ b/packages/history/src/index.ts @@ -6,6 +6,9 @@ export interface NavigateOptions { ignoreBlocker?: boolean } +/** Result of a navigation attempt (push/replace) *...
10
4
4
[{"id": "G0", "claim": "On the snapshot fast path `parsedParams` is set to `undefined`, so later logic that reads `parsedParams` (e.g. under `skipRouteOnParseError`) can throw a TypeError; use an empty object or a guard instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced...
null
TanStack__router__6426
TanStack/router
6,426
defect
aced5f6121821cae9b2de554feb6345dd333727e
484ef33f69a355ecf34d5abc08422f7253f3e033
fix(router-core): fix handle AbortError logic when rapid navigation
fixes #6388 Summary - Fixed a bug where rapid navigation between parameterized routes caused errorComponent to render incorrectly Problem When rapidly navigating between parameterized routes (e.g., /something/1 → /something/2 → /something/1), the errorComponent was incorrectly triggered with a Type...
diff --git a/packages/react-router/tests/loaders.test.tsx b/packages/react-router/tests/loaders.test.tsx index fc9e87b0771..bed3f830ec4 100644 --- a/packages/react-router/tests/loaders.test.tsx +++ b/packages/react-router/tests/loaders.test.tsx @@ -824,3 +824,113 @@ test('cancelMatches after pending timeout', async () ...
2
2
1
[{"id": "G0", "claim": "The new early return when the match is no longer pending skips the cleanup block at the end of loadRouteMatch, so a pending timeout set in this load cycle can remain attached and block future pending scheduling; clear it before returning.", "category": "correctness", "verdict": "supported", "pri...
null
TanStack__router__6648
TanStack/router
6,648
defect
97658cde9af81a440b18c71fad8716336aa2a0df
870297e3c28e6fba4cbc238957b9282f536386ae
fix: pass pathname to global request middleware in createStartHandler
## Summary - Fix `pathname` being `undefined` in global request middleware registered via `createStart({ requestMiddleware })` - Add `pathname: url.pathname` to both `executeMiddleware` calls for global request middleware in `createStartHandler` - Route-level middleware in `handleServerRoutes` already passes `pathname...
diff --git a/e2e/react-start/server-functions-global-middleware/src/routeTree.gen.ts b/e2e/react-start/server-functions-global-middleware/src/routeTree.gen.ts index bcc17d676ef..c75f87fec01 100644 --- a/e2e/react-start/server-functions-global-middleware/src/routeTree.gen.ts +++ b/e2e/react-start/server-functions-global...
2
2
1
[{"id": "G0", "claim": "The pull request needs a regression test for the pathname-passed-to-global-request-middleware fix, best located in e2e/react-start/server-functions-global-middleware.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "In the new path...
null
TanStack__router__6651
TanStack/router
6,651
defect
97658cde9af81a440b18c71fad8716336aa2a0df
d0b71dbb7a06d3ddaee256d27148270769142ece
fix: don't propagate directCall kind through var bindings
fixes #6643 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Compiler no longer misidentifies results produced by factory-style functions as direct-call candidates, preventing incorrect propagation and preserving correct SSR/runtime behavior. * *...
diff --git a/packages/start-plugin-core/src/start-compiler-plugin/compiler.ts b/packages/start-plugin-core/src/start-compiler-plugin/compiler.ts index 36b9f429fba..f1f1f88c212 100644 --- a/packages/start-plugin-core/src/start-compiler-plugin/compiler.ts +++ b/packages/start-plugin-core/src/start-compiler-plugin/compile...
2
2
1
[{"id": "G0", "claim": "Clearing resolvedKind for every var binding that resolves to a directCall kind also clears aliases of the factory itself (e.g. `const createSO = createServerOnlyFn`), which would make legitimate factory usage undetectable; the guard should clear only when the binding's initializer is a call expr...
null
TanStack__router__6681
TanStack/router
6,681
defect
cf5a26984d54a1e498df69480e998b32a6c17d7f
e4d88bbfd6cf5b0c8a7f499920af911bd8b8f7ad
fix: script hydration
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added support for user-included scripts in head and body with async options (scripts now execute and set global flags visible in the browser). * **Bug Fixes** * Improved hydration-aware scrip...
diff --git a/e2e/react-start/basic/public/async-user-script.js b/e2e/react-start/basic/public/async-user-script.js new file mode 100644 index 00000000000..34f4c034c00 --- /dev/null +++ b/e2e/react-start/basic/public/async-user-script.js @@ -0,0 +1,2 @@ +console.log('ASYNC_USER_SCRIPT loaded') +window.ASYNC_USER_SCRIPT ...
4
1
1
[{"id": "G0", "claim": "The selector `script[src*=\"script.js\"]` substring-matches the six root-layout scripts (user-script.js, head-script.js, etc.), so the count assertion always passes and does not validate the route-specific script behavior; use an exact or ends-with match instead.", "category": "testing", "verdic...
null
TanStack__router__6758
TanStack/router
6,758
defect
e5cb8ccc9a84569de66b71658d914e37e289db0a
e2fbc52e524ee5a4dffcdad9178bb83a5a9ffba2
fix: don't rely on syntheticNamedExports in import protection
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Clarified import-protection wording around resolved-target deny checks, excludeFiles behavior, and node_modules exclusions. * **Tests** * Strengthened tests to validate mock code contains si...
diff --git a/docs/start/framework/react/guide/import-protection.md b/docs/start/framework/react/guide/import-protection.md index f70bea07ed2..88426bb2529 100644 --- a/docs/start/framework/react/guide/import-protection.md +++ b/docs/start/framework/react/guide/import-protection.md @@ -38,7 +38,7 @@ Import protection is ...
5
2
0
[{"id": "G0", "claim": "The options table labels `client.specifiers` as 'additive with defaults' but `server.specifiers` as 'replaces defaults', and since the documented server default is `[]` the two are functionally identical, so the inconsistent labels may mislead readers into thinking the fields have different merg...
null
TanStack__router__6769
TanStack/router
6,769
defect
c4027b6a792103876defc4217dce0344caf44398
a8f88f2ec4c92f53eea36d42f1be5b1e7da624c2
fix(router-core): use routeId for lifecycle hooks to fix onStay when loaderDeps change
## Summary Fixes #6765 When `loaderDeps` change (e.g. from search param updates), the `match.id` changes because it includes the `loaderDepsHash`. The lifecycle hooks (`onLeave`/`onEnter`/`onStay`) were computing `exitingMatches`, `enteringMatches`, and `stayingMatches` using `match.id`, which caused a loaderDeps cha...
diff --git a/packages/router-core/src/router.ts b/packages/router-core/src/router.ts index 0eeb87425fe..86688ce1e3e 100644 --- a/packages/router-core/src/router.ts +++ b/packages/router-core/src/router.ts @@ -2416,14 +2416,21 @@ export class RouterCore< const newMatches = s.pendingMatches || s.ma...
3
2
2
[{"id": "G0", "claim": "Changing the lifecycle match computation to routeId may mess up the caching behavior, whose entries should stay keyed on route id + params + deps; the lifecycle-event semantics must be decided and this caching regression fixed before the PR can be merged.", "category": "correctness", "verdict": ...
null
TanStack__router__6867
TanStack/router
6,867
defect
88fcbec9865cca6bf9ec638b88a9c4fb2c8310a8
68f4530412219830bd07ac664a0d3c8342b14727
fix: don't re-execute stale loaders on unrelated location changes
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added ability to forcefully reload stale matches via explicit router.load() calls. * **Bug Fixes** * Stale-match revalidation now occurs when routes are re-entered, loader dependencies change...
diff --git a/docs/router/api/router/RouterType.md b/docs/router/api/router/RouterType.md index 10734986b36..0b829b85e0a 100644 --- a/docs/router/api/router/RouterType.md +++ b/docs/router/api/router/RouterType.md @@ -159,7 +159,7 @@ Remove cached route matches. Loads all of the currently matched route matches and re...
6
2
2
[{"id": "G0", "claim": "Spreading opts after from in the route-bound useRouteContext helpers lets JS/any callers override the bound route ID at runtime and read another match's context, so from should be spread last to stay pinned in all six helpers (LazyRoute/RouteApi/Route/RootRoute across react, solid and vue).", "c...
null
TanStack__router__6875
TanStack/router
6,875
defect
6438c03b2f29ee492a169bd69d05c7f7867e509e
57c670b92652a7d7963cabc81fd6c1455aad6e15
fix: ensure lazy error component is preloaded
fixes #6873 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a new lazy route at /lazy-error that demonstrates lazy-loaded route behavior with a custom error UI when the route loader fails. * **Tests** * Added end-to-end and unit tests...
diff --git a/e2e/react-router/basic-file-based/src/routeTree.gen.ts b/e2e/react-router/basic-file-based/src/routeTree.gen.ts index 0453e9ae8ae..daf304c064c 100644 --- a/e2e/react-router/basic-file-based/src/routeTree.gen.ts +++ b/e2e/react-router/basic-file-based/src/routeTree.gen.ts @@ -13,6 +13,7 @@ import { Route as...
4
1
0
[{"id": "G0", "claim": "If loadRouteChunk(route, ['errorComponent']) rejects in the loader error path, the rejection escapes through the outer catch before the status: 'error' match update runs, so the match can remain unresolved instead of entering the error state; wrap the preload in try/catch and assign the chunk er...
null
TanStack__router__6882
TanStack/router
6,882
defect
d306d58a21165dd51403d78acab815d744103bd5
925f186634c9b6c06ae5142e25f474a3f8e98887
fix(router-core): null prototype input/output objects
Fix https://github.com/TanStack/router/issues/6881 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Parameter and query handling now uses prototype-free maps throughout, reducing risk of inherited-property collisions and making param/search merging...
diff --git a/packages/router-core/src/new-process-route-tree.ts b/packages/router-core/src/new-process-route-tree.ts index ba6244a4d97..405504427a0 100644 --- a/packages/router-core/src/new-process-route-tree.ts +++ b/packages/router-core/src/new-process-route-tree.ts @@ -896,7 +896,7 @@ function extractParams<T extend...
5
2
2
[{"id": "G0", "claim": "The new params-update code always replaces match.params with a fresh clone even when replaceEqualDeep found the params unchanged, so params object identity changes on every navigation for existing matches, regressing structural sharing and potentially triggering unnecessary downstream updates.",...
null
TanStack__router__6998
TanStack/router
6,998
defect
21e39bde083222b1f744ce7d7a53d95f6e975c50
7b8f7e99744829504bf274f58b925c31946a44bb
fix(solid-router): avoid HeadContent remounts on history.replaceState
## Summary - preserve structural sharing for Solid `HeadContent` tags so identical manifest assets stay mounted across history state updates - add a regression test that reproduces the stylesheet remount triggered by `window.history.replaceState(...)` - fix the Solid FOUC regression reported in #6997 ## Screensho...
diff --git a/packages/solid-router/src/headContentUtils.tsx b/packages/solid-router/src/headContentUtils.tsx index b633723a8f6..1b30fcc50b7 100644 --- a/packages/solid-router/src/headContentUtils.tsx +++ b/packages/solid-router/src/headContentUtils.tsx @@ -1,5 +1,5 @@ import * as Solid from 'solid-js' -import { escape...
1
1
0
[{"id": "G0", "claim": "Replace the `as any` cast on the `router.ssr` manifest fixture in the solid-router regression test with the concrete `Manifest` type (e.g. via `satisfies`) so the fixture cannot drift from the SSR contract.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}...
null
TanStack__router__7066
TanStack/router
7,066
defect
a556afa0f07c551cc0edaf17fa7d0de7014a1c68
2a64368078cba2519955b0f780d2bd86c0618acc
fix: preserve scroll position after SSR hash hydration
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a small in-app scenario and navigation link to reproduce and inspect hash-scroll behavior. * **Bug Fixes** * Fixed unintended scroll position changes after SSR hydration when preloading...
diff --git a/.changeset/fair-buckets-learn.md b/.changeset/fair-buckets-learn.md new file mode 100644 index 00000000000..480c17f611a --- /dev/null +++ b/.changeset/fair-buckets-learn.md @@ -0,0 +1,5 @@ +--- +'@tanstack/router-core': patch +--- + +Avoid re-running hash scrolling after SSR hydration when later preload or...
1
1
1
[{"id": "G0", "claim": "The hover test registers page.waitForResponse() only after the hover that triggers the preload, so on fast networks or in CI the response can complete before the listener starts and the test can fail intermittently; the response listener should be registered before triggering the hover.", "categ...
null
TanStack__router__7069
TanStack/router
7,069
defect
7b9faaeee045b018240cb29304c4cae207ce4e57
676afa5a12e79d1f3454daaebb7ac9478d7da332
fix(router-core): align calculation of publicHref in parseLocation and buildLocation
fixes: #7029 This PR addresses a mismatch between parseLocation and buildLocation in determining the publicHref. In cases where these do not match due to how buildLocation determines the path (might include encoded characters) and parseLocation that uses the processed href this can cause the loader to run a second t...
diff --git a/e2e/react-start/basic-test-suite/src/special-characters.spec.ts b/e2e/react-start/basic-test-suite/src/special-characters.spec.ts index ce800a77ef0..8e05ec5e0a2 100644 --- a/e2e/react-start/basic-test-suite/src/special-characters.spec.ts +++ b/e2e/react-start/basic-test-suite/src/special-characters.spec.ts...
1
1
0
[{"id": "G0", "claim": "The nx.json `parallel` bump from 5 to 10 is unrelated to the router-core publicHref/hydration fix and bundles a workspace-wide CI change into this bugfix PR, so it should be split into a separate infra PR or justified with CI-capacity evidence.", "category": "maintainability", "verdict": "suppor...
null
TanStack__router__7136
TanStack/router
7,136
defect
f7e9c5e323793d1b28c96871819c265fd28ae397
c48d290ab4949d00df50abc28507ebd2dd0000e3
fix(react-router): clear stale route errors on navigation
fixes #7121 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Resolved an error boundary state issue where the error component from a failed route could briefly appear when navigating to a subsequent route. * **Tests** * Added comprehensive tes...
diff --git a/.changeset/ten-cougars-jump.md b/.changeset/ten-cougars-jump.md new file mode 100644 index 00000000000..e411ed3dc9d --- /dev/null +++ b/.changeset/ten-cougars-jump.md @@ -0,0 +1,5 @@ +--- +'@tanstack/react-router': patch +--- + +Fix a stale route error boundary state issue that could briefly render the nex...
1
1
0
[{"id": "G0", "claim": "The new getDerivedStateFromProps uses unsafe `any` parameter types and the state types resetKey as a required string when it should be an optional `string | number` matching getResetKey's return type.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced...
null
TanStack__router__7140
TanStack/router
7,140
defect
1d31393e3fd601e48922ac09f74f284b923bd41c
1af78df364c2ce95188c57aa89a7311861798f62
chore: bump to h3 v2 rc.20
closing https://github.com/h3js/h3/pull/1362 closing https://github.com/h3js/h3/issues/1361 Bumps `h3-v2` to `2.0.1-rc.20` and `cookie-es` to v3. This needs a small `@tanstack/start-server-core` update because both bumps change behavior that Start currently relies on: - `requestHandler` now translates the `UR...
diff --git a/packages/router-core/package.json b/packages/router-core/package.json index 6f22fe1589c..1b148461b98 100644 --- a/packages/router-core/package.json +++ b/packages/router-core/package.json @@ -183,7 +183,7 @@ }, "dependencies": { "@tanstack/history": "workspace:*", - "cookie-es": "^2.0.0", + ...
4
1
0
[{"id": "G0", "claim": "The URIError thrown by new H3Event(request) in h3 rc.20 for malformed paths should be caught and translated into a 404 response, because as written it leaves malformed paths causing an unhandled 500 error instead of a not-found response.", "category": "correctness", "verdict": "uncertain", "prio...
null
TanStack__router__7313
TanStack/router
7,313
defect
8b9ea22b5b1a9b650fa814530eb67781fd959229
44d280286d8270ef36bde81a03fecd9e4e4a6a8a
fix(router-plugin): isolate route metadata per plugin instance
fixes #7174 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added an explicit Router Plugin Context API (runtime + type) and new public export to access it. * Router plugins and platform wrappers can now accept an optional context to scope s...
diff --git a/.changeset/clean-router-plugin-context.md b/.changeset/clean-router-plugin-context.md new file mode 100644 index 00000000000..99d1d5fa4be --- /dev/null +++ b/.changeset/clean-router-plugin-context.md @@ -0,0 +1,6 @@ +--- +'@tanstack/router-plugin': patch +'@tanstack/start-plugin-core': patch +--- + +Replac...
4
2
2
[{"id": "G0", "claim": "In createRouterHmrPlugin only the Vite path reparses the config, so on webpack/rspack userConfig stays the raw partial options and defaults like `target` are never applied and the React-specific branch can be skipped; options should be normalized via getConfig before the first transform.", "cate...
null
TanStack__table__6152
TanStack/table
6,152
defect
80c092c042289ed54a1befceed6e0a327037a42e
7465b862433a382047b5e122a561c7f01e8458b3
feat(angular): add support to bindings and directives in FlexRender
The following PR will update `flexRenderComponent` helper in order to pass `bindings` and `directives`options into the `viewContainerRef.createComponent` call. Angular 20 has introduced those new options to set inputs in a more convenient way. It also allows to set directives at component creation time. [https://...
diff --git a/packages/angular-table/src/flex-render/flexRenderComponent.ts b/packages/angular-table/src/flex-render/flexRenderComponent.ts index 966b5e1d66..3d61cc6126 100644 --- a/packages/angular-table/src/flex-render/flexRenderComponent.ts +++ b/packages/angular-table/src/flex-render/flexRenderComponent.ts @@ -1,42 ...
5
3
0
[{"id": "G0", "claim": "The JSDoc examples in flexRenderComponent.ts import from the misspelled package '@tantack/angular-table' instead of '@tanstack/angular-table'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Consider adding a development-mod...
null