I'm currently working on refactoring the entire client codebase to be ES2015 compliant (and use the latest standards). Luckily everything was written in a way that this is a rather trivial task, so progress is fast (half-way as the time of writing)
As of now this involves rewriting these parts:
- Convert old fashioned namespaces to requirejs
let instead of
- Arrow functions where appropriate
- General cleanup
- Remove deprecated methods
- Promises instead of callbacks (probably)
This will be released under
2.1.0 and I'm contemplating removing the backward-compability I've written while developing this (this is just the namespacing, as in usage of
OSjs.Foo instead of
const Foo = require(...).
Another thing I'm looking at is using Webpack for all the bundling. Using Babel will allow for using non-standard features and paves the way for super easy upgrades for new standards.
All the work is done under https://github.com/os-js/OS.js/compare/playground/webpack but beware, this does not currently work out-of-the box with the standard build tools. But if you want to take a peak, it's all there.
I don't have any ETA on this, but I'll update this post whenever I have a better picture.