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

Update tui-textarea requirement from 0.4.0 to 0.6.1 #11

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 1, 2024

Updates the requirements on tui-textarea to permit the latest version.

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.
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 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)

Updates the requirements on [tui-textarea](https://github.com/rhysd/tui-textarea) to permit the latest version.
- [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.4.0...v0.6.1)

---
updated-dependencies:
- dependency-name: tui-textarea
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file rust Pull requests that update Rust code labels Sep 1, 2024
Copy link
Contributor Author

dependabot bot commented on behalf of github Nov 1, 2024

Superseded by #14.

@dependabot dependabot bot closed this Nov 1, 2024
@dependabot dependabot bot deleted the dependabot/cargo/tui-textarea-0.6.1 branch November 1, 2024 16:31
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 rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants