v6.12.0
v6.12.0 (2016-10-14)
π Spec Compliancy
Implement import() syntax (#163) (Jordan Gensler)
Dynamic Import
- Proposal Repo: https://github.com/domenic/proposal-dynamic-import
- Championed by @domenic
- stage-2
- sept-28 tc39 notes
This repository contains a proposal for adding a "function-like" import() module loading syntactic form to JavaScript
import(`./section-modules/${link.dataset.entryModule}.js`)
.then(module => {
module.loadPageInto(main);
})
Add EmptyTypeAnnotation (#171) (Sam Goldman)
EmptyTypeAnnotation
Just wasn't covered before.
type T = empty;
π Bug Fix
Fix crash when exporting with destructuring and sparse array (#170) (Jeroen Engels)
// was failing due to sparse array
export const { foo: [ ,, qux7 ] } = bar;
Allow keyword in Flow object declaration property names with type parameters (#146) (Dan Harper)
declare class X {
foobar<T>(): void;
static foobar<T>(): void;
}
Allow keyword in object/class property names with Flow type parameters (#145) (Dan Harper)
class Foo {
delete<T>(item: T): T {
return item;
}
}
Allow typeAnnotations for yield expressions (#174)) (Daniel Tschinder)
function *foo() {
const x = (yield 5: any);
}
π Polish
Annotate more errors with expected token (#172)) (Moti Zilberman)
// Unexpected token, expected ; (1:6)
{ set 1 }
π Internal
Remove kcheck (#173)) (Daniel Tschinder)
Also run flow, linting, babel tests on seperate instances (add back node 0.10)