diff --git a/.husky/prepare-commit-msg b/.husky/prepare-commit-msg index cb932df..5f87f16 100755 --- a/.husky/prepare-commit-msg +++ b/.husky/prepare-commit-msg @@ -1,4 +1,11 @@ #!/usr/bin/env sh . "$(dirname -- "$0")/_/husky.sh" +COMMIT_MSG_FILE=$1 +COMMIT_SOURCE=$2 +SHA1=$3 + +if [ $COMMIT_SOURCE = 'commit' ] && [ -n $SHA1 ]; then + exit 0; +fi exec < /dev/tty && npx cz --hook || true diff --git a/CHANGELOG.md b/CHANGELOG.md index bed72e7..5cc50e1 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,18 @@ -## 0.4.5 (2023-11-11) +## 0.4.6 (2023-11-21) + +* build: update gobstones-core to latest version of scripts ([0a29c20](https://github.com/gobstones/gobstones-core/commit/0a29c20)), closes [#19](https://github.com/gobstones/gobstones-core/issues/19) + + -* chore: update scripts to version 5 ([4e2f67d](https://github.com/gobstones/gobstones-core/commit/4e2f67d)) +## 0.4.6 (2023-11-21) +- build: update gobstones-core to latest version of scripts ([0a29c20](https://github.com/gobstones/gobstones-core/commit/0a29c20)), closes [#19](https://github.com/gobstones/gobstones-core/issues/19) + +## 0.4.6 (2023-11-20) + +## 0.4.5 (2023-11-11) +- chore: update scripts to version 5 ([4e2f67d](https://github.com/gobstones/gobstones-core/commit/4e2f67d)) ## 0.4.4 (2023-11-10) diff --git a/README.md b/README.md index b75fa7c..17111ca 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ A set of utility types, interfaces and classes that are used through all the Gob [![Licence](https://img.shields.io/github/license/gobstones/gobstones-core?style=plastic&label=License&logo=open-source-initiative&logoColor=white&color=olivegreen)](https://github.com/gobstones/gobstones-core/blob/main/LICENSE) [![Version](https://img.shields.io/github/package-json/v/gobstones/gobstones-core?style=plastic&label=Version&logo=git-lfs&logoColor=white&color=crimson)](https://www.npmjs.com/package/@gobstones/gobstones-core) [![API Docs](https://img.shields.io/github/package-json/homepage/gobstones/gobstones-core?color=blue&label=API%20Docs&logo=gitbook&logoColor=white&style=plastic)](https://gobstones.github.io/gobstones-core) -![GitHub Workflow Tests](https://img.shields.io/github/workflow/status/gobstones/gobstones-core/test-on-commit?style=plastic&label=Tests&logo=github-actions&logoColor=white) ![GitHub Workflow Build](https://img.shields.io/github/workflow/status/gobstones/gobstones-core/build-on-commit?style=plastic&label=Build&logo=github-actions&logoColor=white) +![GitHub Workflow Tests](https://img.shields.io/github/workflow/status/gobstones/gobstones-core/on-commit-test?style=plastic&label=Tests&logo=github-actions&logoColor=white) ![GitHub Workflow Build](https://img.shields.io/github/workflow/status/gobstones/gobstones-core/on-commit-build?style=plastic&label=Build&logo=github-actions&logoColor=white) ## Install diff --git a/docs/classes/Events.EventEmitter.html b/docs/classes/Events.EventEmitter.html index 6e42ded..59c68e1 100644 --- a/docs/classes/Events.EventEmitter.html +++ b/docs/classes/Events.EventEmitter.html @@ -1,5 +1,5 @@ -EventEmitter | @gobstones/gobstones-core - v0.4.5 -

The EventEmitter class is a minimal observer pattern class definition. +EventEmitter | @gobstones/gobstones-core - v0.4.6 +

The EventEmitter class is a minimal observer pattern class definition. Instances of this class can be created directly, by new EventEmitter() or it can be used as a base class for custom definitions that require support for this pattern in order to allow subscription to custom events.

@@ -83,4 +83,4 @@

Type Parameters

  • U extends string | number | symbol

Parameters

  • event: U

    The event to remove the observer from.

  • observer: L[U]

    The observer to be removed.

  • map: Map<U, Set<L[U]>>

    The map to unregister the event and observer.

    -

Returns void

\ No newline at end of file +

Returns void

\ No newline at end of file diff --git a/docs/classes/Expectations.Expectation.html b/docs/classes/Expectations.Expectation.html index 098403c..18128c2 100644 --- a/docs/classes/Expectations.Expectation.html +++ b/docs/classes/Expectations.Expectation.html @@ -1,5 +1,5 @@ -Expectation | @gobstones/gobstones-core - v0.4.5 -

The expectation class is the class that is actually instantiated for +Expectation | @gobstones/gobstones-core - v0.4.6 +

The expectation class is the class that is actually instantiated for any expectation. It implements all interfaces for expectations, even the finished expectation ones.

Type Parameters

  • T

Hierarchy

Constructors

constructor @@ -111,4 +111,4 @@
\ No newline at end of file +
\ No newline at end of file diff --git a/docs/classes/Expectations.FinishedExpectation.html b/docs/classes/Expectations.FinishedExpectation.html index 90bdea7..4f4e29a 100644 --- a/docs/classes/Expectations.FinishedExpectation.html +++ b/docs/classes/Expectations.FinishedExpectation.html @@ -1,5 +1,5 @@ -FinishedExpectation | @gobstones/gobstones-core - v0.4.5 -

This abstract class provides finished expectation behavior for +FinishedExpectation | @gobstones/gobstones-core - v0.4.6 +

This abstract class provides finished expectation behavior for all actions based on the fact that it's subclass provides an implementation for getResult.

Hierarchy

Implements

Constructors

constructor @@ -17,4 +17,4 @@
  • If the result of the expectation is false, run the given function.

    Parameters

    • action: (() => void)
        • (): void
        • Returns void

    Returns void

  • If the result of the expectation is false, throw the given error.

    Parameters

    • error: Error

    Returns void

  • If the result of the expectation is false, return the given value.

    -

    Type Parameters

    • T

    Parameters

    • value: T

    Returns T

\ No newline at end of file +

Type Parameters

  • T

Parameters

  • value: T

Returns T

\ No newline at end of file diff --git a/docs/classes/Expectations.JoinedExpectation.html b/docs/classes/Expectations.JoinedExpectation.html index 0d6b0be..c10a5c9 100644 --- a/docs/classes/Expectations.JoinedExpectation.html +++ b/docs/classes/Expectations.JoinedExpectation.html @@ -1,5 +1,5 @@ -JoinedExpectation | @gobstones/gobstones-core - v0.4.5 -

A joined expectation consist of multiple expectations joined by a specific +JoinedExpectation | @gobstones/gobstones-core - v0.4.6 +

A joined expectation consist of multiple expectations joined by a specific joiner function. A JoinedExpectation implements FinishedExpectation, where the result is calculated using the given joiner function.

Currently two join forms are provided, Expectations!and, @@ -25,4 +25,4 @@

  • If the result of the expectation is false, run the given function.

    Parameters

    • action: (() => void)
        • (): void
        • Returns void

    Returns void

  • If the result of the expectation is false, throw the given error.

    Parameters

    • error: Error

    Returns void

  • If the result of the expectation is false, return the given value.

    -

    Type Parameters

    • T

    Parameters

    • value: T

    Returns T

\ No newline at end of file +

Type Parameters

Parameters

Returns T

\ No newline at end of file diff --git a/docs/classes/Expectations.Matchers.html b/docs/classes/Expectations.Matchers.html index 06b017c..0651cb3 100644 --- a/docs/classes/Expectations.Matchers.html +++ b/docs/classes/Expectations.Matchers.html @@ -1,5 +1,5 @@ -Matchers | @gobstones/gobstones-core - v0.4.5 -

This object contains a series of matchers, that is, a series of functions +Matchers | @gobstones/gobstones-core - v0.4.6 +

This object contains a series of matchers, that is, a series of functions that can be called with the actual value (and in cases a series of arguments) and returns a boolean, true if the value satisfies the matcher, and false otherwise.

@@ -81,4 +81,4 @@
  • Answer if the actual value matches the given regexp.

    Parameters

    • actual: string
    • expected: RegExp

    Returns boolean

  • Answer if the actual value starts with the expected string.

    -

    Parameters

    • actual: string
    • expected: any

    Returns boolean

\ No newline at end of file +

Parameters

Returns boolean

\ No newline at end of file diff --git a/docs/classes/GobstonesLang.Board.html b/docs/classes/GobstonesLang.Board.html index 56b9670..706621a 100644 --- a/docs/classes/GobstonesLang.Board.html +++ b/docs/classes/GobstonesLang.Board.html @@ -1,5 +1,5 @@ -Board | @gobstones/gobstones-core - v0.4.5 -

This class models a Gobstones Board with all it's associated behavior. +Board | @gobstones/gobstones-core - v0.4.6 +

This class models a Gobstones Board with all it's associated behavior. Note that an instance of this class implements BoardDefinition, so it can be used as a valid description of a board in the Gobstones Interpreter and is @@ -458,4 +458,4 @@

Throws

