Skip to content

Commit 4770e55

Browse files
authored
Merge pull request #585 from mgeisler/release-0.16.2
Release 0.16.2
2 parents ed3e027 + 84ca0bb commit 4770e55

File tree

7 files changed

+41
-8
lines changed

7 files changed

+41
-8
lines changed

.github/workflows/prepare-release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494
const new_version = '${{ needs.setup.outputs.new-version }}'
9595
9696
let cutoff = '1970-01-01'
97-
const releases = await github.repos.listReleases(context.repo)
97+
const releases = await github.rest.repos.listReleases(context.repo)
9898
for (const release of releases.data) {
9999
if (release.tag_name == old_version) {
100100
cutoff = release.published_at
@@ -105,7 +105,7 @@ jobs:
105105
106106
let q = [`repo:${context.repo.owner}/${context.repo.repo}`,
107107
'is:pr', 'is:merged', `merged:>${cutoff}`]
108-
const prs = await github.paginate(github.search.issuesAndPullRequests, {
108+
const prs = await github.paginate(github.rest.search.issuesAndPullRequests, {
109109
q: q.join(' '),
110110
sort: 'created',
111111
order: 'asc',
@@ -183,7 +183,7 @@ jobs:
183183
uses: actions/github-script@v7
184184
with:
185185
script: |
186-
const pr = await github.pulls.create({
186+
const pr = await github.rest.pulls.create({
187187
owner: context.repo.owner,
188188
repo: context.repo.repo,
189189
head: 'release-${{ needs.setup.outputs.new-version }}',

.github/workflows/publish-crate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
with:
3535
script: |
3636
const version = '${{ steps.vars.outputs.version }}'
37-
const tags = await github.repos.listTags(context.repo)
37+
const tags = await github.rest.repos.listTags(context.repo)
3838
if (tags.data.some(tag => tag.name == version)) {
3939
core.info(`Found ${version} tag -- will skip publish step`)
4040
return false

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22

33
This file lists the most important changes made in each release of `textwrap`.
44

5+
## Version 0.16.2 (2025-03-03)
6+
7+
This release fixes an unnecessary `f64` cast, updates all dependencies, bumps
8+
the minimum supported Rust version to 1.70.
9+
10+
- [#540](https://github.com/mgeisler/textwrap/pull/540): Avoid spurious `f64`
11+
cast and comparison.
12+
- [#565](https://github.com/mgeisler/textwrap/pull/565): Configure automatic
13+
Dependabot updates.
14+
- [#579](https://github.com/mgeisler/textwrap/pull/579): Bump `rust-version` to
15+
1.70.
16+
517
## Version 0.16.1 (2024-02-17)
618

719
This release fixes `display_width` to ignore inline-hyperlinks. The minimum

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "textwrap"
3-
version = "0.16.1"
3+
version = "0.16.2"
44
authors = ["Martin Geisler <[email protected]>"]
55
categories = ["text-processing", "command-line-interface"]
66
documentation = "https://docs.rs/textwrap/"

images/textwrap-0.16.2.svg

Lines changed: 21 additions & 0 deletions
Loading

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
//! The full dependency graph, where dashed lines indicate optional
114114
//! dependencies, is shown below:
115115
//!
116-
//! <img src="https://raw.githubusercontent.com/mgeisler/textwrap/master/images/textwrap-0.16.1.svg">
116+
//! <img src="https://raw.githubusercontent.com/mgeisler/textwrap/master/images/textwrap-0.16.2.svg">
117117
//!
118118
//! ## Default Features
119119
//!
@@ -193,7 +193,7 @@
193193
//! [terminal_size]: https://docs.rs/terminal_size/
194194
//! [hyphenation]: https://docs.rs/hyphenation/
195195
196-
#![doc(html_root_url = "https://docs.rs/textwrap/0.16.1")]
196+
#![doc(html_root_url = "https://docs.rs/textwrap/0.16.2")]
197197
#![forbid(unsafe_code)] // See https://github.com/mgeisler/textwrap/issues/210
198198
#![deny(missing_docs)]
199199
#![deny(missing_debug_implementations)]

0 commit comments

Comments
 (0)