Skip to content

Releases: screepers/typed-screeps

v3.3.1

16 Feb 16:06
Compare
Choose a tag to compare

What's Changed

  • Rollback breaking change on Game.getObjectById(id:string) in v3.3.0 #226
  • Update ConcreteStructure syntax to use map instead of conditional chain #209

Full Changelog: v3.3.0...v3.3.1

3.3.0 - 2022-04-18

07 Jul 17:02
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v3.2.4...v3.3.0

3.2.4 - 2021-08-21

21 Aug 08:20
Compare
Choose a tag to compare

Added

  • Add Game.GetObjectById support for union of Id's (#201)
  • Add support for type predicates in room.find and similar functions (#199)
  • Add explicit | undefined to undefined types that may exist with an undefined value.

Fixed

  • Fix typo in docstring in Flag interface (#198)
  • Fix function documentation. 10k per pixel (#200)

3.2.2 - 2021-03-14

14 Mar 20:23
Compare
Choose a tag to compare

Added

  • Added StructureInvaderCore.Spawning (d798c56)

Updated

  • Updated PIXEL_CPU_COST constant to 10000 (d798c56)
  • MarketResourceConstant as argument for Game.market.getHistory (#184)
  • Updated Deposit.depositType documentation (#189)
  • Updated Creep.build documentation (#186)

3.2.1 - 2020-10-11

11 Oct 19:30
Compare
Choose a tag to compare

Added

  • Adds import and export to RoomVisual and MapVisual (#181)
  • Add InterShardResourceConstant, fix resources missing from MarketResourceConstant (#182)

Fixed

  • Adds RESOURCE_ENERGY to COMMODITIES record. (#178)
  • Fixes signature of RoomPosition.findClosestByPath() (#179)

3.2.0 - 2020-09-06

06 Sep 17:29
a3563e0
Compare
Choose a tag to compare

Added

  • Add new MapVisual type for new map visual feature (#177)

Fixed

  • Fix decumentation for PWR_OPERATE_FACTORY duration (#174)

3.1.3 - 2020-06-30

30 Jun 18:33
Compare
Choose a tag to compare

Added

  • Add constants CPU_UNLOCK, PIXEL, ACCESS_KEY
  • Add Game.cpu.generatePixel()
  • Add Game.cpu.unlock(), Game.cpu.unlocked, and Game.cpu.unlockedTime
  • Fixed tower.attack() to allow targeting Structures #170

3.1.2 - 2020-05-12

12 May 18:20
Compare
Choose a tag to compare

Added

  • Add level?: number to COMMODITIES record (522a9ca)
  • Add RESOURCE_ENERGY to commodities components (a3a59c9)

Fixed

  • Fix FindOpts.costCallback type to void | CostMatrix (32f051c)
  • Fix StructureController.my to be boolean (062e4a4)

Changed

  • Slight change to store signatures to allow better type inference in certain editors (#166)

3.1.1 - 2020-04-23

23 Apr 18:54
Compare
Choose a tag to compare

Fixed

  • Added type Ruin to PowerCreep.withdraw parameter target

3.1.0 - 2020-04-01

01 Apr 19:17
Compare
Choose a tag to compare
  • Fixed StructureSpawn.renewCreep() documentation (#158)
  • Added missing PWR_OPERATE_FACTORY constant (#161)
  • Changed BodyPartConstant to allow inferred Boost type from part type (#162)
  • Added ConcreteStructure<T> type
  • Change owner to allow undefined on StructureController (#164)
  • Various updates from 2020-03-24 game update (#163)
    • Added Game.map.getRoomStauts(roomName)
    • Added RoomStatus type, a discriminated union on status of RoomStatusTemporary and RoomStatusPermanent.
    • Added StructureLab.reverseReaction(lab1,lab2)
    • Changed room.name to be readonly
    • Changed typing of StoreBase.getFreeCapacity() to return null for invalid resources types on limited stores.
    • Changed documentation of store functions
    • Deprecated Game.map.isRoomAvailable(), see Game.map.getRoomStatus()