Migrating from sequential-promise
chunk-process is the renamed successor of @hideokamoto/sequential-promise. Versioning restarted at v0.1.0 (the old package was at v2.0.0). Function signatures and behavior are unchanged.
Replace the package
Section titled “Replace the package”npm uninstall @hideokamoto/sequential-promisenpm install chunk-processUpdate imports
Section titled “Update imports”// Beforeimport batchProcess from '@hideokamoto/sequential-promise'import { batchProcess, arrayBatch } from '@hideokamoto/sequential-promise'
// Afterimport batchProcess from 'chunk-process'import { batchProcess, arrayBatch } from 'chunk-process'Replace arrayChunk
Section titled “Replace arrayChunk”arrayChunk is deprecated and will be removed in the next major version. Use arrayBatch instead:
// Beforeimport { arrayChunk } from '@hideokamoto/sequential-promise'const batches = arrayChunk(items, 3)
// Afterimport { arrayBatch } from 'chunk-process'const batches = arrayBatch(items, 3)