8 Commits

Author SHA1 Message Date
Cangit
bd2fb33597
chore: use node: imports (#2003)
* chore: use node: imports

* missing esm style import
2024-07-12 06:48:44 -04:00
Daniele Bacarella
8a20d79e67
Adding support for mix&match pipelines (#1954)
* added tests

* Added test

* Implemented support for named 'pipelines' property in pino.transport

* Updated pino.d.ts and api.md to include pipeline within targets

* - Reverted changes related to the support of named pipelines
- Implemented support for mixed target&pipeline definitions  within `targets` in `transport.js`
- Merged logic from both `worker.js` and `worker-pipeline.js` into `worker.js`
- Fixed `pipeline.test.js`
- Fixed docs to reflect changes above

TODO:
 - Remove `worker-pipeline.js`
 - Fix `transport.js` to use only `worker.js`
 - Fix related docs
 - Fix UTs

* - Removed `worker-pipeline.js`
- Updated docs to remove mentions of `worker-pipeline.js`
- Fixed failing UTs
- Fixed `transport.js` to use only `worker.js` also when `pipeline` is defined
- Fixed `worker.js` to work properly when only `pipeline` is defined

* added a simple flow schema to worker.js

* added a simple flow schema to worker.js

* Added a special case in worker.js to skip the multistream instance when a single target or pipeline is defined

* - Added optional 'level' property to TransportPipelineOptions interface
- A level can now be defined for pipelines defined inside 'targets'
- Added UT in 'pipeline.test.js' to check expected behaviour with 'dedupe'
2024-05-13 13:02:57 +02:00
Albert Kaaman
5dd282cfe7
feat: add dedupe option to transport (#1640)
* feat: add dedupe option to transport

* docs: add transport dedupe info
2023-02-09 09:12:27 -05:00
Andrés Correa Casablanca
59a1f2742d
Ensure first-class support for transpiled & ts code in transports (#1381) 2022-04-19 01:02:10 +02:00
Christian Savard
03bb312e96
Add option to pass custom levels down to multistream() from transport (#1398)
* add option to pass down custom levels to multistream

* fix types

* update docs

* add test for types

* combine custom with default levels when useOnlyCustomLevels is not set

* add tranport test
2022-04-08 23:35:33 +02:00
Shogun
4e08b370cd
feat: Support bundlers. (#1209)
* feat: Support bundlers.

* test: Added bundlers support tests.

* docs: Added bundling docs.
2021-11-10 11:28:36 +01:00
Manuel Spigolon
f462efabd2
Package manager CI action (#1113) 2021-09-07 19:31:19 +02:00
Matteo Collina
849f65aab4
pino.transport() (#1003) 2021-07-03 15:48:18 +02:00