[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: node-glob





Le mar. 28 oct. 2025 à 23:23, Bastien Roucaries <rouca@debian.org> a écrit :
Hi,

I have improved https://salsa.debian.org/js-team/node-glob

But I am not happy with result
https://salsa.debian.org/js-team/node-glob/-/pipelines/964670

Do you have ideas how to fix ?

The glob API has changed a lot - the major version bumps reflect the reality.
- update packages to versions that support glob >= 10
- sometimes it's not going to be easy and a patch is easier (e.g. node-glob-stream ? not even sure, as glob.stream() exists now, but upstream node-glob-stream rejects this and made their own version of it).

Example:
const glob = promisify(require('glob'))
becomes
const { glob } = require('glob')
because the API switched to Promises, so promisify makes no sense now.
Which is good in general, but bad for a smooth transition of glob.


Reply to: