Skip to content

Releases: monstermichl/shell-factory

v3.2.1

06 Dec 09:29

Choose a tag to compare

Changes

  • Update dependencies.

v3.2.0

07 Jan 14:52
7ede125

Choose a tag to compare

Changes

  • Add moveContent method to Block class.
  • Add events to Block class to get notified on add, insert, move and remove.

v3.1.3

03 Jan 19:22

Choose a tag to compare

Changes

  • Replace randomUUID from crypto with v4 from uuid to get shell-factory browser compatible.

v3.1.2

24 Oct 18:41

Choose a tag to compare

Changes

v3.1.1

14 Apr 11:18

Choose a tag to compare

Changes

v3.1.0

14 Apr 09:31
73c8d40

Choose a tag to compare

Changes

  • Add upper-/lowercase functionality to StringVariable.
  • Add sub-condition support to Condition. If an element in the condition chain is a Condition instance which itself has chain elements it is grouped within brackets to allow more complex if-statements. E.g.,
    new Script([
      new Condition('1 -eq 1')
          .and(
              new Condition('2 -eq 3').or('2 -eq 2'),
          ),
      ]).dump();
    #!/bin/sh
    
    [ 1 -eq 1 -a \( 2 -eq 3 -o 2 -eq 2 \) ]
  • Update package.json to refer to Github page on npmjs.org.

v3.0.1

01 Apr 18:18

Choose a tag to compare

Changes

  • Fixes in README.md.
  • Export helpers.

v3.0.0

01 Apr 17:12
6e4ac5d

Choose a tag to compare

Changes

  • Complete redesign of the Condition class which now inherits from Statement. This way Condition-instances can easily be passed around or even used directly in the script without any ConditionBlock. Conditions- and LinkedCondition-class were removed in this process. Unfortunately, this is a breaking change :( You are not able to use Conditions- and LinkedCondition-class anymore! Please use the Condition-class' chaining system instead.
  • Add Subshelling/Evaluation.
  • Remove removeFront- and removeBack-method from StringVariable. Unfortunately, this is a breaking change :( Please use the replace-method instead, which builds on the Unix sed-command.
  • Improve Variable functionality. E.g., Compare functions now return a Condition instance.
  • Add true-statement to empty WrapBlocks to avoid interpreter parsing errors.
  • Add logical- and operational-chain functionality to several classes.
  • Fixes.

v2.1.0

25 Mar 16:58

Choose a tag to compare

Changes

  • Add support for Variables!!! :D
  • Add option to set Statement as Statement value.
  • Fixes.

v2.0.0

23 Mar 18:10

Choose a tag to compare

Changes

  • Change Statement to abstract class to have a base for several types of Statement subclasses which fullfil different purposes. Unfortunately, this change is a breaking change :( All instances of Statement should be replaced by Command.
  • Fix chainable export in index.mts.
  • Fix format handling if no specific format is being provided.