Skip to content

Conversation

calvinmetcalf
Copy link
Collaborator

apparently this library is popular with react-native which offers require but doesn't provide any of the built in node.js things

package.json Outdated
},
"main": "./assert.js",
"dependencies": {
"buffer": "^4.6.0",
Copy link
Contributor

@defunctzombie defunctzombie May 20, 2016

Choose a reason for hiding this comment

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

Please don't do dependencies like this. Dependencies should be specified exactly.

Also, this dependency bloats this module a lot. But maybe un-avoidable.

@calvinmetcalf
Copy link
Collaborator Author

ok removed the carrot

@calvinmetcalf
Copy link
Collaborator Author

ok can squash, merge and publish if it's ok with you @defunctzombie

@defunctzombie
Copy link
Contributor

👍 I would be cautious of how much overhead having buffer adds btw. If all this is used for is an "isBuffer" check then inlining that into the module is way better than having the whole module used for client side builds.

@calvinmetcalf
Copy link
Collaborator Author

hm good point

On Mon, May 23, 2016 at 12:25 PM Roman Shtylman notifications@github.com
wrote:

👍 I would be cautious of how much overhead having buffer adds btw. If
all this is used for is an "isBuffer" check then inlining that into the
module is way better than having the whole module used for client side
builds.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#22 (comment)

@calvinmetcalf
Copy link
Collaborator Author

ok I did it, but then also thought, hey I should put in some tests ... yeah so monstly passing except in certain browser envs

@calvinmetcalf
Copy link
Collaborator Author

ok looks like we now pass all the new tests, will merge in a bit if nobody objects

@calvinmetcalf
Copy link
Collaborator Author

(and obviously squash it)

@calvinmetcalf calvinmetcalf merged commit 45b19f6 into master May 31, 2016
@goto-bus-stop goto-bus-stop deleted the buffer-dep branch September 24, 2019 20:48
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