Skip to content

Commit

Permalink
Publish package v3.5.4
Browse files Browse the repository at this point in the history
Update version number and CHANGELOG.md.
  • Loading branch information
unflxw committed Nov 22, 2024
1 parent 6df38ca commit 337eed9
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 51 deletions.
50 changes: 0 additions & 50 deletions .changesets/allow-pino-transport-to-be-used-as-a-transport.md

This file was deleted.

54 changes: 54 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,59 @@
# AppSignal for Node.js Changelog

## 3.5.4

_Published on 2024-11-22._

### Fixed

- Allow Pino transport to be used as a transport. Before, our Pino transport could only be used as a destination:

```js
import pino from "pino";
import { Appsignal, AppsignalPinoTransport } from "@appsignal/nodejs";

pino(AppsignalPinoTransport({
client: Appsignal.client,
group: "pino"
}));
```

This meant it was not possible to log both to our transport and to another destination.

Now, it is also possible to use it as a Pino transport, with the `transport` Pino config option or the `pino.transport()` function:

```js
import pino from "pino";

pino({
transport: {
target: "@appsignal/nodejs/pino",
options: {
group: "pino"
}
}
});
```

It is no longer necessary to pass the AppSignal client to the Pino transport. AppSignal must be active for the Pino transport to work.

By enabling its use as a transport, it is now possible to use it alongside other transports:

```js
pino({
transport: {
targets: [
// Send logs to AppSignal...
{ target: "@appsignal/nodejs/pino" },
// ... and to standard output!
{ target: "pino/file" }
]
}
});
```

(patch [11b789d](https://github.com/appsignal/appsignal-nodejs/commit/11b789d924788abf97460727da18ab75c611b361))

## 3.5.3

_Published on 2024-11-07._
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@appsignal/nodejs",
"version": "3.5.3",
"version": "3.5.4",
"main": "dist/index",
"types": "dist/index",
"license": "MIT",
Expand Down

0 comments on commit 337eed9

Please sign in to comment.