removeRow on an instance.

  • Calling removeRows on an instance.
  • -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/classes/GobstonesLang.BoardError.html b/docs/classes/GobstonesLang.BoardError.html index 6a2ef6c..5bd2881 100644 --- a/docs/classes/GobstonesLang.BoardError.html +++ b/docs/classes/GobstonesLang.BoardError.html @@ -1,8 +1,8 @@ -BoardError | @gobstones/gobstones-core - v0.4.5 -

    The base class of the error hierarchy that is thrown when +BoardError | @gobstones/gobstones-core - v0.4.6 +

    The base class of the error hierarchy that is thrown when an invalid operation is performed in the Board class and it's associated Cell.

    Hierarchy

    Constructors

    Properties

    Constructors

    • Parameters

      • name: string
      • message: string

      Returns BoardError

    Properties

    isError: boolean

    A boolean that specifies the instance as an error. Always true.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/classes/GobstonesLang.Cell.html b/docs/classes/GobstonesLang.Cell.html index 1b620ae..b9a39e7 100644 --- a/docs/classes/GobstonesLang.Cell.html +++ b/docs/classes/GobstonesLang.Cell.html @@ -1,5 +1,5 @@ -Cell | @gobstones/gobstones-core - v0.4.5 -

    A cell

    +Cell | @gobstones/gobstones-core - v0.4.6 +
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/classes/GobstonesLang.Color.html b/docs/classes/GobstonesLang.Color.html index d2ef998..03b7cb8 100644 --- a/docs/classes/GobstonesLang.Color.html +++ b/docs/classes/GobstonesLang.Color.html @@ -1,5 +1,5 @@ -Color | @gobstones/gobstones-core - v0.4.5 -

    This enum represent the valid Gobstones Colors. +Color | @gobstones/gobstones-core - v0.4.6 +

    This enum represent the valid Gobstones Colors. It provides a set of singleton cases, for each possible value, as well as static accessors for each case name string (that should be used as key for representing directions).

    @@ -98,4 +98,4 @@

    And they are cyclic, that is, the previous color of Blue is Green.

    Parameters

    • color: Color

      The color to obtain the previous value from.

    Returns Color

    The previous color of the given one.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/classes/GobstonesLang.Direction.html b/docs/classes/GobstonesLang.Direction.html index 1380485..7f30d8a 100644 --- a/docs/classes/GobstonesLang.Direction.html +++ b/docs/classes/GobstonesLang.Direction.html @@ -1,5 +1,5 @@ -Direction | @gobstones/gobstones-core - v0.4.5 -

    This class represents the valid Gobstones Directions. +Direction | @gobstones/gobstones-core - v0.4.6 +

    This class represents the valid Gobstones Directions. It provides a set of singleton cases, for each possible value, as well as static accessors for each case name string (that should be used as key for representing directions).

    @@ -133,4 +133,4 @@

    And they are cyclic, that is, the previous direction of North is West.

    Parameters

    • dir: Direction

      The direction to obtain the previous value from.

    Returns Direction

    The previous direction of the given one.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/classes/GobstonesLang.InvalidBoardDescription.html b/docs/classes/GobstonesLang.InvalidBoardDescription.html index 8e00392..52cf8bb 100644 --- a/docs/classes/GobstonesLang.InvalidBoardDescription.html +++ b/docs/classes/GobstonesLang.InvalidBoardDescription.html @@ -1,5 +1,5 @@ -InvalidBoardDescription | @gobstones/gobstones-core - v0.4.5 -

    This error is thrown when attempting to create a board +InvalidBoardDescription | @gobstones/gobstones-core - v0.4.6 +

    This error is thrown when attempting to create a board with invalid data.

    Hierarchy

    Constructors

    Properties

    cellLocation @@ -10,4 +10,4 @@
    height: number

    The height attempted to create the board with

    isError: boolean

    A boolean that specifies the instance as an error. Always true.

    width: number

    The width attempted to create the board with

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/classes/GobstonesLang.InvalidCellReading.html b/docs/classes/GobstonesLang.InvalidCellReading.html index 1f11021..fcc6ab4 100644 --- a/docs/classes/GobstonesLang.InvalidCellReading.html +++ b/docs/classes/GobstonesLang.InvalidCellReading.html @@ -1,5 +1,5 @@ -InvalidCellReading | @gobstones/gobstones-core - v0.4.5 -

    This error is thrown when attempting to read a cell, a +InvalidCellReading | @gobstones/gobstones-core - v0.4.6 +

    This error is thrown when attempting to read a cell, a column or a row but an invalid location is given.

    Hierarchy

    Constructors

    Properties

    attempt @@ -8,4 +8,4 @@

    Constructors

    Properties

    The action attempted to be performed

    failingCoordinate: CellLocation

    The coordinate the head was attempted to set into

    isError: boolean

    A boolean that specifies the instance as an error. Always true.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/classes/GobstonesLang.InvalidSizeChange.html b/docs/classes/GobstonesLang.InvalidSizeChange.html index 57dc1fb..360f22e 100644 --- a/docs/classes/GobstonesLang.InvalidSizeChange.html +++ b/docs/classes/GobstonesLang.InvalidSizeChange.html @@ -1,5 +1,5 @@ -InvalidSizeChange | @gobstones/gobstones-core - v0.4.5 -

    This error is thrown when attempting to change the size of the board, +InvalidSizeChange | @gobstones/gobstones-core - v0.4.6 +

    This error is thrown when attempting to change the size of the board, but an invalid size is given

    Hierarchy

    Constructors

    Properties

    attempt @@ -14,4 +14,4 @@
    newWidth: number

    The new width of the board

    previousHeight: number

    The previous height of the board

    previousWidth: number

    The previous width of the board

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/classes/GobstonesLang.InvalidStonesAmount.html b/docs/classes/GobstonesLang.InvalidStonesAmount.html index 7ab66e4..ddc9410 100644 --- a/docs/classes/GobstonesLang.InvalidStonesAmount.html +++ b/docs/classes/GobstonesLang.InvalidStonesAmount.html @@ -1,5 +1,5 @@ -InvalidStonesAmount | @gobstones/gobstones-core - v0.4.5 -

    This error is thrown when attempting to change the stones amount +InvalidStonesAmount | @gobstones/gobstones-core - v0.4.6 +

    This error is thrown when attempting to change the stones amount with an invalid amount of stone (negative amount).

    Hierarchy

    Constructors

    Properties

    amount @@ -12,4 +12,4 @@
    color: string

    The color of the stones attempted to change

    isError: boolean

    A boolean that specifies the instance as an error. Always true.

    previousCellState: CellInfo

    The state the cell was previously in

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/classes/GobstonesLang.LocationFallsOutsideBoard.html b/docs/classes/GobstonesLang.LocationFallsOutsideBoard.html index e021996..1b52976 100644 --- a/docs/classes/GobstonesLang.LocationFallsOutsideBoard.html +++ b/docs/classes/GobstonesLang.LocationFallsOutsideBoard.html @@ -1,5 +1,5 @@ -LocationFallsOutsideBoard | @gobstones/gobstones-core - v0.4.5 -

    This error is thrown when attempting to move the head, but an +LocationFallsOutsideBoard | @gobstones/gobstones-core - v0.4.6 +

    This error is thrown when attempting to move the head, but an invalid location is given.

    Hierarchy

    Constructors

    Properties

    attempt @@ -10,4 +10,4 @@
    failingCoordinate: CellLocation

    The coordinate the head was attempted to set into

    isError: boolean

    A boolean that specifies the instance as an error. Always true.

    previousCoordinate: CellLocation

    The previous coordinate the head was in

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/classes/SourceReader.DefinedSourcePosition.html b/docs/classes/SourceReader.DefinedSourcePosition.html index 440f7e1..78085f2 100644 --- a/docs/classes/SourceReader.DefinedSourcePosition.html +++ b/docs/classes/SourceReader.DefinedSourcePosition.html @@ -1,5 +1,5 @@ -DefinedSourcePosition | @gobstones/gobstones-core - v0.4.5 -

    A DefinedSourcePosition points to a particular position, different from EndOfString, +DefinedSourcePosition | @gobstones/gobstones-core - v0.4.6 +

    A DefinedSourcePosition points to a particular position, different from EndOfString, in a source given by a SourceReader.

    It provides the right implementation for the operations given by its superclasses.

    Hierarchy

    API: Access

    column @@ -152,4 +152,4 @@

    It is supposed to be used only by SourceReader.

    Returns number

    • get _theVisibleCharIndex(): number
    • Private

      The index indicating the exact char in the visible input string in the source input.

      It is supposed to be used only by SourceReader.

      -

      Returns number

    \ No newline at end of file +

    Returns number

    \ No newline at end of file diff --git a/docs/classes/SourceReader.EndOfInputSourcePosition.html b/docs/classes/SourceReader.EndOfInputSourcePosition.html index 7429bca..57c6ceb 100644 --- a/docs/classes/SourceReader.EndOfInputSourcePosition.html +++ b/docs/classes/SourceReader.EndOfInputSourcePosition.html @@ -1,5 +1,5 @@ -EndOfInputSourcePosition | @gobstones/gobstones-core - v0.4.5 -

    An EndOfInputSourcePosition points to the EndOfInput position in a specific +EndOfInputSourcePosition | @gobstones/gobstones-core - v0.4.6 +

    An EndOfInputSourcePosition points to the EndOfInput position in a specific SourceReader. That position is reached when all input strings have been processed. It is a special position, because it does not point to a particular position inside the @@ -137,4 +137,4 @@

  • all numbers are >= 0
  • numbers are consistent with the reader state
  • -

    Parameters

    • sourceReader: SourceReader
    • line: number
    • column: number
    • regions: string[]

    Returns EndOfInputSourcePosition

    \ No newline at end of file +

    Parameters

    Returns EndOfInputSourcePosition

    \ No newline at end of file diff --git a/docs/classes/SourceReader.EndOfStringSourcePosition.html b/docs/classes/SourceReader.EndOfStringSourcePosition.html index 6e4fd6a..f794ab8 100644 --- a/docs/classes/SourceReader.EndOfStringSourcePosition.html +++ b/docs/classes/SourceReader.EndOfStringSourcePosition.html @@ -1,5 +1,5 @@ -EndOfStringSourcePosition | @gobstones/gobstones-core - v0.4.5 -

    An EndOfStringSourcePosition points to the EndOfString position in a specific +EndOfStringSourcePosition | @gobstones/gobstones-core - v0.4.6 +

    An EndOfStringSourcePosition points to the EndOfString position in a specific SourceReader. That position is reached when all characters in the current input string have been processed. It is a special position, because it does not point to a particular position inside the @@ -153,4 +153,4 @@

    It is supposed to be used only by SourceReader.

    Returns number

    • get _theVisibleCharIndex(): number
    • Private

      The index indicating the exact char in the visible input string in the source input.

      It is supposed to be used only by SourceReader.

      -

      Returns number

    \ No newline at end of file +

    Returns number

    \ No newline at end of file diff --git a/docs/classes/SourceReader.ErrorAtEndOfInputBy.html b/docs/classes/SourceReader.ErrorAtEndOfInputBy.html index 5957e36..8e7fbef 100644 --- a/docs/classes/SourceReader.ErrorAtEndOfInputBy.html +++ b/docs/classes/SourceReader.ErrorAtEndOfInputBy.html @@ -1,7 +1,7 @@ -ErrorAtEndOfInputBy | @gobstones/gobstones-core - v0.4.5 -

    The error to produce when a function that is not supposed to be used at EndOfInput is called.

    +ErrorAtEndOfInputBy | @gobstones/gobstones-core - v0.4.6 +

    The error to produce when a function that is not supposed to be used at EndOfInput is called.

    Hierarchy

    Constructors

    Constructors

    \ No newline at end of file +

    Returns ErrorAtEndOfInputBy

    \ No newline at end of file diff --git a/docs/classes/SourceReader.ErrorAtEndOfStringBy.html b/docs/classes/SourceReader.ErrorAtEndOfStringBy.html index d73aa94..ef8174c 100644 --- a/docs/classes/SourceReader.ErrorAtEndOfStringBy.html +++ b/docs/classes/SourceReader.ErrorAtEndOfStringBy.html @@ -1,7 +1,7 @@ -ErrorAtEndOfStringBy | @gobstones/gobstones-core - v0.4.5 -

    The error to produce when a function that is not supposed to be used at EndOfString is called.

    +ErrorAtEndOfStringBy | @gobstones/gobstones-core - v0.4.6 +

    The error to produce when a function that is not supposed to be used at EndOfString is called.

    Hierarchy

    Constructors

    Constructors

    \ No newline at end of file +

    Returns ErrorAtEndOfStringBy

    \ No newline at end of file diff --git a/docs/classes/SourceReader.ErrorNoInput.html b/docs/classes/SourceReader.ErrorNoInput.html index bc0cb5d..63193f3 100644 --- a/docs/classes/SourceReader.ErrorNoInput.html +++ b/docs/classes/SourceReader.ErrorNoInput.html @@ -1,5 +1,5 @@ -ErrorNoInput | @gobstones/gobstones-core - v0.4.5 -

    The error to produce when a SourceReader is called with no input (an empty object or array).

    +ErrorNoInput | @gobstones/gobstones-core - v0.4.6 +

    The error to produce when a SourceReader is called with no input (an empty object or array).

    Hierarchy

    Constructors

    Constructors

    \ No newline at end of file +

    Returns ErrorNoInput

    \ No newline at end of file diff --git a/docs/classes/SourceReader.ErrorUnmatchingPositionsBy.html b/docs/classes/SourceReader.ErrorUnmatchingPositionsBy.html index a63a366..9d038c9 100644 --- a/docs/classes/SourceReader.ErrorUnmatchingPositionsBy.html +++ b/docs/classes/SourceReader.ErrorUnmatchingPositionsBy.html @@ -1,9 +1,9 @@ -ErrorUnmatchingPositionsBy | @gobstones/gobstones-core - v0.4.5 -

    The error to produce when two positions related with different readers are used to determine +ErrorUnmatchingPositionsBy | @gobstones/gobstones-core - v0.4.6 +

    The error to produce when two positions related with different readers are used to determine a portion of the contents.

    Hierarchy

    Constructors

    Constructors

    \ No newline at end of file +

    Returns ErrorUnmatchingPositionsBy

    \ No newline at end of file diff --git a/docs/classes/SourceReader.KnownSourcePosition.html b/docs/classes/SourceReader.KnownSourcePosition.html index b6921a5..67766b2 100644 --- a/docs/classes/SourceReader.KnownSourcePosition.html +++ b/docs/classes/SourceReader.KnownSourcePosition.html @@ -1,5 +1,5 @@ -KnownSourcePosition | @gobstones/gobstones-core - v0.4.5 -

    A KnownSourcePosition points to a position in a specific SourceReader. +KnownSourcePosition | @gobstones/gobstones-core - v0.4.6 +

    A KnownSourcePosition points to a position in a specific SourceReader. It is created using the getPosition operation of a particular SourceReader instance. The obtained object indicates a position in the source associated with that reader, that may be @@ -216,4 +216,4 @@

  • all numbers are >= 0
  • numbers are consistent with the reader state
  • -

    Parameters

    • sourceReader: SourceReader
    • line: number
    • column: number
    • regions: string[]

    Returns KnownSourcePosition

    \ No newline at end of file +

    Parameters

    Returns KnownSourcePosition

    \ No newline at end of file diff --git a/docs/classes/SourceReader.SourcePosition.html b/docs/classes/SourceReader.SourcePosition.html index 0d48bea..b98b76f 100644 --- a/docs/classes/SourceReader.SourcePosition.html +++ b/docs/classes/SourceReader.SourcePosition.html @@ -1,5 +1,5 @@ -SourcePosition | @gobstones/gobstones-core - v0.4.5 -

    Instances of SourcePosition point to particular positions in the source given by a +SourcePosition | @gobstones/gobstones-core - v0.4.6 +

    Instances of SourcePosition point to particular positions in the source given by a SourceReader. They may be unknown or they may point to a particular SourceReader. All SourcePosition are created through SourceReader.

    @@ -39,4 +39,4 @@ of the position (not suitable for persistance, as it looses information).

    See the documentation of UnknownSourcePosition and KnownSourcePosition for additional implementation details.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/classes/SourceReader.SourceReader.html b/docs/classes/SourceReader.SourceReader.html index aad7dbd..f879ffb 100644 --- a/docs/classes/SourceReader.SourceReader.html +++ b/docs/classes/SourceReader.SourceReader.html @@ -1,5 +1,5 @@ -SourceReader | @gobstones/gobstones-core - v0.4.5 -

    A SourceReader allows you to read input from some source, either one single string of +SourceReader | @gobstones/gobstones-core - v0.4.6 +

    A SourceReader allows you to read input from some source, either one single string of content or several named or indexed source strings, in such a way that each character read registers its position in the source as a tuple index-line-column. That is, the main problem it solves is that of calculating the position of each character read @@ -311,4 +311,4 @@

    Throws

    KnownSourcePosition subclasses.

    PRECONDITION: both positions correspond to this reader (and so are >= 0 -- not verified)

    -

    Returns string

    \ No newline at end of file +

    Parameters

    Returns string

    \ No newline at end of file diff --git a/docs/classes/SourceReader.SourceReaderError.html b/docs/classes/SourceReader.SourceReaderError.html index 5cc068a..10fcf14 100644 --- a/docs/classes/SourceReader.SourceReaderError.html +++ b/docs/classes/SourceReader.SourceReaderError.html @@ -1,5 +1,5 @@ -SourceReaderError | @gobstones/gobstones-core - v0.4.5 -

    The superclass for all SourceReader errors. +SourceReaderError | @gobstones/gobstones-core - v0.4.6 +

    The superclass for all SourceReader errors. It provides internationalization of error messages through a Translator. It also restores the prototype chain, as described in the Typescript Handbook.

    @@ -10,4 +10,4 @@
  • Optional interpolations: Record<string, any>

    A record indicating values for interpolations used in the value associated with the key given. It may be undefined if there are none.

    -
  • Returns SourceReaderError

    \ No newline at end of file +

    Returns SourceReaderError

    \ No newline at end of file diff --git a/docs/classes/SourceReader.SourceReaderErrorBy.html b/docs/classes/SourceReader.SourceReaderErrorBy.html index 374e69f..b861a35 100644 --- a/docs/classes/SourceReader.SourceReaderErrorBy.html +++ b/docs/classes/SourceReader.SourceReaderErrorBy.html @@ -1,9 +1,9 @@ -SourceReaderErrorBy | @gobstones/gobstones-core - v0.4.5 -

    The superclass for all SourceReader errors with operation and context as +SourceReaderErrorBy | @gobstones/gobstones-core - v0.4.6 +

    The superclass for all SourceReader errors with operation and context as interpolations. It constructs the corresponding interpolation.

    Hierarchy

    Constructors

    Constructors

    \ No newline at end of file +

    Returns SourceReaderErrorBy

    \ No newline at end of file diff --git a/docs/classes/SourceReader.StringSourcePosition.html b/docs/classes/SourceReader.StringSourcePosition.html index dd4df51..3ed29bd 100644 --- a/docs/classes/SourceReader.StringSourcePosition.html +++ b/docs/classes/SourceReader.StringSourcePosition.html @@ -1,5 +1,5 @@ -StringSourcePosition | @gobstones/gobstones-core - v0.4.5 -

    A StringSourcePosition points to a particular position, different from EndOfInput, +StringSourcePosition | @gobstones/gobstones-core - v0.4.6 +

    A StringSourcePosition points to a particular position, different from EndOfInput, in a source given by a SourceReader.

    It provides the right implementation for the operations given by its superclasses, KnownSourcePosition and SourcePosition. @@ -203,4 +203,4 @@

    It is supposed to be used only by SourceReader.

    Returns number

    • get _theVisibleCharIndex(): number
    • Private

      The index indicating the exact char in the visible input string in the source input.

      It is supposed to be used only by SourceReader.

      -

      Returns number

    \ No newline at end of file +

    Returns number

    \ No newline at end of file diff --git a/docs/classes/SourceReader.UnknownSourcePosition.html b/docs/classes/SourceReader.UnknownSourcePosition.html index da4c729..85e07bd 100644 --- a/docs/classes/SourceReader.UnknownSourcePosition.html +++ b/docs/classes/SourceReader.UnknownSourcePosition.html @@ -1,5 +1,5 @@ -UnknownSourcePosition | @gobstones/gobstones-core - v0.4.5 -

    An unknown source position does not point to any position in any source reader. +UnknownSourcePosition | @gobstones/gobstones-core - v0.4.6 +

    An unknown source position does not point to any position in any source reader. It is used when a position must be provided, but no one is known.

    As source positions are only created by a SourceReader, there is a static member of it, the UnknownPosition, @@ -22,4 +22,4 @@ proper information.

    Implementation: Protected for Source Reader

    \ No newline at end of file +

    Returns UnknownSourcePosition

    \ No newline at end of file diff --git a/docs/classes/Translator.Translator.html b/docs/classes/Translator.Translator.html index 47dbfee..58fced6 100644 --- a/docs/classes/Translator.Translator.html +++ b/docs/classes/Translator.Translator.html @@ -1,5 +1,5 @@ -Translator | @gobstones/gobstones-core - v0.4.5 -

    A Translation consist of an object that hold the state of the current +Translator | @gobstones/gobstones-core - v0.4.6 +

    A Translation consist of an object that hold the state of the current locale being used, and allows for switching between different locales and obtain translated strings.

    The translation expects a locale to be given as the language definition, @@ -60,4 +60,4 @@ to replace any interpolation matcher in the translated text (any text in between ${}) by the value of the corresponding key.

    Returns string

    A translated string

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/classes/Types.BiMap.html b/docs/classes/Types.BiMap.html index ac9590c..b0fd9e6 100644 --- a/docs/classes/Types.BiMap.html +++ b/docs/classes/Types.BiMap.html @@ -1,5 +1,5 @@ -BiMap | @gobstones/gobstones-core - v0.4.5 -

    A bidirectional map is a map that represents biyective association between +BiMap | @gobstones/gobstones-core - v0.4.6 +

    A bidirectional map is a map that represents biyective association between keys and values, and such that it can be accessed both by the keys or by the values. The types of both the keys and the values should be comparable by identity (=== comparison).

    @@ -116,4 +116,4 @@

    Parameters

    • value: V

      The value to search

    Returns boolean

    • Return an iterator for the keys of this BiMap.

      Returns K[]

    • Return an iterator for the values of this BiMap.

      -

      Returns V[]

    \ No newline at end of file +

    Returns V[]

    \ No newline at end of file diff --git a/docs/classes/cli.CLIApp.html b/docs/classes/cli.CLIApp.html index 4b5d3f1..7e7121a 100644 --- a/docs/classes/cli.CLIApp.html +++ b/docs/classes/cli.CLIApp.html @@ -1,5 +1,5 @@ -CLIApp | @gobstones/gobstones-core - v0.4.5 -

    The CLIApp class is the class to extend in order to define your CLI based +CLIApp | @gobstones/gobstones-core - v0.4.6 +

    The CLIApp class is the class to extend in order to define your CLI based application.

    Hierarchy

    Constructors

    Properties

    currentArgs @@ -85,4 +85,4 @@

    Returns void

    • Write a set of contents to a given file.

      Parameters

      • fileName: string

        The file to write to.

      • contents: string

        The contents to write.

        -

      Returns void

    \ No newline at end of file +

    Returns void

    \ No newline at end of file diff --git a/docs/classes/cli.CLICommandBuilder.html b/docs/classes/cli.CLICommandBuilder.html index e44bfa4..2099cd3 100644 --- a/docs/classes/cli.CLICommandBuilder.html +++ b/docs/classes/cli.CLICommandBuilder.html @@ -1,5 +1,5 @@ -CLICommandBuilder | @gobstones/gobstones-core - v0.4.5 -

    A builder for a CLI command. May be the main command of the app (CLIApp) +CLICommandBuilder | @gobstones/gobstones-core - v0.4.6 +

    A builder for a CLI command. May be the main command of the app (CLIApp) extends this class) or a sub-command.

    Hierarchy

    Constructors

    Properties

    currentArgs @@ -77,4 +77,4 @@

    Returns void

    • Write a set of contents to a given file.

      Parameters

      • fileName: string

        The file to write to.

      • contents: string

        The contents to write.

        -

      Returns void

    \ No newline at end of file +

    Returns void

    \ No newline at end of file diff --git a/docs/docs/globals.html b/docs/docs/globals.html index 0a5a25e..b952b99 100644 --- a/docs/docs/globals.html +++ b/docs/docs/globals.html @@ -1,7 +1,7 @@ -@gobstones/gobstones-core - v0.4.5 -

    @gobstones/gobstones-core - v0.4.5

    gobstones-core

    A set of utility types, interfaces and classes that are used through all the Gobstones Platform repositories.

    +@gobstones/gobstones-core - v0.4.6 +

    @gobstones/gobstones-core - v0.4.6

    gobstones-core

    A set of utility types, interfaces and classes that are used through all the Gobstones Platform repositories.

    Licence Version API Docs

    -

    GitHub Workflow Tests GitHub Workflow Build

    +

    GitHub Workflow Tests GitHub Workflow Build

    Install

    Install with npm by using

    npm install @gobstones/gobstones-core
     
    @@ -22,4 +22,4 @@
    import { cli } from '@gobstones/gobstones-core/cli';
     

    Contributing

    See the Gobstones Platform Contributions Guidelines to contribute.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/functions/Expectations.and.html b/docs/functions/Expectations.and.html index d63ac71..fd8865f 100644 --- a/docs/functions/Expectations.and.html +++ b/docs/functions/Expectations.and.html @@ -1,7 +1,7 @@ -and | @gobstones/gobstones-core - v0.4.5 -

    Returns IFinishedExpectation

    \ No newline at end of file diff --git a/docs/functions/Expectations.expect.html b/docs/functions/Expectations.expect.html index 9bd5e6d..7b8806c 100644 --- a/docs/functions/Expectations.expect.html +++ b/docs/functions/Expectations.expect.html @@ -1,5 +1,5 @@ -expect | @gobstones/gobstones-core - v0.4.5 -
    \ No newline at end of file +

    Returns INumberExpectation

  • Parameters

    Returns IStringExpectation

  • Type Parameters

    Parameters

    Returns IArrayExpectation<T>

  • Type Parameters

    Parameters

    Returns IObjectExpectation<T>

  • \ No newline at end of file diff --git a/docs/functions/Expectations.or.html b/docs/functions/Expectations.or.html index 4405198..53aac36 100644 --- a/docs/functions/Expectations.or.html +++ b/docs/functions/Expectations.or.html @@ -1,7 +1,7 @@ -or | @gobstones/gobstones-core - v0.4.5 -

    Returns IFinishedExpectation

    \ No newline at end of file diff --git a/docs/functions/Functions.deepEquals.html b/docs/functions/Functions.deepEquals.html index b8df833..a3823f7 100644 --- a/docs/functions/Functions.deepEquals.html +++ b/docs/functions/Functions.deepEquals.html @@ -1,5 +1,5 @@ -deepEquals | @gobstones/gobstones-core - v0.4.5 -
    • Answer wether or not two elements are semantically equal, considering them +deepEquals | @gobstones/gobstones-core - v0.4.6 +

      • Answer wether or not two elements are semantically equal, considering them equal when they have the same type and all their internal elements are the same, or when they represent the same concept (two regular expressions that match the same string, two dates for the same moment, two sets with same @@ -36,4 +36,4 @@

        Type Parameters

        • T

        Parameters

        • first: T

          The element to compare to.

        • second: T

          The element to compare against.

        Returns boolean

        true if both elements are equal, false otherwise.

        -
      \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/functions/Functions.deepStringAssign.html b/docs/functions/Functions.deepStringAssign.html index 596c5b2..80296b4 100644 --- a/docs/functions/Functions.deepStringAssign.html +++ b/docs/functions/Functions.deepStringAssign.html @@ -1,5 +1,5 @@ -deepStringAssign | @gobstones/gobstones-core - v0.4.5 -
    • It returns a copy of the target object, where its string keys has been overwritten with +deepStringAssign | @gobstones/gobstones-core - v0.4.6 +

      • It returns a copy of the target object, where its string keys has been overwritten with the corresponding keys of the sources objects, when they are present, recursively. If the same key appears in more than one of the source objects, the last one is used. If none of the objects has the key, or the key is not of string type, it is not changed. @@ -24,4 +24,4 @@

        Type Parameters

        • T extends object

        Parameters

        • target: T

          An object that provides the default values for the fields of the result.

        • Rest ...sources: Subset<T>[]

          A span parameter with objects possibly containing values to replace the defaults in string keys with strings as values.

          -

        Returns T

      \ No newline at end of file +

    Returns T

    \ No newline at end of file diff --git a/docs/functions/Functions.flatten.html b/docs/functions/Functions.flatten.html index 0f08e43..7b67061 100644 --- a/docs/functions/Functions.flatten.html +++ b/docs/functions/Functions.flatten.html @@ -1,5 +1,5 @@ -flatten | @gobstones/gobstones-core - v0.4.5 -
    • Flatten the given object. +flatten | @gobstones/gobstones-core - v0.4.6 +

      • Flatten the given object. Given an object with nested elements, it returns an object that has been flattened, that is, where the keys are string that represent the nested route to follow in the original object to access the leaves.

        @@ -10,4 +10,4 @@

        Additional options may be passed, such as which character is used as a delimiter, or the maximum depth level.

        For an inverse operation see unflatten.

        -
      \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/functions/Functions.matrix.html b/docs/functions/Functions.matrix.html index 32887d8..941cf80 100644 --- a/docs/functions/Functions.matrix.html +++ b/docs/functions/Functions.matrix.html @@ -1,5 +1,5 @@ -matrix | @gobstones/gobstones-core - v0.4.5 -
    • Creates a two-dimensional matrix where all positions are filled using the given +matrix | @gobstones/gobstones-core - v0.4.6 +

      • Creates a two-dimensional matrix where all positions are filled using the given generator.

        Type Parameters

        • T

        Parameters

        • width: number

          The number of rows of the matrix

        • height: number

          The number of columns of the matrix

          @@ -7,4 +7,4 @@ the element to store the matrix at that position

            • (i, j): T
            • Parameters

              • i: number
              • j: number

              Returns T

        Returns T[][]

        A T[][] where T is the type of the elements in the matrix.

        Throws

        Error if the width or the height given are zero or negative.

        -
      \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/functions/Functions.unflatten.html b/docs/functions/Functions.unflatten.html index fcf63ea..8db06e1 100644 --- a/docs/functions/Functions.unflatten.html +++ b/docs/functions/Functions.unflatten.html @@ -1,5 +1,5 @@ -unflatten | @gobstones/gobstones-core - v0.4.5 -
    • Un-Flatten the given object. +unflatten | @gobstones/gobstones-core - v0.4.6 +

      • Un-Flatten the given object. Given an object without nested elements, but whose keys represent paths in a nested elements object, return an object that has nested objects in it. This the reverse of flatten, in such a way that this complies.

        @@ -9,4 +9,4 @@

        Additional options may be passed, such as which character is used as a delimiter, or the maximum depth level.

        -
      \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/functions/cli.cli-1.html b/docs/functions/cli.cli-1.html index d401943..2f3d424 100644 --- a/docs/functions/cli.cli-1.html +++ b/docs/functions/cli.cli-1.html @@ -1,4 +1,4 @@ -cli | @gobstones/gobstones-core - v0.4.5 -

    Returns CLIApp

    \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 0a5a25e..b952b99 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,7 +1,7 @@ -@gobstones/gobstones-core - v0.4.5 -

    @gobstones/gobstones-core - v0.4.5

    gobstones-core

    A set of utility types, interfaces and classes that are used through all the Gobstones Platform repositories.

    +@gobstones/gobstones-core - v0.4.6 +

    @gobstones/gobstones-core - v0.4.6

    gobstones-core

    A set of utility types, interfaces and classes that are used through all the Gobstones Platform repositories.

    Licence Version API Docs

    -

    GitHub Workflow Tests GitHub Workflow Build

    +

    GitHub Workflow Tests GitHub Workflow Build

    Install

    Install with npm by using

    npm install @gobstones/gobstones-core
     
    @@ -22,4 +22,4 @@
    import { cli } from '@gobstones/gobstones-core/cli';
     

    Contributing

    See the Gobstones Platform Contributions Guidelines to contribute.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/interfaces/Expectations.IArrayExpectation.html b/docs/interfaces/Expectations.IArrayExpectation.html index a62d1b5..c5d69ae 100644 --- a/docs/interfaces/Expectations.IArrayExpectation.html +++ b/docs/interfaces/Expectations.IArrayExpectation.html @@ -1,5 +1,5 @@ -IArrayExpectation | @gobstones/gobstones-core - v0.4.5 -

    This interface represents an expectation that is performed over an array.

    +IArrayExpectation | @gobstones/gobstones-core - v0.4.6 +

    This interface represents an expectation that is performed over an array.

    Type Parameters

    • T

    Hierarchy

    Properties

    Methods

    allToSatisfy amountToSatisfy @@ -43,4 +43,4 @@ with additional logic added to support 'array' as a type.

    Parameters

    • value: string

    Returns IArrayExpectation<T> & IFinishedExpectation

    Example

    `toHaveType([1,2,3], 'array')` returns `true` as expected.
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/interfaces/Expectations.IFinishedExpectation.html b/docs/interfaces/Expectations.IFinishedExpectation.html index 638286f..1fe7945 100644 --- a/docs/interfaces/Expectations.IFinishedExpectation.html +++ b/docs/interfaces/Expectations.IFinishedExpectation.html @@ -1,5 +1,5 @@ -IFinishedExpectation | @gobstones/gobstones-core - v0.4.5 -

    This interface represents an expectation after a matcher has been executed +IFinishedExpectation | @gobstones/gobstones-core - v0.4.6 +

    This interface represents an expectation after a matcher has been executed and the result can be accessed.

    Hierarchy

    • IFinishedExpectation

    Implemented by

    Methods

    andDo andDoOr @@ -15,4 +15,4 @@
    • If the result of the expectation is false, run the given function.

      Parameters

      • action: (() => void)
          • (): void
          • Returns void

      Returns void

    • If the result of the expectation is false, throw the given error.

      Parameters

      • error: Error

      Returns void

    • If the result of the expectation is false, return the given value.

      -

      Type Parameters

      • T

      Parameters

      • value: T

      Returns T

    \ No newline at end of file +

    Type Parameters

    • T

    Parameters

    • value: T

    Returns T

    \ No newline at end of file diff --git a/docs/interfaces/Expectations.IGenericExpectation.html b/docs/interfaces/Expectations.IGenericExpectation.html index da434ca..cfe1363 100644 --- a/docs/interfaces/Expectations.IGenericExpectation.html +++ b/docs/interfaces/Expectations.IGenericExpectation.html @@ -1,5 +1,5 @@ -IGenericExpectation | @gobstones/gobstones-core - v0.4.5 -

    This type represents an expectation for any type of element. +IGenericExpectation | @gobstones/gobstones-core - v0.4.6 +

    This type represents an expectation for any type of element. The matchers that can be called contain general things, such as strict comparison with other elements, be undefined, be null, or any other checks.

    @@ -31,4 +31,4 @@ with additional logic added to support 'array' as a type.

    Parameters

    • value: string

    Returns IGenericExpectation<T> & IFinishedExpectation

    Example

    `toHaveType([1,2,3], 'array')` returns `true` as expected.
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/interfaces/Expectations.INumberExpectation.html b/docs/interfaces/Expectations.INumberExpectation.html index 858144e..a53c12f 100644 --- a/docs/interfaces/Expectations.INumberExpectation.html +++ b/docs/interfaces/Expectations.INumberExpectation.html @@ -1,5 +1,5 @@ -INumberExpectation | @gobstones/gobstones-core - v0.4.5 -

    This interface represents an expectation that is performed over a number.

    +INumberExpectation | @gobstones/gobstones-core - v0.4.6 +

    This interface represents an expectation that is performed over a number.

    Hierarchy

    Properties

    Methods

    toBe toBeBetween @@ -47,4 +47,4 @@ with additional logic added to support 'array' as a type.

    Parameters

    • value: string

    Returns INumberExpectation & IFinishedExpectation

    Example

    `toHaveType([1,2,3], 'array')` returns `true` as expected.
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/interfaces/Expectations.IObjectExpectation.html b/docs/interfaces/Expectations.IObjectExpectation.html index 70eea78..e5610f2 100644 --- a/docs/interfaces/Expectations.IObjectExpectation.html +++ b/docs/interfaces/Expectations.IObjectExpectation.html @@ -1,5 +1,5 @@ -IObjectExpectation | @gobstones/gobstones-core - v0.4.5 -

    This interface represents an expectation that is performed over an object.

    +IObjectExpectation | @gobstones/gobstones-core - v0.4.6 +

    This interface represents an expectation that is performed over an object.

    Type Parameters

    • T

    Hierarchy

    Properties

    Methods

    toBe toBeDefined @@ -42,4 +42,4 @@ with additional logic added to support 'array' as a type.

    Parameters

    • value: string

    Returns IObjectExpectation<T> & IFinishedExpectation

    Example

    `toHaveType([1,2,3], 'array')` returns `true` as expected.
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/interfaces/Expectations.IStringExpectation.html b/docs/interfaces/Expectations.IStringExpectation.html index 59535f3..9b7718f 100644 --- a/docs/interfaces/Expectations.IStringExpectation.html +++ b/docs/interfaces/Expectations.IStringExpectation.html @@ -1,5 +1,5 @@ -IStringExpectation | @gobstones/gobstones-core - v0.4.5 -

    This interface represents an expectation that is performed over a string.

    +IStringExpectation | @gobstones/gobstones-core - v0.4.6 +

    This interface represents an expectation that is performed over a string.

    Hierarchy

    Properties

    Methods

    toBe toBeDefined @@ -36,4 +36,4 @@
    \ No newline at end of file +

    Parameters

    • start: string

    Returns IStringExpectation & IFinishedExpectation

    \ No newline at end of file diff --git a/docs/interfaces/Expectations.MatcherCall.html b/docs/interfaces/Expectations.MatcherCall.html index f732f62..fedb744 100644 --- a/docs/interfaces/Expectations.MatcherCall.html +++ b/docs/interfaces/Expectations.MatcherCall.html @@ -1,7 +1,7 @@ -MatcherCall | @gobstones/gobstones-core - v0.4.5 -

    A matcher call represents a call to a matcher with it's corresponding +MatcherCall | @gobstones/gobstones-core - v0.4.6 +

    A matcher call represents a call to a matcher with it's corresponding arguments and the actual result.

    Hierarchy

    • MatcherCall

    Properties

    Properties

    args: any[]
    matcher: string
    result: boolean
    \ No newline at end of file +

    Properties

    args: any[]
    matcher: string
    result: boolean
    \ No newline at end of file diff --git a/docs/interfaces/Functions.FlattenOptions.html b/docs/interfaces/Functions.FlattenOptions.html index a7c6b74..f695b10 100644 --- a/docs/interfaces/Functions.FlattenOptions.html +++ b/docs/interfaces/Functions.FlattenOptions.html @@ -1,5 +1,5 @@ -FlattenOptions | @gobstones/gobstones-core - v0.4.5 -

    Interface FlattenOptionsInternal

    This type represent the options that are available for +FlattenOptions | @gobstones/gobstones-core - v0.4.6 +

    Interface FlattenOptionsInternal

    This type represent the options that are available for a flattening action. This are copies of the definitions in the flat library that we use as an internal implementation and we do not recommend to relay on them, as they might change @@ -8,4 +8,4 @@ maxDepth? safe? transformKey? -

    Properties

    delimiter?: string
    maxDepth?: number
    safe?: boolean
    transformKey?: ((key) => string)

    Type declaration

      • (key): string
      • Parameters

        • key: string

        Returns string

    \ No newline at end of file +

    Properties

    delimiter?: string
    maxDepth?: number
    safe?: boolean
    transformKey?: ((key) => string)

    Type declaration

      • (key): string
      • Parameters

        • key: string

        Returns string

    \ No newline at end of file diff --git a/docs/interfaces/Functions.UnflattenOptions.html b/docs/interfaces/Functions.UnflattenOptions.html index 5a0d556..1439e4c 100644 --- a/docs/interfaces/Functions.UnflattenOptions.html +++ b/docs/interfaces/Functions.UnflattenOptions.html @@ -1,5 +1,5 @@ -UnflattenOptions | @gobstones/gobstones-core - v0.4.5 -

    Interface UnflattenOptionsInternal

    This type represent the options that are available for +UnflattenOptions | @gobstones/gobstones-core - v0.4.6 +

    Interface UnflattenOptionsInternal

    This type represent the options that are available for a un-flattening action. This are copies of the definitions in the flat library that we use as an internal implementation and we do not recommend to relay on them, as they might change @@ -8,4 +8,4 @@ object? overwrite? transformKey? -

    Properties

    delimiter?: string
    object?: boolean
    overwrite?: boolean
    transformKey?: ((key) => string)

    Type declaration

      • (key): string
      • Parameters

        • key: string

        Returns string

    \ No newline at end of file +

    Properties

    delimiter?: string
    object?: boolean
    overwrite?: boolean
    transformKey?: ((key) => string)

    Type declaration

      • (key): string
      • Parameters

        • key: string

        Returns string

    \ No newline at end of file diff --git a/docs/interfaces/GobstonesLang.BoardDefinition.html b/docs/interfaces/GobstonesLang.BoardDefinition.html index 5c668e1..203f43e 100644 --- a/docs/interfaces/GobstonesLang.BoardDefinition.html +++ b/docs/interfaces/GobstonesLang.BoardDefinition.html @@ -1,5 +1,5 @@ -BoardDefinition | @gobstones/gobstones-core - v0.4.5 -

    The definition of a Board as expected by the current Gobstones Interpreter. +BoardDefinition | @gobstones/gobstones-core - v0.4.6 +

    The definition of a Board as expected by the current Gobstones Interpreter. This definition make heavy assumptions as for the origin of the board and it's internal structure. Although this definition is left for reference, the Board class (which implements this interface) should be considered @@ -26,4 +26,4 @@

    height: number

    The height of the board

    width: number

    The width of the board

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/interfaces/GobstonesLang.BoardEvents.html b/docs/interfaces/GobstonesLang.BoardEvents.html index a85b7aa..38df190 100644 --- a/docs/interfaces/GobstonesLang.BoardEvents.html +++ b/docs/interfaces/GobstonesLang.BoardEvents.html @@ -1,6 +1,6 @@ -BoardEvents | @gobstones/gobstones-core - v0.4.5 -

    This interface contains the signature of the +BoardEvents | @gobstones/gobstones-core - v0.4.6 +

    This interface contains the signature of the events that a Board can throw.

    Hierarchy

    • BoardEvents

    Properties

    \ No newline at end of file +

    Properties

    \ No newline at end of file diff --git a/docs/interfaces/GobstonesLang.CellDataDefinition.html b/docs/interfaces/GobstonesLang.CellDataDefinition.html index 12cb408..d041585 100644 --- a/docs/interfaces/GobstonesLang.CellDataDefinition.html +++ b/docs/interfaces/GobstonesLang.CellDataDefinition.html @@ -1,5 +1,5 @@ -CellDataDefinition | @gobstones/gobstones-core - v0.4.5 -

    A cell data definition consists of the location of a cell, and +CellDataDefinition | @gobstones/gobstones-core - v0.4.6 +

    A cell data definition consists of the location of a cell, and the amount of stones for any color (if non zero, undefined may be used is those attributes if zero is ought to be used for such color).

    Hierarchy

    Properties

    a? @@ -8,4 +8,4 @@ v? x y -

    Properties

    a?: number
    n?: number
    r?: number
    v?: number
    x: number
    y: number
    \ No newline at end of file +

    Properties

    a?: number
    n?: number
    r?: number
    v?: number
    x: number
    y: number
    \ No newline at end of file diff --git a/docs/interfaces/GobstonesLang.CellEvents.html b/docs/interfaces/GobstonesLang.CellEvents.html index d6e0661..78cec52 100644 --- a/docs/interfaces/GobstonesLang.CellEvents.html +++ b/docs/interfaces/GobstonesLang.CellEvents.html @@ -1,5 +1,5 @@ -CellEvents | @gobstones/gobstones-core - v0.4.5 -

    This interface contains the signature of the +CellEvents | @gobstones/gobstones-core - v0.4.6 +

    This interface contains the signature of the events that a Cell can throw.

    Hierarchy

    • CellEvents

    Properties

    Properties

    [onStonesChanged]: OnCellStonesChanged
    \ No newline at end of file +

    Properties

    [onStonesChanged]: OnCellStonesChanged
    \ No newline at end of file diff --git a/docs/interfaces/GobstonesLang.CellInfo.html b/docs/interfaces/GobstonesLang.CellInfo.html index eeb5199..3642bd3 100644 --- a/docs/interfaces/GobstonesLang.CellInfo.html +++ b/docs/interfaces/GobstonesLang.CellInfo.html @@ -1,5 +1,5 @@ -CellInfo | @gobstones/gobstones-core - v0.4.5 -

    The information of a cell such that:

    +CellInfo | @gobstones/gobstones-core - v0.4.6 +

    The information of a cell such that:

    • a = number of blue stones
    • n = number of black stones
    • @@ -10,4 +10,4 @@ n r v -

    Properties

    a: number
    n: number
    r: number
    v: number
    \ No newline at end of file +

    Properties

    a: number
    n: number
    r: number
    v: number
    \ No newline at end of file diff --git a/docs/interfaces/SourceReader.SourceReaderLocale.html b/docs/interfaces/SourceReader.SourceReaderLocale.html index 1212e1b..0cf5c25 100644 --- a/docs/interfaces/SourceReader.SourceReaderLocale.html +++ b/docs/interfaces/SourceReader.SourceReaderLocale.html @@ -1,5 +1,5 @@ -SourceReaderLocale | @gobstones/gobstones-core - v0.4.5 -

    This interface declares the strings that the API of +SourceReaderLocale | @gobstones/gobstones-core - v0.4.6 +

    This interface declares the strings that the API of SourceReader uses. It is used by Translator to use the right string for the current language. @@ -8,4 +8,4 @@ English, en, and Spanish, es).

    Hierarchy

    • SourceReaderLocale

    Properties

    Properties

    error: {
        AtEOFBy: string;
        NoInput: string;
        UnmatchingPositionsBy: string;
    }

    Type declaration

    • AtEOFBy: string
    • NoInput: string
    • UnmatchingPositionsBy: string
    string: {
        EndOfInput: string;
        EndOfString: string;
        UnknownPosition: string;
    }

    Type declaration

    • EndOfInput: string
    • EndOfString: string
    • UnknownPosition: string
    \ No newline at end of file +

    Properties

    error: {
        AtEOFBy: string;
        NoInput: string;
        UnmatchingPositionsBy: string;
    }

    Type declaration

    • AtEOFBy: string
    • NoInput: string
    • UnmatchingPositionsBy: string
    string: {
        EndOfInput: string;
        EndOfString: string;
        UnknownPosition: string;
    }

    Type declaration

    • EndOfInput: string
    • EndOfString: string
    • UnknownPosition: string
    \ No newline at end of file diff --git a/docs/interfaces/cli.CLIAppOptions.html b/docs/interfaces/cli.CLIAppOptions.html index dd27ae4..18afae8 100644 --- a/docs/interfaces/cli.CLIAppOptions.html +++ b/docs/interfaces/cli.CLIAppOptions.html @@ -1,5 +1,5 @@ -CLIAppOptions | @gobstones/gobstones-core - v0.4.5 -

    A set of options for initially configure a CLI application. +CLIAppOptions | @gobstones/gobstones-core - v0.4.6 +

    A set of options for initially configure a CLI application. If a translation is given

    Hierarchy

    • CLIAppOptions

    Properties

    flags texts @@ -22,4 +22,4 @@

    Type declaration

    • help: string
    • Optional language?: string
    • Optional languageError?: string
    • name: string
    • tool: string
    • version: string
    • versionNumber: string
    translator?: Translator<any>

    A Translator used to translate the tool to different locales, both when called with a language flag, and automatically at startup by auto-detecting the user language by checking OS Environment variables.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/interfaces/cli.CLIGeneralFlags.html b/docs/interfaces/cli.CLIGeneralFlags.html index c6931d1..dbbdc19 100644 --- a/docs/interfaces/cli.CLIGeneralFlags.html +++ b/docs/interfaces/cli.CLIGeneralFlags.html @@ -1,5 +1,5 @@ -CLIGeneralFlags | @gobstones/gobstones-core - v0.4.5 -

    The general flags that a CLI app accepts, when configured to used them. +CLIGeneralFlags | @gobstones/gobstones-core - v0.4.6 +

    The general flags that a CLI app accepts, when configured to used them. Note that currently the default flags cannot be changed.

    Hierarchy

    • CLIGeneralFlags

    Properties

    help in @@ -11,4 +11,4 @@

    Type declaration

    • long: string
    • short: string
    language: {
        long: string;
        short: string;
    }

    The language set flags, both short and long

    Type declaration

    • long: string
    • short: string
    out: {
        long: string;
        short: string;
    }

    The output file flags, both short and long

    Type declaration

    • long: string
    • short: string
    version: {
        long: string;
        short: string;
    }

    The version information flags, both short and long

    -

    Type declaration

    • long: string
    • short: string
    \ No newline at end of file +

    Type declaration

    • long: string
    • short: string
    \ No newline at end of file diff --git a/docs/modules/Events.html b/docs/modules/Events.html index 296eb8e..0176491 100644 --- a/docs/modules/Events.html +++ b/docs/modules/Events.html @@ -1,5 +1,5 @@ -Events | @gobstones/gobstones-core - v0.4.5 -

    This module provides support for typed events, +Events | @gobstones/gobstones-core - v0.4.6 +

    This module provides support for typed events, wether is for classes that emit a particular event, and allowing others to subscribe to that event emission, or by simply creating objects that @@ -16,4 +16,4 @@

    Author

    Alan Rodas Bonjour alanro

    Index

    API: Main

    Internal: Definition types

    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/modules/Expectations.html b/docs/modules/Expectations.html index 2bed2be..7aec8d2 100644 --- a/docs/modules/Expectations.html +++ b/docs/modules/Expectations.html @@ -1,5 +1,5 @@ -Expectations | @gobstones/gobstones-core - v0.4.5 -

    This module exports the expect function, that is the kickoff to +Expectations | @gobstones/gobstones-core - v0.4.6 +

    This module exports the expect function, that is the kickoff to create "expectations" over a specific element as shown in the following example:

    Example

    expect(x+y).toBeGreaterThan(z)
    .orThrow(new Error('x and y need to add up to more than z')); @@ -48,4 +48,4 @@

    Author

    Alan Rodas Bonjour alanro FinishedExpectation Matchers MatcherCall -

    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/modules/Functions.html b/docs/modules/Functions.html index 9f785b9..3731be1 100644 --- a/docs/modules/Functions.html +++ b/docs/modules/Functions.html @@ -1,5 +1,5 @@ -Functions | @gobstones/gobstones-core - v0.4.5 -

    This module provides different functions that provide common functionality +Functions | @gobstones/gobstones-core - v0.4.6 +

    This module provides different functions that provide common functionality that may be reused in different packages. Functions that are widely used in different packages should be added here for better accessibility in all packages.

    @@ -11,4 +11,4 @@ unflatten

    Internal: Definition types

    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/modules/GobstonesLang.html b/docs/modules/GobstonesLang.html index a561efd..3d73069 100644 --- a/docs/modules/GobstonesLang.html +++ b/docs/modules/GobstonesLang.html @@ -1,5 +1,5 @@ -GobstonesLang | @gobstones/gobstones-core - v0.4.5 -

    This module provides the Board class, which models a Gobstones Board +GobstonesLang | @gobstones/gobstones-core - v0.4.6 +

    This module provides the Board class, which models a Gobstones Board and all the associated behavior.

    The Board class is expected to be used all through the Gobstones Platform and all Gobstones plugins whenever a Board should be used (e.g. the @@ -49,4 +49,4 @@

    Internal: Types

    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/modules/SourceReader.html b/docs/modules/SourceReader.html index e6bed2c..48e42c7 100644 --- a/docs/modules/SourceReader.html +++ b/docs/modules/SourceReader.html @@ -1,5 +1,5 @@ -SourceReader | @gobstones/gobstones-core - v0.4.5 -

    A SourceReader allows you to read input from some source, either one single string of +SourceReader | @gobstones/gobstones-core - v0.4.6 +

    A SourceReader allows you to read input from some source, either one single string of content or several named or indexed source strings, in such a way that each character read may register its position in the source as a tuple index-line-column. That is, the main problem it solves is that of calculating the position of each character @@ -46,4 +46,4 @@ availableLocales en es -

    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/modules/Translator.html b/docs/modules/Translator.html index bd1c2c9..b15ec57 100644 --- a/docs/modules/Translator.html +++ b/docs/modules/Translator.html @@ -1,5 +1,5 @@ -Translator | @gobstones/gobstones-core - v0.4.5 -

    This module provides mechanisms to support basic localization of strings. +Translator | @gobstones/gobstones-core - v0.4.6 +

    This module provides mechanisms to support basic localization of strings. This allows for error messages and CLI to support different languages without much effort.

    Note that this module does not provide localization for the Gobstones Language @@ -9,4 +9,4 @@ The Gobstones Language Translation Module.

    Author

    Alan Rodas Bonjour alanrodas@gmail.com

    Index

    API: Main

    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/modules/Types.html b/docs/modules/Types.html index 5609bcd..0bcd287 100644 --- a/docs/modules/Types.html +++ b/docs/modules/Types.html @@ -1,5 +1,5 @@ -Types | @gobstones/gobstones-core - v0.4.5 -

    The Types modules provides some useful type definitions and +Types | @gobstones/gobstones-core - v0.4.6 +

    The Types modules provides some useful type definitions and data structures that may be useful for different projects. Types and data structures that are widely used in different packages should be added here for better accessibility in all packages.

    @@ -8,4 +8,4 @@

    Author

    Alan Rodas Bonjour alanrodas@gmail.com

    Index

    API: Main

    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/modules/cli.html b/docs/modules/cli.html index fac32c2..34a0183 100644 --- a/docs/modules/cli.html +++ b/docs/modules/cli.html @@ -1,5 +1,5 @@ -cli | @gobstones/gobstones-core - v0.4.5 -

    This module provides the tools to create a CLI application +cli | @gobstones/gobstones-core - v0.4.6 +

    This module provides the tools to create a CLI application using commander as the background tool, but providing some simple abstractions. The CLI produce may automatically support multiple languages, input and output from and to files as well @@ -11,4 +11,4 @@

    API: Options

    Internal: Types

    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/types/Events.DefaultEventSignature.html b/docs/types/Events.DefaultEventSignature.html index 43854c8..6b5d703 100644 --- a/docs/types/Events.DefaultEventSignature.html +++ b/docs/types/Events.DefaultEventSignature.html @@ -1,6 +1,6 @@ -DefaultEventSignature | @gobstones/gobstones-core - v0.4.5 -
    DefaultEventSignature: {
        [k: string]: ((...args) => any);
    }

    This type is a specification of EventSignature where each +DefaultEventSignature | @gobstones/gobstones-core - v0.4.6 +

    DefaultEventSignature: {
        [k: string]: ((...args) => any);
    }

    This type is a specification of EventSignature where each event is key is a string (the most common case), and the subscriber functions are any function. This is the default behavior of most JavaScript event emitter, and the DOM event's signature.

    -

    Type declaration

    • [k: string]: ((...args) => any)
        • (...args): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    \ No newline at end of file +

    Type declaration

    • [k: string]: ((...args) => any)
        • (...args): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    \ No newline at end of file diff --git a/docs/types/Events.EventSignature.html b/docs/types/Events.EventSignature.html index e04d842..dabe7d9 100644 --- a/docs/types/Events.EventSignature.html +++ b/docs/types/Events.EventSignature.html @@ -1,6 +1,6 @@ -EventSignature | @gobstones/gobstones-core - v0.4.5 -
    EventSignature<L>: {
        [E in keyof L]: ((...args) => any)
    }

    This type describes the basic mapping of available events to the +EventSignature | @gobstones/gobstones-core - v0.4.6 +

    EventSignature<L>: {
        [E in keyof L]: ((...args) => any)
    }

    This type describes the basic mapping of available events to the corresponding subscriber functions that may subscribe to such event. Multiple events could be added, with different signatures for each subscriber.

    -

    Type Parameters

    • L

    \ No newline at end of file +

    Type Parameters

    • L

    \ No newline at end of file diff --git a/docs/types/GobstonesLang.BoardInfo.html b/docs/types/GobstonesLang.BoardInfo.html index 319a669..e081e29 100644 --- a/docs/types/GobstonesLang.BoardInfo.html +++ b/docs/types/GobstonesLang.BoardInfo.html @@ -1,5 +1,5 @@ -BoardInfo | @gobstones/gobstones-core - v0.4.5 -
    BoardInfo: CellInfo[][]

    This type represents the Board cell information where given a board satisfies +BoardInfo | @gobstones/gobstones-core - v0.4.6 +

    BoardInfo: CellInfo[][]

    This type represents the Board cell information where given a board satisfies board.width elements, each of which is an array of board.height elements, each of which is a cell, of the form {"a": na, "n": nn, "r": nr, "v": nv}, in such a way that:

    @@ -11,4 +11,4 @@

    And it's assured that each element this.board[x][y] exists for 0 <= x < board.width && 0 <= y < board.height.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/types/GobstonesLang.CellLocation.html b/docs/types/GobstonesLang.CellLocation.html index 99ffc65..99bb5d8 100644 --- a/docs/types/GobstonesLang.CellLocation.html +++ b/docs/types/GobstonesLang.CellLocation.html @@ -1,5 +1,5 @@ -CellLocation | @gobstones/gobstones-core - v0.4.5 -
    CellLocation: [number, number]

    A cell location is just a two elements array (a pair) +CellLocation | @gobstones/gobstones-core - v0.4.6 +

    CellLocation: [number, number]

    A cell location is just a two elements array (a pair) in the form of [x, y] where x is the column that the head is in and y is the row that the head is in.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/types/GobstonesLang.CellReadingActionAttempt.html b/docs/types/GobstonesLang.CellReadingActionAttempt.html index 18c4106..0b84f79 100644 --- a/docs/types/GobstonesLang.CellReadingActionAttempt.html +++ b/docs/types/GobstonesLang.CellReadingActionAttempt.html @@ -1,3 +1,3 @@ -CellReadingActionAttempt | @gobstones/gobstones-core - v0.4.5 -

    Type alias CellReadingActionAttemptInternal

    CellReadingActionAttempt: "ReadCell" | "ReadColumn" | "ReadRow"

    The operation attempted to be performed when a InvalidCellReading error ocurred.

    -
    \ No newline at end of file +CellReadingActionAttempt | @gobstones/gobstones-core - v0.4.6 +

    Type alias CellReadingActionAttemptInternal

    CellReadingActionAttempt: "ReadCell" | "ReadColumn" | "ReadRow"

    The operation attempted to be performed when a InvalidCellReading error ocurred.

    +
    \ No newline at end of file diff --git a/docs/types/GobstonesLang.InvalidSizeChangeAttempt.html b/docs/types/GobstonesLang.InvalidSizeChangeAttempt.html index 7687b44..fed0a62 100644 --- a/docs/types/GobstonesLang.InvalidSizeChangeAttempt.html +++ b/docs/types/GobstonesLang.InvalidSizeChangeAttempt.html @@ -1,3 +1,3 @@ -InvalidSizeChangeAttempt | @gobstones/gobstones-core - v0.4.5 -

    Type alias InvalidSizeChangeAttemptInternal

    InvalidSizeChangeAttempt: "Resize" | "RemoveRow" | "RemoveColumn" | "AddRows" | "AddColumns"

    The operation attempted to be performed when a InvalidSizeChange error ocurred.

    -
    \ No newline at end of file +InvalidSizeChangeAttempt | @gobstones/gobstones-core - v0.4.6 +

    Type alias InvalidSizeChangeAttemptInternal

    InvalidSizeChangeAttempt: "Resize" | "RemoveRow" | "RemoveColumn" | "AddRows" | "AddColumns"

    The operation attempted to be performed when a InvalidSizeChange error ocurred.

    +
    \ No newline at end of file diff --git a/docs/types/GobstonesLang.LocationChangeActionAttempt.html b/docs/types/GobstonesLang.LocationChangeActionAttempt.html index 01da964..6b35dd2 100644 --- a/docs/types/GobstonesLang.LocationChangeActionAttempt.html +++ b/docs/types/GobstonesLang.LocationChangeActionAttempt.html @@ -1,3 +1,3 @@ -LocationChangeActionAttempt | @gobstones/gobstones-core - v0.4.5 -

    Type alias LocationChangeActionAttemptInternal

    LocationChangeActionAttempt: "Move" | "SetLocation" | "MoveToEdge"

    The operation attempted to be performed when a LocationFallsOutsideBoard error ocurred.

    -
    \ No newline at end of file +LocationChangeActionAttempt | @gobstones/gobstones-core - v0.4.6 +

    Type alias LocationChangeActionAttemptInternal

    LocationChangeActionAttempt: "Move" | "SetLocation" | "MoveToEdge"

    The operation attempted to be performed when a LocationFallsOutsideBoard error ocurred.

    +
    \ No newline at end of file diff --git a/docs/types/GobstonesLang.OnBoardHeadMovedCallback.html b/docs/types/GobstonesLang.OnBoardHeadMovedCallback.html index 159de23..6af28ed 100644 --- a/docs/types/GobstonesLang.OnBoardHeadMovedCallback.html +++ b/docs/types/GobstonesLang.OnBoardHeadMovedCallback.html @@ -1,5 +1,5 @@ -OnBoardHeadMovedCallback | @gobstones/gobstones-core - v0.4.5 -
    OnBoardHeadMovedCallback: ((currentLocation, previousLocation) => void)

    Type declaration

      • (currentLocation, previousLocation): void
      • This type represents the function that acts as a callback of +OnBoardHeadMovedCallback | @gobstones/gobstones-core - v0.4.6 +

        OnBoardHeadMovedCallback: ((currentLocation, previousLocation) => void)

        Type declaration

          • (currentLocation, previousLocation): void
          • This type represents the function that acts as a callback of the Board.onHeadMoved event. Such an event is thrown by an instance of a board whenever an operation is performed such that the current head location is altered.

            @@ -9,4 +9,4 @@
          • The previous head location.

        Parameters

        Returns void

        See

        Board.onHeadMoved for more information.

        -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/types/GobstonesLang.OnBoardSizeChangedCallback.html b/docs/types/GobstonesLang.OnBoardSizeChangedCallback.html index 553ef0d..107c383 100644 --- a/docs/types/GobstonesLang.OnBoardSizeChangedCallback.html +++ b/docs/types/GobstonesLang.OnBoardSizeChangedCallback.html @@ -1,5 +1,5 @@ -OnBoardSizeChangedCallback | @gobstones/gobstones-core - v0.4.5 -
    OnBoardSizeChangedCallback: ((newSize, newHeadLocation, fromOriginCell, previousSize, previousHeadLocation) => void)

    Type declaration

      • (newSize, newHeadLocation, fromOriginCell, previousSize, previousHeadLocation): void
      • This type represents the function that acts as a callback of +OnBoardSizeChangedCallback | @gobstones/gobstones-core - v0.4.6 +

        OnBoardSizeChangedCallback: ((newSize, newHeadLocation, fromOriginCell, previousSize, previousHeadLocation) => void)

        Type declaration

          • (newSize, newHeadLocation, fromOriginCell, previousSize, previousHeadLocation): void
          • This type represents the function that acts as a callback of the Board.onSizeChanged event. Such an event is thrown by an instance of a board whenever an operation is performed such that the original size of the board is altered.

            @@ -18,4 +18,4 @@
          • The previous cell that the head was at. Might be the same as the current one.

        Parameters

        • newSize: {
              height: number;
              width: number;
          }
          • height: number
          • width: number
        • newHeadLocation: CellLocation
        • fromOriginCell: boolean
        • previousSize: {
              height: number;
              width: number;
          }
          • height: number
          • width: number
        • previousHeadLocation: CellLocation

        Returns void

        See

        Board.onSizeChanged for more information.

        -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/types/GobstonesLang.OnCellStonesChanged.html b/docs/types/GobstonesLang.OnCellStonesChanged.html index 532a7dd..ec952c2 100644 --- a/docs/types/GobstonesLang.OnCellStonesChanged.html +++ b/docs/types/GobstonesLang.OnCellStonesChanged.html @@ -1,5 +1,5 @@ -OnCellStonesChanged | @gobstones/gobstones-core - v0.4.5 -
    OnCellStonesChanged: ((cellLocation, stones, previousStones) => void)

    Type declaration

      • (cellLocation, stones, previousStones): void
      • This type represents the function that acts as a callback of +OnCellStonesChanged | @gobstones/gobstones-core - v0.4.6 +

        OnCellStonesChanged: ((cellLocation, stones, previousStones) => void)

        Type declaration

          • (cellLocation, stones, previousStones): void
          • This type represents the function that acts as a callback of the Cell.onStonesChanged event. Such an event is thrown by an instance of a cell whenever an operation is performed such that the cell changes the amount of cells.

            @@ -10,4 +10,4 @@
          • The previous amount of stones the cell had.

        Parameters

        • cellLocation: {
              x: number;
              y: number;
          }
          • x: number
          • y: number
        • stones: {
              a: number;
              n: number;
              r: number;
              v: number;
          }
          • a: number
          • n: number
          • r: number
          • v: number
        • previousStones: {
              a: number;
              n: number;
              r: number;
              v: number;
          }
          • a: number
          • n: number
          • r: number
          • v: number

        Returns void

        See

        Cell.onStonesChanged for more information.

        -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/types/GobstonesLang.StonesChangeActionAttempt.html b/docs/types/GobstonesLang.StonesChangeActionAttempt.html index 6f531bb..2e6883b 100644 --- a/docs/types/GobstonesLang.StonesChangeActionAttempt.html +++ b/docs/types/GobstonesLang.StonesChangeActionAttempt.html @@ -1,3 +1,3 @@ -StonesChangeActionAttempt | @gobstones/gobstones-core - v0.4.5 -

    Type alias StonesChangeActionAttemptInternal

    StonesChangeActionAttempt: "AddStones" | "RemoveStones" | "SetStones"

    The operation attempted to be performed when a InvalidStonesAmount error ocurred.

    -
    \ No newline at end of file +StonesChangeActionAttempt | @gobstones/gobstones-core - v0.4.6 +

    Type alias StonesChangeActionAttemptInternal

    StonesChangeActionAttempt: "AddStones" | "RemoveStones" | "SetStones"

    The operation attempted to be performed when a InvalidStonesAmount error ocurred.

    +
    \ No newline at end of file diff --git a/docs/types/SourceReader.SourceInput.html b/docs/types/SourceReader.SourceInput.html index 59763d7..eb3fc2f 100644 --- a/docs/types/SourceReader.SourceInput.html +++ b/docs/types/SourceReader.SourceInput.html @@ -1,5 +1,5 @@ -SourceInput | @gobstones/gobstones-core - v0.4.5 -
    SourceInput: string | Record<string, string> | string[]

    The type SourceInput establishes the different kinds of input a SourceReader +SourceInput | @gobstones/gobstones-core - v0.4.6 +

    SourceInput: string | Record<string, string> | string[]

    The type SourceInput establishes the different kinds of input a SourceReader accepts to read, independently of how it was obtained (e.g. from files, web-services, or command line arguments).

      @@ -21,4 +21,4 @@ typically as

      new SourceReader(input, '\n');
       
      -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/types/Types.Subset.html b/docs/types/Types.Subset.html index 6811501..ba28034 100644 --- a/docs/types/Types.Subset.html +++ b/docs/types/Types.Subset.html @@ -1,8 +1,8 @@ -Subset | @gobstones/gobstones-core - v0.4.5 -
    Subset<K>: {
        [attr in keyof K]?: K[attr] extends object
            ? Subset<K[attr]>
            : K[attr] extends object | null
                ? Subset<K[attr]> | null
                : K[attr] extends object | null | undefined
                    ? Subset<K[attr]> | null | undefined
                    : K[attr]
    }

    This Utility Type works similar to Partial, but it proceeds recursively applying Partial +Subset | @gobstones/gobstones-core - v0.4.6 +

    Subset<K>: {
        [attr in keyof K]?: K[attr] extends object
            ? Subset<K[attr]>
            : K[attr] extends object | null
                ? Subset<K[attr]> | null
                : K[attr] extends object | null | undefined
                    ? Subset<K[attr]> | null | undefined
                    : K[attr]
    }

    This Utility Type works similar to Partial, but it proceeds recursively applying Partial to all attributes of the type argument K, included nested ones.

    It is taken from a blog by Harmen Janssen, posted on November 29, 2021. See that blog for an explanation on the code.

    -

    Type Parameters

    • K

    \ No newline at end of file +

    Type Parameters

    • K

    \ No newline at end of file diff --git a/docs/types/cli.cli.html b/docs/types/cli.cli.html index 762fbc1..949e264 100644 --- a/docs/types/cli.cli.html +++ b/docs/types/cli.cli.html @@ -1,3 +1,3 @@ -cli | @gobstones/gobstones-core - v0.4.5 -
    cli: CLIApp

    The Type of a CLI application

    -
    \ No newline at end of file +cli | @gobstones/gobstones-core - v0.4.6 +
    cli: CLIApp

    The Type of a CLI application

    +
    \ No newline at end of file diff --git a/docs/variables/GobstonesLang.identifier.html b/docs/variables/GobstonesLang.identifier.html index 2f43257..887f13f 100644 --- a/docs/variables/GobstonesLang.identifier.html +++ b/docs/variables/GobstonesLang.identifier.html @@ -1,6 +1,6 @@ -identifier | @gobstones/gobstones-core - v0.4.5 -
    identifier: RegExp = ...

    This helper matches any of the above identifiers, that is, anything that is a word.

    +identifier | @gobstones/gobstones-core - v0.4.6 +
    identifier: RegExp = ...

    This helper matches any of the above identifiers, that is, anything that is a word.

    ES Form:

    /(\p{Letter}|_)[\p{Letter}\p{Decimal_Number}_]* /u;
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/variables/GobstonesLang.lowerId.html b/docs/variables/GobstonesLang.lowerId.html index c40ee40..67e3c95 100644 --- a/docs/variables/GobstonesLang.lowerId.html +++ b/docs/variables/GobstonesLang.lowerId.html @@ -1,7 +1,7 @@ -lowerId | @gobstones/gobstones-core - v0.4.5 -
    lowerId: RegExp = ...

    Any word starting with an lowercase letter, that may be followed +lowerId | @gobstones/gobstones-core - v0.4.6 +

    lowerId: RegExp = ...

    Any word starting with an lowercase letter, that may be followed by any amount of unicode letters or decimal numbers, or ASCII underscore.

    ES Form:

    /\p{Lowercase_Letter}[\p{Letter}\p{Decimal_Number}_]* /u;
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/variables/GobstonesLang.nonAlphabeticId.html b/docs/variables/GobstonesLang.nonAlphabeticId.html index 6870d5f..a83cab8 100644 --- a/docs/variables/GobstonesLang.nonAlphabeticId.html +++ b/docs/variables/GobstonesLang.nonAlphabeticId.html @@ -1,8 +1,8 @@ -nonAlphabeticId | @gobstones/gobstones-core - v0.4.5 -
    nonAlphabeticId: RegExp = ...

    Any word starting with a non upper, title or lowercase letter (that is, a letter +nonAlphabeticId | @gobstones/gobstones-core - v0.4.6 +

    nonAlphabeticId: RegExp = ...

    Any word starting with a non upper, title or lowercase letter (that is, a letter in a scripting that do not distinguishes between upper and lowercase forms), that may be followed by any amount of unicode letters or decimal numbers, or ASCII underscore.

    ES Form:

    /\p{Other_Letter}[\p{Letter}\p{Decimal_Number}_]* /u;
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/variables/GobstonesLang.number.html b/docs/variables/GobstonesLang.number.html index 1296b4a..d947649 100644 --- a/docs/variables/GobstonesLang.number.html +++ b/docs/variables/GobstonesLang.number.html @@ -1,3 +1,3 @@ -number | @gobstones/gobstones-core - v0.4.5 -
    number: RegExp = ...

    Numbers are only ASCII characters for digits

    -
    \ No newline at end of file +number | @gobstones/gobstones-core - v0.4.6 +
    number: RegExp = ...

    Numbers are only ASCII characters for digits

    +
    \ No newline at end of file diff --git a/docs/variables/GobstonesLang.sigiledNonAlphabeticId.html b/docs/variables/GobstonesLang.sigiledNonAlphabeticId.html index 2420a83..823a757 100644 --- a/docs/variables/GobstonesLang.sigiledNonAlphabeticId.html +++ b/docs/variables/GobstonesLang.sigiledNonAlphabeticId.html @@ -1,9 +1,9 @@ -sigiledNonAlphabeticId | @gobstones/gobstones-core - v0.4.5 -
    sigiledNonAlphabeticId: RegExp = ...

    Any word starting with an underscore and followed by a non upper, title or lowercase +sigiledNonAlphabeticId | @gobstones/gobstones-core - v0.4.6 +

    sigiledNonAlphabeticId: RegExp = ...

    Any word starting with an underscore and followed by a non upper, title or lowercase letter (that is, a letter in a scripting that do not distinguishes between upper and lowercase forms), that may be followed by any amount of unicode letters or decimal numbers, or ASCII underscore.

    ES Form:

    /_\p{Other_Letter}[\p{Letter}\p{Decimal_Number}_]* /u;
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/variables/GobstonesLang.upperId.html b/docs/variables/GobstonesLang.upperId.html index 3f4130c..fb13a98 100644 --- a/docs/variables/GobstonesLang.upperId.html +++ b/docs/variables/GobstonesLang.upperId.html @@ -1,7 +1,7 @@ -upperId | @gobstones/gobstones-core - v0.4.5 -
    upperId: RegExp = ...

    Any word starting with an uppercase letter (or titlecase for some languages), +upperId | @gobstones/gobstones-core - v0.4.6 +

    upperId: RegExp = ...

    Any word starting with an uppercase letter (or titlecase for some languages), that may be followed by any amount of unicode letters or decimal numbers, or ASCII underscore.

    ES Form:

    /(\p{Uppercase_Letter}|\p{Titlecase_Letter})[\p{Letter}\p{Decimal_Number}_]* /u;
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/variables/SourceReader.SourceReaderIntl.html b/docs/variables/SourceReader.SourceReaderIntl.html index 57c4937..a009989 100644 --- a/docs/variables/SourceReader.SourceReaderIntl.html +++ b/docs/variables/SourceReader.SourceReaderIntl.html @@ -1,6 +1,6 @@ -SourceReaderIntl | @gobstones/gobstones-core - v0.4.5 -
    SourceReaderIntl: Translator<SourceReaderLocale> = ...

    The instance of the Translator for SourceReader. +SourceReaderIntl | @gobstones/gobstones-core - v0.4.6 +

    SourceReaderIntl: Translator<SourceReaderLocale> = ...

    The instance of the Translator for SourceReader. It specialize its language interface to SourceReaderLocale. It uses availableLocales to provide the locales, and defaults to English. The translator is flattened to allow dot notation.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/variables/SourceReader.availableLocales.html b/docs/variables/SourceReader.availableLocales.html index 7360efc..17718a3 100644 --- a/docs/variables/SourceReader.availableLocales.html +++ b/docs/variables/SourceReader.availableLocales.html @@ -1,5 +1,5 @@ -availableLocales | @gobstones/gobstones-core - v0.4.5 -
    availableLocales: {
        en: SourceReaderLocale;
        en-AU: SourceReaderLocale;
        en-BZ: SourceReaderLocale;
        en-CA: SourceReaderLocale;
        en-CB: SourceReaderLocale;
        en-GB: SourceReaderLocale;
        en-IE: SourceReaderLocale;
        en-IN: SourceReaderLocale;
        en-JM: SourceReaderLocale;
        en-MT: SourceReaderLocale;
        en-MY: SourceReaderLocale;
        en-NZ: SourceReaderLocale;
        en-PH: SourceReaderLocale;
        en-SG: SourceReaderLocale;
        en-TT: SourceReaderLocale;
        en-US: SourceReaderLocale;
        en-ZA: SourceReaderLocale;
        en-ZW: SourceReaderLocale;
        es: SourceReaderLocale;
        es-AR: SourceReaderLocale;
        es-BO: SourceReaderLocale;
        es-CL: SourceReaderLocale;
        es-CO: SourceReaderLocale;
        es-CR: SourceReaderLocale;
        es-DO: SourceReaderLocale;
        es-EC: SourceReaderLocale;
        es-ES: SourceReaderLocale;
        es-GT: SourceReaderLocale;
        es-HN: SourceReaderLocale;
        es-MX: SourceReaderLocale;
        es-NI: SourceReaderLocale;
        es-PA: SourceReaderLocale;
        es-PE: SourceReaderLocale;
        es-PR: SourceReaderLocale;
        es-PY: SourceReaderLocale;
        es-SV: SourceReaderLocale;
        es-US: SourceReaderLocale;
        es-UY: SourceReaderLocale;
        es-VE: SourceReaderLocale;
    } = ...

    The locales available for translations for SourceReader. +availableLocales | @gobstones/gobstones-core - v0.4.6 +

    availableLocales: {
        en: SourceReaderLocale;
        en-AU: SourceReaderLocale;
        en-BZ: SourceReaderLocale;
        en-CA: SourceReaderLocale;
        en-CB: SourceReaderLocale;
        en-GB: SourceReaderLocale;
        en-IE: SourceReaderLocale;
        en-IN: SourceReaderLocale;
        en-JM: SourceReaderLocale;
        en-MT: SourceReaderLocale;
        en-MY: SourceReaderLocale;
        en-NZ: SourceReaderLocale;
        en-PH: SourceReaderLocale;
        en-SG: SourceReaderLocale;
        en-TT: SourceReaderLocale;
        en-US: SourceReaderLocale;
        en-ZA: SourceReaderLocale;
        en-ZW: SourceReaderLocale;
        es: SourceReaderLocale;
        es-AR: SourceReaderLocale;
        es-BO: SourceReaderLocale;
        es-CL: SourceReaderLocale;
        es-CO: SourceReaderLocale;
        es-CR: SourceReaderLocale;
        es-DO: SourceReaderLocale;
        es-EC: SourceReaderLocale;
        es-ES: SourceReaderLocale;
        es-GT: SourceReaderLocale;
        es-HN: SourceReaderLocale;
        es-MX: SourceReaderLocale;
        es-NI: SourceReaderLocale;
        es-PA: SourceReaderLocale;
        es-PE: SourceReaderLocale;
        es-PR: SourceReaderLocale;
        es-PY: SourceReaderLocale;
        es-SV: SourceReaderLocale;
        es-US: SourceReaderLocale;
        es-UY: SourceReaderLocale;
        es-VE: SourceReaderLocale;
    } = ...

    The locales available for translations for SourceReader. It is similar to other availableLocales, providing locales not only for English and Spanish, but also several local dialects (all defaulting to their base language).

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/variables/SourceReader.en.html b/docs/variables/SourceReader.en.html index 7931853..1611583 100644 --- a/docs/variables/SourceReader.en.html +++ b/docs/variables/SourceReader.en.html @@ -1,4 +1,4 @@ -en | @gobstones/gobstones-core - v0.4.5 -

    The locale for English language, for SourceReader. +en | @gobstones/gobstones-core - v0.4.6 +

    The locale for English language, for SourceReader. It implements interface SourceReaderLocale.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/variables/SourceReader.es.html b/docs/variables/SourceReader.es.html index d708246..5a00bb7 100644 --- a/docs/variables/SourceReader.es.html +++ b/docs/variables/SourceReader.es.html @@ -1,4 +1,4 @@ -es | @gobstones/gobstones-core - v0.4.5 -

    The locale for Spanish language, for SourceReader. +es | @gobstones/gobstones-core - v0.4.6 +

    The locale for Spanish language, for SourceReader. It implements interface SourceReaderLocale.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/package.json b/package.json index 2924457..49d35a3 100644 --- a/package.json +++ b/package.json @@ -1,21 +1,22 @@ { "name": "@gobstones/gobstones-core", - "version": "0.4.5", + "version": "0.4.6", "description": "A set of utility types, interfaces and classes that are used through all the Gobstones Platform repositories.", "repository": "https://github.com/gobstones/gobstones-core", "homepage": "https://gobstones.github.io/gobstones-core", "author": "Alan Rodas Bonjour ", "license": "AGPL-3.0", "keywords": ["Gobstones", "Library", "Core", "Utilities"], - "main": "./dist/index.cjs", - "module": "./dist/index.js", - "typings": "./dist/typings/index.d.ts", + "main": "./dist/cjs/index.cjs", + "module": "./dist/esm/index.mjs", + "typings": "./dist/esm/typings/index.d.ts", "exports": { - ".": "./dist/index.js" + "require": "./dist/cjs/index.cjs", + "import": "./dist/esm/index.mjs" }, "packageManager": "npm@9.2.0", "scripts": { - "prepare": "husky install", + "prepare": "is-ci || husky install", "prepack": "gobstones-scripts run build", "start": "gobstones-scripts run", "dev": "gobstones-scripts run dev", @@ -36,7 +37,7 @@ "commander": "^11.1.0" }, "devDependencies": { - "@gobstones/gobstones-scripts": "^0.5.0", + "@gobstones/gobstones-scripts": "^0.5.2", "husky": "^8.0.2" } }