Skip to content

v0.2.8 Beta

Pre-release
Pre-release

Choose a tag to compare

@electrikmilk electrikmilk released this 05 Apr 02:42
· 916 commits to main since this release

What's Changed

  • Updates Go version to 1.24.
  • Refactored the translate actions to use codes instead of the full language name.
  • vCards have been refactored to accept a base64 string or variable for the photo argument. This is because base64File() can be used for this instead, and now allows a file to be downloaded, base64 encoded, and then used as a variable for the makevCard() action photo argument. With the previous implementation this would not be possible. Read the documentation for more.
  • The Comment action text argument type is now raw text. (e.g. comment('Test'))
  • The --comments (-c) argument now doubles for decompilation, which means comment() actions will be used instead of text comments.
  • Refactor to use howett.net/plist to marshal plist data instead to create Shortcut file contents by @electrikmilk in #87. This does not look to have caused any issues so far, please report any regressions. There is a further write-up about this in the PR.
  • Removed GET as default HTTP method, downloadURL() uses this method automatically, other actions like jsonRequest() only allow POST, PUT, etc. but not GET, and GET does not allow for a JSON or Form body.
  • To fix the HTTP actions which in Shortcuts require a literal dictionary value, arguments can now require literal values so an error is thrown if a variable is tried to be used which will not work in the final Shortcut.
  • Adds plist type check to rawAction parameters to prevent invalid plist being generated.
  • Improvements to raw actions, ensuring decompiled raw actions only have parameters when needed and properly removing the requirement for parameters.
  • Major fixes to custom action parsing. If the line contained the word "action" anywhere, we would start trying to parse an action and complain that we weren't getting one, which is very rude and counterproductive. We now make sure we're at the beginning of a line before trying to look for the action keyword and start trying to parse the custom action declaration.
  • Major fix to includes processing where each include statement was not being removed after their file contents were included due to the line changing after we collected the path, which caused the "File has already been included" error to erroneously be thrown.
  • Fixes issues with decompiling actions.
  • Fixes an issue specifically with decompiling the count action properly.
  • Improves algorithm for matching Shortcut actions that are split into multiple actions in Cherri.
  • Clean up of decompilation code.
  • We now generate better output names; instead of textValue, we now generate TextOutput as it looks better when viewing the Shortcut.
  • Updates the client version, now accepts version 18.4.
  • Corrects some argument values decompiled from actions in a Shortcut based on the valid type for that argument.
  • Fixes number() action decompilation.
  • Generally fixes decompiling values.

New Actions

  • Resize Image actions.
  • Adds and reactors image type Media actions, completing the media actions category.
  • Adds GIF actions.
  • Generally adds more Media actions.
  • Adds more Calendar actions.
  • Renames rotateImage() to rotateMedia() as this action can be used to rotate an image or video.

Full Changelog: v0.2.7-beta...v0.2.8-beta