gulpjs / glob-stream

Readable streamx interface over anymatch.
MIT License
178 stars 51 forks source link

Evaluate glob 6.x #57

Closed phated closed 8 years ago

phated commented 8 years ago

Need to look through the breaking changes, see if they affect our usage and if we need to bump major.

erikkemperman commented 8 years ago

Turns out I've basically been evaluating glob 7.0.6, having npm linked it in my glob-stream, and transitively in my vinyl-fs and vinyl-prepare projects.

For what it's worth, all tests pass in glob-stream (master) and vinyl-fs (master) and with the vinyl-fs / vinyl-prepare split as well.

Haven't seen explicit release notes, but from the README I guess the most significant change is negated patterns with !, support for which was deprecated in glob 5 and removed in 6, favouring the ignore option to do the same.

If that is the extent of potential annoyance of upgrading glob, is it already too much?

phated commented 8 years ago

I'm working on a branch that switches to the ignore option and upgrades to 7.x - This will land in the next major. Thanks for following up though.

erikkemperman commented 8 years ago

Excellent!

I've hatched an evil scheme that might allow glob-stream to be leveraged even when implementing e.g. a virtual or remote filesystem adapter.

I think that'd be nice because otherwise custom adapters would have to do their own globbing, or just not support glob patterns, period.

A PR is pending on node-glob, here. I think it's pretty solid... But I haven't heard back and it might not amount to anything.

If it were accepted, though, it'd help if the glob-stream dependency were easily made up to date!

phated commented 8 years ago

Interesting. I still don't think vinyl-prepare should deal with globbing, reading, etc but let's see where the node-glob PR goes.

erikkemperman commented 8 years ago

It wouldn't matter much if the call to glob-stream is in vinyl-prepare or vinyl-fs, it seems to me -- the point is that peers of vinyl-fs could use glob-stream (if they wanted to) and easily support asterisk patterns and so on in a way that is automatically analogous to vinyl-fs.