Skip to content

Conversation

@Rapsssito
Copy link
Collaborator

@Rapsssito Rapsssito commented Jan 11, 2020

Dependencies reduction

  • Removed inherits by changing the UdpSocket class to the ES2015 syntax and extending EventEmitter, instead of using inherits for the inheritance.
  • Removed utils.

Test

Tested on one of my projects. Everything works correctly.

@Rapsssito
Copy link
Collaborator Author

@mvayngrib, sorry for the messy diff caused by the change to ES2015 syntax. Here is a more readable diff of UdpSocket.js: https://www.diffchecker.com/YFb79mzq. Hope it helps!

@mvayngrib
Copy link
Member

@Rapsssito I appreciate the effort, but tbh, i don't see a big benefit to this change. inherits is literally ~30 LOC: https://github.com/isaacs/inherits/blob/master/inherits_browser.js

Converting to modern JS is nice, I agree, but I prob won't have time in the short term to review such a big diff

@Rapsssito
Copy link
Collaborator Author

Rapsssito commented Jan 12, 2020

@mvayngrib, I really need this PR to be merged since I am working on a few other PRs that depend on it. Plus, having a dependency for a native JavaScript feature is just pointless and unprofessional.

I have attached screenshots from the diffs showed in VS Code, much more readable (most of it is just indentation corrections):
SCREEN1
screen2
screen3
screen4
screen5
screen6
screen7
screen8

@Rapsssito Rapsssito requested a review from mvayngrib January 17, 2020 16:32
@Rapsssito Rapsssito changed the title refactor: Dependency reduction & update refactor: Dependency reduction & JS update Feb 2, 2020
@Rapsssito Rapsssito changed the title refactor: Dependency reduction & JS update perf: Dependency reduction & JS update Feb 2, 2020
@Rapsssito Rapsssito merged commit aac2bfa into tradle:master May 5, 2020
@Rapsssito Rapsssito deleted the depen-reduction branch May 5, 2020 08:03
github-actions bot pushed a commit that referenced this pull request Aug 15, 2020
# [2.6.0](v2.5.0...v2.6.0) (2020-08-15)

### Bug Fixes

* **Android:** createSocket is now a blocking method ([#108](#108)) ([6796a7f](6796a7f))
* RN 62.0 compatibility ([#112](#112)) ([7d202de](7d202de))

### Features

* Add Typescript types and the option to enable debugging ([#114](#114)) ([11e6e49](11e6e49))

### Performance Improvements

* Dependency reduction & JS update ([#105](#105)) ([aac2bfa](aac2bfa))
github-actions bot pushed a commit that referenced this pull request Aug 15, 2020
# [3.2.0](v3.1.0...v3.2.0) (2020-08-15)

### Bug Fixes

* **Android:** createSocket is now a blocking method ([#108](#108)) ([6796a7f](6796a7f))

### Features

* Add Typescript types and the option to enable debugging ([#114](#114)) ([11e6e49](11e6e49))

### Performance Improvements

* Dependency reduction & JS update ([#105](#105)) ([aac2bfa](aac2bfa))
@github-actions
Copy link

🎉 This PR is included in version 3.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants