@naturalcycles/nodejs-lib
Advanced tools
Comparing version 13.20.0 to 13.21.0
@@ -16,2 +16,3 @@ "use strict"; | ||
readableObjectMode: false, | ||
readableHighWaterMark: 64 * 1024, | ||
transform(chunk, _, cb) { | ||
@@ -18,0 +19,0 @@ try { |
@@ -24,2 +24,5 @@ "use strict"; | ||
readableObjectMode: true, | ||
// highWatermark increased, because it's proven to be faster: https://github.com/nodejs/node/pull/52037 | ||
// todo: it'll be default in Node 22, then we can remove this | ||
writableHighWaterMark: 64 * 1024, | ||
transform(chunk, _, cb) { | ||
@@ -26,0 +29,0 @@ try { |
@@ -14,2 +14,3 @@ "use strict"; | ||
readableObjectMode: false, | ||
readableHighWaterMark: 64 * 1024, | ||
transform(chunk, _, cb) { | ||
@@ -16,0 +17,0 @@ try { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.transformSplit = void 0; | ||
// https://github.com/max-mapper/binary-split | ||
// todo: test its newer version that doesn't have `through2` dependency | ||
// todo: test writableHighWaterMark of 64k | ||
const _binarySplit = require('binary-split'); | ||
@@ -5,0 +8,0 @@ /** |
{ | ||
"name": "@naturalcycles/nodejs-lib", | ||
"version": "13.20.0", | ||
"version": "13.21.0", | ||
"scripts": { | ||
@@ -5,0 +5,0 @@ "prepare": "husky", |
@@ -33,2 +33,3 @@ import { Transform } from 'node:stream' | ||
readableObjectMode: false, | ||
readableHighWaterMark: 64 * 1024, | ||
transform(chunk: IN, _, cb) { | ||
@@ -35,0 +36,0 @@ try { |
@@ -38,2 +38,5 @@ import { Transform } from 'node:stream' | ||
readableObjectMode: true, | ||
// highWatermark increased, because it's proven to be faster: https://github.com/nodejs/node/pull/52037 | ||
// todo: it'll be default in Node 22, then we can remove this | ||
writableHighWaterMark: 64 * 1024, | ||
transform(chunk: string, _, cb) { | ||
@@ -40,0 +43,0 @@ try { |
@@ -37,2 +37,3 @@ import { Transform } from 'node:stream' | ||
readableObjectMode: false, | ||
readableHighWaterMark: 64 * 1024, | ||
transform(chunk: IN, _, cb) { | ||
@@ -39,0 +40,0 @@ try { |
import { TransformTyped } from '../stream.model' | ||
// https://github.com/max-mapper/binary-split | ||
// todo: test its newer version that doesn't have `through2` dependency | ||
// todo: test writableHighWaterMark of 64k | ||
const _binarySplit = require('binary-split') | ||
@@ -4,0 +7,0 @@ |
469045
13304