- Add
QuicGoawayRequestCanBeRetriedError
(-381)
TrustTokenOperationCacheHit
(-507) name changed toTrustTokenOperationSuccessWithoutSendingRequestError
- Add H2OrQuicRequiredError (-31)
- Add BlockedByCspError (-30)
- Add TrustTokenOperationCacheHitError (-507)
- Add TrustTokenOperationFailedError (-506)
- Add SslObsoleteVersionError (-218)
- Change CertEndError error code from -218 to -219
- The oldest tested Node.js version is now v10, and v8 and v9 are no longer officially supported as their lifetime has ended.
- Remove Node.js versions 8 and 9 from tests
- Add DnsSecureResolverHostnameResolutionFailedError (-808)
- Add InvalidWebBundleError (-505)
- Add QuicCertRootNotKnownError (-380)
- Add HttpResponseCodeFailureError (-379)
- Add CertKnownInterceptionBlockedError (-217)
- Update DnsCacheMissError (-804) documentation
- Update BlockedByAdministratorError (-22) documentation
- Remove DnsHttpFailedError (-807)
- Remove PacStatusNotOkError (-326)
- Remove SslWeakServerEphemeralDhKeyError (-129)
- Remove BlockedByXssAuditorError (-28)
- Change CertEndError (-216) error code to -218
- Rename
SpdyProtocolError
(-337) toHttp2ProtocolError
- Rename
IncompleteSpdyHeadersError (-347)
toIncompleteHttp2HeadersError
- Rename
SpdyServerRefusedStreamError
(-351) toHttp2ServerRefusedStreamError
- Rename
Spdy2PingFailedError
(-352) toHttp2PingFailedError
- Rename
SpdyInadequateTransportSecurityError
(-360) toHttp2InadequateTransportSecurityError
- Rename
SpdyFlowControlError
(-361) toHttp2FlowControlError
- Rename
SpdyFrameSizeError
(-362) toHttp2FrameSizeError
- Rename
SpdyCompressionError
(-363) toHttp2CompressionError
- Rename
SpdyRstStreamNoErrorReceivedError
(-372) toHttp2RstStreamNoErrorReceivedError
- Rename
SpdyPushedStreamNotAvailableError
(-373) toHttp2PushedStreamNotAvailableError
- Rename
SpdyClaimedPushedStreamResetByServerError
(-374) toHttp2ClaimedPushedStreamResetByServerError
- Rename
SpdyStreamClosedError
(-376) toHttp2StreamClosedError
- Rename
SpdyClientRefusedStreamError
(-377) toHttp2ClientRefusedStreamError
- Rename
SpdyPushedResponseDoesNotMatchError
(-378) toHttp2PushedResponseDoesNotMatchError
- Remove
OriginBoundCertGenerationTypeMismatchError
(-152)
- Update dev dependencies
- Remove
SpdySessionAlreadyExistsError
error type (-143)
- Remove
SslVersionInterferenceError
error type (-175)
- Add
SslKeyUsageIncompatibleError
error type (-181)
- Add
CacheOpenOrCreateFailureError
error type (-413)
- Rename
HttpsProxyTunnelResponseError
(-140) toHttpsProxyTunnelResponseRedirectError
- Add
CacheDoomFailureError
error type
- Retro-update change log
- Drop support for node.js < 8.0.0
- Fix ES build not being includes in the npm package
- Update
BlockedByResponseError
error description - Upgrade dev dependencies
- Add
Tls13DowngradeDetectedError
error type - Fix detecting errors with numbers in the name
- Update
WrongVersionOnEarlyDataError
error description
- Add
EarlyDataRejectedError
error type - Add
WrongVersionOnEarlyDataError
error type
- Add
InvalidSignedExchangeError
error type - Update dev dependencies
- Add
SpdyPushedResponseDoesNotMatchError
error type
- Add
SpdyStreamClosedError
andSpdyClientRefusedStreamError
error types
- Fix examples in Readme
- Add more examples in Readme
- Change error code of
SslClientAuthNoCommonAlgorithmsError
from -1478 to -177
-
Add
description
property to errors that contains the unmodified error name and corresponds to theerrorDescription
returned by Electron.const err = new chromiumNetErrors.NameNotResolvedError(); console.log(err.description); // "NAME_NOT_RESOLVED"
-
Add
getErrorByDescription(description)
that returns the error class that corresponds to the description in the same way thatgetErrorByCode(code)
an error class by its error code.const Err = chromiumNetErrors.getErrorByDescription('NAME_NOT_RESOLVED'); const err = new Err(); console.log(err.code); // -105
-
Add a generated list of all error classes to the README.
- Add
TooManyRetriesError
(code -375)
- Fix Electron example in docs
- Fixed error stacks
- Switch to ES6 class syntax
- Bundled code in a single file (no longer requires reading
errors.json
) - Provide an ES6 build with
import
export
for bundlers like Rollup - Switch test suite from mocha to ava
- 100% test coverage
- Code quality monitoring
- Daily integration tests to check for updates in net_error_list.h
-
errors.json
is no longer part of the package. To get a list of all errors usegetErrors()
instead. -
createByCode()
has been removed. UsegetErrorByCode()
instead and instanciate it yourself.// Old way throw chromiumNetErrors.createByCode(-1); // New way throw new chromiumNetErrors.getErrorByCode(-1);