Skip to content
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(deps): bump tui-textarea from 0.5.2 to 0.6.1 #303

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 8, 2024

Bumps tui-textarea from 0.5.2 to 0.6.1.

Release notes

Sourced from tui-textarea's releases.

v0.6.1

  • Add TextArea::selection_range method to get the range of the current selection. Please read the document for more details. (#81, thanks @​achristmascarl)
    let mut textarea = TextArea::from(["aaa"]);
    // It returns None when the text selection is not ongoing
    assert_eq!(textarea.selection_range(), None);
    textarea.start_selection();
    assert_eq!(textarea.selection_range(), Some(((0, 0), (0, 0))));
    textarea.move_cursor(CursorMove::Forward);
    assert_eq!(textarea.selection_range(), Some(((0, 0), (0, 1))));
    // The first element of the pair is always smaller than the second one.
    textarea.start_selection();
    textarea.move_cursor(CursorMove::Back);
    assert_eq!(textarea.selection_range(), Some(((0, 0), (0, 1))));

  • Fix depending on the incorrect version of termion crate when tuirs-termion feature is enabled. Since tui crate depends on older version of termion crate v1.5.6, tui-textarea should depend on the same version but actually it depended on the latest version v4.0.0.
    • If you use tui-textarea with tui crate and termion crate, please ensure that your project also depends on termion v1.5. Otherwise your project accidentally depends on multiple versions of termion crate.

v0.6.0

  • BREAKING: Update ratatui crate dependency from v0.27 to v0.28.
  • BREAKING: Update crossterm crate dependency from v0.27 to v0.28 because ratatui crate depends on the new version.
    • Note: If you use tui crate, crossterm crate dependency remains at v0.25.

v0.5.3

  • &TextArea now implements Widget trait. (#78)
    • Now the reference can be passed to ratatui::terminal::Frame::render_widget method call directly.
      // v0.5.2 or earlier
      f.render_widget(textarea.widget(), rect);
      // v0.5.3 or later
      f.render_widget(&textarea, rect);

    • This means that TextArea::widget method is no longer necessary. To maintain the compatibility the method is not removed but using it starts to report a deprecation warning from v0.5.3.
  • Fix a cursor can leave the viewport on horizontal scroll when line number is displayed. (#77)
  • Support some key combinations added at termion v4 for termion feature. (#68)
    • termion::event::Key::CtrlLeft
    • termion::event::Key::CtrlRight
    • termion::event::Key::CtrlUp
    • termion::event::Key::CtrlDown
    • termion::event::Key::CtrlHome
    • termion::event::Key::CtrlEnd
    • termion::event::Key::AltLeft
    • termion::event::Key::AltRight
    • termion::event::Key::AltUp
    • termion::event::Key::AltDown

... (truncated)

Changelog

Sourced from tui-textarea's changelog.

v0.6.1 - 08 Aug 2024

  • Add TextArea::selection_range method to get the range of the current selection. Please read the document for more details. (#81, thanks @​achristmascarl)
    let mut textarea = TextArea::from(["aaa"]);
    // It returns None when the text selection is not ongoing
    assert_eq!(textarea.selection_range(), None);
    textarea.start_selection();
    assert_eq!(textarea.selection_range(), Some(((0, 0), (0, 0))));
    textarea.move_cursor(CursorMove::Forward);
    assert_eq!(textarea.selection_range(), Some(((0, 0), (0, 1))));
    // The first element of the pair is always smaller than the second one.
    textarea.start_selection();
    textarea.move_cursor(CursorMove::Back);
    assert_eq!(textarea.selection_range(), Some(((0, 0), (0, 1))));

  • Fix depending on the incorrect version of termion crate when tuirs-termion feature is enabled. Since tui crate depends on older version of termion crate v1.5.6, tui-textarea should depend on the same version but actually it depended on the latest version v4.0.0.
    • If you use tui-textarea with tui crate and termion crate, please ensure that your project also depends on termion v1.5. Otherwise your project accidentally depends on multiple versions of termion crate.

[Changes][v0.6.1]

v0.6.0 - 07 Aug 2024

  • BREAKING: Update ratatui crate dependency from v0.27 to v0.28.
  • BREAKING: Update crossterm crate dependency from v0.27 to v0.28 because ratatui crate depends on the new version.
    • Note: If you use tui crate, crossterm crate dependency remains at v0.25.

[Changes][v0.6.0]

v0.5.3 - 03 Aug 2024

  • &TextArea now implements Widget trait. (#78)
    • Now the reference can be passed to ratatui::terminal::Frame::render_widget method call directly.
      // v0.5.2 or earlier
      f.render_widget(textarea.widget(), rect);
      // v0.5.3 or later
      f.render_widget(&textarea, rect);

    • This means that TextArea::widget method is no longer necessary. To maintain the compatibility the method is not removed but using it starts to report a deprecation warning from v0.5.3.
  • Fix a cursor can leave the viewport on horizontal scroll when line number is displayed. (#77)

... (truncated)

Commits
  • a0b820c bump up version to v0.6.1
  • 49c90f0 fix tests for termion support when using old version of termion
  • 3fb0a78 use the same version of termion as tui's dependency for tuirs-termion f...
  • 8d2c201 add tests for TextArea::selection_range
  • de736a5 make the first element of range is smaller than the second one (#81)
  • b7a7e3d Merge pull request #81 from achristmascarl/expose-selection-start
  • 75f5111 switch to selection range
  • 93cfabd update changelog for v0.6.0 changes
  • 7a8c020 bump up version to v0.6.0
  • 9b86d54 fix fuzzing test cases to follow ratatui v0.28
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot requested a review from lquerel as a code owner August 8, 2024 21:10
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Aug 8, 2024
@dependabot dependabot bot requested a review from jsuereth as a code owner August 8, 2024 21:10
Copy link

codecov bot commented Aug 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.4%. Comparing base (be98131) to head (dc89701).

Additional details and impacted files
@@          Coverage Diff          @@
##            main    #303   +/-   ##
=====================================
  Coverage   73.4%   73.4%           
=====================================
  Files         44      44           
  Lines       2941    2941           
=====================================
  Hits        2161    2161           
  Misses       780     780           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dependabot dependabot bot force-pushed the dependabot/cargo/tui-textarea-0.6.1 branch 2 times, most recently from 576bdf5 to e9ec723 Compare August 11, 2024 16:12
@dependabot dependabot bot requested a review from a team August 11, 2024 16:12
@dependabot dependabot bot force-pushed the dependabot/cargo/tui-textarea-0.6.1 branch from e9ec723 to 41f4ffb Compare August 12, 2024 16:52
Bumps [tui-textarea](https://github.com/rhysd/tui-textarea) from 0.5.2 to 0.6.1.
- [Release notes](https://github.com/rhysd/tui-textarea/releases)
- [Changelog](https://github.com/rhysd/tui-textarea/blob/main/CHANGELOG.md)
- [Commits](rhysd/tui-textarea@v0.5.2...v0.6.1)

---
updated-dependencies:
- dependency-name: tui-textarea
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/cargo/tui-textarea-0.6.1 branch from 41f4ffb to dc89701 Compare August 12, 2024 22:38
Copy link
Contributor Author

dependabot bot commented on behalf of github Aug 13, 2024

Looks like tui-textarea is up-to-date now, so this is no longer needed.

@dependabot dependabot bot closed this Aug 13, 2024
@dependabot dependabot bot deleted the dependabot/cargo/tui-textarea-0.6.1 branch August 13, 2024 21:03
@lquerel
Copy link
Contributor

lquerel commented Aug 13, 2024

Included in #310

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant