stardew-valley-data 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project
6
6
  adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.0.1] - 2026-04-05
9
+
10
+ ### Fix
11
+
12
+ - `parseFishingRod` now resolves rod tier by `itemId` instead of `name` — older save files set all
13
+ fishing rod names to `"Fishing Rod"`, causing every rod to fall back to level -1 (unknown);
14
+ switching to `itemId` (`TrainingRod`, `BambooPole`, `FiberglassRod`, `IridiumRod`,
15
+ `AdvancedIridiumRod`) correctly identifies the rod in both old and new saves
16
+
8
17
  ## [1.0.0] - 2026-04-05
9
18
 
10
19
  ### Added
package/dist/index.js CHANGED
@@ -41710,11 +41710,11 @@ var TOOL_KEY_MAP = {
41710
41710
  Hoe: "hoe"
41711
41711
  };
41712
41712
  var FISHING_ROD_LEVEL = {
41713
- "Training Rod": 0,
41714
- "Bamboo Pole": 1,
41715
- "Fiberglass Rod": 2,
41716
- "Iridium Rod": 3,
41717
- "Advanced Iridium Rod": 4
41713
+ TrainingRod: 0,
41714
+ BambooPole: 1,
41715
+ FiberglassRod: 2,
41716
+ IridiumRod: 3,
41717
+ AdvancedIridiumRod: 4
41718
41718
  };
41719
41719
  function collectToolItems(node, depth = 0) {
41720
41720
  if (!node || typeof node !== "object" || depth > 20) return [];
@@ -41794,7 +41794,7 @@ function parseToolLevels(player, root) {
41794
41794
  levels[key] = toolLevel(level, getEnchantmentName(i));
41795
41795
  }
41796
41796
  } else if (xsiType === "FishingRod") {
41797
- const rodLevel = FISHING_ROD_LEVEL[i.name] ?? -1;
41797
+ const rodLevel = FISHING_ROD_LEVEL[i.itemId] ?? -1;
41798
41798
  if (rodLevel > levels.fishingRod.level) {
41799
41799
  levels.fishingRod = toolLevel(rodLevel, getEnchantmentName(i));
41800
41800
  }