Releases: monstermichl/shell-factory
Releases · monstermichl/shell-factory
v3.2.1
v3.2.0
Changes
- Add moveContent method to Block class.
- Add events to Block class to get notified on add, insert, move and remove.
v3.1.3
Changes
- Replace randomUUID from crypto with v4 from uuid to get shell-factory browser compatible.
v3.1.2
Changes
- Upgrade packages.
- Patch GHSA-67hx-6x53-jw92.
v3.1.1
Changes
- Try to fix missing README on npmjs.com by republishing (npm/www#329 (comment))
v3.1.0
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
Changes
- Fixes in README.md.
- Export helpers.
v3.0.0
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
Changes
- Add support for Variables!!! :D
- Add option to set Statement as Statement value.
- Fixes.
v2.0.0
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.