@bablr/btree 0.4.3 → 0.4.4

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.
@@ -297,6 +297,15 @@ export const buildModule = (NODE_SIZE = defaultNodeSize, buildStats) => {
297
297
  values.splice(targetSibling === prevSibling ? values.length : 0, 0, donated);
298
298
 
299
299
  returnValue = setValues(returnValue, values);
300
+ } else if (
301
+ getValues(prevSibling).length + values.length + getValues(nextSibling).length <=
302
+ NODE_SIZE
303
+ ) {
304
+ returnValue = treeFromValues([
305
+ ...getValues(prevSibling),
306
+ ...values,
307
+ ...getValues(nextSibling),
308
+ ]);
300
309
  }
301
310
  }
302
311
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bablr/btree",
3
3
  "description": "Functional utilities for working with btrees such as those used in agAST",
4
- "version": "0.4.3",
4
+ "version": "0.4.4",
5
5
  "author": "Conrad Buck<conartist6@gmail.com>",
6
6
  "type": "module",
7
7
  "files": [