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
uber__piranha__410
uber/piranha
410
defect
ec82222e136f47c918753a24c8e187f005850a16
3c3daab73e71c3dfc8481eeae5a6736979285cde
A cleaner way to handle commas and comments
TLDR; Earlier we were handling commas and handling comments. Now we handle commas and comments. Goal : support trailing and leading comma/comment cleanup Earlier we had a way to detect trailing commas before performing a deletion and expanding the deletion to include it. We also had a mechanism that detected th...
diff --git a/src/models/default_configs.rs b/src/models/default_configs.rs index 7efc090a61..87ee4ea57b 100644 --- a/src/models/default_configs.rs +++ b/src/models/default_configs.rs @@ -47,7 +47,7 @@ pub fn default_delete_file_if_empty() -> bool { true } -pub fn default_cleanup_comments_buffer() -> usize { +pub ...
8
3
1
[{"id": "G0", "claim": "The code comment `// Check if the sibling is a comment` should also cover the case where the sibling is a comma.", "category": "documentation", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Switching `default_cleanup_comments_buffer` from `usize` to `i3...
null
uber__piranha__433
uber/piranha
433
defect
2f262d4267052cd855a4a84dd9c52f4aa553adeb
e92347f7325ada627e9704d094cf2b372358bd89
Add enum scope for Java
This PR adds enum as "Class" scope for Java. Test Plan: Added a test case Kotlin AST treats enums and classes as `(class_declaration)` so we do not need to update the "Class" scope query for Kotlin
diff --git a/src/cleanup_rules/java/scope_config.toml b/src/cleanup_rules/java/scope_config.toml index 745fb0f20..84884351a 100755 --- a/src/cleanup_rules/java/scope_config.toml +++ b/src/cleanup_rules/java/scope_config.toml @@ -77,10 +77,17 @@ generator = """ [[scopes]] name = "Class" [[scopes.rules]] -matcher = "(...
2
2
0
[{"id": "G0", "claim": "The new edges.toml file carries a 2022 copyright header and should say 2023.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new SampleEnum.java copyright header should be changed from 2022 to 2023 (suggestion block).", "c...
null
uber__piranha__458
uber/piranha
458
defect
d42caea3edefab5b058da598c93631469cb32ac6
c27c02348651a1a27135445c5f5c62ed80c268ab
Variable Inlining [2/n]: Field Variable Inlining
This PR aims to solve variable inlining for field variables of a class. Please refer to the tests to understand the various cases it solves. Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * #459 * __->__ #458
diff --git a/src/cleanup_rules/swift/edges.toml b/src/cleanup_rules/swift/edges.toml index 0492cd769..4e1402194 100644 --- a/src/cleanup_rules/swift/edges.toml +++ b/src/cleanup_rules/swift/edges.toml @@ -18,6 +18,24 @@ scope = "Function" from = "delete_variable_declaration" to = ["replace_identifier_with_value", "de...
5
1
0
[{"id": "G0", "claim": "When delete_field_initialisation_init fires, the initialisation assignments should also be deleted, not only the declaration replaced.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The constraint comment should read \"# skip the ...
null
uber__piranha__476
uber/piranha
476
defect
60b5eec58eff220a9ae3d47b8f06af54f8fd00e9
5047dfde9047f68b02f9a15e6a70d47fedfc1ef5
Rename constraints to filter #229
Renamed constraints to filter #229 . Let me know if I missed something - [x] update the field name, getter / setter ... in [rules] - [x] rename the file and contents of [constraints.rs](https://github.com/uber/piranha/blob/master/src/models/constraints.rs) to filter.rs and Constraints to Filter (and so on) - [x] ...
diff --git a/POLYGLOT_README.md b/POLYGLOT_README.md index d2090903f..ddbed766e 100644 --- a/POLYGLOT_README.md +++ b/POLYGLOT_README.md @@ -354,7 +354,7 @@ groups = [ "replace_expression_with_boolean_literal"] holes = ["treated", "stale_flag_name"] ``` This specifies a rule that matches against expressions like `ex...
15
15
0
[{"id": "G0", "claim": "The `_is_satisfied` method should be renamed to `test` or `check` so its name is in the spirit of the renamed `filters` rather than the old `constraints`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The doc comment abo...
null
uber__piranha__477
uber/piranha
477
defect
3dd45c4d5b65fa368bb198bd03dac1b98c001e01
d5ed5f9e07dc53d98915749b560468552941f853
Swift: Fix Clean statements after return
This PR adds rules and tests to enable cleaning up the unreachable code after return statements inside various scopes for swift. Please refer to tests to know some use cases.
diff --git a/src/cleanup_rules/swift/edges.toml b/src/cleanup_rules/swift/edges.toml index 4e1402194..6db9a0458 100644 --- a/src/cleanup_rules/swift/edges.toml +++ b/src/cleanup_rules/swift/edges.toml @@ -50,10 +50,24 @@ to = [ "delete_variable_declaration", ] +[[edges]] +scope = "Parent" +from = "replace_identif...
3
2
0
[{"id": "G0", "claim": "The reviewer asks whether the edges.toml additions (replace_identifier_with_value / replace_self_identifier_with_value -> boolean_literal_cleanup) are unrelated to this PR.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add multip...
null
uber__piranha__478
uber/piranha
478
defect
3dd45c4d5b65fa368bb198bd03dac1b98c001e01
b5709665b3da81f8ccac33e43976ad65b2b20482
Add contains, at least and at most to the the filter language
I added the new functionality and a few new tests for contains. I also added a new rule to delete interfaces based on contains, just to make sure everything was working fine on the python side. Let me know what you think Edit: I realized `not-contains` is equivalent to doing `contains` with `at-most = 0`. I think...
diff --git a/polyglot_piranha.pyi b/polyglot_piranha.pyi index d71a64c73..a4b10d069 100644 --- a/polyglot_piranha.pyi +++ b/polyglot_piranha.pyi @@ -164,12 +164,20 @@ class Filter: enclosing_node: TSQuery "AST patterns that some ancestor node of the primary match should comply" not_contains: list[TSQuery...
12
12
3
[{"id": "G0", "claim": "The delete_method_from_interface toy rule is not general enough (it deletes all interfaces as long as FooBar matches) and slightly misuses `contains`; update the example, e.g. to delete an unused private method, field or local var.", "category": "correctness", "verdict": "supported", "priority":...
null
uber__piranha__492
uber/piranha
492
defect
a18bc1c171d9ae99416744904b1f2ed5e65d3036
807fbd5c3435b04a26ef80f6a3a9de2113fb7e85
Dataflow analysis to check query consistency
# Dataflow Analysis for Piranha This PR introduces a dataflow analysis for Piranha. The goal is to ensure that all variables used in query predicates are defined before usage I think it's best to explain this with an example. Consider the rule graph below, where each rule defines a set of tags via capture groups ...
diff --git a/src/df/README.md b/src/df/README.md new file mode 100644 index 000000000..901d775cb --- /dev/null +++ b/src/df/README.md @@ -0,0 +1,12 @@ +# Dataflow analysis for Piranha + +This folder implements a small data flow analysis framework `df.rs`. + +There's an to a "Definite Assignment Analysis" under `tag_ana...
16
14
3
[{"id": "G0", "claim": "The README sentence \"There's an to a \\\"Definite Assignment Analysis\\\"\" contains a typo (a missing word).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "run_analysis in df.rs should be documented, with a doc comment an...
null
uber__piranha__493
uber/piranha
493
defect
e618ec5fa102a0f289c562c6a14c1fea424b1651
90cd62f39fc961745bf079aa8df8901289644322
Validate Rule graph
This PR introduces very basic validation for our RuleGraphs. At this moment we make sure that (i) All tree-sitter queries are syntactically correct (ii) Filter fields are configured correctly (this is was something we previously checked) This PR also ensures that the the graph is validated irrespective of where it i...
diff --git a/Cargo.toml b/Cargo.toml index c79b8e32d..202ef8a24 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -61,6 +61,7 @@ tree-sitter-typescript = "0.20.1" tree-sitter-go = { git = "https://github.com/uber/tree-sitter-go.git", rev = "8f807196afab4a1a1256dbf62a011020c6fe7745" } tree-sitter-thrift = "0.5.0" tree-sitt...
4
2
0
[{"id": "G0", "claim": "The Kotlin rules file used `#match`, a miswritten predicate name, where `#match?` was intended (a bug the author found; the corrected `#match?` line is what the comment anchors to).", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim...
null
uber__piranha__509
uber/piranha
509
defect
245dab619d8c9bd81e4d2fdbfc10497fb58247cb
dc8564de66415de7c589ccbcd932f0cbc98b7e5d
Add support to delete a specific index child
Adds a basic feature to delete specific child of a specific node. In addition to `replace_node` not users can define `child_idx` to further narrow down upon the exact sub-tree they want to replace. As a followup, we will 1. allow passing this index via piranha arguments 2. use index of nodes from previousl...
diff --git a/src/cleanup_rules/kt/rules.toml b/src/cleanup_rules/kt/rules.toml index f2f07fce6..ae68a6ce5 100755 --- a/src/cleanup_rules/kt/rules.toml +++ b/src/cleanup_rules/kt/rules.toml @@ -488,7 +488,7 @@ name = "delete_file_with_no_declarations" query = """ (source_file) @source_file""" replace = "" -replace_no...
2
2
0
[{"id": "G0", "claim": "The doc comment on the new `replace_idx` field duplicates the doc of `replace_node` ('The tag corresponding to the node to be replaced'); it should be changed to a doc that properly describes `replace_idx`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introd...
null
uber__piranha__576
uber/piranha
576
defect
b16fa19a340cba45a368adda64c90bf3468e2293
112dcdba87c245de1f0da217f9efc5d903c55a25
Allow the user to specify multiple paths to codebase
Allow user to specify multiple paths to codebase. * Refactored the core "file-fetching" logic * Added tests
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c139dd06b6..d557c71a48 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.1.0 + rev: v4.4.0 hooks: - id: check-byte-order-mar...
6
5
1
[{"id": "G0", "claim": "The retained '# Use the sha or tag you want to point at' comment on the newly pinned prettier rev may no longer be needed and, if it is, should carry more info or a doc reference.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim...
null
uber__piranha__617
uber/piranha
617
defect
b688980bc1755eb445775cae190ac752e2b4b230
0b649a5150564f2c2220c0f48ff4d9007ff538e7
Add a new edge kind - `ParentIterative`
Earlier we had `Parent` and this is how it was processed: ``` for rule in graph.outgoing(current_rule, PARENT): for ancestor in context(current_location): Edit edit = get_edit(rule, ancestor) if edit : return edit ``` For `ParentIterative` we do something subtly different. We l...
diff --git a/src/models/edit.rs b/src/models/edit.rs index 6f1ffd700..f2f75c239 100644 --- a/src/models/edit.rs +++ b/src/models/edit.rs @@ -11,12 +11,14 @@ Copyright (c) 2023 Uber Technologies, Inc. limitations under the License. */ +use std::collections::HashMap; use std::fmt; use super::matches::Range; use...
5
4
0
[{"id": "G0", "claim": "The newly added sample.java test fixture contains extra blank lines that should be removed unless they are intentional.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The spacing between rules in rules.toml should be made...
null
uber__piranha__633
uber/piranha
633
defect
aac91df50010fa9e18b704996f62663a07fb611c
2db236eec677cb3680bb786b179aa9a5d42722bd
Adding the option to use :[x] instead of @x
This changes the instantiation method to make it more intuitive when using concrete syntax It is now possible to ``` match = if (true) :[consq] else :[alt] replace_node = "*" replace = :[consq] ```
diff --git a/src/df/utils.rs b/src/df/utils.rs index 85c6d3052..146aae727 100644 --- a/src/df/utils.rs +++ b/src/df/utils.rs @@ -100,7 +100,7 @@ pub fn get_capture_groups_from_tsq(pattern: String) -> Vec<String> { // maps matched strings to a vec of strings let capture_groups = output_summaries - .get(0) + ...
1
1
1
[{"id": "G0", "claim": "The new :[x] substitution option added by this PR has no test coverage, so a test should be added.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
uber__piranha__671
uber/piranha
671
defect
4bf46828e7fa6dbf239d4ae7ab56acf85f2b12cd
4d11b096086fa2027a643e6dcb084cbd55ad8152
Better concrete syntax semantics
## Overview This pull request introduces two significant changes to the semantics of the concrete syntax matching algorithm. These changes enhance the flexibility and expressiveness of the pattern matching with concrete syntax. ### Change 1: Semantics of Template Variables `:[var]` #### Previous Semantics P...
diff --git a/src/models/concrete_syntax.rs b/src/models/concrete_syntax.rs index d85e937a7..134b22454 100644 --- a/src/models/concrete_syntax.rs +++ b/src/models/concrete_syntax.rs @@ -15,6 +15,7 @@ use crate::models::matches::Range; use regex::Regex; +use itertools::Itertools; use std::collections::HashMap; use...
10
10
1
[{"id": "G0", "claim": "Because :[x] can now match multiple sequential siblings, a rewrite that only rewrites :[x] would loop infinitely.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "match_sequential_siblings is convoluted and should be refactored...
null
uber__piranha__720
uber/piranha
720
defect
357585a880188b35c5ba87ec55a70b78781c0598
6ca4b5a1238f836a85c5babdbfe3ec9f066cb32c
Add delete_comments Flag to Rules
Allows rules to optionally preserve comments during code transformations. Defaults to current behavior (deletion), but can be disabled per rule
diff --git a/polyglot_piranha.pyi b/polyglot_piranha.pyi index 88c6f748e..d46b8d4b0 100644 --- a/polyglot_piranha.pyi +++ b/polyglot_piranha.pyi @@ -227,6 +227,8 @@ class Rule: "Filters to test before applying a rule" is_seed_rule: bool "Marks a rule as a seed rule" + delete_comments: bool + "Marks...
2
2
1
[{"id": "G0", "claim": "The docstring added for the new delete_comments field in polyglot_piranha.pyi wrongly repeats \"Marks a rule as a seed rule\" and should be changed to \"Make comment deleting optional\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G3",...
null
uber__piranha__724
uber/piranha
724
defect
11b71886f0a8a2c496fd1d39cf4cfdb54c1720c4
c18fca1de95c7ea354c3c32afe0a094820d838ac
API changes for deciding whether or not to keep a comment at the rule level
API changes for deciding whether or not to keep a comment at the rule level. Now instead of booleans, we take a set of regex
diff --git a/polyglot_piranha.pyi b/polyglot_piranha.pyi index 9369b940c..607526874 100644 --- a/polyglot_piranha.pyi +++ b/polyglot_piranha.pyi @@ -227,7 +227,7 @@ class Rule: "Filters to test before applying a rule" is_seed_rule: bool "Marks a rule as a seed rule" - delete_comments: bool + keep_c...
1
1
1
[{"id": "G0", "claim": "The keep-comment regexes should be pre-compiled instead of being recompiled with Regex::new on every iteration over sibling comments.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
uber__piranha__767
uber/piranha
767
defect
f972e0d46fc8c5a0731dd722d796c5d643e1b693
a96dbe56a2a4ec152e256f8714e59147182c6952
Adding Directory scope to Piranha
- Added a new scope to Piranha to allow triggering rules within the directory (non-recursive) - Added a new e2e test to test the "Directory" scope.
diff --git a/crates/core/src/models/rule.rs b/crates/core/src/models/rule.rs index b9d823f6c..f0fe1e5ea 100644 --- a/crates/core/src/models/rule.rs +++ b/crates/core/src/models/rule.rs @@ -13,6 +13,7 @@ Copyright (c) 2023 Uber Technologies, Inc. use std::collections::{HashMap, HashSet}; use std::hash::{Hash, Hasher...
2
1
1
[{"id": "G0", "claim": "The reviewer questions whether the someFunc() call site in pkg1/file.go should be replaced at all, since someFunc() is defined in pkg1.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new fixture input/pkg1/sample.go shoul...
null
uber__piranha__768
uber/piranha
768
defect
f972e0d46fc8c5a0731dd722d796c5d643e1b693
e98b8ba1e2d4f78424447c1c3f9d877d35d12da3
Add a Directory Recursive scope to Piranha
DirectoryRecursive rules are global rules that essentially only apply to the directory from which they were triggered (and respective directory tree). Added a new test case for this new scope
diff --git a/crates/core/src/models/rule.rs b/crates/core/src/models/rule.rs index b9d823f6c..0decfe135 100644 --- a/crates/core/src/models/rule.rs +++ b/crates/core/src/models/rule.rs @@ -13,6 +13,14 @@ Copyright (c) 2023 Uber Technologies, Inc. use std::collections::{HashMap, HashSet}; use std::hash::{Hash, Hashe...
1
1
1
[{"id": "G0", "claim": "The DirectoryRecursive scope check uses PathBuf::starts_with() to test whether a file's directory is under scope_dir, which the reviewer says seems fragile and can fail for some paths, and asks whether a Path-like abstraction should be used to check that subdirectories have scope_dir as parent."...
null
uber__piranha__772
uber/piranha
772
defect
dbd57c279a9f492cf42875aae363643541007087
09a7f4ce7b7d4ef9cb9566923cf649789c815999
Add .type constraint to cs
This PR adds a new constraint type to the concrete syntax, letting users restrict the types of nodes they match against. This should lead to significant performance improvements at match time. - Added three new E2E tests for the type matchers - `root` is a special keyword for referring to the entire match, so we ca...
diff --git a/crates/concrete-syntax/src/concrete_syntax.pest b/crates/concrete-syntax/src/concrete_syntax.pest index 717781cf3..8fc588ee9 100644 --- a/crates/concrete-syntax/src/concrete_syntax.pest +++ b/crates/concrete-syntax/src/concrete_syntax.pest @@ -16,11 +16,20 @@ WHITESPACE = _{ (" " | "\t" | "\r" | "\n")+ } ...
1
1
0
[{"id": "G0", "claim": "The placeholder node_type string \"empty\" should be more verbose (e.g. like `<empty-node-type-that-should-never-be-matched>`), since \"empty\" is too generic and could be mistaken for a valid node type when debugging.", "category": "maintainability", "verdict": "supported", "priority": "P2", "s...
null
uber__piranha__775
uber/piranha
775
defect
d05fe5ac851f35d92f38d6bb4d499b9181a716f3
885aefb8677c44d263dceba09ab5344567c59eca
Bug fix in contains clause in concrete syntax
Concrete syntax contains was passing the wrong node for the checker, and was matching with nodes it shouldn't. It was a very subtle bug. This PR should fix it.
diff --git a/crates/concrete-syntax/src/models/concrete_syntax/constraint_checker.rs b/crates/concrete-syntax/src/models/concrete_syntax/constraint_checker.rs index 086818cab..2f6edd516 100644 --- a/crates/concrete-syntax/src/models/concrete_syntax/constraint_checker.rs +++ b/crates/concrete-syntax/src/models/concrete_...
2
2
0
[{"id": "G0", "claim": "The contains check should log through the logging facility instead of using println for debug output.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The newly added node_code computation should be used only for debug prin...
null
uber__react-vis__303
uber/react-vis
303
defect
3b4c2418a03b39bd011e47e0d905e8eee566a992
22606545d62b5bb7750f5e747bbffa2cbfd12209
Added clustered stacked bar chart
Fixes #292 This is an initial proof of concept - I haven't added docs or tests yet as I wanted to validate my approach first. I also haven't added axis labels, although I'm not sure if that should be within the scope of this. This PR adds an optional prop to `BarSeries` - `cluster` - that in the case of a vertic...
diff --git a/showcase/index.js b/showcase/index.js index 8b693e5cf..89d7e0cc9 100644 --- a/showcase/index.js +++ b/showcase/index.js @@ -28,6 +28,7 @@ import LineMarkChart from './plot/linemark-chart'; import BarChart from './plot/bar-chart'; import StackedVerticalBarChart from './plot/stacked-vertical-bar-chart'; i...
7
6
1
[{"id": "G0", "claim": "The clustered stacked bar chart showcase example would read a lot better with a legend (raised as a nit).", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The rewritten series-utils stacking/clustering logic ships with no unit tests...
null
uber__react-vis__447
uber/react-vis
447
defect
72f9247bf2c8d5a02a4aab7be71b443fd25f9e3f
429dc0b43c9db0bef165e2091c7978e65e0449be
Fix VerticalRectSeries - single time slice expands xDomain
Fixes #443
diff --git a/src/utils/scales-utils.js b/src/utils/scales-utils.js index 2631a612d..69adbbc18 100644 --- a/src/utils/scales-utils.js +++ b/src/utils/scales-utils.js @@ -363,7 +363,13 @@ function _computeScaleDistance(values, domain, bestDistIndex, scaleFn) { */ export function _getScaleDistanceAndAdjustedDomain(data...
2
2
1
[{"id": "G0", "claim": "Extract the single-value time-scale fix into a helper method instead of a `let` with in-place mutation, to aid legibility, leave room to grow, and avoid mutating data.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The si...
null
uber__react-vis__685
uber/react-vis
685
defect
8bc5dca37a688f942593b160a4c38c85a0944020
44e4a4da828ec2798b9f52ad663157f93ba20fc5
Add classname and styles to Voronoi cells
Closes #684 This change makes it possible to conditionally add classnames and styles to Voronoi cell, depending on the data points. This PR also adds initial docs for the Voronoi diagram.
diff --git a/src/plot/voronoi.js b/src/plot/voronoi.js index 7d942f03b..75adabc7c 100644 --- a/src/plot/voronoi.js +++ b/src/plot/voronoi.js @@ -16,7 +16,8 @@ function Voronoi({ polygonStyle, style, x, - y + y, + cellClassName }) { // Create a voronoi with each node center points const voronoiInstanc...
5
5
2
[{"id": "G0", "claim": "The new prop's name `cellClassName` is unappealing, and it perhaps should also accept strings rather than only functions.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It might be better for the cellClassName default to derive th...
null
uber__rides-android-sdk__128
uber/rides-android-sdk
128
defect
e37dbbc4d5367e5edc8c356d10be8f3d0071ecdf
c2244cb3d577e01210ed2f2632b6041d176bbf2d
Add ability to force Auth Code Flow instead of Implicit Grant
Description: Update `LoginManager.login()` so that it increases the priority of the Auth Code Flow. Now setting 'LoginManager.setAuthCodeFlowEnabled()` will take priority over Implicit Grant even for non-privileged scopes. This gives clients the ability to configure a setup whereby they can guarantee they will get a re...
diff --git a/README.md b/README.md index c04da18f..7bfc6ec9 100644 --- a/README.md +++ b/README.md @@ -287,14 +287,14 @@ SessionConfiguration config = new SessionConfiguration.Builder() .setRedirectUri("https://example.com/redirect") //Where this is your configured server .build(); -loginManager.setAuthCode...
3
2
1
[{"id": "G0", "claim": "The PR author or maintainer should not add the new auth-code-flow public API (with the forceAuthCodeFlow/enableAuthCodeFlow combination) because it could confuse users and public methods are hard to break once introduced; modifying the backend to return a refresh token on implicit grant was prop...
null
uber__rides-android-sdk__131
uber/rides-android-sdk
131
defect
e37dbbc4d5367e5edc8c356d10be8f3d0071ecdf
d463e5345275b43ed98aea72cb80c1aeed7a0d55
Adding support to SSO with Uber Eats
Description: Introduces `SupportedAppType` to differentiate the API's of `AppProtocol`. This adds a public API for `AppProtocol.isInstalled(Context, SupportedAppType)`. LoginManager's API is unchanged and will attempt to SSO with Uber apps in the order defined by `SupportedAppType`, Uber then Uber Eats. Some ...
diff --git a/core-android/src/main/java/com/uber/sdk/android/core/SupportedAppType.java b/core-android/src/main/java/com/uber/sdk/android/core/SupportedAppType.java new file mode 100644 index 00000000..7a9c4e30 --- /dev/null +++ b/core-android/src/main/java/com/uber/sdk/android/core/SupportedAppType.java @@ -0,0 +1,14 ...
3
2
1
[{"id": "G0", "claim": "The pull request's new wildcard imports (java.util.*, Preconditions.*) should be replaced with proper explicit imports.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Eats and Rides SSO can authenticate the same scopes an...
null
uber__rides-android-sdk__140
uber/rides-android-sdk
140
defect
ca271069e6e93c3ffb8e20fc81e475368ceb3b37
bc84a0fa86efc6126447ac357e0775cbbb76997b
Update LoginManager to support IETF RFC 8252 compliance
Description: Updates `LoginManager` and `LoginActivity` in order to support the new SSO Flow implemented in the mobile apps conforming to [RFC 8252](https://tools.ietf.org/html/rfc8252). In the new flow `LoginActivity` receives the response from the eater/rider app in `handleResponse` instead of sending it directly ...
diff --git a/core-android/src/main/java/com/uber/sdk/android/core/auth/LoginActivity.java b/core-android/src/main/java/com/uber/sdk/android/core/auth/LoginActivity.java index 7f33ef6e..b4f51cd6 100644 --- a/core-android/src/main/java/com/uber/sdk/android/core/auth/LoginActivity.java +++ b/core-android/src/main/java/com...
3
2
0
[{"id": "G0", "claim": "The fallback redirect URI clause in LoginActivity.loadUrl() has a typo and should build the default as the package name plus '.uberauth://redirect' (as the readme and other code do) instead of appending 'uberauth'.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "...
null
uber__rides-android-sdk__192
uber/rides-android-sdk
192
defect
233abbb9ca1f1a29381c7279f90ee0ec10b82de2
f7f76f373020fe4166d31d05e0c1fbcf24e6bb63
Integrating PAR flow
- integrated the par flow to prefill profile information from 3P to uber auth flows. It can be done by setting ProfileHint in the SessionConfiguration object - updated java version to 1.8 for core lib - updated endpoint to auth from login - replaced jcenter with mavenCentral - unit tests
diff --git a/build.gradle b/build.gradle index afc8b43f..5a459617 100644 --- a/build.gradle +++ b/build.gradle @@ -19,7 +19,7 @@ buildscript { repositories { google() - jcenter() + mavenCentral() maven { url deps.build.repositories.plugins } } dependencies { diff --git a...
11
7
4
[{"id": "G0", "claim": "Changing compileOptions to Java 1.8 may force third-party clients that are still on Java 1.7 onto that version.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Appending request_uri to the authorization URL query parameters may expos...
null
uber__rides-android-sdk__213
uber/rides-android-sdk
213
defect
878a0d6707c95fdf12825681e65c769d7f647b7d
b467c49b14c660fd70501a4d6939f78ee3f21c05
Upgrading the repo dependencies and tooling to current android standards
The repo was not updated for several years so this diff contains a bunch of upgrades to modernize the repo. - Gradle 8.2.1 - Migrate to kotlin gradle dsl - Migrating to using versions catalog instead of dependency.gradle - AGP 8.2 - Updating build to use jdk 17 because AGP requires a gradle JVM that supports ve...
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8065f349..a3412941 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,7 +14,7 @@ jobs: uses: actions/setup-java@v2 with: distribution: 'adopt' - java-version: '8' + ...
7
2
0
[{"id": "G0", "claim": "Bumping the CI build workflow's java-version from 8 to 17 may be incompatible with their current tooling, so they might need to stay on 8 (pending confirmation from jbarr21).", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Consi...
null
uber__tchannel-java__13
uber/tchannel-java
13
defect
e73bdf4d0199956c98028d9a2bad375478d87166
2b16072a59772d66fc709da47dd48e24cda285d3
fix memory leaks in examples
# Motivation We were seeing ByteBuf memory leaks #11, which I thought were in the pipeline but instead had to do with us not args in Client/Server handlers after they received requests/responses. To decouple request/response in the API from the FullMessage types in the MessageMultiplexer, we've made FullMessage an in...
diff --git a/tchannel-core/src/main/java/com/uber/tchannel/api/RawRequest.java b/tchannel-core/src/main/java/com/uber/tchannel/api/RawRequest.java new file mode 100644 index 0000000..58fa99e --- /dev/null +++ b/tchannel-core/src/main/java/com/uber/tchannel/api/RawRequest.java @@ -0,0 +1,86 @@ +/* + * Copyright (c) 2015...
3
3
0
[{"id": "G0", "claim": "RawRequest and RawResponse have no docstrings explaining what they are used for; docstrings should be added to both classes.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Releasing the FullMessage ByteBufs manually in the ...
null
uber__tchannel-java__146
uber/tchannel-java
146
defect
ea5cc6b1ac09efb1a184b4189b4dfad3b6c7093a
a245678347bdf0dfa56eb17e4199cf67a3d99a04
ThriftAsyncFutureHandler and AsyncRequestHandler
- Both types are meant to support async handling of requests. AsyncRequestHandler provides a way for handler to return a future rather than a synchonous response like the RequestHandler. - ThriftAsyncRequestHandler further scopes it down to Thrift handlers and allowing those to return futures This should resolve...
diff --git a/tchannel-core/src/main/java/com/uber/tchannel/api/handlers/AsyncRequestHandler.java b/tchannel-core/src/main/java/com/uber/tchannel/api/handlers/AsyncRequestHandler.java new file mode 100644 index 0000000..645abeb --- /dev/null +++ b/tchannel-core/src/main/java/com/uber/tchannel/api/handlers/AsyncRequestHa...
3
3
1
[{"id": "G0", "claim": "Handling the request in ThriftAsyncRequestHandler will break tracing because it does not create a new span; wrapping the tracing logic around the request like CallableHandler does would be sufficient.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, ...
null
uber__tchannel-java__31
uber/tchannel-java
31
defect
3b5229568c5b042cac04897fd2d8902d9ed61cb6
3a78eb6a082cea9508cdbd90815a607b22c34cf4
Cleanup APIs to Match
# Why Cleanup Client and Server APIs to match #27 and #29. Due to the silly-big diff ( sorry :frowning: ), and Jabba in general, I recommend looking at this diff 'side-by-side'. After this, the API should stabilize and diffs will be less silly. # How To simplify Request / Responses for Clients, we've made **hard** ...
diff --git a/README.md b/README.md index a798912..914d2c5 100644 --- a/README.md +++ b/README.md @@ -20,40 +20,51 @@ A Java implementation of the [TChannel](https://github.com/uber/tchannel) protoc - Handling Errors properly - Performance -## *Proposed* Example Usage +## Example Usage ```java -TChannel server = ...
4
2
0
[{"id": "G0", "claim": "RequestRouter throws a bare RuntimeException when the Arg Scheme header is missing; the reviewer asks whether there is a TChannel-specified exception that should be thrown instead for malformed headers.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"i...
null
uber__tchannel-java__52
uber/tchannel-java
52
defect
0e2ca30fa0b2a332b2936f4f10e34ba6dc3efe68
00910e7b7a2dd33516302089e18fcc32f60ca6e1
Expose TTL and Response Code
# Why We weren't exposing Request TTLs nor Response Error code. # Misc - Move required fields for Request and Response to the constructor - Definitely needs more tests…
diff --git a/tchannel-core/src/main/java/com/uber/tchannel/api/Request.java b/tchannel-core/src/main/java/com/uber/tchannel/api/Request.java index 749fb40..cdff600 100644 --- a/tchannel-core/src/main/java/com/uber/tchannel/api/Request.java +++ b/tchannel-core/src/main/java/com/uber/tchannel/api/Request.java @@ -28,6 +2...
5
3
0
[{"id": "G0", "claim": "The DEFAULT_TTL constant makes little sense; the default value of 100 can be assigned directly to the ttl field instead.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The PingHandler pipeline addition may already be pres...
null
uber__uReplicator__122
uber/uReplicator
122
defect
e3e4e46462bda28895e2e2b80aa7fd70b7ae83db
6bf6382668154b1c57343fddff2d06a41777034c
Update manager auto-balance
1. Fix controller offline when route is not established 2. Fix manager auto-balance when config is changed
diff --git a/uReplicator-Controller/src/main/java/com/uber/stream/kafka/mirrormaker/controller/core/ManagerControllerHelix.java b/uReplicator-Controller/src/main/java/com/uber/stream/kafka/mirrormaker/controller/core/ManagerControllerHelix.java index bcbe94b5..280b236a 100644 --- a/uReplicator-Controller/src/main/java/...
1
1
0
[{"id": "G0", "claim": "The reviewer asks why the number of workers is checked a second time (`itph.getWorkerSet().size() < expectedNumWorkers`, where `expectedNumWorkers` is assigned from `_initMaxNumWorkersPerRoute`) inside a block already guarded by the same condition `itph.getWorkerSet().size() < _initMaxNumWorkers...
null
uber__uReplicator__202
uber/uReplicator
202
defect
0b848cbb48020dcb2dfddb4b53fb1ad1936ee48c
5cee4c3c7da86d526a80d357d6c91a7794e3bdc4
controller static id and disable controller reblanace by default
1. controller use static instead id instead of hostname 2. disable controller auto rebalance 3. fix bug in delete pipeline 4. fix typo in adminresource 5. update some opt name in manager admin resource to align with controller admin resource
diff --git a/docker-compose-example5.yml b/docker-compose-example5.yml index 2db6dd7b..124067bb 100644 --- a/docker-compose-example5.yml +++ b/docker-compose-example5.yml @@ -69,7 +69,9 @@ services: -mode customized \ -zookeeper devenv:2181/ureplicator-example \ -port 9000 \ - ...
11
8
1
[{"id": "G0", "claim": "Remove one of the two spaces before example/example-cluster.properties in the worker command.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Set the property-store top level to something like a \"Controller id to hostname map\" key...
null
ubuntu__WSL__292
ubuntu/WSL
292
defect
564d4b69c9f799e78a8c6a40cf5be76703601ff3
a0ddde5385248e5b1e813178da147e7eb0a0f04d
Adding e2e testing relating to config
The launcher modifies some config files in WSL. These tests verify this happens. Feature commits: - [96dc60f](https://github.com/ubuntu/WSL/pull/292/commits/96dc60fed90c6e378b7a75c28bef92b7b8a8c180) tests that systemd is enabled and that the fixes the launcher applies to to sysusers service work. - [8acfd93](https...
diff --git a/e2e/test-runner/go.mod b/e2e/test-runner/go.mod index 68dd0e1d9..47014de6d 100644 --- a/e2e/test-runner/go.mod +++ b/e2e/test-runner/go.mod @@ -3,4 +3,7 @@ module github.com/ubuntu/wsl/e2e/test-runner go 1.18 require github.com/ubuntu/wsl/e2e/constants v0.0.0 + +require gopkg.in/ini.v1 v1.67.0 // indir...
7
7
2
[{"id": "G0", "claim": "The debugging invocation \"install --root --ui=none\" slipped through and the test should invoke the launcher with \"install --ui=gui\" as the comment says.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The two require claus...
null
ubuntu__WSL__508
ubuntu/WSL
508
defect
7ebeb4e1dabf44381674461f8c4da4dc8cd99b33
98e230c6ea8f771551d78c5bf396ad11e712dc14
Fix cloud-init blocking on WSL1
`cloud-init status --wait` blocks forever if cloud-init won't ever start. Known cases where that may happen: 1. the cloud-init systemd units being masked or disabled by default in the rootfs (not our case) 1. systemd not enabled by default in the rootfs image (not our case either) 1. the distro instance being regist...
diff --git a/.github/actions/download-rootfs/action.yaml b/.github/actions/download-rootfs/action.yaml index d6ed8125a..7cd5d69bd 100644 --- a/.github/actions/download-rootfs/action.yaml +++ b/.github/actions/download-rootfs/action.yaml @@ -1,5 +1,5 @@ name: Download Ubuntu WSL Rootfs -description: Download the latest...
2
2
2
[{"id": "G0", "claim": "In download-rootfs.ps1 the checksum extraction changed from .Matches[0] to .Matches, and the reviewer asks whether there is a reason the indexing was effectively dropped (it would break the value read).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}...
null
ubuntu__lightdm__104
ubuntu/lightdm
104
defect
fa30fc604c5f54cc10ef165d3c577ddd79afc637
b06aaa2b64aa20977a4ebd23c05ae72aeefe4bec
Determine a session is wayland with a better heuristic
Using the compiled in string WAYLAND_SESSIONS_DIR had some problems. In environments like NixOS, which install packages under their own immutable prefix under /nix/store. this assumption that the package would be compiled with `datadir=/usr/share` will break down. Checking if the directory contains the appropriate ...
diff --git a/liblightdm-gobject/Makefile.am b/liblightdm-gobject/Makefile.am index fe3f9edf7..fc672dad9 100644 --- a/liblightdm-gobject/Makefile.am +++ b/liblightdm-gobject/Makefile.am @@ -9,7 +9,6 @@ liblightdm_gobject_1_la_CFLAGS = $(LIBLIGHTDM_GOBJECT_CFLAGS) \ -I"$(top_srcdir)/common" \ -DCONFIG_DIR=\"$(sysconf...
1
1
0
[{"id": "G0", "claim": "Add the missing space before the opening parenthesis of g_str_has_suffix in the new condition in liblightdm-gobject/session.c and src/seat.c.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
ubuntu__lightdm__300
ubuntu/lightdm
300
defect
38bb55721a0ad5eb7adfa0aa503ce9dc641bcd1d
72ff7420c0c61dd686da88884e0afd37c4eb7827
Multiseat bug fixes, and some cleanups
This PR contains a few fixes that affect multiseat, especially with Wayland. There are also several cleanups. The important bits: * Initialize `WaylandSessionPrivate.vt` to -1 so that LightDM doesn't erroneously attempt to switch to VT 0 or set `XDG_VTNR` on non-`seat0` seats. * Use systemd-logind to discover...
diff --git a/src/lightdm.c b/src/lightdm.c index 0ccfcd78..7fd77ed9 100644 --- a/src/lightdm.c +++ b/src/lightdm.c @@ -423,12 +423,10 @@ add_login1_seat (Login1Seat *login1_seat) { set_seat_properties (seat, seat_name); - if (!login1_seat_get_can_multi_session (login1_seat)) - { + g...
1
1
0
[{"id": "G0", "claim": "Move the comment above the `if (session == priv->session_to_activate)` as before, or add braces, so that the g_clear_object is visibly part of the branch.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
ubuntu__lightdm__323
ubuntu/lightdm
323
defect
1ade713d2da82abf5ece9a26dc79ffa908d77f89
a100b7856f66c0e55bb8d55e74e8c1765b493e37
Add support for changing the home directory in PAM modules
PAM modules such as pam_mklocaluser may change or even create the home directory. Currently, LightDM assumes that the home directory will not change when opening the PAM session, the user's home directory is obtained via getpwent() after authentication but before opening the session. Fix this by trying to update the u...
diff --git a/src/session-child.c b/src/session-child.c index 112daabe..0284f70b 100644 --- a/src/session-child.c +++ b/src/session-child.c @@ -599,9 +599,20 @@ session_child_run (int argc, char **argv) } } + /* try to get HOME from PAM since it might have been changed */ + const gchar *home_direct...
3
2
2
[{"id": "G0", "claim": "The new g_printerr (\"chdir: %s\\n\", strerror (errno)) on chdir failure looks like left-over debugging and may not be required.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The home directory should be returned in the \"...
null
ubuntu__ubuntu-report__34
ubuntu/ubuntu-report
34
defect
826661fd99af55ba538815cdee847584d357a690
0ff9f9d36073171322abe56e6125f76f41430137
Include version 1.6.3 and add metric for hwcaps
I decided not to add mocks for the `apt-cache policy libc6` command in all test cases because the builds and autopkgtests should always be running in an environment with glibc > 2.33. If that is an unsafe assumption I can mock out those commands in all tests. A sample of the command "ubuntu-report show" with the new...
diff --git a/cmd/ubuntu-report/main_test.go b/cmd/ubuntu-report/main_test.go index 315715c..7b75fbf 100644 --- a/cmd/ubuntu-report/main_test.go +++ b/cmd/ubuntu-report/main_test.go @@ -102,7 +102,7 @@ func TestVerbosity(t *testing.T) { l := scanner.Text() if strings.Contains(l, "level=info") { allowe...
7
7
5
[{"id": "G0", "claim": "The ld binary map declaration and initialization should be moved before the Metrics struct creation so the fields can be directly assigned at instantiation, as every other field is.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "T...
null
ubuntu__ubuntu-report__69
ubuntu/ubuntu-report
69
defect
96f37d845fac982c292c6d11f7f914982e82025b
f5b4b1053d0d4fa65f70c2a35b952820d477391d
Fix CPU reporting
Closes #68 Fixes CPU reporting by implementing proper JSON parsing and implementing it for lscpu -J. Tests have been updated to now better reflect `lscpu -J'`s output (Whitespace, new lines, and children) For other things that could also be in JSON format, it should be fairly easy to add onto json.go with the ...
diff --git a/internal/metrics/binmocks_test.go b/internal/metrics/binmocks_test.go index 08c0cfe..53c1574 100644 --- a/internal/metrics/binmocks_test.go +++ b/internal/metrics/binmocks_test.go @@ -81,31 +81,127 @@ func TestMetricsHelperProcess(*testing.T) { } regularOutput := `{ "lscpu": [ - {"field": "A...
3
3
1
[{"id": "G0", "claim": "The unchecked type assertion `lscpu := result.(*Lscpu)` will panic if the cast fails; use the two-value form with `, ok` and handle the failure instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The recursive cpuInfo-pop...
null
ucbepic__docetl__428
ucbepic/docetl
428
defect
0f6d9514e3e9b2ba5cd21010e6f3af7f746450fb
11d3462b91b9e86a3c4b49c788744fe2946e8c65
Fix cosine similarity blocking in resolve operation
The cosine similarity blocking was broken - when blocking_threshold was specified, it wasn't actually filtering out pairs below the threshold. Instead, it was only using cosine similarity to add extra pairs if there was remaining capacity after other blocking methods. Changes: - Fixed blocking logic to start with e...
diff --git a/docetl/operations/resolve.py b/docetl/operations/resolve.py index 4b76f796..2f21d4eb 100644 --- a/docetl/operations/resolve.py +++ b/docetl/operations/resolve.py @@ -331,52 +331,68 @@ def meets_blocking_conditions(pair: tuple[int, int]) -> bool: is_match(input_data[i], input_data[j]) if bl...
1
1
1
[{"id": "G0", "claim": "When both blocking_conditions and blocking_threshold are unset, the resolve operation performs zero comparisons because code_blocked_pairs is initialized as an empty list, losing the previous fallback to all comparison_pairs and making the operation a no-op.", "category": "correctness", "verdict...
null
ucla-vision__xivo__36
ucla-vision/xivo
36
defect
f592bb143ff17e51b394d51236f749adbfc35dff
f352f3b5388b2930815d58e3af6255aa7e185501
Added triangulation methods
I have added the triangulation methods. To use different methods, change the method number in config file to following numbers- 3 - l1 triangulation 4 - l2 triangulation 5 - l_inf triangulation The benchmarks results are - L1 absolute_translational_error.rmse 0.048211 m translational_error.rmse 0.021485 m ...
diff --git a/cfg/phab.json b/cfg/phab.json index bc9433a0..07aca24a 100644 --- a/cfg/phab.json +++ b/cfg/phab.json @@ -133,7 +133,7 @@ // pre-subfilter triangulation options "triangulation": { - "method": 1, + "method": 5, "zmin": 0.05, "zmax": 5.0 }, diff --git a/src/feature.cpp b/src/featur...
2
2
0
[{"id": "G0", "claim": "Use more meaningful descriptive names (e.g. \"L1\", \"Linf\", DirectLinearTransformSVD) for the triangulation methods instead of numbers, in the config value and the function names Triangulate1 through Triangulate5.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scop...
null
ucloud__terraform-provider-ucloud__170
ucloud/terraform-provider-ucloud
170
defect
aba7fbeac505616499c8505f837ff971ece71efe
b17ffcb577fd70e613d229eada5549bd33ccf7e9
add associate/disassociate support for share bandwidth EIP
- add associate/disassociate support for share bandwidth EIP
diff --git a/.gitignore b/.gitignore index 8b494661..63029e70 100644 --- a/.gitignore +++ b/.gitignore @@ -34,4 +34,6 @@ website/vendor # Keep windows files with windows line endings *.winfile eol=crlf /.vs -.vscode/ \ No newline at end of file +.vscode/ +.worktrees/ +docs/plans diff --git a/ucloud/resource_ucloud_e...
13
8
8
[{"id": "G0", "claim": "The TestValidateSharedBandwidthConfig_WithPackageId_InvalidBandwidth-style test with bandwidth=0 will fail because the schema-level ValidateFunc validation.IntBetween(1, 800) rejects bandwidth=0 before validateSharedBandwidthConfig is ever called.", "category": "correctness", "verdict": "support...
null
udecode__plate__3149
udecode/plate
3,149
defect
858582bac8cada783f40390966ecb6fd58f18bcc
703e69efe53d8484f19cf50442d245453fe9f70a
[SerializerHtml] Remove `renderToStaticMarkup` from client code
## Summary Fixes #1123 Fixes #1047 Related issue on slate https://github.com/ianstormtaylor/slate/issues/5012 See [react APIs update](https://react.dev/reference/react-dom/server/renderToString#removing-rendertostring-from-the-client-code) for more details - Removes `renderToStaticMarkup` from client code -...
diff --git a/packages/serializer-html/src/elementToHtml.ts b/packages/serializer-html/src/elementToHtml.ts index 9768ab4474..5358b076ca 100644 --- a/packages/serializer-html/src/elementToHtml.ts +++ b/packages/serializer-html/src/elementToHtml.ts @@ -8,9 +8,9 @@ import { Value, } from '@udecode/plate-common'; impo...
1
1
1
[{"id": "G0", "claim": "Replacing react-dom/server's renderToStaticMarkup with a client-only implementation that needs `document` breaks `serializeHtml` in non-browser environments, which the maintainer says is likely going to be a problem for many users and asks whether separate client and server versions of the packa...
null
udecode__plate__3368
udecode/plate
3,368
defect
1da173308f9a57ed5e79e7ea33600d80d6650a3f
8b0901755979a0b333e3271198b498f6ecc20ba1
fix table column count when first row has merged columns
**Checklist** - [x] `yarn typecheck` - [x] `yarn lint:fix` - [x] `yarn test` - [x] `yarn brl`
diff --git a/packages/table/src/queries/getTableColumnCount.spec.tsx b/packages/table/src/queries/getTableColumnCount.spec.tsx new file mode 100644 index 0000000000..6965069ce8 --- /dev/null +++ b/packages/table/src/queries/getTableColumnCount.spec.tsx @@ -0,0 +1,57 @@ + +import { getTableColumnCount } from './getTable...
1
1
1
[{"id": "G0", "claim": "The tests need fixing: the serializer-to-html case fails with the pull request's changes.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
udecode__plate__3457
udecode/plate
3,457
defect
920383a05feaa0c2ff05cba5a1865c23606b22d5
6503f2f357b1e8f29ef1e3c147fdfcf8d259cab9
Use block factory to create elements in exit break
**Checklist** - [x] `yarn typecheck` - [x] `yarn lint:fix` - [x] `yarn test` - [x] `yarn brl` - [x] `yarn changeset` - [x] [ui changelog](apps/www/content/docs/components/changelog.mdx) <!-- Thanks for the PR. Please complete the checklist below to ensure your PR can be merged as soon as possible. - yar...
diff --git a/.changeset/loud-frogs-grow.md b/.changeset/loud-frogs-grow.md new file mode 100644 index 0000000000..008e5e643d --- /dev/null +++ b/.changeset/loud-frogs-grow.md @@ -0,0 +1,5 @@ +--- +'@udecode/plate-break': patch +--- + +Use blockFactory to create elements with exitBreak diff --git a/packages/break/src/ex...
1
1
0
[{"id": "G0", "claim": "Many more instances across the packages could receive the same blockFactory patch, and the author asks whether to fix them all in this PR or in separate PRs.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
udecode__plate__3679
udecode/plate
3,679
defect
ac5aa5e71a57eddfe0b70d4dbf97ffbf909d0b7d
62ce4a5cafd1574a327664972e52e61a996637d1
feat: split line breaks into separate paragraphs during Markdown deserialization
**Checklist** - [x] `yarn typecheck` - [x] `yarn lint:fix` - [x] `yarn test` - [x] `yarn brl` - [x] `yarn changeset` - [x] [ui changelog](apps/www/content/docs/components/changelog.mdx) <!-- Thanks for the PR. Please complete the checklist below to ensure your PR can be merged as soon as possible. - yar...
diff --git a/packages/markdown/src/lib/MarkdownPlugin.ts b/packages/markdown/src/lib/MarkdownPlugin.ts index ad915978a4..6291943f05 100644 --- a/packages/markdown/src/lib/MarkdownPlugin.ts +++ b/packages/markdown/src/lib/MarkdownPlugin.ts @@ -26,6 +26,17 @@ export type MarkdownConfig = PluginConfig< /** Override e...
8
8
1
[{"id": "G0", "claim": "The keepLineBreak option name is misleading — \"keep\" implies line breaks are preserved in their natural form rather than split into paragraphs — so the option should be renamed (e.g. splitLineBreaks) and default to false.", "category": "design", "verdict": "supported", "priority": "P1", "scope...
null
udecode__plate__3896
udecode/plate
3,896
defect
cc3294156e922a4d91418d4077fb1934765c386b
dbebfece1e3bc1c12fe2f1d00bfe0b5b78d61094
chore: updated handling of markdown headers
**Checklist** - [x] `yarn typecheck` - [x] `yarn lint:fix` - [x] `yarn test` - [x] `yarn brl` - [x] `yarn changeset` - [x] [ui changelog](apps/www/content/docs/components/changelog.mdx) This PR updates the handling of headers when deserializing markdown. Tests have been updated as well.
diff --git a/packages/markdown/src/lib/deserializer/utils/deserializeMd.spec.tsx b/packages/markdown/src/lib/deserializer/utils/deserializeMd.spec.tsx index 9716518543..66f2ba8941 100644 --- a/packages/markdown/src/lib/deserializer/utils/deserializeMd.spec.tsx +++ b/packages/markdown/src/lib/deserializer/utils/deserial...
1
1
0
[{"id": "G0", "claim": "The heading transform should not console.warn when the heading type is not registered in the editor, and should instead default to a supported heading type (e.g. h3).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
udecode__plate__4043
udecode/plate
4,043
defect
016b7ee0989c8c7cfdd8c7893eb64d7310268266
1383899e5f11023ba78bf7527563e6f514e17b01
json formatting in code-block plugin
**Checklist** - [x] `yarn typecheck` - [x] `yarn lint:fix` - [x] `yarn test` - [x] `yarn brl` - [x] `yarn changeset` - [x] [ui changelog](apps/www/content/docs/components/changelog.mdx) <!-- Thanks for the PR. Please complete the checklist below to ensure your PR can be merged as soon as possible. - yar...
diff --git a/apps/www/src/registry/default/plate-ui/code-block-element.tsx b/apps/www/src/registry/default/plate-ui/code-block-element.tsx index 5dee8c46b1..6b8a189c43 100644 --- a/apps/www/src/registry/default/plate-ui/code-block-element.tsx +++ b/apps/www/src/registry/default/plate-ui/code-block-element.tsx @@ -6,6 +...
9
9
0
[{"id": "G0", "claim": "The exported hook `useCodeBlockFormat` should be renamed to a plain `formatCodeBlock(editor, { element })` function instead of a React hook.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The hook should be restructured: drop the ...
null
udecode__plate__4452
udecode/plate
4,452
defect
37a4f7897403c2d090d82c419d642eb3b5b285d8
65b6e6ae11536259000623fc864f1a28567b0587
fix(link): prevent markdown headings from being converted to links
Fixes #4450 ## Summary The LinkPlugin's `validateUrl` function now properly distinguishes between markdown headings and anchor links. Previously, any string starting with `#` was treated as a valid link, causing markdown headings like `# heading1` to be converted to links when pasted. Now, the function che...
diff --git a/.changeset/fix-markdown-heading-link.md b/.changeset/fix-markdown-heading-link.md new file mode 100644 index 0000000000..84e86440d0 --- /dev/null +++ b/.changeset/fix-markdown-heading-link.md @@ -0,0 +1,7 @@ +--- +"@platejs/link": patch +--- + +Fix markdown headings being incorrectly converted to links + +...
5
4
4
[{"id": "G0", "claim": "The added spec file fails typecheck with TS2749 ('BaseLinkPlugin' used as a type at line 7) and TS7006 (implicit 'any' for the 'url' parameter at line 77), making the CI typecheck command exit 2; the errors should be fixed.", "category": "correctness", "verdict": "supported", "priority": "P0", "...
null
udecode__plate__4620
udecode/plate
4,620
defect
63d0e9dae849cae4ad0f486e1b825a5b6fe1aecf
4d07c249fb8b411de29053c989a6690bfd5da534
Fix `remarkStringifyOptions` not taken into account
Fixes #4615. Forgot to add it to plugin config and correctly merge the options. Also added a test.
diff --git a/.changeset/hot-students-sort.md b/.changeset/hot-students-sort.md new file mode 100644 index 0000000000..293204f473 --- /dev/null +++ b/.changeset/hot-students-sort.md @@ -0,0 +1,5 @@ +--- +'@platejs/markdown': patch +--- + +Fix remarkStringifyOptions not taken into account diff --git a/packages/markdown/s...
1
1
1
[{"id": "G0", "claim": "The plugin must set `remarkStringifyOptions: null` in its option defaults (after the allowNode default around L91) so that the new option is added to the plugin store.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
udecode__plate__4729
udecode/plate
4,729
defect
21cb30810310d86a863372eb0e7848c6faa27dcc
cb5863555d26da7a74d3be764ee27877128f77a6
Fix/tomdy table math
**Checklist** - [x] `yarn typecheck` - [x] `yarn lint:fix` - [x] `yarn test` - [x] `yarn brl` - [x] `yarn changeset` - [x] [ui changelog](docs/components/changelog.mdx) <!-- Thanks for the PR. Please complete the checklist below to ensure your PR can be merged as soon as possible. - yarn brl: Required...
diff --git a/packages/markdown/src/lib/rules/defaultRule.spec.ts b/packages/markdown/src/lib/rules/defaultRule.spec.ts index 0cdf360c48..9c3993f665 100644 --- a/packages/markdown/src/lib/rules/defaultRule.spec.ts +++ b/packages/markdown/src/lib/rules/defaultRule.spec.ts @@ -5,6 +5,7 @@ import { createPlateEditor, Parag...
1
1
0
[{"id": "G0", "claim": "The table deserializer should use `getPluginType(editor, KEYS.p)` instead of the raw `KEYS.p` string for the paragraph type in generated cell paragraphs.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
udecode__plate__4907
udecode/plate
4,907
defect
db54087a18c653b0185affbfc9130dd3f6e8a531
b13e04c572445f76e2c4abddb560ce77b2df8c0d
fix(code-block): preserve syntax highlighting after format
## Summary Fixes #4520 by handling the real formatter path. `formatCodeBlock` now rewrites formatted JSON into real `code_line` nodes and forces a redecorate pass, so syntax highlighting survives the format action instead of collapsing after multiline output. This adds a formatter regression test, a changeset, and a ...
diff --git a/.changeset/code-block-format-highlight-patch.md b/.changeset/code-block-format-highlight-patch.md new file mode 100644 index 0000000000..7cdf533a92 --- /dev/null +++ b/.changeset/code-block-format-highlight-patch.md @@ -0,0 +1,5 @@ +--- +'@platejs/code-block': patch +--- + +- Fixed `formatCodeBlock` to rew...
1
1
1
[{"id": "G0", "claim": "Committing the dev-only `./.next/dev/types/routes.d.ts` import in apps/www/next-env.d.ts can make the app's typecheck/build fail with TS2307 on clean checkouts or CI unless a local dev server has already created `.next/dev`, so the stable generated path `./.next/types/routes.d.ts` should be rest...
null
udem-dlteam__pnut__123
udem-dlteam/pnut
123
defect
d6d74dcd0aab6db214ccd6edf3a12a9d37a77a63
bedcfc53923d98fdf2ea58fcc2a53a9886752994
Fixed several issues relating to the static and const keywords
This fixes several miscompilations I discovering when attempting to transpile my c code. I also added debug functionality to the parse_error() function which will emit the line and file of where the error was generated. This is helpful for finding out which part of the parser is not working.
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4668c5ef..f29661c3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -47,9 +47,9 @@ jobs: run: | set -e check_dir() { # $1 is the file extension, $2 is the directory and $3 the max depth t...
5
5
1
[{"id": "G0", "claim": "The parser should not silently drop the `static` specifier since, unlike `const`, dropping it changes the semantic of the program; if pnut is to ignore `static` at all, the reviewer suggested a `define static` expansion to empty at the top of the project instead.", "category": "correctness", "ve...
null
udem-dlteam__pnut__134
udem-dlteam/pnut
134
defect
93bbc5c7212e7f64832f0216807703f24d9a9483
d3c9e3f82f1a51959d146f7885e843e00c9f2f0c
Add support for switch with case statement instead of block statement
As demonstrated by [https://godbolt.org/z/zoh6c3Psq](url), a edge case for the syntax of the switch statement: [https://learn.microsoft.com/en-us/cpp/c-language/switch-statement-c?view=msvc-170](url), **switch** ( _expression_ ) _statement_ where _statement_, although almost always a block-statement, isn't requir...
diff --git a/sh.c b/sh.c index 5a582340..c995fcb9 100644 --- a/sh.c +++ b/sh.c @@ -1789,11 +1789,19 @@ bool comp_switch(ast node) { node = get_child(node, 1); - if (node == 0 || get_op(node) != '{') fatal_error("comp_statement: switch without body"); - - while (get_op(node) == '{') { - statement = get_child...
1
1
0
[{"id": "G0", "claim": "Changing the switch handling so it always produces a '{' node (wrapping a non-block case body with new_ast2('{', child1, 0)) would be best, so the bodiless form simplifies to the typical syntax and also works with switch statements like switch (456) { putchar('B'); }.", "category": "design", "ve...
null
udem-dlteam__pnut__136
udem-dlteam/pnut
136
defect
93bbc5c7212e7f64832f0216807703f24d9a9483
e5699fa8c157d0fbf22d2373fbde7f83254edecc
Added buffer in get_ch() for line continuation lookahead
Problem statement: #135 This PR aims to allow pnut.c::get_ch() as simply as possible to walk over line continuations while being compatible with the existing code for parsing escape sequences. This support is optional and can be disabled by removing line 48: `#define SUPPORT_LINE_CONTINUATION`
diff --git a/pnut.c b/pnut.c index 2ebe14cc..3b4a561c 100644 --- a/pnut.c +++ b/pnut.c @@ -44,6 +44,8 @@ // Use positional parameter directly for function parameters that are constants #define OPTIMIZE_CONSTANT_PARAM_not #define SUPPORT_ADDRESS_OF_OP_not +// Make get_ch() use a length-1 character buffer to lookahead...
7
4
1
[{"id": "G0", "claim": "The reviewer is unsure how a character buffer larger than 1 would ever be useful, questioning the need for a general buffer with a tail pointer in get_ch() instead of something simpler.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "clai...
null
udem-dlteam__pnut__182
udem-dlteam/pnut
182
defect
4cec29b09ebb57781d1b7a2264f31c926c43c965
8390e590267cdc1c314492732b662e50d21a9030
Fix elif macro
## Context When evaluating an `#elif` directive, pnut only considered if a previous `#if/#elif` had already executed. If there weren't any previously executed blocks, it updated `if_macro_mask` even if the whole `#if + #elif` block was masked out by a parent #if block that evaluated to false.
diff --git a/pnut.c b/pnut.c index 2556dd6d..90a205f6 100644 --- a/pnut.c +++ b/pnut.c @@ -674,7 +674,6 @@ bool if_macro_stack[IFDEF_DEPTH_MAX]; // Stack of if macro states bool if_macro_stack_ix = 0; bool if_macro_mask = true; // Indicates if the current if/elif block is being executed bool if_macro_executed =...
1
1
0
[{"id": "G0", "claim": "Consider correcting the grammar in the comment by replacing 'don't' with 'doesn't'.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
udem-dlteam__pnut__43
udem-dlteam/pnut
43
defect
0ca6a37edec527319368de5dfeec56a00b57eb40
382b5c9d22beb8f6c6f06442b53395375a5ece34
Added Github action to run tests on active PR
This PR adds a simple Github action that runs the current test script on both backends on active PRs.
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..8351eec4 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,23 @@ +name: run-tests +on: + pull_request: # Should trigger on pull requests for all branches + branches: + - '**' # Matches all branche...
6
2
0
[{"id": "G0", "claim": "The workflow should also run ./boostrap-pnut.sh and ./bootstrap-pnut-x86.sh.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The shell tests should run on the 4 most common shells (bash, dash, ksh and zsh).", "category": "testing"...
null
udem-dlteam__pnut__84
udem-dlteam/pnut
84
defect
2add239b2fef328b91e3729d11018c659243daf4
613a7f9460162277b9975edca012509dc5fa7064
Implement support for do..while
I had heard about pnut from Marc. Too much fun not to participate. Here's a little contribution; I did not take too much time investigating the ins and outs of the codebase so I might be doing something wrong; feel free to correct me. There's one limitation I am still trying to fix; The global `set -e` does not appl...
diff --git a/README.md b/README.md index c57d931b..2e3fc78a 100644 --- a/README.md +++ b/README.md @@ -116,7 +116,6 @@ Unfortunately, certains C constructs don't map nicely to POSIX shell which means - The preprocessor is not perfect and may fail on some edge cases. `#if` and `#elif` are not supported. `#include <...>...
4
4
1
[{"id": "G0", "claim": "The new example lacks its precompiled .sh output (the examples-up-to-date workflow did not catch it), and the example should be covered by the golden tests in tests/_sh instead.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ...
null
udem-dlteam__pnut__93
udem-dlteam/pnut
93
defect
0eea2d8422f6c8fe84b7b47959b80e834ccd9319
ecb2e97db7b340f3329d8280bf07ee1bdd3eec1e
Fix for switch not compiling when inserting a compound statement
Switch statements currently have the following quirkiness: ```C /* Function computing the sum of an array */ int sum(int* a, int len) { int i, sum = 0; switch (i) { case 0: { printf("Hello World"); break; } case 1: { printf("Bye bye!"); break; } } r...
diff --git a/sh.c b/sh.c index 7df9d758..9465608f 100644 --- a/sh.c +++ b/sh.c @@ -1770,6 +1770,7 @@ void comp_body(ast node) { // Return if the statement is a break or return statement, meaning that the block should be terminated. // A switch conditional block is considered terminated if it ends with a break or retu...
3
3
0
[{"id": "G0", "claim": "The termination-tracking logic the PR added for compound `{` blocks should be generalized to handle all kinds of statements, keeping track of each branch of a conditional block, ensuring each contains a break and removing statements following a provable break, so that programs with if/else-if/el...
null
udondan__cdk-ec2-key-pair__267
udondan/cdk-ec2-key-pair
267
defect
a39e2519d1c4b8e4de510f913e9d8464cdb2a480
6b8984ed444e2e0bfcce8acdab4c9b25ed754a24
chore: updates aws-cloudformation-custom-resource to v5
Updates aws-cloudformation-custom-resource v5 and adjusts code accordingly to make full use of new featrues
diff --git a/lambda/index.ts b/lambda/index.ts index 5d114ecf8..200143c2e 100644 --- a/lambda/index.ts +++ b/lambda/index.ts @@ -13,6 +13,8 @@ import { ImportKeyPairCommand, ImportKeyPairCommandInput, Tag as Ec2Tag, + CreateKeyPairCommandOutput, + KeyPairInfo, } from '@aws-sdk/client-ec2'; import { Crea...
3
1
0
[{"id": "G0", "claim": "The props should be validated to ensure they meet expected criteria before being used to construct lambdaProperties, and the rejection messages in updateResource could be more descriptive to give users clearer guidance.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "...
null
udoprog__musli__313
udoprog/musli
313
defect
bb9b3fe8f1e0705b66b3e87812fb3ebabb9aa7ca
93c5be1bd9653d2ab9d22da6ea7ef535c54af668
Add invariant for `Ref`s to always reference a valid `Layout`
Discussed in - #312 Closes #312 In the first commit I've implemented the `usize::MAX - size` invariant. The second commit changes that to a `Layout` invariant. The `Ref` can no longer be byte-swapped since that could break the invariant.
diff --git a/crates/musli-zerocopy/src/error.rs b/crates/musli-zerocopy/src/error.rs index add9187fe..ee383a4bc 100644 --- a/crates/musli-zerocopy/src/error.rs +++ b/crates/musli-zerocopy/src/error.rs @@ -216,6 +216,7 @@ pub(crate) enum ErrorKind { StackOverflow { capacity: usize, }, + InvalidLayo...
5
5
3
[{"id": "G0", "claim": "try_from_parts must check for usize overflow when constructing the ref, erroring when the offset plus the layout's size exceeds usize::MAX.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Ref's ZeroCopy::ANY_BITS always has to...
null
udoprog__unicycle__21
udoprog/unicycle
21
defect
4288dcfcd787ec14c8bf5bacd61084bcf6449b90
f98893385fd707800d77d0b2d3fd36ca11522533
Run destructors when clearing PinVec
Also adds a `Drop` impl for `PinVec`, and removes the `Drop` impl for `PinSlab` since `PinSlab`'s `Drop` is redundant now. Fixes #20, and also includes the test from #19.
diff --git a/src/pin_slab.rs b/src/pin_slab.rs index bb4e32f..87826c5 100644 --- a/src/pin_slab.rs +++ b/src/pin_slab.rs @@ -281,12 +281,6 @@ impl<T> Default for PinSlab<T> { } } -impl<T> Drop for PinSlab<T> { - fn drop(&mut self) { - self.clear(); - } -} - #[cfg(test)] mod tests { use super...
2
2
0
[{"id": "G0", "claim": "clear() could drop each bucket's initialized range as one slice (as Vec's Drop impl does) instead of dropping elements one by one.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "clear() can skip the drop loop entirely when st...
null
ueberdosis__tiptap__5717
ueberdosis/tiptap
5,717
defect
0c2b2d100d7ca5c483268076edcb90ec931f411d
00d99a29392bd7feb97380a96befc96820663e75
Fix getMarkRange not finding marks when at the start of a mark
## Changes Overview This pull request addresses an issue in the `@tiptap/core` package where the `getMarkRange` function did not return the correct range when the cursor was at the start of the specified mark. The changes involve both documentation and code modifications to ensure accurate behavior. ### Bug Fix: ...
diff --git a/.changeset/sweet-masks-smash.md b/.changeset/sweet-masks-smash.md new file mode 100644 index 0000000000..44bc236500 --- /dev/null +++ b/.changeset/sweet-masks-smash.md @@ -0,0 +1,5 @@ +--- +"@tiptap/core": patch +--- + +Fixed an issue with getMarkRange not returning the correct range when cursor is at the ...
2
2
1
[{"id": "G0", "claim": "The debug console.log statements (and their eslint-disable comments) in the new getMarkRange tests should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A test should be added proving that the new backward loo...
null
ueberdosis__tiptap__6234
ueberdosis/tiptap
6,234
defect
eb4e97d5f279610058fdde4fc2683a0cc553d9e9
b3378255c2ee92294b3d3c9790ac40050e06ed90
Support start timestamps, fix Shorts & Live embed URLs
Start timestamps are currently not embedded with `youtu.be` and `youtube.com/watch` URLs. There are also inconsistencies with how `youtu.be` and `youtube.com/watch` URLs are parsed, and with how search params in the original URL are being handled. This PR refactors the `getEmbedUrlFromYoutubeUrl` function to use the...
diff --git a/.changeset/clever-hats-count.md b/.changeset/clever-hats-count.md new file mode 100644 index 0000000000..44ebd852fe --- /dev/null +++ b/.changeset/clever-hats-count.md @@ -0,0 +1,5 @@ +--- +"@tiptap/extension-youtube": minor +--- + +Improve YouTube embed URL creation, support start timestamps, fix Shorts &...
4
1
1
[{"id": "G0", "claim": "Setting 'rel' without first checking if it is defined could cause a runtime error when 'rel' is undefined; add a condition to set this parameter only when defined.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Both the URL's '...
null
ueberdosis__tiptap__6692
ueberdosis/tiptap
6,692
defect
89990e16717a11159cc41698c5572d5991d7cc6b
15109297e784c134ce98f4c605b308958363c00b
fix: update markdown table rendering and add tests for static rendering
## Changes Overview Create the correct number of columns when converting tables to Markdown ## Implementation Approach ## Testing Done Integration testing ## Verification Steps N/A ## Additional Notes N/A ## Checklist - [x] I have created a [changeset](https://github.com/changesets/chang...
diff --git a/.changeset/good-flies-listen.md b/.changeset/good-flies-listen.md new file mode 100644 index 0000000000..ef487c653c --- /dev/null +++ b/.changeset/good-flies-listen.md @@ -0,0 +1,5 @@ +--- +'@tiptap/static-renderer': patch +--- + +fixed markdown table columns \ No newline at end of file diff --git a/packag...
3
2
0
[{"id": "G0", "claim": "The package version should not be bumped manually in package.json because Changesets handles versions automatically.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The changeset file's description should say 'Fixed a bug ...
null
ueberdosis__tiptap__6899
ueberdosis/tiptap
6,899
defect
8eff69a72d783042662fcae77ffe2ce69483611a
9a823f18b0b8cbea5e27cb803b1627d47aa4e275
fix(emoji): update paste regex to preserve optional prefix
## Changes Overview This pull request refines the emoji paste detection logic in the `packages/extension-emoji/src/emoji.ts` file to more accurately match emoji shortcodes, especially when they appear at the start of a line or after whitespace. The changes ensure that only the shortcode portion is replaced, preservi...
diff --git a/.changeset/emoji-paste-url-fix.md b/.changeset/emoji-paste-url-fix.md new file mode 100644 index 0000000000..f091eef36f --- /dev/null +++ b/.changeset/emoji-paste-url-fix.md @@ -0,0 +1,7 @@ +--- +"@tiptap/extension-emoji": patch +--- + +Prevent emoji shortcodes from being converted when they appear inside ...
1
1
1
[{"id": "G0", "claim": "The changeset description doesn't accurately reflect the code changes and should be updated to match the implementation: the fix preserves prefixes when replacing shortcodes and does not specifically prevent conversion in URLs.", "category": "documentation", "verdict": "supported", "priority": "...
null
ueberdosis__tiptap__6907
ueberdosis/tiptap
6,907
defect
2cb08d3ebec5280f047bf09b2c6ec850519107f0
107b6c9a84aab09566ce919d477a91f4e0a79979
Preserve color formats for the background-color and color extension
## Changes Overview This pull request improves how color and background-color styles are parsed from HTML in the `@tiptap/extension-text-style` package. The main change is to prefer the raw inline `style` attribute when extracting `color` and `background-color` values, so the original format (such as hex, rgba, hsla...
diff --git a/.changeset/preserve-inline-color-format.md b/.changeset/preserve-inline-color-format.md new file mode 100644 index 0000000000..1bba31ccd8 --- /dev/null +++ b/.changeset/preserve-inline-color-format.md @@ -0,0 +1,28 @@ +--- +"@tiptap/extension-text-style": patch +--- + +Prefer the raw inline `style` attribu...
2
2
0
[{"id": "G0", "claim": "In the Color extension's parseHTML, the `element.getAttribute &&` guard is unnecessary since getAttribute is always available on Element, and the code should be simplified to a direct `element.getAttribute('style')` call.", "category": "maintainability", "verdict": "supported", "priority": "P3",...
null
ueberdosis__tiptap__6967
ueberdosis/tiptap
6,967
defect
22eca66261e1a0aa4d370d3a7b058c411c0f2c2d
a249dab157379eaf46760eab38dbe65f02faaf3e
fix: emit transactions for unmounted editors
## Changes Overview This changes the `editor.view` proxy to use the editor's existing `dispatchTransaction` handler rather than using the default ProseMirror one. This makes it so that you can still listen for transactions in an unmounted editor. <!-- Briefly describe your changes. --> ## Implementation Approach I'...
diff --git a/.changeset/smooth-suits-hang.md b/.changeset/smooth-suits-hang.md new file mode 100644 index 0000000000..d9f50f727c --- /dev/null +++ b/.changeset/smooth-suits-hang.md @@ -0,0 +1,5 @@ +--- +'@tiptap/core': patch +--- + +Editors which are not yet mounted can still emit `transaction`s & `update` events. diff...
3
3
0
[{"id": "G0", "claim": "The unmount test title should read 'an unmount event' instead of 'a unmount event'.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The transaction test title should read 'a transaction event' instead of 'an transaction even...
null
ueberdosis__tiptap__7154
ueberdosis/tiptap
7,154
defect
c8e147b4e7b117efa10ab44d019cc8e6165286b3
eca2155c0c1f9423f1d985530f63a691775527ff
feat: fix MarkdownManager to handle mixed Markdown and HTML parsing
## Changes Overview - Fix inline HTML parsing in MarkdownManager.ts: merge split inline HTML tokens (e.g. `<em>`, text, `</em>`) into a single HTML fragment before calling the existing HTML parser. ## Implementation Approach - Replace the `forEach` loop in `parseInlineTokens` with an index-based loop so we can...
diff --git a/.changeset/inline-html-fix.md b/.changeset/inline-html-fix.md new file mode 100644 index 0000000000..4ae56690d7 --- /dev/null +++ b/.changeset/inline-html-fix.md @@ -0,0 +1,5 @@ +--- +"@tiptap/markdown": patch +--- + +Fix parsing of mixed inline HTML within Markdown content so that inline HTML fragments ar...
5
5
1
[{"id": "G0", "claim": "The tag name captured from user input is interpolated unescaped into a RegExp constructor, so special regex characters in it could break regex compilation or cause unexpected matching; it should be regex-escaped first.", "category": "security", "verdict": "supported", "priority": "P1", "scope": ...
null
ueberdosis__tiptap__7171
ueberdosis/tiptap
7,171
defect
42fb0999a8c23e9d04012e57c7f349a4c33b74ef
f673235e420b3a7cd408fd885c955ca9a6696cb0
Floating & Bubble Menu Show/Hide Events
## Changes Overview Adds "events" (transaction meta) for bot the bubble menu & floating menu extensions that will programmatically show & hide the respective menus. ## Implementation Approach Followed the existing precedent set by the bubble menu's [`updatePosition`](https://tiptap.dev/docs/editor/extensions/f...
diff --git a/.changeset/plenty-rice-shave.md b/.changeset/plenty-rice-shave.md new file mode 100644 index 0000000000..c8f2fc99a4 --- /dev/null +++ b/.changeset/plenty-rice-shave.md @@ -0,0 +1,6 @@ +--- +'@tiptap/extension-floating-menu': minor +'@tiptap/extension-bubble-menu': minor +--- + +Add "events" to programatica...
8
5
3
[{"id": "G0", "claim": "The changeset line misspells 'programatically' and should read 'programmatically'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The documentation (in tiptap-docs) should be updated so users know that show, hide and update...
null
ueberdosis__tiptap__7178
ueberdosis/tiptap
7,178
defect
194af3b6cca37dbfc8882326d79a9ead49176bf6
d7209fa33e4f009b9cfa1f57a5c1c0c3dcdc5afd
fix: parse mixed bullet lists and task lists correctly
## Changes Overview - **Fixed mixed list parsing**: Marked.js groups consecutive bullet list items and task list items into a single list token, causing incorrect parsing. Added special handling to detect and split mixed lists into separate `bulletList` and `taskList` nodes. - **Fixed nested content parsing in task...
diff --git a/.changeset/fix-mixed-list-parsing--sharp-shark.md b/.changeset/fix-mixed-list-parsing--sharp-shark.md new file mode 100644 index 0000000000..ee7d7d9dfb --- /dev/null +++ b/.changeset/fix-mixed-list-parsing--sharp-shark.md @@ -0,0 +1,5 @@ +--- +"@tiptap/markdown": patch +--- + +Fix parsing of mixed bullet l...
6
5
0
[{"id": "G0", "claim": "The `groups` and `currentGroup` declarations in parseListToken are typed as `any[]`, reducing type safety; define proper types such as a TaskListItemToken union for the items.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":...
null
ueberdosis__tiptap__7188
ueberdosis/tiptap
7,188
defect
13fdcb56580bd7c0b302a84cff328b9bc4edea74
aff946c1ac637d70f5640c656b4ffcb32e1b26bf
fix: correct order of closing markdown marks
## Changes Overview Fixed the order of closing markdown marks when rendering nested marks to ensure correct markdown syntax. ## Implementation Approach Removed `.reverse()` calls in `findMarksToClose` and `findMarksToCloseAtEnd` functions in `packages/markdown/src/utils.ts` to prevent incorrect closing order. ...
diff --git a/.changeset/fix-markdown-mark-closing-order--bright-bear.md b/.changeset/fix-markdown-mark-closing-order--bright-bear.md new file mode 100644 index 0000000000..f0725f2e13 --- /dev/null +++ b/.changeset/fix-markdown-mark-closing-order--bright-bear.md @@ -0,0 +1,5 @@ +--- +"@tiptap/markdown": patch +--- + +Fi...
1
1
0
[{"id": "G0", "claim": "The comment in the new test should say the bold-inside-strike case renders with double tildes (~~**text**~~) instead of single tildes, matching the actual strike markdown syntax used in the expectations.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduce...
null
ueberdosis__tiptap__7198
ueberdosis/tiptap
7,198
defect
f78bf61c0da06cd2ca9b16c4633fa76c02b4290c
0fef69f6d4c3297e35c6390c1b47547a105d261e
fix: respect isRequired attribute in ProseMirror schema generation
Fixes #6952 When building the ProseMirror schema from Tiptap extensions, the code was always including a 'default' property in attribute specs, even when attributes were marked as required (isRequired: true). This caused ProseMirror to treat all attributes as optional, since ProseMirror determines if an attribute is...
diff --git a/packages/core/src/helpers/getSchemaByResolvedExtensions.ts b/packages/core/src/helpers/getSchemaByResolvedExtensions.ts index 9bb856da5c..1969b08323 100644 --- a/packages/core/src/helpers/getSchemaByResolvedExtensions.ts +++ b/packages/core/src/helpers/getSchemaByResolvedExtensions.ts @@ -72,10 +72,19 @@ e...
1
1
0
[{"id": "G0", "claim": "The new attribute-spec-building logic is duplicated in both the nodes and marks sections of getSchemaByResolvedExtensions.ts and should be extracted into a shared helper function to reduce duplication and improve maintainability.", "category": "maintainability", "verdict": "supported", "priority...
null
ueberdosis__tiptap__7333
ueberdosis/tiptap
7,333
defect
08426e467ca1d66533b23bfff241879aa8b61347
e9462491276a3302c3115bf60c179c1ea9a316c2
fix(core): Fix Inline Style Parsing in `mergeAttributes`
## Changes Overview `mergeAttributes` does not work correctly on certain kinds of style attributes. Notably if there is a colon `:` character, as in the case of `url(https://...)` or incomplete key/value pairs. This parser implementation is more robust. ## Implementation Approach In simplified summary, the pri...
diff --git a/.changeset/rotten-knives-fry.md b/.changeset/rotten-knives-fry.md new file mode 100644 index 0000000000..53fc63acb8 --- /dev/null +++ b/.changeset/rotten-knives-fry.md @@ -0,0 +1,5 @@ +--- +'@tiptap/core': patch +--- + +Fixed mergeAttributes correctness on complex styles diff --git a/packages/core/__tests_...
3
3
1
[{"id": "G0", "claim": "The new tests' Chai-style `expect(...).to.deep.eq` assertions should be switched to Vitest/Jest-style `toEqual` for consistency with the rest of the spec.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "`parseStyleEntries`...
null
ueberdosis__tiptap__7359
ueberdosis/tiptap
7,359
defect
c5cbea624bac8955bf6a25eb10f0dc143063d1c5
874ff7df0cf7b9054eba47baf6cc0d7b11479dad
fix(extension-link): prevent click handler from blocking non-link element selection
## Changes Overview Fixes an issue where clicking on images (and other non-link elements) required multiple clicks to properly select them. ## Implementation Approach - Move link element detection to the beginning of the click handler - Early return `false` when the clicked element is not a link ## Testing...
diff --git a/.changeset/fast-moons-chew.md b/.changeset/fast-moons-chew.md new file mode 100644 index 0000000000..74697fd36c --- /dev/null +++ b/.changeset/fast-moons-chew.md @@ -0,0 +1,5 @@ +--- +'@tiptap/extension-link': patch +--- + +Fixed an issue where clicking on non-link elements (like images) required multiple ...
2
2
1
[{"id": "G0", "claim": "The new test is declared `async` but contains no await or asynchronous operations, so the `async` keyword should be removed as it is unnecessary and may cause confusion.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Trav...
null
ueberdosis__tiptap__7384
ueberdosis/tiptap
7,384
defect
559cadbc5060c80accc192f7113ea9dace74bbc8
d1ae62f360a78cc96257134bfb6329c7a6172293
Add shouldShow option for suggestions to control visibility / trigger
## Changes Overview This PR adds a new `shouldShow` callback to the Suggestion utility. This allows developers to filter when suggestions are displayed, specifically to prevent autocomplete popups (like mentions) from opening for remote users in collaborative environments. ## Implementation Approach - Added a ...
diff --git a/.changeset/suggest-should-show-vibrant-flying-eagle.md b/.changeset/suggest-should-show-vibrant-flying-eagle.md new file mode 100644 index 0000000000..f0fcb9a45a --- /dev/null +++ b/.changeset/suggest-should-show-vibrant-flying-eagle.md @@ -0,0 +1,5 @@ +--- +"@tiptap/suggestion": patch +--- + +Add a new `s...
7
6
0
[{"id": "G0", "claim": "The `shouldShow` callback's nested `props.props` structure is confusing and inconsistent with the flat `allow` callback; the structure should be flattened to match it.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `props` par...
null
ueberdosis__tiptap__7388
ueberdosis/tiptap
7,388
defect
b2d1731ed5116ed5c675c3a2838fe90191778590
fb783fb144808390b2aaafec24a64e75382b3cde
Prevent auto-linking bare IP's and hostnames
## Changes Overview Prevent the Link extension from auto-linking bare hostnames (e.g., `localhost`) and IP addresses (e.g., `127.0.0.1`) when they don't have an explicit protocol prefix. ## Implementation Approach - Modified the default `shouldAutoLink` function in `link.ts` to reject: - Single-word hostnam...
diff --git a/.changeset/fix-localhost-autolink.md b/.changeset/fix-localhost-autolink.md new file mode 100644 index 0000000000..528a1f7638 --- /dev/null +++ b/.changeset/fix-localhost-autolink.md @@ -0,0 +1,5 @@ +--- +"@tiptap/extension-link": patch +--- + +Prevent auto-linking of bare hostnames (e.g., `localhost`) and...
4
1
1
[{"id": "G0", "claim": "The hostname extraction splits on [/?#:], which misparses URLs with userinfo (e.g. user:pass@example.com yields 'user' as the hostname), and asks to strip the userinfo at '@' before extracting the hostname.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduc...
null
ueberdosis__tiptap__7389
ueberdosis/tiptap
7,389
defect
b2d1731ed5116ed5c675c3a2838fe90191778590
2337ec1df9520d1792bf870ba7531047b78130e2
Fix TaskItem losing HTML attributes
## Changes Overview This PR fixes an issue where `TaskItem` nodes lose their HTML attributes (such as `data-type` or custom global attributes) during updates. The node view's `update` method previously only synced the `checked` status, causing all other custom attributes added via extensions to be lost. ## Implem...
diff --git a/.changeset/fix-taskitem-html-attributes.md b/.changeset/fix-taskitem-html-attributes.md new file mode 100644 index 0000000000..058fb4e4c4 --- /dev/null +++ b/.changeset/fix-taskitem-html-attributes.md @@ -0,0 +1,5 @@ +--- +"@tiptap/extension-list": patch +--- + +Fix lost HTML attributes in TaskItem node vi...
3
2
1
[{"id": "G0", "claim": "Static HTMLAttributes from TaskItem.configure() are applied at initial render but are not tracked or re-applied by the update-time attribute sync, so option-based attributes can be removed and never restored during node updates; the tracked keys should include this.options.HTMLAttributes alongsi...
null
ueberdosis__tiptap__7390
ueberdosis/tiptap
7,390
defect
03998a11195af832add912b6951ead0dad85dc8e
eb950cd1a9e9f31ba7e8469b5f906d689a4461a6
Fix YouTube Embed extension for short URLs
## Changes Overview Fix YouTube Shorts embed URLs using an incorrect query parameter separator (`&` instead of `?`). ## Implementation Approach The issue was in `packages/extension-youtube/src/utils.ts` at line 161. The condition `matches[1] === 'v'` was used to determine when to use `?` vs `&` as the query pa...
diff --git a/.changeset/fix-youtube-shorts-embed-url.md b/.changeset/fix-youtube-shorts-embed-url.md new file mode 100644 index 0000000000..af8e8df832 --- /dev/null +++ b/.changeset/fix-youtube-shorts-embed-url.md @@ -0,0 +1,5 @@ +--- +"@tiptap/extension-youtube": patch +--- + +Fix YouTube Shorts embed URLs using incor...
3
2
1
[{"id": "G0", "claim": "Add at least one test case for playlist URLs to verify the existing `&` separator behavior still works, since the change to when `&` vs `?` is used could break playlist URLs.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The tes...
null
ueberdosis__tiptap__7451
ueberdosis/tiptap
7,451
defect
aa9709e822ebb10edf16dada68c03525d1c2304f
24e295d62e163564fa6d202baa79ff7e16c0eb88
Preserve multiple empty paragraphs in markdown serialization
## Changes Overview Fixed issue #7269 where multiple newlines in markdown were being doubled during serialization and collapsed during parsing. Empty paragraphs now preserve correctly through round-trip conversion. ## Implementation Approach Modified the paragraph extension to handle empty paragraphs specially...
diff --git a/.changeset/1769236404-fix-empty-paragraphs.md b/.changeset/1769236404-fix-empty-paragraphs.md new file mode 100644 index 0000000000..b6dc86dcc8 --- /dev/null +++ b/.changeset/1769236404-fix-empty-paragraphs.md @@ -0,0 +1,6 @@ +--- +'@tiptap/extension-paragraph': patch +'@tiptap/markdown': patch +--- + +fix...
4
4
1
[{"id": "G0", "claim": "The changeset summary line does not match the repo's existing changeset style and should be rephrased to start with 'Fixed' and briefly mention preserving multiple empty paragraphs/newlines in markdown.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced...
null
ueberdosis__tiptap__7452
ueberdosis/tiptap
7,452
defect
4807c55f419401130e622cf1d5cd481f861f0bad
3ea2002d766ba68b35283934f81732def6228d51
Fix markdown HTML parsing in server-side environments
## Changes Overview Fixed markdown HTML parsing to work in server-side environments where the `window` object is not available. The parser now gracefully handles the absence of window object by falling back to treating HTML as plain text instead of throwing an error. ## Implementation Approach Modified the `pa...
diff --git a/.changeset/fix-markdown-server-side-html-parsing.md b/.changeset/fix-markdown-server-side-html-parsing.md new file mode 100644 index 0000000000..95aeb9d5e5 --- /dev/null +++ b/.changeset/fix-markdown-server-side-html-parsing.md @@ -0,0 +1,5 @@ +--- +"@tiptap/markdown": patch +--- + +Fixed markdown HTML par...
5
5
2
[{"id": "G0", "claim": "The new spec runs under Vitest's default happy-dom environment, so it never exercises the SSR/no-window path this PR is fixing; add a `/** @vitest-environment node */` header (or otherwise ensure globalThis.window is undefined).", "category": "testing", "verdict": "supported", "priority": "P1", ...
null
ueberdosis__tiptap__7457
ueberdosis/tiptap
7,457
defect
3e446fb13b30d17aa74e66b544f0a783f6132dc9
2ae4253b682be7d7dc775f7890c91d327bc1cc68
fix(core): respect node inline setting in ResizableNodeView
## Changes Overview ResizableNodeView forces display: flex, ignoring the node's inline setting. Fixed by using inline-flex for inline nodes and flex for block nodes. ## Implementation Approach One line change: ```js element.style.display = this.node.type.isInline ? 'inline-flex' : 'flex' ``` ## Testing D...
diff --git a/.changeset/fix-resizable-node-view-inline.md b/.changeset/fix-resizable-node-view-inline.md new file mode 100644 index 0000000000..a41090cd00 --- /dev/null +++ b/.changeset/fix-resizable-node-view-inline.md @@ -0,0 +1,5 @@ +--- +"@tiptap/core": patch +--- + +Fix ResizableNodeView ignoring node's inline set...
2
1
1
[{"id": "G0", "claim": "The documentation should be checked for anything that needs updating in light of this change.", "category": "documentation", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "A regression test must be added asserting that an inline node using ResizableNodeV...
null
ueberdosis__tiptap__7458
ueberdosis/tiptap
7,458
defect
f592f0a533710ad1d1c7cc6d98ce3ac90ebc51c8
32a3b6cc554082dab49b5d52169adc1bcf74e658
Upgrade marked.js and add inline marks punctuation tests
## Changes Overview This PR upgrades marked.js from v15.0.12 to v17.0.1 and updates the minimum Node.js requirement from 18 to 20. It also adds comprehensive test coverage documenting the behavior of inline marks (bold/italic) containing only punctuation characters. This addresses issue #7325 by clarifying that the ...
diff --git a/.changeset/fix-markdown-inline-marks-punctuation.md b/.changeset/fix-markdown-inline-marks-punctuation.md new file mode 100644 index 0000000000..d15ff366ec --- /dev/null +++ b/.changeset/fix-markdown-inline-marks-punctuation.md @@ -0,0 +1,5 @@ +--- +"@tiptap/markdown": patch +--- + +Upgrade marked.js from ...
2
1
0
[{"id": "G0", "claim": "The new test suite imports MarkdownManager via the relative path '../src/MarkdownManager.js' instead of the public '@tiptap/markdown' entry point, and should switch imports for consistency with other markdown tests.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scop...
null
ueberdosis__tiptap__7468
ueberdosis/tiptap
7,468
defect
1a74abee65b88e8761cc365daa21e95ede01221f
3b38cc7af7724828f71af4d5a561d4a60e7258d4
add new dataAttribute option for placeholders
## Changes Overview Added a new `dataAttribute` option to the Placeholder extension that allows developers to customize which data attribute name is used for the placeholder label. This provides more flexibility when styling placeholders with custom CSS selectors. ## Implementation Approach - Added a new `data...
diff --git a/.changeset/placeholder-data-attribute.md b/.changeset/placeholder-data-attribute.md new file mode 100644 index 0000000000..6bcce0a64a --- /dev/null +++ b/.changeset/placeholder-data-attribute.md @@ -0,0 +1,5 @@ +--- +"@tiptap/extensions": patch +--- + +Added a new `dataAttribute` to the extension option to...
6
5
1
[{"id": "G0", "claim": "The JSDoc for the dataAttribute option is ambiguous: it should state that callers pass only the suffix without the data- prefix and that the value will be normalized (whitespace to dashes, stripped characters, lowercased).", "category": "documentation", "verdict": "supported", "priority": "P2", ...
null
ueberdosis__tiptap__7481
ueberdosis/tiptap
7,481
defect
2d6de06c34c239e78fedd6bd2a0bcea42d0fdbfa
f069d3cc2512cd3e65e881631ff6f65e5ac3b06f
Prevent inline math input rule from replacing previous character
## Changes Overview Changed the InlineMath extension's input rule to prevent it from consuming the preceding character to a `$$latex$$` expression. For example, the string `Hello $$\sigma$$` would be transformed into → `Helloσ` (with the space deleted). ## Implementation Approach We can utilize a fixed-wid...
diff --git a/.changeset/yellow-bags-pump.md b/.changeset/yellow-bags-pump.md new file mode 100644 index 0000000000..10f9b6bdf5 --- /dev/null +++ b/.changeset/yellow-bags-pump.md @@ -0,0 +1,7 @@ +--- +'@tiptap/extension-mathematics': minor +--- + +Prevent inline math input rule from replacing previous character + +- Cha...
6
5
3
[{"id": "G0", "claim": "The regex change removed a capture group, so the handler must read the latex content from match[2] instead of match[3].", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The changeset has a typo: 'start o the double $ signs' sho...
null
ueberdosis__tiptap__7497
ueberdosis/tiptap
7,497
defect
73ece766fd1f5ce51723e7225a6da346c30a036f
600e3175daddd630aa5910ea70fa1f72f58ba0fb
Fix getMarkdown() returning &nbsp; instead of empty string
## Changes Overview Fixed `getMarkdown()` returning `&nbsp;` instead of empty string when the editor is empty, ensuring consistent behavior with other output methods like `getText()`. ## Implementation Approach Modified the `MarkdownManager.serialize()` method to detect when the serialized output contains only...
diff --git a/.changeset/fix-empty-document-markdown.md b/.changeset/fix-empty-document-markdown.md new file mode 100644 index 0000000000..2201a29952 --- /dev/null +++ b/.changeset/fix-empty-document-markdown.md @@ -0,0 +1,5 @@ +--- +'@tiptap/markdown': patch +--- + +Fixed getMarkdown() returning `&nbsp;` instead of emp...
1
1
0
[{"id": "G0", "claim": "The two branches of serialize() (array of nodes and single node) duplicate the renderNodes call and the isEmptyOutput check, and the reviewer asks to consolidate them to reduce duplication and make the logic clearer.", "category": "maintainability", "verdict": "supported", "priority": "P2", "sco...
null
ueberdosis__tiptap__7501
ueberdosis/tiptap
7,501
defect
f7df678c7f91fff3d8f329bab99fec6b5da4a56f
426ba252abe8e42d68ba1c199a2a2d01f27c2ff2
Add global attributes without types
## Changes Overview Added support for global attributes without type definitions in Tiptap extensions. Previously, global attributes could only be applied to specific node/mark types. Now, when the `types` property is omitted from a global attribute definition, it automatically applies to all relevant extension type...
diff --git a/.changeset/global-attributes-optional-types-gentle-morning-dew.md b/.changeset/global-attributes-optional-types-gentle-morning-dew.md new file mode 100644 index 0000000000..32c3927f36 --- /dev/null +++ b/.changeset/global-attributes-optional-types-gentle-morning-dew.md @@ -0,0 +1,5 @@ +--- +"@tiptap/core":...
5
2
0
[{"id": "G0", "claim": "When `globalAttribute.types` is omitted, the S1 fallback applies attributes only to node extension types (excluding `text`), so marks never receive implicit global attributes; the reviewer asks to build the fallback from both node and mark extensions.", "category": "correctness", "verdict": "unc...
null
ueberdosis__tiptap__7506
ueberdosis/tiptap
7,506
defect
98546ac60a4f378209f1028bd6030c3078f502f1
9736fc1c389380f429849b17795c8a0172663b50
Fix checking if mark is active and toggling off marks when part of the selection does not allow the mark (e.g. a code block)
## Changes Overview Changes the `isMarkActive` helper to ignore text inside nodes that do not allow the mark. For example, if your selection spans both a paragraph and a code block (which allows no marks), and all of the text in the paragraph is bold, this PR makes `isMarkActive(state, "bold")` return true instead o...
diff --git a/.changeset/few-rice-end.md b/.changeset/few-rice-end.md new file mode 100644 index 0000000000..1018d36a62 --- /dev/null +++ b/.changeset/few-rice-end.md @@ -0,0 +1,5 @@ +--- +'@tiptap/core': patch +--- + +Fix checking if mark is active and toggling off marks when part of the selection does not allow the ma...
2
2
1
[{"id": "G0", "claim": "Add a regression unit test for a selection spanning a textblock that allows the mark and one that disallows it (e.g. paragraph + codeBlock) to ensure `isMarkActive` and `toggleMark` correctly consider the mark active and allow unsetting it, since this edge case is not covered by the core package...
null
ueberdosis__tiptap__7512
ueberdosis/tiptap
7,512
defect
98546ac60a4f378209f1028bd6030c3078f502f1
48e29ca2a48cbd1884725edadc5f33453fa588fa
fix: use instance-specific pluginKey as transaction meta key in BubbleMenu/FloatingMenu to prevent cross-contamination
# Changes Overview When multiple `BubbleMenu`/`FloatingMenu` instances use different `pluginKey` values, all instances respond to any instance's option updates because the transaction meta key is hardcoded as `"bubbleMenu"`/`"floatingMenu"` instead of using the provided `pluginKey`. ## Implementation Approach ...
diff --git a/.changeset/fix-menu-cross-contamination.md b/.changeset/fix-menu-cross-contamination.md new file mode 100644 index 0000000000..552bae8b7f --- /dev/null +++ b/.changeset/fix-menu-cross-contamination.md @@ -0,0 +1,7 @@ +--- +'@tiptap/extension-bubble-menu': patch +'@tiptap/extension-floating-menu': patch +'@...
2
2
0
[{"id": "G0", "claim": "The JSDoc on FloatingMenuView's transactionHandler should mention the default pluginKey so readers know what value `pluginKey` has by default.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The JSDoc that documents the tran...
null
ueberdosis__tiptap__7527
ueberdosis/tiptap
7,527
defect
4a9ebf1b6ad76fa73ca3a180dc86c5fa16c098b1
c4d3791c5fd05ff02b5a8a845c310d760f3bc26d
Fix drag handles for atom nodes on both nested and non-nested
## Changes Overview Fix drag handle not working for atom/leaf nodes (e.g. images, horizontal rules) in both nested and non-nested modes. ## Implementation Approach Two issues were identified and fixed: **1. Nested mode: atom nodes never evaluated as candidates** (`findBestDragTarget.ts`) `posAtCoords` re...
diff --git a/demos/src/Extensions/DragHandle/React/index.jsx b/demos/src/Extensions/DragHandle/React/index.jsx index 93391d99b3..132784e422 100644 --- a/demos/src/Extensions/DragHandle/React/index.jsx +++ b/demos/src/Extensions/DragHandle/React/index.jsx @@ -1,6 +1,7 @@ import './styles.scss' import DragHandle from...
4
2
2
[{"id": "G0", "claim": "The new $pos.nodeAfter candidate path bypasses the options.allowedContainers restriction applied to ancestor-based candidates, which with nested.allowedContainers configured can incorrectly allow drag handles on atom nodes outside the permitted containers; apply the same hasAncestorOfType check ...
null
ueberdosis__tiptap__7551
ueberdosis/tiptap
7,551
defect
25f57e47d01319f2b46bdb62a4227ad215fbcf3c
99a95be6ab7e72637d857b395b568ad9476c7264
fix(placeholder): use isTextblock to skip wrapper node placeholders
## Changes Overview Add `excludedNodeTypes` option to the Placeholder extension to fix duplicate placeholders appearing on wrapper nodes when using `includeChildren: true`. ## Problem When using `includeChildren: true` with nested structures like lists, placeholders are shown on all empty descendant nodes, inc...
diff --git a/.changeset/cool-elephants-wave.md b/.changeset/cool-elephants-wave.md new file mode 100644 index 0000000000..f39a34e7f7 --- /dev/null +++ b/.changeset/cool-elephants-wave.md @@ -0,0 +1,5 @@ +--- +'@tiptap/extensions': patch +--- + +Add `excludedNodeTypes` option to Placeholder extension to prevent duplicat...
2
2
2
[{"id": "G0", "claim": "The excludedNodeTypes option is a needless configuration API; the extension should instead use logic like `if (!node.type.isTextblock) return includeChildren` so a node gets a placeholder only when it is a textblock, removing the exclude list entirely.", "category": "design", "verdict": "support...
null
ueberdosis__tiptap__7565
ueberdosis/tiptap
7,565
defect
f68388b8c98dbfec0aec30cdfe27fbb2954f49dc
759eed105f12b0793417719a087c1362539dda6e
Fix HTML entity encoding/decoding in markdown conversion
## Changes Overview This PR fixes HTML entity handling in markdown parsing and serialization to ensure proper roundtripping of special characters like `<`, `>`, and `&`. Previously, these characters were not being properly encoded/decoded, causing data loss or corruption during markdown conversion. ## Implementat...
diff --git a/.changeset/fix-html-entity-escaping-markdown.md b/.changeset/fix-html-entity-escaping-markdown.md new file mode 100644 index 0000000000..a7fdbd8886 --- /dev/null +++ b/.changeset/fix-html-entity-escaping-markdown.md @@ -0,0 +1,7 @@ +--- +'@tiptap/core': patch +'@tiptap/markdown': patch +'@tiptap/extension-...
6
6
2
[{"id": "G0", "claim": "decodeHtmlEntities decodes &quot; to a literal quote while encodeHtmlEntities does not encode quotes back, making the pair asymmetric and quote entities non-roundtrippable; either add quote encoding to encodeHtmlEntities (with tests) or drop/document &quot; handling if quotes are not intended to...
null
ueberdosis__tiptap__7569
ueberdosis/tiptap
7,569
defect
8d1009f84dcb6ea133a34dceeb316643f567cd57
5731abd960362621888e4dda4417e38e0ae54a1d
fix(paragraph): improve markdown serialization for empty paragraphs
**Changes Overview** - Fixed markdown serialization for empty paragraphs in `@tiptap/extension-paragraph`. Empty paragraphs no longer always output `&nbsp;`; the non-breaking-space marker is emitted only when the paragraph is a direct child of the document root. This prevents `&nbsp;` leaking into nested contexts (f...
diff --git a/.changeset/fix-paragraph-nbsp-nested--emerald-fox.md b/.changeset/fix-paragraph-nbsp-nested--emerald-fox.md new file mode 100644 index 0000000000..b4a1a60efa --- /dev/null +++ b/.changeset/fix-paragraph-nbsp-nested--emerald-fox.md @@ -0,0 +1,5 @@ +--- +"@tiptap/extension-paragraph": patch +--- + +Fixed emp...
3
3
0
[{"id": "G0", "claim": "The bullet-list-item test should assert the exact expected output (or at least the `- ` list marker) instead of only checking that `&nbsp;` is absent, so it cannot pass if the empty list item's content is dropped entirely.", "category": "testing", "verdict": "supported", "priority": "P2", "scope...
null
ueberdosis__tiptap__7570
ueberdosis/tiptap
7,570
defect
8d1009f84dcb6ea133a34dceeb316643f567cd57
a6d2c404f4746baf1437004d1005eae99685c88c
fix(suggestion): keep dismissed state after dismissal
## Changes Overview After dismissing a suggestion via Escape, the suggestion menu would reappear as soon as the user typed another character in the same word. This makes dismissal feel broken — one Escape press should suppress the suggestion until the user clearly starts a new input context. ## Implementation A...
diff --git a/.changeset/fix-suggestion-dismissed-state-calm-river-flow.md b/.changeset/fix-suggestion-dismissed-state-calm-river-flow.md new file mode 100644 index 0000000000..7357a0db4c --- /dev/null +++ b/.changeset/fix-suggestion-dismissed-state-calm-river-flow.md @@ -0,0 +1,5 @@ +--- +"@tiptap/suggestion": patch +-...
6
4
3
[{"id": "G0", "claim": "hasInsertedWhitespace relies on (step as any).slice, which bypasses type safety and is brittle across ProseMirror Step types; the helper should be narrowed to ReplaceStep/ReplaceAroundStep before reading slice so it stays correct and typed.", "category": "maintainability", "verdict": "uncertain"...
null
ueberdosis__tiptap__7583
ueberdosis/tiptap
7,583
defect
8d1009f84dcb6ea133a34dceeb316643f567cd57
6538ea53a9ef56fbf8b980ff378c69ac7cb00987
Fix empty paragraph accumulation with Collaboration extension
## Summary - The `UniqueID` extension has the same bug as `AiToolkitHashExtension`: when the `Collaboration` extension is present but the Yjs provider is created externally (not passed as an extension option), `createIds()` runs before Yjs syncs, writing IDs to a default empty paragraph. Yjs merges this with the remot...
diff --git a/.changeset/fix-unique-id-collab-empty-paragraphs.md b/.changeset/fix-unique-id-collab-empty-paragraphs.md new file mode 100644 index 0000000000..94ea0fb681 --- /dev/null +++ b/.changeset/fix-unique-id-collab-empty-paragraphs.md @@ -0,0 +1,5 @@ +--- +'@tiptap/extension-unique-id': patch +--- + +Fixed a bug ...
5
5
3
[{"id": "G0", "claim": "The storage flag is named `needsInitialHashing` but the extension generates IDs, not hashes; rename the flag and related comments (e.g. `needsInitialIdGeneration`) to make the intent clearer.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id"...
null
ueberdosis__tiptap__7600
ueberdosis/tiptap
7,600
defect
a6c1b14e45da532bc12fb7c187f0cc0011e654cc
c75344d921bc4d531b6432f44c0cc864315068d2
fix(collaboration): move content validation from beforeTransaction to filterTransaction
Fixes #6927 ## Problem `enableContentCheck` + `onContentError` don't work for collaboration: 1. `beforeTransaction` return value is [ignored by Yjs](https://github.com/yjs/yjs/blob/main/src/utils/Transaction.js#L467) - `return false` is a no-op 2. `beforeTransaction` reads pre-transaction state via `yXmlFragm...
diff --git a/packages/extension-collaboration/__tests__/filterInvalidContent.spec.ts b/packages/extension-collaboration/__tests__/filterInvalidContent.spec.ts new file mode 100644 index 0000000000..a2eb752d58 --- /dev/null +++ b/packages/extension-collaboration/__tests__/filterInvalidContent.spec.ts @@ -0,0 +1,155 @@ +...
2
1
0
[{"id": "G0", "claim": "The disableCollaboration callback redundantly repeats the disable handling (destroying the doc and setting isDisabled) that is also done again in the disableCollaboration callback, and should be cleaned up.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "intr...
null
ueberdosis__tiptap__7601
ueberdosis/tiptap
7,601
defect
52c3d235502d99863006fb5249cd882d0b0b3e74
3d350b3ae5b46812bf40870c0ea88edd9e0343b1
Fix nested bold italic markdown
## Changes Overview Fixes markdown serialization for overlapping bold and italic marks so the manager emits valid markdown instead of interleaved delimiters. The overlap serializer now reopens continued tail spans using extension-provided inline HTML tags when plain markdown would become ambiguous, and the full markdo...
diff --git a/packages/core/src/types.ts b/packages/core/src/types.ts index 9888bc27d5..997fb88c06 100644 --- a/packages/core/src/types.ts +++ b/packages/core/src/types.ts @@ -945,6 +945,10 @@ export type RenderContext = { level: number meta?: Record<string, any> parentType?: string | null + /** Mark type name...
2
2
2
[{"id": "G0", "claim": "parseFallbackTextToken unconditionally creates { type: 'italic' } marks for intraword underscore patterns, which produces JSON that cannot be applied to the editor schema when the Italic extension is not registered; it should only apply the fallback when an italic mark renderer is registered (or...
null
ueberdosis__tiptap__7603
ueberdosis/tiptap
7,603
defect
e57d02743f298763020d7955c01fb04dee606aa8
493cec4ba6a76d47fd407e4377377abae21ec020
fix(paragraph): preserve empty paragraphs in markdown serialization
## Changes Overview Improve Markdown empty-paragraph roundtripping so single empty paragraphs stay as normal blank spacing, while consecutive empty paragraphs are preserved with ` ` markers only from the second empty paragraph onward. This now works consistently at the top level and inside nested block containers such...
diff --git a/packages/core/src/types.ts b/packages/core/src/types.ts index 9888bc27d5..0e9400e083 100644 --- a/packages/core/src/types.ts +++ b/packages/core/src/types.ts @@ -898,6 +898,8 @@ export type MarkdownParseHelpers = { parseInline: (tokens: MarkdownToken[]) => JSONContent[] /** Parse an array of block-le...
7
7
6
[{"id": "G0", "claim": "parseBlockChildren should be optional on MarkdownParseHelpers and call sites should fall back to helpers.parseChildren, because making it required (and calling it unguarded in list-item and blockquote parsers) is a breaking API change and throws at runtime with custom parsers, mocked/partial hel...
null
ueberdosis__tiptap__7628
ueberdosis/tiptap
7,628
defect
3b306eebc8a4e7bd43be2b6b86699ce430f7ac03
78c027879e9b5fa1a60fb18d78371a8753b8fb98
fix(core): extendMarkRange match only the current mark of a type
## Changes Overview Currently, If two links are adjacent with no white space between, extendMarkRange will select the range containing both the links. This PR changes it to only select the link containing the original selection. An analogous change was already made for the underlying getMarkRange function (https:...
diff --git a/.changeset/mean-islands-change.md b/.changeset/mean-islands-change.md new file mode 100644 index 0000000000..a96a6c38f0 --- /dev/null +++ b/.changeset/mean-islands-change.md @@ -0,0 +1,5 @@ +--- +'@tiptap/core': patch +--- + +Remove extendMarkRange attributes default, to avoid extending across adjacent lin...
5
5
0
[{"id": "G0", "claim": "The bare `// eslint-disable-next-line` above the test file's first import is unnecessary and should be removed or scoped to the specific rule it suppresses so it does not mask future lint issues.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {...
null