-
Notifications
You must be signed in to change notification settings - Fork 385
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
BSON Decoding of Binary Objects #185
Conversation
Also, do you need to check in the updated built files? I didn't and I'm trying to tell if that's why the tests are failing. |
You don't need to rebuild in on a PR. The tests seem to be failing because it can't load |
That was easier than I originally thought. I was trying to find the correct dependency to ensure Blob was defined. I think I did it correctly this time. Javascript is a weird language. The original question about the file size remains. |
Is this pulling in all of bson into the build file? Can we make it a shim like https://github.com/RobotWebTools/roslibjs/tree/develop/src/util/shim |
Ok, I've gotten it to the point where it works and builds. It will work correctly if you include the [https://raw.githubusercontent.com/mongodb/js-bson/master/browser_build/bson.js](bson header) and print an error message if you try to decode a bson message without the header. However, I don't think this is the right way to do it. I tried to make a shim, but had problems getting it to build with grunt AND work in the browser. |
Since it is an optional feature we can make it optional like |
BSON Decoding of Binary Objects
Are we not going to move this to an extension adapter, so the user could include if desired, to avoid the file size increase
|
roslibjs component of RobotWebTools/rosbridge_suite#169
Pairs with RobotWebTools/rosbridge_suite#190
Current problem: BSON is a huge dependency.
Original file sizes
New File Sizes with this PR
Is that a problem? Is there a better way?