plasma-umass / doppio

Breaks the browser language barrier (includes a plugin-free JVM).
http://plasma-umass.github.io/doppio-demo
MIT License
2.17k stars 176 forks source link

Upgrade to BrowserFS v0.3.1 #274

Closed jvilk closed 10 years ago

jvilk commented 10 years ago

BrowserFS v0.3.1 brings with it zip file support, proper error codes, less overhead, and some compatibility-breaking changes. Actually, I think it brings with it the new Dropbox and HTML5FS file systems, too.

Namely, we no longer define BrowserFS.node.

With this upgrade, I plan to:

jvilk commented 10 years ago

It looks like I'm going to need to define RequireJS shim module files for fs and path, as it requires that each module be defined in a separate file. Then, I can alias fs and path to these files.

It's not clear how I can do the same for process without simply making it a global variable in a development build and a scope variable in a release build.

For Buffer, I can either take the same route as process, or change our code to use require('Buffer').

jvilk commented 10 years ago

Just a side note from the commit message:

jvilk commented 10 years ago

I gave up on chmod support, as it's irrelevant in the browser. So this is good now.