@oscarpalmer/atoms 0.77.1 → 0.77.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.
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const number = require("../number.cjs");
4
4
  function chunk(array, size) {
5
- const chunkSize = number.clamp(size ?? 64e3, 1, 64e3);
5
+ const chunkSize = number.clamp(size ?? 5e3, 1, 5e3);
6
6
  const { length } = array;
7
7
  if (length <= chunkSize) {
8
8
  return [array];
@@ -1,6 +1,6 @@
1
1
  import { clamp } from "../number.js";
2
2
  function chunk(array, size) {
3
- const chunkSize = clamp(size ?? 64e3, 1, 64e3);
3
+ const chunkSize = clamp(size ?? 5e3, 1, 5e3);
4
4
  const { length } = array;
5
5
  if (length <= chunkSize) {
6
6
  return [array];
package/package.json CHANGED
@@ -237,5 +237,5 @@
237
237
  },
238
238
  "type": "module",
239
239
  "types": "./types/index.d.cts",
240
- "version": "0.77.1"
240
+ "version": "0.77.2"
241
241
  }
@@ -4,7 +4,7 @@ import {clamp} from '~/number';
4
4
  * Chunk an array _(into smaller arrays of a specified size)_
5
5
  */
6
6
  export function chunk<Item>(array: Item[], size?: number): Item[][] {
7
- const chunkSize = clamp(size ?? 64_000, 1, 64_000);
7
+ const chunkSize = clamp(size ?? 5_000, 1, 5_000);
8
8
  const {length} = array;
9
9
 
10
10
  if (length <= chunkSize) {