This PR moves the Operation type out to its own module and unifies the Addition and Update types as described in #524. This is done in preparation for #523, in which all operation checks will move to this new file.
I don't plan to update these any more -- these are the fields that the API will expect. I've standardized fields like name :: PackageName because once we use a server we won't need to rely on distinguishing payloads structurally anymore.
This PR moves the
Operation
type out to its own module and unifies theAddition
andUpdate
types as described in #524. This is done in preparation for #523, in which all operation checks will move to this new file.See also the changed instructions in the
registry
repo, as the JSON fields have changed: https://github.com/purescript/registry/pull/30I don't plan to update these any more -- these are the fields that the API will expect. I've standardized fields like
name :: PackageName
because once we use a server we won't need to rely on distinguishing payloads structurally anymore.