Skip to content
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

fix: remove node global #587

Merged
merged 7 commits into from
Apr 24, 2020
Merged

fix: remove node global #587

merged 7 commits into from
Apr 24, 2020

Conversation

hugomrdias
Copy link
Member

@hugomrdias hugomrdias commented Mar 16, 2020

  • adds buffer require
  • adds globalThis where needed
  • streaming-iterables was remove and new utils created, this will be consolidated in ipfs-utils and backported here to normalize all these iterator helper functions
  • latency-monitor was copied inside the repo
  • iso-random-stream is now used instead of node crypto
  • the test should ignore self on discovery was moved to node only

Size: 172.97KB
47.03KB below the 220KB limit.

aegir build --node false and aegir test -t browser --node false now work 🎉

related to this ipfs/js-ipfs#2924

@hugomrdias hugomrdias requested a review from jacobheun March 16, 2020 18:35
@hugomrdias hugomrdias changed the title fix: remove node global WIP fix: remove node global Mar 16, 2020
@hugomrdias hugomrdias changed the title WIP fix: remove node global fix: remove node global Mar 24, 2020
@@ -0,0 +1,242 @@
'use strict'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The latency monitor was pulled from the npm package right? Can we get attribution added, I'm not seeing it anywhere.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks better now ?

src/utils.js Outdated Show resolved Hide resolved
src/pnet/key-generator.js Outdated Show resolved Hide resolved
- adds buffer require
- adds globalThis where needed
- streaming-iterables was remove and new utils created, this will be consolidated in `ipfs-utils` and backported here to normalize all these iterator helper functions
- latency-monitor was copied inside the repo
- iso-random-stream is now used instead of node crypto
- the test `should ignore self on discovery` was moved to node only

Size: 172.97KB
47.03KB below the 220KB limit.

`aegir build --node false` and `aegir test -t browser --node false` now work 🎉
@hugomrdias hugomrdias marked this pull request as draft April 20, 2020 19:23
@hugomrdias hugomrdias force-pushed the fix/remove-node-globals branch from 5e38009 to 3422f64 Compare April 20, 2020 19:24
@hugomrdias hugomrdias requested a review from jacobheun April 20, 2020 19:25
@hugomrdias hugomrdias marked this pull request as ready for review April 21, 2020 11:54
Copy link
Contributor

@jacobheun jacobheun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jacobheun jacobheun merged commit 9b13fe3 into master Apr 24, 2020
@jacobheun jacobheun deleted the fix/remove-node-globals branch April 24, 2020 15:10
@jacobheun
Copy link
Contributor

Released in v0.27.7

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.

2 participants