screeps-connectivity 0.2.0 → 0.2.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
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - e761c02: Add `status` field to `MapStatsRoomData` so consumers can detect out-of-borders and restricted rooms. The client gains a "Show unclaimable rooms" toggle that highlights corridors, sector centres, owned rooms, and restricted areas on the world map.
8
+
3
9
  ## Unreleased
4
10
 
5
11
  ### Breaking Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "screeps-connectivity",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "license": "ISC",
5
5
  "type": "module",
6
6
  "repository": {
@@ -10,6 +10,7 @@ export interface MapStatsRoomData {
10
10
  username?: string
11
11
  safeMode?: boolean
12
12
  badge?: ApiMapStatsBadge
13
+ status?: string
13
14
  }
14
15
 
15
16
  export interface MapStatsStoreEvents {
@@ -110,6 +111,7 @@ export class MapStatsStore extends TypedStore<MapStatsStoreEvents> {
110
111
  username: ownerId ? userMap[ownerId]?.username : undefined,
111
112
  safeMode: stat.safeMode,
112
113
  badge: ownerId ? userMap[ownerId]?.badge : undefined,
114
+ status: stat.status,
113
115
  }
114
116
  }
115
117
  }