bfj 9.0.0 → 9.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.gitlab-ci.yml CHANGED
@@ -19,3 +19,7 @@ test:node18:
19
19
  test:node20:
20
20
  image: node:20
21
21
  <<: *npm_test
22
+
23
+ test:node22:
24
+ image: node:22
25
+ <<: *npm_test
package/HISTORY.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # History
2
2
 
3
+ ## 9.0.2
4
+
5
+ ### Bug fixes
6
+
7
+ * deps: fix bad lockfile (446370bc4547ce68c398fb1daf7d73fa3aa8349d)
8
+
9
+ ### Other changes
10
+
11
+ * tests: `new Buffer` => `Buffer.from` (6a6d08eb89ddcca2cec94bdd9f54b295172623c0)
12
+ * deps: upgrade `please-release-me` to `2.1.4` (ee3f56de430b3f9a18a590c5425b3f9ab88cf9cb)
13
+
14
+ ## 9.0.1
15
+
16
+ ### Other changes
17
+
18
+ * docs: remove some old information from the readme (8609361b2b2289d296ee695444bad9eb490b80d9)
19
+ * ci: run tests in node 22 (b150d9a2f538c8ef0d9fa393212994a3e33ff31e)
20
+
3
21
  ## 9.0.0
4
22
 
5
23
  ### Breaking changes
package/README.md CHANGED
@@ -25,7 +25,6 @@ Big-Friendly JSON. Asynchronous streaming functions for large JSON data sets.
25
25
  * [Options for serialisation functions](#options-for-serialisation-functions)
26
26
  * [Is it possible to pause parsing or serialisation from calling code?](#is-it-possible-to-pause-parsing-or-serialisation-from-calling-code)
27
27
  * [Can it handle newline-delimited JSON (NDJSON)?](#can-it-handle-newline-delimited-json-ndjson)
28
- * [Can I specify a different promise implementation?](#can-i-specify-a-different-promise-implementation)
29
28
  * [Is there a change log?](#is-there-a-change-log)
30
29
  * [How do I set up the dev environment?](#how-do-i-set-up-the-dev-environment)
31
30
  * [What versions of Node.js does it support?](#what-versions-of-nodejs-does-it-support)
@@ -681,11 +680,6 @@ of an object,
681
680
  meaning slower tick times but faster overall parsing time.
682
681
  The default value is `1024`.
683
682
 
684
- * `options.Promise`:
685
- Promise constructor that will be used
686
- for promises returned by all methods.
687
- Defaults to JS builtin `Promise`.
688
-
689
683
  * `options.ndjson`:
690
684
  If set to `true`,
691
685
  newline characters at the root level
@@ -799,11 +793,6 @@ of an object,
799
793
  meaning slower tick times but faster overall serialisation time.
800
794
  The default value is `1024`.
801
795
 
802
- * `options.Promise`:
803
- Promise constructor that will be used
804
- for promises returned by all methods.
805
- Defaults to JS builtin `Promise`.
806
-
807
796
  ## Is it possible to pause parsing or serialisation from calling code?
808
797
 
809
798
  Yes it is!
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bfj",
3
- "version": "9.0.0",
3
+ "version": "9.0.2",
4
4
  "description": "Big-friendly JSON. Asynchronous streaming functions for large JSON data sets.",
5
5
  "homepage": "https://gitlab.com/philbooth/bfj",
6
6
  "bugs": "https://gitlab.com/philbooth/bfj/issues",
@@ -39,7 +39,7 @@
39
39
  "chai": "^4.5.0",
40
40
  "eslint": "^8.57.1",
41
41
  "mocha": "^10.7.3",
42
- "please-release-me": "^2.1.4",
42
+ "please-release-me": "^2.1.6",
43
43
  "proxyquire": "^2.1.3",
44
44
  "spooks": "^2.0.0"
45
45
  },
@@ -1387,7 +1387,7 @@ suite('eventify:', () => {
1387
1387
  setup(done => {
1388
1388
  let resolve
1389
1389
 
1390
- const emitter = eventify(new Buffer('foo bar baz qux'))
1390
+ const emitter = eventify(Buffer.from('foo bar baz qux'))
1391
1391
 
1392
1392
  Object.entries(events).forEach(([ key, value ]) => {
1393
1393
  emitter.on(value, spooks.fn({
@@ -1457,7 +1457,7 @@ suite('eventify:', () => {
1457
1457
  setup(done => {
1458
1458
  let resolve
1459
1459
 
1460
- const emitter = eventify(new Buffer('foo bar baz qux'), { buffers: 'ignore' })
1460
+ const emitter = eventify(Buffer.from('foo bar baz qux'), { buffers: 'ignore' })
1461
1461
 
1462
1462
  Object.entries(events).forEach(([ key, value ]) => {
1463
1463
  emitter.on(value, spooks.fn({