We currently have a SharePoint 2010 environment and planning to migrate to SP 2016(Q2 2019). For SP 2010 we have developed a component to developers that want to consume SharePoint infrastructure. This component simplifies SharePoint Web Service calls and controls access to it trough a database. This allows us to track who is making changes in SharePoint trough a system, among other benefits. We have already adapted this component in the SharePoint 2016 farm, so migration should be transparent to developers using the component.
With that sad, some developers want to start using JavaScript to perform upload/download in SharePoint, where the access would be controlled trough SharePoint itself (ad groups on the lists).
I don't believe there are a lot of constraints on the JavaScript approach(please let me know if there are). But thinking on the migration, would the JavaScript Object Model for SharePoint 2010 be compatible with the one for SP 2016?