Releases: JustinFreitas/ration-expiration-date
Releases · JustinFreitas/ration-expiration-date
1.5.1
Fixed
- Item name matching no longer treats the dropped item name as a regular expression, which could throw on names containing special characters (e.g. parentheses) and break item creation.
- Matching direction corrected: the configured ration name is now matched as a case-insensitive substring of the dropped item's name.
- Re-dropping an already-stamped item no longer appends a second expiration date.
- Custom item/day tuples with non-numeric day values are now ignored instead of producing an "Invalid Date" stamp.
- Malformed JSON in the custom tuples setting is now surfaced via a UI notification.
Changed
- Consistent indentation; dropped unused
preCreateItemhook parameters. - Refreshed README/CHANGELOG/module.json for the four built-in ration types.
v1.5.0
Release for Foundry VTT v14 compatibility.
1.4.1
1.4.1
1.4.0
Add fresh food and preserved meat.
1.3.2
Verified functionality on v13
1.3.1
Changed the month and day format of the date in the SimpleCalendar case to be the short format (no leading zeros) to match the toLocaleDate() used without SimpleCalendar. Fixed the error thrown for SimpleCalendar not being defined by checking type instead of object existence.
1.3.0
Change item rename to use system and updateSource() instead of the deprecated data and update() for v12 compatibility.
1.2.1
Fix for the expiration date being added to all items instead of just specified items.
1.1.0
Added a new setting that excepts an array of name/days tuples to extend the item list. Ex: [["Rations, ripe", 2], ["Rations, preserved", 365]]
1.0.4
- Add CHANGELOG.md to have a single location for tracking change history conforming to the approach of other modules.
- Use constants instead of redundant string/number definitions.
- Linter formatting.
- Removal of debugging onChange handler definition for settings registrations.
- Clean up unnecessary comments.