Skip to content

6.0.0

Latest
Compare
Choose a tag to compare
@icidasset icidasset released this 02 Jul 13:09
· 1 commit to main since this release
  • Updated to gren 0.4.x and the new node package.
  • Replaced Path & Focus modules with FileSystem.Path from Gren's node package.
  • Should technically work on Windows now (not tested though)
---- REMOVED MODULES - MAJOR ----

    Shikensu.Focus
    Shikensu.Path
    Shikensu.Path.Encapsulated


---- Shikensu - MAJOR ----

    Removed:
        currentWorkingDirectory : Permission -> Task Error (Path Directory)

    Changed:
      - bundle : Permission -> Array Definition -> Task
      + bundle :
            FileSystem.Permission
            -> Array.Array Shikensu.Definition.Definition
            -> Shikensu.Bundle.Bundle

      - list : Permission -> Focus -> Task
      + list : FileSystem.Permission -> FileSystem.Path.Path -> Shikensu.Task

      - perform :
            { onSuccess : Environment -> a -> Cmd {}
            , onError : Environment -> Error -> Cmd {}
            }
            -> (Permission -> Task Error a)
            -> Program
      + perform :
            { onSuccess :
                  Node.Environment -> a -> Task.Task Shikensu.Error.Error {}
            , onError :
                  Node.Environment
                  -> Shikensu.Error.Error
                  -> Task.Task Basics.Never {}
            }
            -> (FileSystem.Permission -> Task.Task Shikensu.Error.Error a)
            -> Shikensu.Program

      - program : (Task -> Task) -> Focus -> Program
      + program :
            (Shikensu.Task -> Shikensu.Task)
            -> FileSystem.Path.Path
            -> Shikensu.Program

      - programs : Array { focus : Focus, sequence : Task -> Task } -> Program
      + programs :
            Array.Array
                { path : FileSystem.Path.Path
                , sequence : Shikensu.Task -> Shikensu.Task
                }
            -> Shikensu.Program

      - write : Focus -> Bundle -> Task
      + write : FileSystem.Path.Path -> Shikensu.Bundle.Bundle -> Shikensu.Task



---- Shikensu.Bundle - MAJOR ----

    Changed:
      - type alias Bundle =
            { compendium : Array Definition
            , fsPermission : Permission
            , readingDirectory : Maybe (Path Directory)
            , workingDirectory : Path Directory
            }
      + type alias Bundle =
            { compendium : Array.Array Shikensu.Definition.Definition
            , fsPermission : FileSystem.Permission
            , readingDirectory : Maybe.Maybe FileSystem.Path.Path
            }



---- Shikensu.Contrib - MAJOR ----

    Removed:
        copyPropsToMetadata : Bundle -> Bundle

    Changed:
      - clone : Path File -> Path File -> Bundle -> Bundle
      + clone :
            FileSystem.Path.Path
            -> FileSystem.Path.Path
            -> Shikensu.Bundle.Bundle
            -> Shikensu.Bundle.Bundle

      - exclude : Path File -> Bundle -> Bundle
      + exclude :
            FileSystem.Path.Path
            -> Shikensu.Bundle.Bundle
            -> Shikensu.Bundle.Bundle

      - rename : Path File -> Path File -> Bundle -> Bundle
      + rename :
            FileSystem.Path.Path
            -> FileSystem.Path.Path
            -> Shikensu.Bundle.Bundle
            -> Shikensu.Bundle.Bundle

      - withDirectory : Path Directory -> Bundle -> Bundle
      + withDirectory :
            FileSystem.Path.Path
            -> Shikensu.Bundle.Bundle
            -> Shikensu.Bundle.Bundle



---- Shikensu.Definition - MAJOR ----

    Removed:
        relativePath : Definition -> Path File

    Changed:
      - type alias Definition =
            { baseName : String
            , content : Maybe Bytes
            , directoryPath : Path Directory
            , extensionName : Maybe String
            , metadata : Dict String Value
            }
      + type alias Definition =
            { content : Maybe.Maybe Bytes.Bytes
            , path : FileSystem.Path.Path
            , metadata : Dict.Dict String.String Json.Encode.Value
            }

      - create : Path File -> Definition
      + create : FileSystem.Path.Path -> Shikensu.Definition.Definition

      - fork : Path File -> Definition -> Definition
      + fork :
            FileSystem.Path.Path
            -> Shikensu.Definition.Definition
            -> Shikensu.Definition.Definition



---- Shikensu.Error - MAJOR ----

    Changed:
      - type Error
            = ErrorMessage String
            | PlatformAccessError (Path Encapsulated) AccessError
            | PlatformUnknownError UnknownFileSystemError
      + type Error
            = ErrorMessage String.String
            | PlatformError FileSystem.Path.Path FileSystem.Error