Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This should hopefully be the last release for awhile, unless people report cringeworthy bugs.
This PR adds a new breaking changes section about
super
andthis
.2.0.2 changelog:
--transpile
now also applies torequire
d orimport
ed CoffeeScript files.--transpile
can be used with the REPL:coffee --interactive --transpile
.###
comments near variable initial assignments are now output in the variable declaration statement, and###
comments near a class and method names are now output where Flow expects them.import { and as andFn } from 'lib'
. (You could also doimport lib from 'lib'
and then referencelib.and
.)get
andset
no longer throw an error when given a bracketless object literal as an argument:obj.set propertyName: propertyValue
.extends
another class), you cannot callsuper
with an argument that referencesthis
:class Child extends Parent then constructor: (@arg) -> super(@arg)
. This isn’t allowed in JavaScript, and now the CoffeeScript compiler will throw an error. Instead, assign tothis
after callingsuper
:(arg) -> super(arg); @arg = arg
.`field = 3`
, for people using the experimental class fields syntax, in the same class along with traditional class body expressions likeprop: 3
that CoffeeScript outputs as part of the class prototype.?
operation, e.g.@a ? b
.@jashkenas @lydell @connec @vendethiel