Skip to content

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.

Terminal window
npm uninstall @hideokamoto/sequential-promise
npm install chunk-process
// Before
import batchProcess from '@hideokamoto/sequential-promise'
import { batchProcess, arrayBatch } from '@hideokamoto/sequential-promise'
// After
import batchProcess from 'chunk-process'
import { batchProcess, arrayBatch } from 'chunk-process'

arrayChunk is deprecated and will be removed in the next major version. Use arrayBatch instead:

// Before
import { arrayChunk } from '@hideokamoto/sequential-promise'
const batches = arrayChunk(items, 3)
// After
import { arrayBatch } from 'chunk-process'
const batches = arrayBatch(items, 3)