Skip to content

Conversation

@Hworden
Copy link
Contributor

@Hworden Hworden commented Aug 23, 2024

Changes

This moves the events package from a devDependency to a dependency. This ensures that when a consumer is installing the package that the events package will be installed. The events package makes available the EventsEmitter class which is typically available in node environments (not browser). It's used here in this repo.

This is the cause of the issue referenced here
#2546

Below is an image of the vite warning output explaining the same and below is the identical error referenced in the issue.
image

References

Aims to fix this #2546. By stepping through the debugger you can see that the referenced symbol is the missing EventsEmitter class.

Testing

  • This change adds unit test coverage
  • This change adds integration test coverage
  • This change has been tested on the latest version of the platform/language

Checklist

@xinghengwang
Copy link

Why is this fix not accepted?

@Hworden
Copy link
Contributor Author

Hworden commented Jun 26, 2025

No idea

@ankita10119
Copy link
Contributor

Hi @Hworden

Apologies for the long silence on this PR — it looks like this one slipped through the cracks. I’ve just started reviewing it as part of our current maintenance effort on the Lock repo.

Thanks for your contribution and for addressing the issue. I’ll take a closer look and follow up shortly.
In the meantime, could you please resolve the merge conflicts so we can proceed with the review?

@codecov
Copy link

codecov bot commented Jul 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 42.54%. Comparing base (e89a37d) to head (3464b7a).
Report is 17 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2578   +/-   ##
=======================================
  Coverage   42.54%   42.54%           
=======================================
  Files         120      120           
  Lines        3145     3145           
  Branches      337      337           
=======================================
  Hits         1338     1338           
  Misses       1713     1713           
  Partials       94       94           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

ankita10119
ankita10119 previously approved these changes Jul 21, 2025
…sumer package installs, events is installed as well. The EventEmitter api is a node api and this package makes it for the browser.
@ankita10119
Copy link
Contributor

@Hworden
Just a quick note — I have verified the changes from my side, and it looks good to me.
I have also tested a React + Vite app, and I could reproduce the issue, and this change definitely fixes that issue.

Your explanation is also quite clear.

I have resolved the conflicts myself and committed directly to your branch to sign the commits, which was necessary for this PR to be merged. Since this PR has been open for a very long time, I felt it was better to move forward rather than delay it further.

@ankita10119 ankita10119 merged commit 26020e1 into auth0:master Jul 22, 2025
9 of 10 checks passed
@ankita10119 ankita10119 mentioned this pull request Sep 12, 2025
7 tasks
ankita10119 added a commit that referenced this pull request Sep 12, 2025
### Changed 

- Bump karma from 6.4.3 to 6.4.4
- Bump pbkdf2 from 3.1.2 to 3.1.3
- Bump validator from 13.15.0 to 13.15.15
- Bump sha.js from 2.4.11 to 2.4.12
- Bump cipher-base from 1.0.4 to 1.0.6
- Bump codecov/codecov-action from 5.4.3 to 5.5.1
- Bump puppeteer from 24.9.0 to 24.19.0
- Bump tmp from 0.2.3 to 0.2.5
- bump fsevents to latest(SEC- 2161)
- Bump eslint-plugin-react from 7.34.1 to 7.37.5
- Bump @grpc/grpc-js and @google-cloud/translate

### Fixed

- Fix: social connection names not showing displayName correctly
[\#2651](#2651)
([omarquazi-okta](https://github.com/omarquazi-okta))
- Update old Twitter icon and name to "X"
[\#2649](#2649)
([omarquazi-okta](https://github.com/omarquazi-okta))
- Fix issue 2546 - TypeError: Super expression must either be null or a
function [\#2578](#2578)
([Hworden](https://github.com/Hworden))
- Fix: Accessibility Issues #2624
[\#2642](#2642)
([ankita10119](https://github.com/ankita10119))
- fix: Rename shop strategy
[\#2641](#2641)
([omarquazi-okta](https://github.com/omarquazi-okta))
- Fix release pipeline cdn
[\#2628](#2628)
([developerkunal](https://github.com/developerkunal))
- Fix Release PIPELINE [\#2627](#2627)
([developerkunal](https://github.com/developerkunal))
- chore: update .gitignore and Makefile for Puppeteer cache and config
directories [\#2626](#2626)
([developerkunal](https://github.com/developerkunal))
- Fix Makefile for Puppeteer cache support
[\#2625](#2625)
([developerkunal](https://github.com/developerkunal))


### Removed


- chore(ci): Remove Semgrep GHA Workflow
[\#2650](#2650)
([eduardoboronat-okta](https://github.com/eduardoboronat-okta))

### Security

- security: Remove vulnerable node-es-module-loader dependency
(SEC-2160) [\#2629](#2629)
([harekrishnarai](https://github.com/harekrishnarai))



### Testing

<!--
Please describe how this can be tested by reviewers. Be specific about
anything not tested and reasons why. If this library has unit and/or
integration testing, tests should be added for new functionality and
existing tests should complete without errors.
-->

* [ ] This change adds unit test coverage
* [ ] This change adds integration test coverage
* [ ] This change has been tested on the latest version of the
platform/language

### Checklist

* [x] I have read the [Auth0 general contribution
guidelines](https://github.com/auth0/open-source-template/blob/master/GENERAL-CONTRIBUTING.md)
* [x] I have read the [Auth0 Code of
Conduct](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md)
* [x] All code quality tools/guidelines have been run/followed
* [x] All relevant assets have been compiled
@ankita10119 ankita10119 mentioned this pull request Sep 12, 2025
7 tasks
ankita10119 added a commit that referenced this pull request Sep 12, 2025
### Changed 

- Bump karma from 6.4.3 to 6.4.4
- Bump pbkdf2 from 3.1.2 to 3.1.3
- Bump validator from 13.15.0 to 13.15.15
- Bump sha.js from 2.4.11 to 2.4.12
- Bump cipher-base from 1.0.4 to 1.0.6
- Bump codecov/codecov-action from 5.4.3 to 5.5.1
- Bump puppeteer from 24.9.0 to 24.19.0
- Bump tmp from 0.2.3 to 0.2.5
- bump fsevents to latest(SEC- 2161)
- Bump eslint-plugin-react from 7.34.1 to 7.37.5
- Bump @grpc/grpc-js and @google-cloud/translate

### Fixed

- Fix: social connection names not showing displayName correctly
[\#2651](#2651)
([omarquazi-okta](https://github.com/omarquazi-okta))
- Update old Twitter icon and name to "X"
[\#2649](#2649)
([omarquazi-okta](https://github.com/omarquazi-okta))
- Fix issue 2546 - TypeError: Super expression must either be null or a
function [\#2578](#2578)
([Hworden](https://github.com/Hworden))
- Fix: Accessibility Issues #2624
[\#2642](#2642)
([ankita10119](https://github.com/ankita10119))
- fix: Rename shop strategy
[\#2641](#2641)
([omarquazi-okta](https://github.com/omarquazi-okta))
- Fix release pipeline cdn
[\#2628](#2628)
([developerkunal](https://github.com/developerkunal))
- Fix Release PIPELINE [\#2627](#2627)
([developerkunal](https://github.com/developerkunal))
- chore: update .gitignore and Makefile for Puppeteer cache and config
directories [\#2626](#2626)
([developerkunal](https://github.com/developerkunal))
- Fix Makefile for Puppeteer cache support
[\#2625](#2625)
([developerkunal](https://github.com/developerkunal))


### Removed


- chore(ci): Remove Semgrep GHA Workflow
[\#2650](#2650)
([eduardoboronat-okta](https://github.com/eduardoboronat-okta))

### Security

- security: Remove vulnerable node-es-module-loader dependency
(SEC-2160) [\#2629](#2629)
([harekrishnarai](https://github.com/harekrishnarai))



### Testing

<!--
Please describe how this can be tested by reviewers. Be specific about
anything not tested and reasons why. If this library has unit and/or
integration testing, tests should be added for new functionality and
existing tests should complete without errors.
-->

* [ ] This change adds unit test coverage
* [ ] This change adds integration test coverage
* [ ] This change has been tested on the latest version of the
platform/language

### Checklist

* [x] I have read the [Auth0 general contribution
guidelines](https://github.com/auth0/open-source-template/blob/master/GENERAL-CONTRIBUTING.md)
* [x] I have read the [Auth0 Code of
Conduct](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md)
* [x] All code quality tools/guidelines have been run/followed
* [x] All relevant assets have been compiled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants