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

2.3.0 #5043

Merged
merged 25 commits into from
Apr 29, 2018
Merged

2.3.0 #5043

merged 25 commits into from
Apr 29, 2018

Conversation

GeoffreyBooth
Copy link
Collaborator

@GeoffreyBooth GeoffreyBooth commented Apr 27, 2018

This release adds support for all the new features and syntaxes in ES2018 that weren’t already possible in CoffeeScript.

  • Asynchronous iterators are now supported. You can now yield an await call, e.g. do -> until file.EOF then yield await file.readLine(). Fix #4875: Asynchronous iterators #4893
  • Object splats/destructuring, a.k.a. object rest/spread syntax, has been standardized as part of ES2018 and therefore this release removes the polyfill that had previously been supporting this syntax. Code like {a, b, rest...} = obj now outputs more or less just like it appears, rather than being converted into an Object.assign call. Note that there are some subtle differences between the Object.assign polyfill and the native implementation. Fix #4876: remove polyfill for object rest/spread #4884
  • The exponentiation operator, **, and exponentiation assignment operator **= are new to JavaScript in ES2018. Now code like a ** 3 is output as it appears, rather than being converted into Math.pow(a, 3) as it was before. Fix #4877: Exponentiation operators #4881
  • The s (dotAll) flag is now supported in regular expressions. Regular expressions s (dotAll) flag #4880

http://rawgit.com/GeoffreyBooth/coffeescript/2.3.0/docs/v2/

@GeoffreyBooth GeoffreyBooth requested a review from zdenko April 27, 2018 05:54
Copy link
Collaborator

@zdenko zdenko left a comment

Choose a reason for hiding this comment

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

LGTM

@GeoffreyBooth
Copy link
Collaborator Author

Since this PR is a bit bigger than usual, can anyone try using this branch in a project? Especially one with object spreads/rest.

@GeoffreyBooth
Copy link
Collaborator Author

I just tested this branch with my biggest app and it seemed to work fine, so hopefully this is good to go.

@GeoffreyBooth GeoffreyBooth merged commit 8061ecf into jashkenas:master Apr 29, 2018
@GeoffreyBooth GeoffreyBooth deleted the 2.3.0 branch April 29, 2018 01:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants