Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/maticjs-retry-transient-fetch.md

This file was deleted.

6 changes: 6 additions & 0 deletions packages/maticjs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @maticnetwork/maticjs

## 3.9.13

### Patch Changes

- [#481](https://github.com/0xPolygon/matic.js/pull/481) [`9dc06a2`](https://github.com/0xPolygon/matic.js/commit/9dc06a2399c6e1d9b85a0d426aafb764ff8a6960) Thanks [@MaximusHaximus](https://github.com/MaximusHaximus)! - Retry transient network failures when fetching network/ABI metadata. The config-store fetch (`ABIManager.init` → `HttpRequest`) now retries connection-level errors with exponential backoff, fixing intermittent `Premature close` / `ECONNRESET` failures from stale keep-alive sockets (Node 19+ keeps HTTP connections alive by default) that previously surfaced as a misleading "network mainnet - v1 is not supported". The retry/backoff and transient-error classification are extracted into a shared `retryTransient` helper now used by both the metadata fetch and the receipt-proof RPC reads (replacing the bespoke inline retry in `getReceiptProof`); the shared classifier also recognises node-fetch's `Premature close`, which the old inline predicate missed.

## 3.9.12

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/maticjs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@maticnetwork/maticjs",
"version": "3.9.12",
"version": "3.9.13",
"description": "Javascript developer library for interacting with Matic Network",
"main": "dist/npm.export.js",
"types": "dist/ts/index.d.ts",
Expand Down