Skip to content

Commit 5fbeff2

Browse files
authored
refactor: replaced Got HTTP client with native fetch (#34)
1 parent 6082cee commit 5fbeff2

File tree

6 files changed

+345
-255
lines changed

6 files changed

+345
-255
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,9 @@ Out-of-order Loki errors can occur due to the asynchronous nature of Pino. The f
195195
## Dropped logs
196196
If any network issues occur, the logs can be dropped. The recommendation is therefore to implement a failover solution, this will vary greatly from system to system.
197197

198+
## Node v18+ Required
199+
As the pino-loki library uses the native Node fetch, any consumer must be using a version of Node greater than v18.0.0.
200+
198201
## Developing
199202

200203
### Requirements

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
},
6060
"dependencies": {
6161
"commander": "^12.0.0",
62-
"got": "^11.8.6",
6362
"pino-abstract-transport": "^1.2.0",
6463
"pump": "^3.0.0"
6564
},
@@ -74,7 +73,7 @@
7473
"c8": "^9.1.0",
7574
"dotenv": "^16.4.5",
7675
"eslint": "^8.57.0",
77-
"nock": "^13.5.4",
76+
"msw": "^2.4.9",
7877
"pino": "^9.0.0",
7978
"pino-pretty": "^11.0.0",
8079
"prettier": "^3.2.5",

0 commit comments

Comments
 (0)