diff --git a/CHANGELOG.md b/CHANGELOG.md index 8659e7c..bfd2a20 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## Unreleased +### Fixed +- Explicitly import `buffer` [#34](https://github.com/seald/nedb/pull/34). + ## [4.0.3] - 2023-12-13 ### Fixed - Fixed EPERM Exception when datastore is at the root of a disk on Windows [#48](https://github.com/seald/nedb/issues/48) diff --git a/lib/byline.js b/lib/byline.js index b3f8821..c366751 100644 --- a/lib/byline.js +++ b/lib/byline.js @@ -25,7 +25,7 @@ */ const stream = require('stream') const timers = require('timers') -const Buffer = require('buffer').Buffer; +const { Buffer } = require('buffer') const createLineStream = (readStream, options) => { if (!readStream) throw new Error('expected readStream')