Skip to content

Latest commit

 

History

History
437 lines (271 loc) · 18.7 KB

CHANGELOG.md

File metadata and controls

437 lines (271 loc) · 18.7 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

Breaking changes

  • More flexible Memory (#246)

Added

  • Add type inference for params in filter callbacks (#221)
  • Add missing MARKET_FEE constant (#213)
  • Add CommodityTypes type and CommidityEntry interface (#212)

Updated

  • Update PathFinder.CostMatrix to be CostMatrixConstructor to separate static methods from CostMatrix. (#214)
  • Update LOOK_STRUCTURES return type to AnyStructure (#217)
  • Update Game.structures type to OwnedStructure (#211)
  • Refactor: Decoupling FilterOption and FindConstant and improve FilterOption (#238)
  • Fix: Mark Spawning.directions as optional (#244)
  • Fix: Unlimited stores have no notion of free capacity (#208)
  • Fix: Room.getEventLog() may return string (#245)
  • FIx: Mark RoomObject.effects as optional

Removed

  • Removes deprecated Game.getObjectById(id: string) function. Use version with Id<T> typed ids. (#207)

3.3.2

This version was pushed by DefinitelyTyped maintainers, has no effect on type definitions

  • MarkoSulamagi resigns from DT side maintainers

3.3.1 - 2023-02-16

Updated

  • Update ConcreteStructure syntax to use map instead of conditional chain (#209)

Fixed

  • Fix: brings removed Game.getObjectById(id: string) back to avoid breaking changes. (#226)

3.3.0 - 2022-04-18

Updated

  • Updates ticksToRegeneration to be optional in Minerals (#204)
  • Updates level to be optional in StructureFactory (#205)
  • Updates Id type to only be used on types with an id property (#207)

Removed

  • Removes deprecated Game.getObjectById(id: string) function. Use version with Id<T> typed ids. (#207)

3.2.4 - 2021-08-21

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

This version was pushed by DefinitelyTyped maintainers, not present in this repository.

3.2.2 - 2021-03-14

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)
  • Adds import and export to RoomVisual and MapVisual (#181)

3.2.1 - 2020-09-24

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

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-22

Added

  • Add constants CPU_UNLOCK, PIXEL, ACCESS_KEY (#172)
  • Add Game.cpu.generatePixel() (#172)
  • Add Game.cpu.unlock(), Game.cpu.unlocked, and Game.cpu.unlockedTime (#172)

Fixed

  • Fixed tower.attack() to allow targeting Structures (#170)

3.1.2 - 2020-05-12

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

Fixed

  • Added type Ruin to PowerCreep.withdraw parameter target

3.1.0 - 2020-04-01

  • 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()

3.0.1 - 2019-11-27

  • Fix POSSIBLE_RESSOURCES typo in store definition (#151)
  • Remove unecessary tslint:disable rules in OpaqueTag definition (#151)

3.0.0 - 2019-11-23

Added

  • Add missing halt command to CPU (#141)
  • Add market price history and other updates (#138)
  • Add support for 'Natural Effects' on RoomObjects (#135)
  • Add support for Factories, Ruins, Deposits, and Strongholds (#132)

Changed

  • Retype constants with same named types (#143), (#147)
  • Update StoreDefinition (#130)
  • Explicitly type game object Ids (#139)

Fixed

Deprecated

  • Deprecated use of string typed ids to get game objects (#144)
  • Deprecated creep.carry (#130)

Removed

  • Remove deprecated FIND_DROPPED_ENERGY constant (#129)

2.5.4 - 2019-05-12

Added

  • Add support for PowerCreep, InterShardMemory and an AnyCreep union (#117)

2.5.3 - 2018-12-27

Fixed

  • Add missing properties to FindPathOpts (#106)

Changed

  • Change EventType to an interface with a type argument (#110)

2.5.2 - 2018-11-09

Added

  • Implements Room.Terrain and room.getTerrain() (#103)

2.5.1 - 2018-10-11

Fixed

  • Fix definition of RawMemory.segments. (#91)
  • Fixed incorrect definition of getEventLog(). (#101)

2.5.0 - 2018-10-04

Added

  • Added getRoomTerrain (#98)
  • Added WIP types for room.eventLog (#88)
  • Added missing safemode/downgrade constants (#96)

Changed

  • filterOptions Revamp (#87)

2.4.1 - 2018-08-24

Added

  • Added INVADERS_ENERGY_GOAL (#83)

Changed

  • Update CREEP_CLAIM_LIFE_TIME to match with Screeps 2018-03-05 update (#84)

2.4.0 - 2018-06-24

Added

  • Add inter-shard portals (#74)

Changed

  • The findClosestBy* functions potentially return null (#69)

Fixed

  • Various improvements by @pmoehl (thank you!)
    • Fix type of StructureLab.mineralType (#73)
    • Fix result type of Room.lookAtArea (#75)
    • Add subscription token as market resource types (#76)
    • Spawn options +directions (#77)
    • Add createConstructionSite name parameter (#78)
    • Updated Tombstone docs (#79)
    • Improve exit typings (#80)
  • Fixed missing Constructor extends declarations (#71)
  • Fixed createFlag method return type to include string (#72)
  • claimController() uses GCL, not RCL (#81)

2.3.0 - 2018-04-16

Added

  • TERMINAL_COOLDOWN constant (#64)
  • Better tombstone support (#60)

Fixed

  • Declare Game with var instead of let (#62)
  • ERR_NOT_ENOUGH_RESOURCES missing in return codes for creep build action (#66)

2.2.2 - 2018-03-17

Added

  • Added IVM typings (#55)
  • Added Tombstone typings (#48)

Fixed

  • Fixed some DefinitelyTyped linting errors (#54)

2.2.1 - 2018-03-09

Added

  • Added StructureSpawn.Spawning (#52)

Changed

  • Changed StructureLab.mineralType from MineralConstant to _ResourceConstantSansEnergy | undefined. (#49)

Fixed

  • RESOURCE_CATALYZED_ZYNTHIUM_ALKALIDE has a typo (#51)

2.2.0 - 2018-01-26

Added

  • Added missing constants: EXTRACTOR_COOLDOWN, SYSTEM_USERNAME (#34)
  • Added missing ScreepsReturnCode definition: ERR_NAME_EXISTS (#44)

Removed

  • Remove FIND_DROPPED_ENERGY (#39 #40)

Fixed

  • Creep.attackController() returns ERR_TIRED if the controller has upgrade blocked (#32)
  • PowerBanks are considered to be owned structures (and are owned by "Power Bank") (#33)
  • Allow creep.ticksToLive to be undefined (#36)
  • Fixes for PathFinder.search, LookAtTypes (#41, #47)

2.1.0 - 2017-12-22

Changed

  • Restuctured project for DefinitelyTyped publishing (#24)

Fixed

  • Allow Game interface to be extended (#29)
  • Allow controller sign + reservation to be undefined (#28)

2.0.1 - 2017-12-13

Fixed

  • Reduce package size when installing via npm (#25)

2.0.0 - 2017-12-05

Added

  • Added contributing guidelines and Issue/PR templates (#18)
  • Added CI tests (thanks, @Arcath!)
  • [Constants] Added BuildableStructureConstant, which is a subset of StructureConstant (#17)

Changed

  • Improved build tooling around compiling scripts and running tests.
  • [Room][roomposition] Improved generic-based overloads for .find*(), lookAt(), and lookForAt() functions (#14, #19)
  • [Constants] OBSTACLE_OBJECT_TYPES are now strictly defined (#17)

Fixed

  • [RawMemory] On setActiveForeignSegment, id should be optional. (commit)

1.0.4 - 2017-11-09

Added

  • Added Game.resources
  • Added Game.map.getWorldSize()
  • Added RawMemory.interShardSegment

Deprecated

  • Deprecated spawn.canCreateCreep(body, [name])
  • Deprecated spawn.createCreep(body, [name], [memory])
  • Deprecated spawn.transferEnergy(target, [amount])
  • Deprecated PathFinder.use(isEnabled)

1.0.3 - 2017-11-05

Fixed

  • Emergency patch to fix mismatched STRUCTURE_WALL constant.

1.0.2 - 2017-11-05

Added

  • Added Game.cpu.setShardLimits(limits)

Fixed

  • [Constants] STRUCTURE_WALL should be 'constructedWall', not 'wall'

1.0.1 - 2017-11-05

Changed

  • Added forgotten documentation material from v1.0.0

1.0.0 - 2017-11-05

Added

  • Initial public npm release.