Comparing 2.3.2...2.4.0 · jashkenas/coffeescript
Commits on Nov 28, 2018
-
implement coffeescript.registerCompiled method (#5130)
* implement coffeescript._addSoucrse method This method enables an external module to implement caching of compilation results. When the compiled js source is loaded from cache, the original coffee code should be added with this method in order to enable the Error.prepareStackTrace below to correctly adjust the stack trace for the corresponding file (the source map will be generated on demand). * replace _addSource with registerCompiled * extract the logic from _compileFile into _compileRawFileContent _compileFile takes care of logging the file and calls _compileRawFileContent this way an external caching implementation which computes cache key based on raw content of the sources file, can reuse the logic of _compileFile and avoid having calling `fs.readFileSync` for the file more twice in case of cache miss * remove 'output' argument from registerCompiled
Commits on Feb 11, 2019
-
* Add test for #5085 $ cake test failed 1 and passed 1274 tests in 4.81 seconds #5085: Bug: @ reference to class not maintained in do block AssertionError [ERR_ASSERTION]: Expected undefined to equal 2 * Fix #5085: @ reference to class in "do" block Assuming that a bound Code node inside an ExecutableClassBody without a name must be a "do" block. * Additional tests #5145 (comment) Also switched to concat'g strings for test values, as opposed to incrementing numbers: makes the tests a bit easier to read.
Commits on Mar 20, 2019
-
* dynamic import * updated grammar * specify callable * DynamicImportCall * Fix from code review Co-Authored-By: helixbass <julian@helixbass.net> * recompile
Commits on Mar 24, 2019
-
* Fix cake test:integrations per newer Webpack * Update dependencies * Update dependencies
Commits on Mar 25, 2019
-
Fix repl.rli deprecation (#5178)
The `rli` property is just a reference to itself. It still exists for legacy reasons but it will likely be removed in a future major version. This makes sure everything works as expected.
Commits on Mar 27, 2019
-
ES module version of compiler for use in browsers; dynamic import() d…
…ocs; revised Stage 3 policy (#5177) * Build both a legacy and modern browser compiler * Dynamic import example and documentation * Update the docs to use the modern browser compiler if the browser supports it * Update policy regarding Stage 3 features * This never made sense, and assigning a string to index 0 *of a string* throws in Module mode (and silently does nothing in Script mode) so remove this unneeded code that throws when compiling `fn for i from from iterable` in Module mode * Have browser-based tests use the ES module version if supported * Simplify building logic * Update output * For the ES module version of the browser compiler, don't automatically attach the runScripts event handler * Consistent comments * Fix comment
Commits on Mar 30, 2019
-
* cake doc:site:watch should also watch the changelog files * Changelog for 2.4.0 * 2.4.0 output