Skip to content

Commit 7b99406

Browse files
esimkowitzclaude
andauthored
chore: bump package version to 1.2.1 (#269)
* chore: bump package version to 1.2.1 * fix(lint): use sort_by_key with Reverse for clippy Resolves clippy::unnecessary_sort_by warning by replacing the manual descending comparator with sort_by_key + std::cmp::Reverse. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent a4547be commit 7b99406

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

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,7 +1,7 @@
11
[package]
22
name = "printers-js"
33
authors = ["Evan Simkowitz <esimkowitz@users.noreply.github.com>"]
4-
version = "1.2.0"
4+
version = "1.2.1"
55
edition = "2021"
66
publish = false
77

lib/core.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ impl PrinterJobTracking for Printer {
837837
.collect();
838838

839839
// Sort by creation time (most recent first)
840-
jobs.sort_by(|a, b| b.created_at.cmp(&a.created_at));
840+
jobs.sort_by_key(|job| std::cmp::Reverse(job.created_at));
841841

842842
if let Some(limit) = limit {
843843
jobs.truncate(limit);

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@printers/printers",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "Cross-platform printer library for Node.js, Deno, and Bun",
55
"type": "module",
66
"main": "dist/index.js",

0 commit comments

Comments
 (0)