Skip to content

Commit f7ba01a

Browse files
committed
Update versions and changelog for v5.1.0
1 parent 2367403 commit f7ba01a

File tree

4 files changed

+30
-6
lines changed

4 files changed

+30
-6
lines changed

CHANGELOG.md

+26-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
# Changelog
22

3+
## [5.1.0] = 2025-02-16
4+
5+
### Added
6+
7+
- Support for a `file_size()` condition function that returns true if the given
8+
file's size matches the given number of bytes, and false otherwise (including
9+
if the file doesn't exist).
10+
- Support for a `filename_version()` condition function that takes a regex path
11+
with a single capture group, a version string and a comparison operator and
12+
returns true if there is a path that matches the regex path and the value
13+
captured by the regex is a version string for which the comparison against the
14+
given version is true. Unlike the other version functions, it always returns
15+
false if it cannot find a version to compare against the given version,
16+
irrespective of the given comparison operator.
17+
- Support for a `description_contains()` condition function that takes a path
18+
and a regex and returns true if the given path is a plugin with a description
19+
that contains text that matches the given regex, and false otherwise
20+
(including if the path does not exist, is not a plugin, or has no
21+
description).
22+
323
## [5.0.0] - 2025-02-01
424

525
### Added
@@ -12,6 +32,8 @@
1232
- The `is_master()` condition function returns `false` for all OpenMW plugins.
1333
- When resolving filenames, the additional data paths are checked in reverse
1434
order.
35+
- Support for an `is_executable(path)` condition function that returns true if
36+
the given path is a Windows executable (PE) file.
1537

1638
### Changed
1739

@@ -166,8 +188,10 @@
166188
### Changed
167189

168190
- Checksum calculations are now much faster for larger files.
169-
- Directory paths are now handled more gracefully in `checksum()`, `version()` and `product_version()` conditions.
170-
- Resolved some `rustc` deprecation warnings by replacing usage of `std::error::Error`'s `description()` function with `to_string()`.
191+
- Directory paths are now handled more gracefully in `checksum()`, `version()`
192+
and `product_version()` conditions.
193+
- Resolved some `rustc` deprecation warnings by replacing usage of
194+
`std::error::Error`'s `description()` function with `to_string()`.
171195
- Updated cbindgen to v0.14.
172196
- Updated pelite to v0.8.0.
173197

Cargo.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "loot-condition-interpreter"
3-
version = "5.0.0"
3+
version = "5.1.0"
44
authors = ["Oliver Hamlet <[email protected]>"]
55
license = "MIT"
66
edition = "2021"

ffi/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "loot-condition-interpreter-ffi"
3-
version = "5.0.0"
3+
version = "5.1.0"
44
authors = ["Oliver Hamlet <[email protected]>"]
55
license = "MIT"
66
edition = "2021"

0 commit comments

Comments
 (0)