junosuarez / objectid

node module: generate and validate mongodb objectId strings without dependencies
MIT License
22 stars 9 forks source link

Update bson dependency #1

Open ForbesLindesay opened 10 years ago

ForbesLindesay commented 10 years ago

If you update the bson dependency, this should work in the browser with browserify.

It should also be possible to remove the dependency on mongodb (just leaving the devDependency) as it looks like mongodb is only used by the tests.

see https://github.com/ForbesLindesay/browserify-middleware/issues/54

junosuarez commented 10 years ago

Thanks! do you know or can you link to the version of bson which is browserify compliant? We added the full bson dependency back in because things were breaking on the mongo side with the bizarre way that the official mongodb driver was handling binary serialization. If you're just wanting to generate objectids in the browser, I suggest locking your dependency to 1.1.0.

ForbesLindesay commented 9 years ago

V0.2.5 or greater (It was added in this commit: https://github.com/mongodb/js-bson/commit/21b4da90de05268370e1771e382a31e458be7bee and released in https://github.com/mongodb/js-bson/releases/tag/V0.2.5). Ideally just use the latest though (v0.2.9).

cc @daslicht