Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update season-1 branch #260

Closed
wants to merge 57 commits into from
Closed

Commits on Dec 7, 2020

  1. fix depositType (screepers#189)

    Fix documentation for `Deposit.depositType`
    justjavac authored Dec 7, 2020
    Configuration menu
    Copy the full SHA
    85a8f42 View commit details
    Browse the repository at this point in the history
  2. Update Creep.build (screepers#186)

    * Update Creep.build
    * update index.d.ts
    justjavac authored Dec 7, 2020
    Configuration menu
    Copy the full SHA
    861f38f View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2021

  1. Misc. updates, prep for 3.2.2

    - Added `StructureInvaderCore.Spawning`
    - Updated `PIXEL_CPU_COST` constant to 10000
    pyrodogg committed Feb 27, 2021
    Configuration menu
    Copy the full SHA
    d798c56 View commit details
    Browse the repository at this point in the history
  2. Update changelog, 3.2.2 prep

    pyrodogg committed Feb 27, 2021
    Configuration menu
    Copy the full SHA
    dbcabfb View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2021

  1. Version 3.2.2

    pyrodogg committed Mar 14, 2021
    Configuration menu
    Copy the full SHA
    fea3f44 View commit details
    Browse the repository at this point in the history
  2. Changelog 3.2.2

    pyrodogg committed Mar 14, 2021
    Configuration menu
    Copy the full SHA
    74ca8c8 View commit details
    Browse the repository at this point in the history

Commits on Aug 4, 2021

  1. Add support for type predicates (screepers#199)

    * Add support for type predicates
    * correct mistake in generic type predicate
    IotaBlack authored Aug 4, 2021
    Configuration menu
    Copy the full SHA
    3fe9e23 View commit details
    Browse the repository at this point in the history
  2. Fix typo in docstring (screepers#198)

    Just a simple typo fix in the Flag interface : `spawn` -> `flag`
    dbgb authored Aug 4, 2021
    Configuration menu
    Copy the full SHA
    b267448 View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2021

  1. Prepare changelog, prep 3.2.3

    Add notes for unreleased changes
    Fix year in date for prior 3.2.2 release
    pyrodogg committed Aug 9, 2021
    Configuration menu
    Copy the full SHA
    6c7569f View commit details
    Browse the repository at this point in the history
  2. Add explicit undefined for optional properties

    Typescript 4.4 (currently in beta) provides support for distinguishing
    whether or not optional parameters should be allowed to be sete to an
    undefined value.
    
    In order to indicate optional values that support being set to
    undefined, ` | undefined` must explicitly be included in the type
    definition.
    
    Also fix some doc strings regarding default values for map/visual styles
    pyrodogg committed Aug 9, 2021
    Configuration menu
    Copy the full SHA
    ea97839 View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2021

  1. Configuration menu
    Copy the full SHA
    8f992a2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7f0b1e3 View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2021

  1. Configuration menu
    Copy the full SHA
    eeaafd6 View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2021

  1. Release 3.2.4

    - Update version number
    - Update changelog
    pyrodogg committed Aug 21, 2021
    Configuration menu
    Copy the full SHA
    ee19994 View commit details
    Browse the repository at this point in the history
  2. Fix links in changelog

    pyrodogg committed Aug 21, 2021
    Configuration menu
    Copy the full SHA
    9fc0a79 View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2021

  1. Configuration menu
    Copy the full SHA
    b2b476c View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2022

  1. An unpowered factory has undefined for level (screepers#205)

    Make level optional on factory to match what is given for an unpowered factory.
    f4hy authored Mar 27, 2022
    Configuration menu
    Copy the full SHA
    a8f68e6 View commit details
    Browse the repository at this point in the history
  2. Update changelog screepers#204,screepers#205

    Adds 204,205 to Unreleased section
    Adds test for screepers#205
    pyrodogg committed Mar 27, 2022
    Configuration menu
    Copy the full SHA
    a6c047e View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2022

  1. Stricter Id type (screepers#207)

    * clean up test and format
    * Id only works for objects that has an id
    * remove deprecated getObjectById
    * fix Spawning constructor
    Jomik authored Apr 10, 2022
    Configuration menu
    Copy the full SHA
    172fbcb View commit details
    Browse the repository at this point in the history
  2. Add screepers#207 to changelog

    pyrodogg committed Apr 10, 2022
    Configuration menu
    Copy the full SHA
    e630ac7 View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2022

  1. Update TypeScript version to 4.6

    The Typescript version has been set at 2.8 for a number of years and is
    no longer supported by DefinitelyTyped. The latest release is 4.6.
    Fixes new linting issues (stricter strings, no-for-in)
    Updates dependencies
    Replaces `dtslint` with `@definitelytyped/dtslint` in an effort to still
    follow the DT repo structure which hasn't yet moved to eslint.
    Unfortunately this triggers some audit rules.
    Remove `concat` dependency in favor of directly using `fs` due to
    security notice.
    pyrodogg committed Apr 16, 2022
    Configuration menu
    Copy the full SHA
    a1ed661 View commit details
    Browse the repository at this point in the history
  2. Additional Prettier fixes

    Also testing if husky is fixed
    pyrodogg committed Apr 16, 2022
    Configuration menu
    Copy the full SHA
    9e928fa View commit details
    Browse the repository at this point in the history
  3. Finish updating Husky

    Husky was very old, now updated to version 7 and configured.
    Adds new git hooks directory `.husky`
    Updates `prepare` lifecycle hook to include installing Husky
    Removes unused husky section from `package.json`
    pyrodogg committed Apr 16, 2022
    Configuration menu
    Copy the full SHA
    a776b21 View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2022

  1. Update version 3.3.0

    Updates project version number
    Clarifies Screeps in README to refer to Screeps: World
    pyrodogg committed Apr 18, 2022
    Configuration menu
    Copy the full SHA
    2b10396 View commit details
    Browse the repository at this point in the history

Commits on May 16, 2022

  1. Configuration menu
    Copy the full SHA
    06ab538 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    926712d View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2022

  1. Game.structures contains only the structures owned by the player (scr…

    …eepers#211)
    
    Change type of Game.structures to OwnedStructure
    madrang authored Jul 7, 2022
    Configuration menu
    Copy the full SHA
    1ef2196 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    696f777 View commit details
    Browse the repository at this point in the history
  3. Small changes to allow easier reuse of Commodities types (screepers#212)

    * Added CommoditiesTypes and CommodityEntry to simplify reusing those types.
    
    * Updated factory.produce to use the new CommoditiesTypes
    madrang authored Jul 7, 2022
    Configuration menu
    Copy the full SHA
    c6b3abf View commit details
    Browse the repository at this point in the history
  4. Update changelog

    Add missing 3.3.0 heading and new unrealeased updates
    pyrodogg committed Jul 7, 2022
    Configuration menu
    Copy the full SHA
    ae85cfd View commit details
    Browse the repository at this point in the history

Commits on Feb 12, 2023

  1. Add type inference for params in filter callbacks (screepers#221)

    * Prettier auto fixes
    
    * Fix type inference of params in filter callbacks
    `findInRange`,`findclosestByRange`
    
    * Make FilterFunction more fits _.filter
    
    * Update changelog screepers#221
    DiamondMofeng authored Feb 12, 2023
    Configuration menu
    Copy the full SHA
    916d00b View commit details
    Browse the repository at this point in the history
  2. Changed LOOK_STRUCTURES return type (screepers#217)

    * Changed `LOOK_STRUCTURES` return type
    
    Was `AllLookAtTypes.structure: Structure`, Now `AllLookAtTypes.structure: AnyStructure`.
    
    * Ran `npm run dtslint`
    rougeayrn authored Feb 12, 2023
    Configuration menu
    Copy the full SHA
    6ac75a9 View commit details
    Browse the repository at this point in the history
  3. An instance of CostMatrix cannot be used with new. (screepers#214)

    * An instance of CostMatrix cannot be used with new.
    
    JSON.stringify(new (new PathFinder.CostMatrix())());
    Results in
    TypeError: (intermediate value) is not a constructor
        at eval (eval at <anonymous> (_console1656190542011_0:1:46), <anonymous>:1:16)
        at _console1656190542011_0:1:46
        at _console1656190542011_0:1:60
        at Object.exports.evalCode (<runtime>:15336:71)
        at Object.exports.run (<runtime>:20819:41)
    
    * Updated PathFinder.CostMatrix to be CostMatrixConstructor
    
    * Move deserialize to CostMatrixConstructor
    
    According to the docs, deserialize is a static method on Pathfinder.CostMatrix (the constructor), not instances.
    https://docs.screeps.com/api/#PathFinder.CostMatrix.deserialize
    
    * Add tests for updated PathFinder.CostMatrix
    
    ---------
    
    Co-authored-by: Skyler Kehren <[email protected]>
    madrang and pyrodogg authored Feb 12, 2023
    Configuration menu
    Copy the full SHA
    3969653 View commit details
    Browse the repository at this point in the history
  4. Recompile and update changelog

    Update changelog for screepers#214 and screepers#217
    pyrodogg committed Feb 12, 2023
    Configuration menu
    Copy the full SHA
    57e7178 View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2023

  1. Setup CI using github action (screepers#232)

    * Create CI.yml
    
    * chore: replace travis CI with github action CI
    
    * fix: dtslint fixes
    DiamondMofeng authored Feb 26, 2023
    Configuration menu
    Copy the full SHA
    c09486e View commit details
    Browse the repository at this point in the history
  2. Update changelog and add Mofeng to maintainers (screepers#228)

    * changelog: add 3.3.1
    
    * changelog: sort out unreleased changes
    
    * chore: update package version to 3.3.1
    
    * chore!: add Mofeng to maintainers
    Mofeng's profile: https://github.com/DiamondMofeng
    see DefinitelyTyped/DefinitelyTyped#64389
    and DefinitelyTyped/DefinitelyTyped@dbbe88d
    DiamondMofeng authored Feb 26, 2023
    Configuration menu
    Copy the full SHA
    56b7cd2 View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2023

  1. Chore: MarkoSulamagi resigns from DT side maintainers (screepers#239)

    * MarkoSulamagi resigns from DT maintainer
    
    DefinitelyTyped/DefinitelyTyped#64588
    
    * update changelog about 3.3.2
    DiamondMofeng authored Apr 3, 2023
    Configuration menu
    Copy the full SHA
    87f2086 View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2023

  1. Mark Spawning.directions as optional (screepers#244)

    * Mark Spawning.directions as optional
    
    This property is only defined if it was passed as spawn options, or
    it got set through `Spawn.spawning.setDirections`. Otherwise it'll be
    `undefined` and the creep will default to `[TOP]`.
    
    * Apply suggestions from code review
    
    Co-authored-by: Mofeng <[email protected]>
    
    ---------
    
    Co-authored-by: Mofeng <[email protected]>
    tiennou and DiamondMofeng authored Aug 16, 2023
    Configuration menu
    Copy the full SHA
    1c78130 View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2023

  1. Refactor: Decoupling FilterOption and FindConstant and Improve `F…

    …ilterOption` (screepers#238)
    
    * test: add test cases
    
    * fix: `FilterObject` should be `DeepPartial`
    
    * fix: add non-narrowing filter function to FilterOptions
    
    * feat: mark `filter` as optional
    
    * fix: decoupling `FilterOption` and `FindConstant`
    
    * test: add dtslint assertions
    
    * test: add test for object and string style filter predicate
    DiamondMofeng authored Aug 21, 2023
    Configuration menu
    Copy the full SHA
    8c974bf View commit details
    Browse the repository at this point in the history
  2. Docs: update changelog

    DiamondMofeng committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    4c6dc6d View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2023

  1. Fix: Room.getEventLog() may return string (screepers#245)

    * fix: Room.getEventLog() may return string
    
    * run dtslint
    
    * docs: update changelog
    
    ---------
    
    Co-authored-by: Wyatt Lipscomb <[email protected]>
    WyattSL and Wyatt Lipscomb authored Sep 13, 2023
    Configuration menu
    Copy the full SHA
    71265a9 View commit details
    Browse the repository at this point in the history
  2. Fix: Unlimited stores have no notion of free capacity (screepers#208)

    * unlimited stores have no notion of free capacity
    
    * test: add test cases for store definition
    
    * docs: update changelog
    
    * test: add test cases for `get*Capacity()`
    when no resourceType is specified
    
    ---------
    arsdragonfly authored Sep 13, 2023
    Configuration menu
    Copy the full SHA
    bd7e6fc View commit details
    Browse the repository at this point in the history
  3. Chore: Bump minimatch from 3.0.4 to 3.1.2 (screepers#233)

    Bumps [minimatch](https://github.com/isaacs/minimatch) from 3.0.4 to 3.1.2.
    - [Release notes](https://github.com/isaacs/minimatch/releases)
    - [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
    - [Commits](isaacs/minimatch@v3.0.4...v3.1.2)
    
    ---
    updated-dependencies:
    - dependency-name: minimatch
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    dependabot[bot] authored Sep 13, 2023
    Configuration menu
    Copy the full SHA
    ae52290 View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2023

  1. Configuration menu
    Copy the full SHA
    2f426c0 View commit details
    Browse the repository at this point in the history

Commits on Dec 2, 2023

  1. Fix: Update invader core-related constants to their actual values (sc…

    …reepers#249)
    
    The only one that's breaking is `INVADER_CORE_EXPAND_TIME` which is
    keyed by the core's level now.
    tiennou authored Dec 2, 2023
    Configuration menu
    Copy the full SHA
    1e39c4f View commit details
    Browse the repository at this point in the history
  2. feat: add RoomTerrain.getRawBuffer() (screepers#247)

    * feat: add RoomTerrain.getRawBuffer()
    
    * fix: incorporate changes recommended by @DiamondMofend and update tests
    
    * fix: replace TypedArray helper with inline type
    admon84 authored Dec 2, 2023
    Configuration menu
    Copy the full SHA
    9d727de View commit details
    Browse the repository at this point in the history

Commits on Jan 6, 2024

  1. Fix screepers#252: lookForAtArea matrix result type. (screepers#253)

    * Fix lookForAtArea matrix result type.
    
    * npm run dtslint
    
    * Modify new test to explicitly match issue description
    
    * Separate tests for default and explicit isArray=false
    
    ---------
    
    Co-authored-by: Piotr Paulski <[email protected]>
    zyzyzyryxy and Piotr Paulski authored Jan 6, 2024
    Configuration menu
    Copy the full SHA
    12cfd11 View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2024

  1. Feat: Setting the Order type to ORDER_BUY | ORDER_SELL instead of str…

    …ing (screepers#255)
    
    * Update Order interface in market.ts
    
    Setting the type to ORDER_BUY | ORDER_SELL instead of string
    
    * Updating index.d.ts
    
    * test: add test for hardcoded string literal value
    DollarAkshay authored Feb 3, 2024
    Configuration menu
    Copy the full SHA
    8957b7b View commit details
    Browse the repository at this point in the history
  2. Game.map.describeExits returns null for non-existent rooms (screepers…

    …#250)
    
    * Game.map.describeExits returns null for non-existent rooms
    
    * chore: add example for type `ExitsInformation`
    tiennou authored Feb 3, 2024
    Configuration menu
    Copy the full SHA
    1911145 View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2024

  1. Update Game.market.deal documentation (screepers#256)

    * Update Game.market.deal documentation
    
    * Fix long line for tests
    
    * chore: keep comment the same as official doc
    MatthewGlancy authored Mar 31, 2024
    Configuration menu
    Copy the full SHA
    79884ad View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2024

  1. Fix a transferEnergy type error where it suggested a creep. (screeper…

    …s#258)
    
    * No more beaming energy into creeps minds...
    InfinityDevTech authored Jul 17, 2024
    Configuration menu
    Copy the full SHA
    5a93dc1 View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2024

  1. Update dependencies, replace tslint with eslint, migrate to pnpm (scr…

    …eepers#259)
    
    * chore: remove unused dependencies
    
    * chore: upgrade ts to 5.5.0
    
    * fix dtslint errors
    
    * use `typescript-eslint` and `eslint-plugin-expect-type` instead of `dtslint`, `tslint`
    
    * migrate to pnpm
    
    * chore: add comment about eslint-plugin-expect-type
    
    * chore: rm tslint from vscode extension recommendations
    DiamondMofeng authored Jul 20, 2024
    Configuration menu
    Copy the full SHA
    89807e5 View commit details
    Browse the repository at this point in the history
  2. Update changelog.

    DiamondMofeng committed Jul 20, 2024
    Configuration menu
    Copy the full SHA
    cac3c75 View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2024

  1. Adapt to new DefinitelyTyped layout

    * No longer needed to prepend header and descriptions
    DiamondMofeng committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    3c1b1b2 View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2024

  1. Configuration menu
    Copy the full SHA
    199337c View commit details
    Browse the repository at this point in the history
  2. remove outdated package-lock

    admon84 committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    28d8a8c View commit details
    Browse the repository at this point in the history
  3. update pnpm-lock

    admon84 committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    5c03fbf View commit details
    Browse the repository at this point in the history