New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update version of events bundled #1907
Comments
I’m confused why adding off was semver major. |
@ljharb because that was not the only change. As I pointed out, they removed support for ES5 shims, which is a breaking change. |
Then i think off should be backported to events v2, so that browserify doesn’t need to update to v3 and drop support. |
Meanwhile, my secondary question is how can I run browserify and override the version of |
If it’s a dep of browserify, then npm doesn’t provide that feature, so I’m not sure how :-/ |
I'll open an issue on events then. Thanks for the quick responses |
If you install events@3 with npm you can do
The Node.js treated There is a PR to update our dependency at #1839 that i've been meaning to batch with different changes, so we don't churn through browserify major versions too much. I haven't gotten around to those for a long time though so we should just go ahead with v17 soon with the PRs that are already there |
@goto-bus-stop sorry, I just saw this comment after posting the issue on browserify. Thank you! I'm just trying to fix typed-scheduler because when I published, I didn't realize the |
node was being overly conservative because of the likelihood of people polyfilling and inheriting from it; it needn’t be major imo. |
@goto-bus-stop sorry to bug you again but I couldn't get that command line flag working with the other options I had. I currently have this: rm -f dst/*
browserify --debug \
--entry src/scheduler.ts \
--plugin [tsify --project .] \
--standalone Scheduler | exorcist \
dst/scheduler.js.map > dst/scheduler.js
uglifyjs dst/scheduler.js \
--output dst/scheduler.min.js --compress --mangle --source-map \
"base='dst',content='dst/scheduler.js.map',url='scheduler.min.js.map'" which produces what I want, but with the wrong rm -f dst/*
browserify --debug \
--entry src/scheduler.ts \
--plugin [tsify --project .] \
--require events/:events \
--standalone Scheduler | exorcist \
dst/scheduler.js.map > dst/scheduler.js
uglifyjs dst/scheduler.js \
--output dst/scheduler.min.js --compress --mangle --source-map \
"base='dst',content='dst/scheduler.js.map',url='scheduler.min.js.map'" Am I using incompatible options or something? |
Ahh I see, I think there is an old bug with combined use of I see you've switched the repo to use Rollup now, that is a better fit anyway—the |
I did switch to rollup, but I actually encountered the same issue there with the version of |
Browserify currently uses
events@^2.0.0
, butevents
has an updated version3.0.0
to support the introduction of theoff()
method introduced in Node v10. Is there a way to override the version ofevents
that browserify uses for bundling? I also think browserify should bump the version used onpackage.json
, but note thatevents@3.0.0
no longer supports ES5 shims out of the box.The text was updated successfully, but these errors were encountered: