-
Notifications
You must be signed in to change notification settings - Fork 2k
Description
From @GeoffreyBooth on 2017-09-02 22:02
Hey everyone,
CoffeeScript 2.0.0-beta5 is released, and it is the first (and hopefully only) release candidate for 2.0.0! Install it via: npm install coffeescript@next
It is an entirely bugfix release, and it could’ve been released as 2.0.0 but I thought it would be best to release it instead as our hopefully last beta because of the sheer number of pull requests that have gone into it. You can see the full changelog and list of PRs here, but the short version is that about two dozen pull requests have been merged in since 2.0.0-beta4, fixing all the bugs reported since that release as well as many older ones, some of which were years old. All of the bugs tagged priority
have now been fixed, and of the open issues on the coffeescript
repo, only 13 are bugs. I’d love to get that number down to zero, if anyone would like to help!
None of these remaining bugs are showstoppers that will hold up a 2.0.0 release, however, so if 2.0.0-beta5 is stable and no one reports any significant bugs in it, I want to release it as 2.0.0 as soon as possible. So to that end, I would like to ask everyone involved in this repo—@rattrayalex, @JimPanic, @kirly-af, @ryansolid, @CliffS, @mikeyhew, @shreeve, @bd82, @edemaine, @greghuc, @svicalifornia, @YamiOdymel, @mrmowgli, @celicoo, @connec, @mitar, @kingdaro, @za-creature, @snowyu, @Alhadis, @vpj, @Inve1951, @Asc2011, @carlmathisen, @markwatne, @dadleyy, @objectkit, @aurium, @carlsmith, @DomVinyard, @nickdima, @tdsfugal, @danielbayley, @alangpierce, @triskweline, @ozjd, @zeekay, @zdenko, @lydell, @jashkenas—now is the time: please try your projects with 2.0.0-beta5! Please test it out in the next week, so that we can hopefully launch 2.0.0 in mid-September. Here’s how to test with it, no matter what build chain (Webpack, Gulp, Grunt, Browserify/Coffeeify, Meteor, whatever) you’re using:
- Clone the CoffeeScript
2
branch to your machine:git clone -b 2 https://github.com/jashkenas/coffeescript.git
- Duplicate your current project, including its
node_modules
and other untracked folders, into a new temporary folder. - Search through all your folders to find the
coffeescript
orcoffee-script
folder. It’s most likely inside anode_modules
folder. If you’re using an older version of NPM, you may have many such folders; do the following for each one you find. - Inside that
coffeescript
/coffee-script
folder, you’ll see alib
folder, and then another folder namedcoffeescript
orcoffee-script
, e.g.coffeescript/lib/coffeescript
. Delete all the files in this folder, leaving the folder empty. - From the cloned repo in step 1, copy the files from that repo’s
lib/coffeescript
folder into thelib/coffeescript
/lib/coffee-script
folder you just emptied. - Make sure the Node on your machine is Node 8+, and then build your project as you normally would. The CoffeeScript compiler might throw new errors related to breaking changes, especially if you’re a heavy user of classes. See the breaking changes notes and fix accordingly.
- Once it builds successfully, run your project in Node 8+ or an evergreen browser such as Chrome latest. Hopefully everything should work as expected. If you want to check your project in older runtimes, transpile your output code via Babel and then try in your older browser or Node version.
Please report your findings on this thread, and please report bugs by opening an issue after checking the breaking changes. If we see enough positive reports below, especially from significant, real-world projects, that will inspire confidence that this is ready to release.
Honor roll for 2.0.0-beta5: @helixbass, @zdenko, @connec, @bendrexl and @GeoffreyBooth. Thanks!