-
-
Notifications
You must be signed in to change notification settings - Fork 338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(spans): remove deprecated Spans
type
#426
Conversation
Codecov Report
@@ Coverage Diff @@
## main #426 +/- ##
==========================================
+ Coverage 89.93% 89.98% +0.04%
==========================================
Files 41 40 -1
Lines 11334 11160 -174
==========================================
- Hits 10193 10042 -151
+ Misses 1141 1118 -23
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't tested the code but general +1
The main question on this is whether it's for 0.23 or 0.24? It's been 3 months since the deprecation, which is probably enough time to handle this sort of thing. |
Looking at https://crates.io/crates/ratatui/reverse_dependencies there's still quite a few projects still on That said, I'm assuming that those on v0.20.1 are probably only going to upgrade when there's a feature they want. So it's probably fine to go for it in this release. |
That's actually a reasonable check - I think perhaps it's worth holding off until after 0.23 then. |
Should we maybe add mention somewhere of how long we keep things in a deprecated state before we remove them ? Do we already have that and I missed it ? Consistency in our deprecation process would be good to have for sure |
d65a49f
to
e96e5a1
Compare
Deprecation should be rare enough that we can mostly handle it on a case by case basis IMO. Latest push is a rebase and removed a couple of tests that referenced I think this is probably worth merging for 0.24 |
- `Line` replaces `Spans` - `Buffer::set_line` replaces `Buffer::set_spans`
e96e5a1
to
45f8a67
Compare
Rebased on main to resolve conflicts (changes from mod.rs -> xxx.rs) |
Spans
was replaced withLine
in 0.21.0. This commit removes thedeprecated type and all associated code.
Buffer::set_spans
wasreplaced with
Buffer::set_line
.