Skip to content
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

Upgrade to es2017 javascript #2725

Merged
merged 5 commits into from
Jan 11, 2020
Merged

Conversation

jasongrout
Copy link
Member

This upgrades the js target to es2017, which means that we are now generating es2015 classes.

Because Backbone and es2015 classes are incompatible, this means that downstream libraries that use Backbone.extend will need to change to use es2015 classes. An example is given in this PR of moving the classic notebook output widget to es2015 classes.

See also https://benmccormick.org/2015/07/06/backbone-and-es6-classes-revisited or other articles about the differences between es2015 classes and backbone classes.

Copy link
Member

@SylvainCorlay SylvainCorlay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am ok with this actually. I think it will help move away from backbone to not depend on extend.

@jasongrout jasongrout merged commit 1a7bc57 into jupyter-widgets:master Jan 11, 2020
@lock lock bot added the resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion. label May 20, 2020
@lock lock bot locked as resolved and limited conversation to collaborators May 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants