Skip to content

Releases: JustinFreitas/ration-expiration-date

1.5.1

14 Jun 23:54

Choose a tag to compare

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 preCreateItem hook parameters.
  • Refreshed README/CHANGELOG/module.json for the four built-in ration types.

v1.5.0

30 May 19:28

Choose a tag to compare

Release for Foundry VTT v14 compatibility.

1.4.1

03 May 22:50

Choose a tag to compare

1.4.1

1.4.0

03 May 22:39

Choose a tag to compare

Add fresh food and preserved meat.

1.3.2

02 May 03:35

Choose a tag to compare

Verified functionality on v13

1.3.1

09 Feb 15:58

Choose a tag to compare

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

08 Jun 16:54
c5ef98a

Choose a tag to compare

Change item rename to use system and updateSource() instead of the deprecated data and update() for v12 compatibility.

1.2.1

29 Jul 23:10
cfc3808

Choose a tag to compare

Fix for the expiration date being added to all items instead of just specified items.

1.1.0

25 Jun 18:26

Choose a tag to compare

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

26 Nov 22:49
ed87e02

Choose a tag to compare

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