isomorphic-git v1.0.0-beta.34 Release Notes
Release Date: 2020-02-24 // over 3 years ago-
1.0.0-beta.34 (2020-02-24)
chore
๐ฅ BREAKING CHANGES
- ๐
E
has been removed and replaced byErrors
. The errors are typed so if you use aninstanceof
comparison in thecatch
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 betweenFail
andError
has been removed since it was subjective.
Here's the complete breakdown of which
Errors
classes replaced whichE
codes:AlreadyExistsError
replacesAddingRemoteWouldOverwrite
,NoteAlreadyExistsError
,RefExistsError
AmbiguousError
replacesAmbiguousShortOid
CheckoutConflictError
replacesCheckoutConflictError
CommitNotFetchedError
replacesCommitNotFetchedError
- ๐
EmptyServerResponseError
replacesEmptyServerResponseFail
FastForwardError
replacesFastForwardFail
GitPushError
replacesGitPushError
HttpError
replacesHTTPError
InternalError
replacesInternalFail
InvalidFilepathError
replacesDirectorySeparatorsError
InvalidOidError
replacesCorruptShallowOidFail
,NotAnOidFail
InvalidRefNameError
replacesInvalidRefNameError
MaxDepthError
replacesMaxSearchDepthExceeded
- ๐
MergeNotSupportedError
replacesMergeNotSupportedFail
MissingNameError
replacesMissingAuthorError
,MissingCommitterError
,MissingTaggerError
MissingParameterError
replacesMissingRequiredParameterError
NoRefspecError
replacesNoRefspecConfiguredError
NotFoundError
replacesExpandRefError
,FileReadError
,GitRootNotFoundError
,ReadObjectFail
,RefNotExistsError
,ResolveRefError
,ShortOidNotFound
,TreeOrBlobNotFoundError
ObjectTypeError
replacesDirectoryIsAFileError
,ObjectTypeAssertionFail
,ObjectTypeAssertionInPathFail
,ObjectTypeAssertionInTreeFail
,ObjectTypeUnknownFail
,ResolveCommitError
,ResolveTreeError
- ๐
ParseError
replacesAssertServerResponseFail
,UnparseableServerResponseFail
PushRejectedError
replacesPushRejectedNonFastForward
,PushRejectedTagExists
- ๐
RemoteCapabilityError
replacesRemoteDoesNotSupportDeepenNotFail
,RemoteDoesNotSupportDeepenRelativeFail
,RemoteDoesNotSupportDeepenSinceFail
,RemoteDoesNotSupportShallowFail
- ๐
SmartHttpError
replacesRemoteDoesNotSupportSmartHTTP
UnknownTransportError
replacesUnknownTransportError
- ๐
UrlParseError
replacesRemoteUrlParseError
UserCanceledError
replacesUserCancelledError
๐ The following error codes are no longer used / have no equivalent:
AcquireLockFileFail
,BranchDeleteError
,CoreNotFound
,DoubleReleaseLockFileFail
,InvalidDepthParameterError
,InvalidParameterCombinationError
,MismatchRefValueError
,NoHeadCommitError
,NotImplementedFail
,ObjectTypeAssertionInRefFail
,PluginSchemaViolation
,PluginUndefined
,PluginUnrecognized
- ๐