flow

Adds static typing to JavaScript to improve developer productivity and code quality.

MIT License

Downloads
42.1M
Stars
22.1K
Committers
931

Bot releases are hidden (Show)

flow - v0.1.4

Published by mroch over 9 years ago

  • [Flow] Unbreak the open source build
  • [PR #200] from fmahnke/node_http_interface
  • [PR #203] from rsolomo/node-net-isip
  • [PR #201] from unknownexception/patch-1
  • [Flow] Fill out Map definition
  • try-catch
  • missing annotation errors for type aliases
  • Type refinement fixes for early return
flow -

Published by mroch over 9 years ago

  • [#78] Fallback to index.js if no main attribute in package.json
  • [#82] Added ES6 functions to the Math object
  • [#94] Start a node stdlib interface file
  • [#98] Declare optional parameters according to HTML standard
  • [#108] Add buffer class to node.js interface
  • [#115] Some more node std libs
  • The module system can now be specified in the .flowconfig file
  • Libraries can now be specified in the .flowconfig file
  • Multiple library paths can be specified
  • Added a command to typecheck a file passed on standard input (for IDEs)
  • Added HTMLInputElement to the standard library
  • Improvements to type printing in flow suggest and other commands
  • Fixes to various issues where parser errors were being suppressed
flow -

Published by mroch over 9 years ago

  • [PR #223] from commonlisp/master
  • [PR #221] from teppeis/Javascript-to-JavaScript
  • Better types for React.PropTypes
  • Make React a module
  • Check PropTypes as a normal object too
  • Better support for object call properties
  • Add range/offset information to Ast.Loc.t
  • ignored react attributes key & ref passed in spread properties
  • ignored react attributes key & ref
  • Add some checks when upper bound object type has indexer
  • fix type arg arity exception
  • add traces to .flowconfig
  • fix error message when undeclared prop is set by jsx
  • [Parser] Actually test ArrayTypeAnnotation
  • Fix problem with returns in catch
  • JSX with spread attributes
  • Incremental mode fix
  • Add missing constructors to TypedArray declarations
  • [Parser] Update Flow's test suite to match updated esprima
flow - v0.12.0

Published by gabelevi over 9 years ago

Likely to cause new Flow errors:

  • Fixed a bug where declarations from libraries which are exported from one module are not checked properly in the module into which that module is imported (e.g. if A.foo() returns a Promise, and module B requires A and calls A.foo(), the return type of A.foo() was not being checked properly)
  • Fixed enforcement of Object and Function type annotation arity, so that Object<K, V> errors
  • Restricted valid computed properties, such that only strings and numbers are allowed (notably, disallows null and undefined)

New features:

  • Added support for for-of and support for Iterable interface(s)
  • Added support for async/await
  • Added structural subtyping for interfaces -- anything can be an instance of an interface as long as it looks right
  • Added support for type annotations of the form typeof x, where x is the name of an in-scope variable
  • Added a new config option suppress_comment, a regexp which matches against comments and causes any Flow error on the next line to be suppressed. For example, suppress_comment=.*\$FlowFixMe.* will cause /* $FlowFixMe */\nvar x : number = "oops"; to not raise an error.
  • Added a new config option module.name_mapper, a regexp -> replacement template tuple to be applied to any matching module names before the Flow system resolves the name and looks it up
  • Added a --color=always|never|auto CLI option, useful when piping to less -R
  • Added a --one-line CLI option which replaces \n with \\n in multiline error messages, useful when piping to grep

Misc:

  • Many improvements to library files, especially node and ES6 APIs
  • Improved warnings on unsupported class members [PR #461]
  • Added support for export default class
  • Fixed if (x instanceof Array)
  • Fixed the type of x && y when x is an array, object or function
  • Fixed the flow get-def command, especially around imported types
  • Fixed a bug with == and improved comparison-related error messages
  • Fixed file watching for individual files included via .flowconfig [includes]
  • Fixed the build ID, so that the server restarts when accessed from a mismatched client version
  • Added a new config option log.file which overrides the default log file path
flow - v0.11.0

Published by gabelevi over 9 years ago

  • We are now syncing Flow's commit history to GitHub. No more huge updating diffs. We'll also filter the changelog to the most important things.
  • Big React refactoring to support ES6 React classes
  • Do you use any to workaround things that you want to fix later? Well, now you can use $FixMe instead of any and easily grep for these workarounds later.
  • We now report parsing errors in non-@flow files that you are require()'ing/import'ing
  • Better error messages and better error message positions
  • Better error traces, with flow check --traces N, where N is the trace depth
  • Basic support for Object.freeze()
  • Assorted fixes and updates to the flow libs
  • We're trying to be better about commenting the code
flow - v0.10.0

Published by gabelevi over 9 years ago

  • Support import/export type
  • [PR #412] More fs implementation
  • Support for static overloads
  • Fix order of args matched with overloads
  • Allow methods to have properties
  • [PR #405] Make interface-defined modules work with CommonJS/ES6Module interop
  • Refine mixed
  • Fix typeof null === "object" refinement
  • [PR #397] Facilitate debug builds
  • [PR #401] Improve error message clarity in a few places
  • Remove 'everything is a bool' implicit cast
  • Fix issues with optional properties during InstanceT ~> ObjT
  • Fix abnormals in catch blocks
flow - v0.9.2

Published by gabelevi over 9 years ago

  • Fix lowercasing issue where "flow Path/To/Root" became "flow path/to/root"
  • Fix "My Path/To Flow/flow path/to/root" not autostarting server due to spaces
flow - v0.9.1

Published by gabelevi over 9 years ago

  • Unbreak the command line for "flow path/to/root" (thanks @samwgoldman for the report!)
flow - v0.9.0

Published by gabelevi over 9 years ago

  • Add Video-, Audio and TextTrackList (+ dependencies)
  • Refine switch cases
  • Better Not_found error
  • [PR #333] Partial fs module implementation
  • Update parser to match esprima-fb
  • [PR #370] Dom canvas context
  • [PR #393] Symbol should be called statically. Fix #391
  • Fix havoc_env to copy the for_type value
  • add bash completion
  • rewrite all the commands to use CommandSpec
  • json_of_t
  • [PR #384] Env printer
  • [PR #383] Add some build/test artifacts to .gitignore
  • [PR #377] Add missing HTMLImageElement properties
  • [PR #367] Re-add merged out oneOfType proptype implementation
  • Allow users to pin their .flowconfig to a specific version
  • colorize test failure diffs
  • Object spread fix
  • [PR #322] Add type signature for node "url", "querystring" and "path" modules
  • command parsing library
  • look for package.json in include paths
  • clear module errors properly
  • add verbose mode
flow - v0.8.0

Published by gabelevi over 9 years ago

  • [PR #356] Add React.version to lib/react.js
  • [PR #331] node http.get() implementation
  • Fixes for indexers in object types and objects used as dictionaries
  • Flow server speedup
  • Support both commas and semicolons in object type patterns
  • Fix object assign for unresolved objects
  • Add prerr_endlinef
  • Fix support for the mixin pattern of specifying super
  • Incremental typechecking fix
  • Fix up promises interface definition + more tests
  • Perf win by loading master_cx once per job
  • Support for-in of null and undefined
  • Support typeof x === 'boolean'
  • Refine true and false literals
  • Fix refinement unit test
  • Type declarations for Geolocation interface
  • [PR #321] Support for React.cloneElement in 0.13
  • Refine simple assignments (things like while (x = x.parent) { x.doStuff(); })
flow - v0.7.0

Published by jeffmo over 9 years ago

  • Initial support for ES6 import/export (with CommonJS interop)
  • Updates to CSS/CSSOM interface definitions
  • propTypes in React components now dictate the concrete type signature for this.props
  • Show errors in type-at-pos output
  • Flow now watches include paths specified in .flowconfig for file changes
  • Interpret x != undefined and x != null as the same refinement
  • Use Object.prototype.hasOwnProperty() calls as a refinement
  • Updates to Element and HTMLElement interface definitions
flow - v0.6.0

Published by gabelevi over 9 years ago

  • Also watch for changes in include paths
  • Fix the Function type to be any function
  • Add Symbol global name to libs
  • Support trailing commas in parser
  • Make methods immutable
  • Remove tuple array length limit
  • [PR #315] Implement more PropTypes
  • Update componentWillReceive spec
  • Unsuppress library errors
flow - v0.5.0

Published by gabelevi over 9 years ago

  • Add HTMLAnchorElement
  • [PR #295] Add one of proptype
  • Update the parser to work with the new esprima-fb & ast-types
  • [PR #299] Declare prompt function (fixes #204)
  • [PR #303] Add String.prototype.endsWith()
  • quick fix for react/es6 notation
  • extend scope of type params to following bounds
  • reasonless shortcut
  • Add React.findDOMNode to lib/react.js
  • move command documentation into each command
  • fix path in --help usage example
  • fix predicate filtering of null and undefined
  • [PR #292] Types for React synthetic events
  • basic support for bounded polymorphism
  • infer falsiness
  • node haste module support
  • add Abnormal.string
flow - v0.4.0

Published by gabelevi over 9 years ago

Flow comments should be ready for use

  • [PR #259] Add declaration for Document.execCommand()
  • [PR #265] flow status --json should exit 2 on errors
  • Fix issue with switch statement breaks
  • abnormal exit effects of fall-through cases in switch
  • Let AnyObjT flow to KeyT
  • invariant(false, ...) always throws
  • Improve the "Object" annotations
  • sealed object literals
  • fix return types which could be undefined
  • Support type annotations in comments
  • [PR #263] disable colors when TERM=dumb
  • Add lint checks for TRUE / FALSE / NULL
  • class subtyping
  • array literal inference
  • Add unsafe_xhp typechecker option
  • work around false positive conflict markers
  • Better dumping types for debugging
flow - v0.3.0

Published by gabelevi over 9 years ago

Type casts and import type should be ready for use

  • Move haste module name preprocessing into module_js
  • [PR #260] Add SyntheticEvent to lib/react.js
  • Add import type to Flow
  • [Parser] Add esprima tests for typecasts
  • Add support for a module name preprocessor that can re-write require()d module names
  • [Parser] Support import types
  • Allow absolute paths for [libs] and [include]
  • prepare flow-parser to be published to npm
  • [PR #247] Resubmit #113 this fixes #155
  • [PR #246] Fixes #195
flow - v0.2.0

Published by gabelevi over 9 years ago

  • Fix refinement of optional nullable types
  • Typecast expressions (warning - not added to strip out transform yet)
  • treat throw as similar to return
  • Switch from React to react (React still included until https://github.com/facebook/react/pull/3031)
  • Fix types for sessionStorage and Storage
  • tighter type for undefined values
  • no lib paths fix
  • Fix exporting types for builtin modules
  • Add Number.isNaN and Number.isSafeInteger type annotations
  • Optional properties in objects & optional type revamp
flow - v0.1.6

Published by gabelevi almost 10 years ago

  • declare modules that redefine exports instead of exporting multiple things
  • Object spread race condition fix
  • Fix fallback path to flowlib.tar.gz
  • [Parser] Type grouping bug fix
  • Add Object.is
  • uncomment delete method signatures
  • Add MAX_SAFE_INTEGER and MIN_SAFE_INTEGER to Number
  • make param annotations strict upper bounds
flow - v0.1.3

Published by dsereni almost 10 years ago

  • Handle strict undefined checks.
  • Add theoretical support to print tuple types properly.
  • Relax the callback type in Array.prototype.forEach
  • Add basic autocomplete support for React classes.
  • [Hack] Kill shell.ml entirely.
  • Handle spread attributes in JSX syntax.
  • [Parser] Allow most keywords as types
  • Add Array.from to lib file
  • [#161]: String literal keys for object type aliases
  • Generalize mock module handling under Haste a bit.
  • Improve autocomplete type printing
  • misc cleanup
  • [Parser] Improve type keywords
  • [Parser] Stop vendoring in ast-types
  • Add an ocaml wrapper for find path1 ... pathN -name pattern
  • Restart if a known lib file changes
  • Add ProgressEvent definition and update two onprogress types
  • [Hack] Add client time to server start time.
  • Improve control flow type refinements
  • [Hack] Reduce dependencies on ParserHeap.
  • Exit server on config change for now rather than restart to avoid some bugs
  • [Parser] ArrowFunction object & array patterns must be wrapped with parens
  • Properly functorize logging code too
  • [Hack] Make GC parameters configurable.
  • Refinements on method calls
  • [Hack] Log whether we are loading from a saved state in INIT_END.
  • [Hack] Improve error handling for saved states.
  • [PR #137] from sverrejoh/master
  • [PR #150] from unknownexception/fix/dom.js
  • [PR #146] from k-bx/master
  • [PR #151] from unknownexception/feature/no_flowlib
  • [PR #144] from rsolomo/node-assert
  • [PR #191] from Shraymonks/HTMLBaseElement
  • [PR #145] from rsolomo/node-util
  • [PR #192] from Shraymonks/HTMLScriptElement
  • Add ES6 String.prototype.contains
  • Add Promise.prototype.done() to Flow lib