question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update version of events bundled

See original GitHub issue

Browserify currently uses events@^2.0.0, but events has an updated version 3.0.0 to support the introduction of the off() method introduced in Node v10. Is there a way to override the version of events that browserify uses for bundling? I also think browserify should bump the version used on package.json, but note that events@3.0.0 no longer supports ES5 shims out of the box.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
goto-bus-stopcommented, Apr 26, 2019

If you install events@3 with npm you can do

browserify -r events/:events

The events/ bit forces browserify to use your locally installed version, and :events aliases it to “events”, replacing it throughout the bundle.

Node.js treated .off as a major version bump, so I did the same for events.

There is a PR to update our dependency at https://github.com/browserify/browserify/pull/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

0reactions
patrickrobertscommented, Apr 29, 2019

I did switch to rollup, but I actually encountered the same issue there with the version of events that rollup-plugin-node-builtins uses, so I ended up reverting off() to removeListener() anyway. I’m glad to see at least this issue was not simply some stupidity on my part.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to update a VamTam Theme and the bundled plugins?
Please go to updates in your main WP navigation menu and see the new theme version. Update. See the screenshot below:.
Read more >
How to hook bundle create/read/update/delete events?
So here's the best I can find so far. It's not great. Create: There's hook_field_attach_create_bundle , but it doesn't automatically get ...
Read more >
Event Marketing Bundle | The Events Calendar
Includes Events Calendar Pro, Event Tickets Plus, and Promoter. 1 Site. $229 Save $58. Includes updates & support for one year.
Read more >
Upgrading MEC Bundled - Support - Themeco Forum
I need a solution to upgrade the bundled version of MEC. Can someone please guide me on what to do. Thank you.
Read more >
Virtual Events Bundle - EventON
Power-up your virtual events to next level with all the necessary addons in one bundle. $355 $248.5 ... UPDATE: RSVP version 2.8.1 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found