formio / formio.js

JavaScript powered Forms with JSON Form Builder
https://formio.github.io/formio.js
MIT License
1.88k stars 1.06k forks source link

FIO-7733: export eventemitter #5507

Closed brendanbond closed 5 months ago

brendanbond commented 8 months ago

Link to Jira Ticket

https://formio.atlassian.net/browse/FIO-7733

Description

Our @formio/react library makes use of an EventEmitter class from eventemitter2 that exposes an onAny method. Newer versions of the @formio/js renderer extend a similar class from eventemitter3, so this PR just consolidates our usage of the EventEmitter to the one extended in @formio/js (in effect making it the "source of truth" EventEmitter), which should serve to make the overall interface a little bit cleaner and reduce the dependency load in @formio/react.

Dependencies

n/a

How has this PR been tested?

n/a

Checklist: