isomorphic-git v1.0.0-beta.34 Release Notes

Release Date: 2020-02-24 // about 4 years ago
  • 1.0.0-beta.34 (2020-02-24)

    chore

    ๐Ÿ’ฅ BREAKING CHANGES

    • ๐Ÿšš E has been removed and replaced by Errors. The errors are typed so if you use an instanceof comparison in the catch statement, auto-completion on their .data property works. There are fewer errors total, they have shorter names, and thus the resulting gzip bundle is smaller despite the addition of 28 new classes. Lastly, the distinction between Fail and Error has been removed since it was subjective.

    Here's the complete breakdown of which Errors classes replaced which E codes:

    • AlreadyExistsError replaces AddingRemoteWouldOverwrite, NoteAlreadyExistsError, RefExistsError
    • AmbiguousError replaces AmbiguousShortOid
    • CheckoutConflictError replaces CheckoutConflictError
    • CommitNotFetchedError replaces CommitNotFetchedError
    • ๐Ÿ‘€ EmptyServerResponseError replaces EmptyServerResponseFail
    • FastForwardError replaces FastForwardFail
    • GitPushError replaces GitPushError
    • HttpError replaces HTTPError
    • InternalError replaces InternalFail
    • InvalidFilepathError replaces DirectorySeparatorsError
    • InvalidOidError replaces CorruptShallowOidFail, NotAnOidFail
    • InvalidRefNameError replaces InvalidRefNameError
    • MaxDepthError replaces MaxSearchDepthExceeded
    • ๐Ÿ”€ MergeNotSupportedError replaces MergeNotSupportedFail
    • MissingNameError replaces MissingAuthorError, MissingCommitterError, MissingTaggerError
    • MissingParameterError replaces MissingRequiredParameterError
    • NoRefspecError replaces NoRefspecConfiguredError
    • NotFoundError replaces ExpandRefError, FileReadError, GitRootNotFoundError, ReadObjectFail, RefNotExistsError, ResolveRefError, ShortOidNotFound, TreeOrBlobNotFoundError
    • ObjectTypeError replaces DirectoryIsAFileError, ObjectTypeAssertionFail, ObjectTypeAssertionInPathFail, ObjectTypeAssertionInTreeFail, ObjectTypeUnknownFail, ResolveCommitError, ResolveTreeError
    • ๐Ÿ‘€ ParseError replaces AssertServerResponseFail, UnparseableServerResponseFail
    • PushRejectedError replaces PushRejectedNonFastForward, PushRejectedTagExists
    • ๐Ÿ‘ RemoteCapabilityError replaces RemoteDoesNotSupportDeepenNotFail, RemoteDoesNotSupportDeepenRelativeFail, RemoteDoesNotSupportDeepenSinceFail, RemoteDoesNotSupportShallowFail
    • ๐Ÿ‘ SmartHttpError replaces RemoteDoesNotSupportSmartHTTP
    • UnknownTransportError replaces UnknownTransportError
    • ๐Ÿ‘€ UrlParseError replaces RemoteUrlParseError
    • UserCanceledError replaces UserCancelledError

    ๐Ÿš€ The following error codes are no longer used / have no equivalent: AcquireLockFileFail, BranchDeleteError, CoreNotFound, DoubleReleaseLockFileFail, InvalidDepthParameterError, InvalidParameterCombinationError, MismatchRefValueError, NoHeadCommitError, NotImplementedFail, ObjectTypeAssertionInRefFail, PluginSchemaViolation, PluginUndefined, PluginUnrecognized