Skip to content

Commit 640078c

Browse files
committed
3.0
commit 62a9db8 Author: William C. Johnson <[email protected]> Date: Wed Oct 25 00:32:48 2017 -0400 @oigroup/[email protected] commit bd07fa2 Author: William C. Johnson <[email protected]> Date: Wed Oct 25 00:10:26 2017 -0400 @oigroup/[email protected] commit d33d831 Author: William C. Johnson <[email protected]> Date: Wed Oct 25 00:08:23 2017 -0400 Fix bound catchExprs commit 5a298ea Author: William C. Johnson <[email protected]> Date: Tue Oct 24 23:54:45 2017 -0400 @oigroup/[email protected] commit a4607d5 Author: William C. Johnson <[email protected]> Date: Tue Oct 24 23:52:30 2017 -0400 Fix source locs commit 933d76a Author: William C. Johnson <[email protected]> Date: Tue Oct 24 22:30:53 2017 -0400 CatchExpr parsing commit 6a9bc59 Author: William C. Johnson <[email protected]> Date: Sun Oct 22 15:18:15 2017 -0400 @oigroup/[email protected] commit ec0d413 Author: William C. Johnson <[email protected]> Date: Sun Oct 22 15:07:22 2017 -0400 Add `startsExpr` to `<-` Fixes wcjohnson/lightscript#58 commit e4e4202 Author: William C. Johnson <[email protected]> Date: Sun Oct 22 14:55:09 2017 -0400 Add `bangCall` parsing to lsc test suite commit 0b6c44a Author: William C. Johnson <[email protected]> Date: Sat Oct 21 14:06:03 2017 -0400 Clean up safe-await-outside-async error Fixes wcjohnson/lightscript#53 commit 5e28e85 Author: William C. Johnson <[email protected]> Date: Sat Oct 21 13:56:27 2017 -0400 Re-disable `!(` commit f2d8047 Author: William C. Johnson <[email protected]> Date: Fri Oct 20 21:02:12 2017 -0400 @oigroup/[email protected] commit 52644f2 Author: William C. Johnson <[email protected]> Date: Thu Oct 19 16:51:35 2017 -0400 @oigroup/[email protected] commit 60e1682 Author: William C. Johnson <[email protected]> Date: Thu Oct 19 16:40:07 2017 -0400 Allow subscripting of argless bangcalls Addresses wcjohnson/lightscript#50 commit b3eeb55 Author: William C. Johnson <[email protected]> Date: Thu Oct 12 21:08:32 2017 -0400 @oigroup/[email protected] commit 6cd44b3 Author: William C. Johnson <[email protected]> Date: Thu Oct 12 20:39:37 2017 -0400 Commaless import, export commit dcfd856 Author: William C. Johnson <[email protected]> Date: Thu Oct 12 20:18:47 2017 -0400 @oigroup/[email protected] commit bd015d5 Author: William C. Johnson <[email protected]> Date: Thu Oct 12 19:26:35 2017 -0400 Packaging updates commit 052ced6 Author: William C. Johnson <[email protected]> Date: Thu Oct 12 19:03:27 2017 -0400 Post-merge fixup commit b2a20d9 Merge: 811db18 da66d3f Author: William C. Johnson <[email protected]> Date: Thu Oct 12 18:33:46 2017 -0400 Merge remote-tracking branch 'babylon/6.x' into prerelease/3.0.0 # Conflicts: # README.md # package.json # src/parser/expression.js # src/tokenizer/index.js # test/fixtures/esprima/invalid-syntax/migrated_0268/options.json # yarn.lock commit 811db18 Author: William C. Johnson <[email protected]> Date: Wed Oct 11 21:38:47 2017 -0400 @oigroup/[email protected] commit b51009e Author: William C. Johnson <[email protected]> Date: Wed Oct 11 21:37:13 2017 -0400 Add fixture for flow ambiguity Re wcjohnson/lightscript#44 commit ae9cdce Author: William C. Johnson <[email protected]> Date: Wed Oct 11 01:24:01 2017 -0400 @oigroup/[email protected] commit 0e52088 Author: William C. Johnson <[email protected]> Date: Mon Oct 9 01:13:41 2017 -0400 Clean up parsing re: flow typecasts Addresses wcjohnson/lightscript#22 commit 322842a Author: William C. Johnson <[email protected]> Date: Mon Oct 9 00:10:28 2017 -0400 Flow typecasts require parentheses Addresses wcjohnson/lightscript#22 commit 5e5a50e Author: William C. Johnson <[email protected]> Date: Sun Oct 8 18:48:35 2017 -0400 Early whiteblock body termination Addresses wcjohnson/lightscript#39 commit 3099b20 Author: William C. Johnson <[email protected]> Date: Sun Oct 8 16:35:27 2017 -0400 @oigroup/[email protected] commit 19b141c Author: William C. Johnson <[email protected]> Date: Sun Oct 8 16:24:07 2017 -0400 `for..of` no longer requires a variable qualifier Addresses wcjohnson/lightscript#38 commit 95c3353 Author: William C. Johnson <[email protected]> Date: Sat Oct 7 19:14:49 2017 -0400 Allow spread loops in JSXExpressionContainer commit 26abf6e Author: William C. Johnson <[email protected]> Date: Sat Oct 7 18:29:50 2017 -0400 `spreadLoop` implementation commit 6e257e5 Author: William C. Johnson <[email protected]> Date: Sat Oct 7 16:59:40 2017 -0400 Disable legacy comprehensions commit 1a4cade Author: William C. Johnson <[email protected]> Date: Fri Oct 6 22:11:30 2017 -0400 Remove `pipeCall` See wcjohnson/lightscript#36 commit 15b9b13 Author: William C. Johnson <[email protected]> Date: Fri Oct 6 22:04:52 2017 -0400 Disallow whitespace around safe tilde call operator Addresses wcjohnson/lightscript#19 commit adbe2a4 Author: William C. Johnson <[email protected]> Date: Fri Oct 6 17:49:48 2017 -0400 @oigroup/[email protected] commit cc81f86 Author: William C. Johnson <[email protected]> Date: Fri Oct 6 17:30:54 2017 -0400 Eliminate nested block level tracking See wcjohnson/lightscript#33 commit 87afe91 Author: William C. Johnson <[email protected]> Date: Fri Oct 6 17:05:16 2017 -0400 Disallow subscripting from crossing whiteblock boundaries Addresses wcjohnson/lightscript#33 commit d447c02 Author: William C. Johnson <[email protected]> Date: Tue Oct 3 22:22:20 2017 -0400 Allow asi near `]` commit c9c226a Author: William C. Johnson <[email protected]> Date: Tue Oct 3 20:12:53 2017 -0400 Block parsing algorithm simplification commit 65d3524 Author: William C. Johnson <[email protected]> Date: Tue Oct 3 15:26:02 2017 -0400 @oigroup/[email protected] commit 8b1634e Author: William C. Johnson <[email protected]> Date: Mon Oct 2 21:36:16 2017 -0400 @oigroup/[email protected] commit ffcf461 Author: William C. Johnson <[email protected]> Date: Mon Oct 2 21:00:50 2017 -0400 More detailed error message in ambiguous cases. commit 210de1f Author: William C. Johnson <[email protected]> Date: Mon Oct 2 20:33:26 2017 -0400 `noLabeledExpressionStatements` plugin added commit 6ff25b9 Author: William C. Johnson <[email protected]> Date: Mon Oct 2 20:04:53 2017 -0400 Revert `?.(` syntax due to JS stage 1 proposal uncertainty commit 249aee6 Author: William C. Johnson <[email protected]> Date: Sat Sep 30 22:09:43 2017 -0400 @oigroup/[email protected] commit eea37ea Author: William C. Johnson <[email protected]> Date: Sat Sep 30 21:42:18 2017 -0400 New WBP fixes commit d4184a6 Author: William C. Johnson <[email protected]> Date: Sat Sep 30 21:39:47 2017 -0400 `whiteblockPreferred` updates commit 5e45d5e Author: William C. Johnson <[email protected]> Date: Sat Sep 30 18:13:56 2017 -0400 Lightscript OBA fixup commit 1aded08 Author: William C. Johnson <[email protected]> Date: Sat Sep 30 17:39:12 2017 -0400 Whiteblock-preferred, step 1 commit 0e97a7b Author: William C. Johnson <[email protected]> Date: Sat Sep 30 18:16:47 2017 -0400 Whiteblock-preferred mode commit 5e45d5e Author: William C. Johnson <[email protected]> Date: Sat Sep 30 18:13:56 2017 -0400 Lightscript OBA fixup commit 1aded08 Author: William C. Johnson <[email protected]> Date: Sat Sep 30 17:39:12 2017 -0400 Whiteblock-preferred, step 1 commit 0a87973 Author: William C. Johnson <[email protected]> Date: Thu Sep 28 21:27:27 2017 -0400 @oigroup/[email protected] commit f6b5fb7 Author: William C. Johnson <[email protected]> Date: Thu Sep 28 21:11:25 2017 -0400 Splat comprehensions commit 93088f6 Author: William C. Johnson <[email protected]> Date: Thu Sep 28 17:07:19 2017 -0400 Splat comprehension parsing commit 76e14e8 Author: William C. Johnson <[email protected]> Date: Wed Sep 27 22:17:23 2017 -0400 @oigroup/[email protected] commit bcd22fe Author: William C. Johnson <[email protected]> Date: Wed Sep 27 21:28:09 2017 -0400 `whiteblockOnly` mode commit 160ee23 Author: William C. Johnson <[email protected]> Date: Wed Sep 27 20:59:11 2017 -0400 Parse `{` as expressionStatement when whiteblockOnly enabled commit afd89a2 Author: William C. Johnson <[email protected]> Date: Wed Sep 27 20:36:21 2017 -0400 Initial whiteblockOnly impl, test fixes commit 5aa3ee5 Author: William C. Johnson <[email protected]> Date: Wed Sep 27 15:44:02 2017 -0400 Merge 2.3 fixes commit 15799aa Author: William C. Johnson <[email protected]> Date: Mon Sep 25 16:01:25 2017 -0400 @oigroup/[email protected] commit e816aa7 Author: William C. Johnson <[email protected]> Date: Mon Sep 25 15:54:40 2017 -0400 @oigroup/[email protected] commit 2376b75 Author: William C. Johnson <[email protected]> Date: Mon Sep 25 15:41:14 2017 -0400 2.3.0 - Syntactic placeholders - Pipe calls `|>`, `<|` - Track block nesting level in parser state - Fix bang call subscript unwinding crossing block boundaries - Fix premature “comprehensions are illegal” error disallowing patterns with “for” or “case” keys - Don’t lint when testing commit 64f066f Author: William C. Johnson <[email protected]> Date: Mon Sep 25 15:36:41 2017 -0400 Fix for bang call subscripting issue across block boundaries commit bda54e5 Author: William C. Johnson <[email protected]> Date: Mon Sep 25 14:38:44 2017 -0400 Comprehension fixes commit 476419a Author: William C. Johnson <[email protected]> Date: Sat Sep 23 15:53:55 2017 -0400 Run lint and flow at `preversion`, not `test` commit 266f948 Author: William C. Johnson <[email protected]> Date: Mon Sep 18 23:16:07 2017 -0400 @oigroup/[email protected] commit 2342c39 Author: William C. Johnson <[email protected]> Date: Tue Sep 5 16:51:01 2017 -0400 @oigroup/[email protected] commit 21a26a8 Merge: e61679c 7c5e20e Author: William C. Johnson <[email protected]> Date: Tue Sep 5 15:24:38 2017 -0400 Merge branch 'prerelease/2.3.0' of https://github.com/wcjohnson/babylon-lightscript into prerelease/2.3.0 commit e61679c Author: William C. Johnson <[email protected]> Date: Tue Sep 5 15:24:20 2017 -0400 Unit test for unfortunate flow typecast in if test clause commit 7c5e20e Author: William C. Johnson <[email protected]> Date: Sun Aug 6 12:58:46 2017 -0400 Misc cleanup - Remove errant copypasta from tildeCall.js - Clean up spacing/comments commit ffb7ddb Author: William C. Johnson <[email protected]> Date: Wed Jul 19 21:43:42 2017 -0400 @oigroup/[email protected] commit fb570ee Author: William C. Johnson <[email protected]> Date: Wed Jul 19 21:28:23 2017 -0400 Pipe call improvements - Support arrows as pipe call operands - Support leftward-pointing pipe calls commit f248451 Author: William C. Johnson <[email protected]> Date: Mon Jul 17 16:09:12 2017 -0400 @oigroup/[email protected] commit 00a76ef Author: William C. Johnson <[email protected]> Date: Mon Jul 17 15:52:31 2017 -0400 Fix for left-associativity and subscripts of pipeCalls commit 6d4d300 Author: William C. Johnson <[email protected]> Date: Mon Jul 17 00:43:08 2017 -0400 `pipeCall` tests commit 4e579c7 Author: William C. Johnson <[email protected]> Date: Mon Jul 17 00:28:40 2017 -0400 @oigroup/[email protected] commit 17f5a44 Author: William C. Johnson <[email protected]> Date: Sun Jul 16 23:19:22 2017 -0400 @oigroup/[email protected] commit 0bcd865 Author: William C. Johnson <[email protected]> Date: Sun Jul 16 23:07:36 2017 -0400 @oigroup/[email protected] commit 6975053 Author: William C. Johnson <[email protected]> Date: Sun Jul 16 23:03:53 2017 -0400 Parsing for pipe operator commit b10a5e48d1552ff389de314762e863197bc0da7e Author: William C. Johnson <[email protected]> Date: Sun Jul 16 22:55:34 2017 -0400 Fix associativity commit 0fac7c226b9cd9cda94a5956a45a067a145e2976 Author: William C. Johnson <[email protected]> Date: Sun Jul 16 22:22:34 2017 -0400 Parse pipe operator as subscript commit b21acb2f12941d9d7d4279320de4c55c7ee3b50f Author: William C. Johnson <[email protected]> Date: Sun Jul 16 21:17:17 2017 -0400 Basic pipeCall parsing commit 70ee2c8 Author: William C. Johnson <[email protected]> Date: Sun Jul 16 20:46:52 2017 -0400 Syntactic placeholders commit d5d4e74 Author: William C. Johnson <[email protected]> Date: Sun Jul 16 20:41:48 2017 -0400 Allow placeholder to be changed via config commit 32e43a0 Author: William C. Johnson <[email protected]> Date: Sun Jul 16 20:24:59 2017 -0400 Spread placeholder tests commit 73b9d32 Author: William C. Johnson <[email protected]> Date: Sun Jul 16 15:31:50 2017 -0400 Initial implementation of syntactic placeholders commit 833e5b9 Author: William C. Johnson <[email protected]> Date: Sun Aug 6 12:58:46 2017 -0400 Misc cleanup - Remove errant copypasta from tildeCall.js - Clean up spacing/comments commit eaa42cd Author: William C. Johnson <[email protected]> Date: Mon Sep 25 14:38:44 2017 -0400 Comprehension fixes commit 97109a6 Author: William C. Johnson <[email protected]> Date: Sun Sep 24 01:55:17 2017 -0400 Fix for bang-tilde-call parsing commit 33e044c Author: William C. Johnson <[email protected]> Date: Sun Sep 24 01:30:12 2017 -0400 Tilde calls now generate `CallExpression` nodes with `tilde: true` commit 926a863 Author: William C. Johnson <[email protected]> Date: Sat Sep 23 15:55:42 2017 -0400 Converge with Babel re optional chaining - Eliminate `SafeMemberExpression` node type; use `MemberExpression` with `optional = true` instead. - Use `optional = true` for safe `CallExpression`s - Allow proposed `x?.(arg, arg…)` syntax for safe calls commit 99f8c0b Author: William C. Johnson <[email protected]> Date: Sat Sep 23 15:53:55 2017 -0400 Run lint and flow at `preversion`, not `test` commit 266f948 Author: William C. Johnson <[email protected]> Date: Mon Sep 18 23:16:07 2017 -0400 @oigroup/[email protected] commit 2342c39 Author: William C. Johnson <[email protected]> Date: Tue Sep 5 16:51:01 2017 -0400 @oigroup/[email protected] commit 21a26a8 Merge: e61679c 7c5e20e Author: William C. Johnson <[email protected]> Date: Tue Sep 5 15:24:38 2017 -0400 Merge branch 'prerelease/2.3.0' of https://github.com/wcjohnson/babylon-lightscript into prerelease/2.3.0 commit e61679c Author: William C. Johnson <[email protected]> Date: Tue Sep 5 15:24:20 2017 -0400 Unit test for unfortunate flow typecast in if test clause commit da66d3f Author: Henry Zhu <[email protected]> Date: Tue Aug 15 15:34:16 2017 -0400 6.18.0 commit a457038 Author: jbrown215 <[email protected]> Date: Tue Aug 15 15:23:41 2017 -0400 Flow opaque type alias backport (babel#644) * Flow opaque type alias backport * Flow opaque type alias backport tests * Only add support for opaque types * Remove .swp file commit 7c5e20e Author: William C. Johnson <[email protected]> Date: Sun Aug 6 12:58:46 2017 -0400 Misc cleanup - Remove errant copypasta from tildeCall.js - Clean up spacing/comments commit ffb7ddb Author: William C. Johnson <[email protected]> Date: Wed Jul 19 21:43:42 2017 -0400 @oigroup/[email protected] commit fb570ee Author: William C. Johnson <[email protected]> Date: Wed Jul 19 21:28:23 2017 -0400 Pipe call improvements - Support arrows as pipe call operands - Support leftward-pointing pipe calls commit f248451 Author: William C. Johnson <[email protected]> Date: Mon Jul 17 16:09:12 2017 -0400 @oigroup/[email protected] commit 00a76ef Author: William C. Johnson <[email protected]> Date: Mon Jul 17 15:52:31 2017 -0400 Fix for left-associativity and subscripts of pipeCalls commit 6d4d300 Author: William C. Johnson <[email protected]> Date: Mon Jul 17 00:43:08 2017 -0400 `pipeCall` tests commit 4e579c7 Author: William C. Johnson <[email protected]> Date: Mon Jul 17 00:28:40 2017 -0400 @oigroup/[email protected] commit 17f5a44 Author: William C. Johnson <[email protected]> Date: Sun Jul 16 23:19:22 2017 -0400 @oigroup/[email protected] commit 0bcd865 Author: William C. Johnson <[email protected]> Date: Sun Jul 16 23:07:36 2017 -0400 @oigroup/[email protected] commit 6975053 Author: William C. Johnson <[email protected]> Date: Sun Jul 16 23:03:53 2017 -0400 Parsing for pipe operator commit b10a5e48d1552ff389de314762e863197bc0da7e Author: William C. Johnson <[email protected]> Date: Sun Jul 16 22:55:34 2017 -0400 Fix associativity commit 0fac7c226b9cd9cda94a5956a45a067a145e2976 Author: William C. Johnson <[email protected]> Date: Sun Jul 16 22:22:34 2017 -0400 Parse pipe operator as subscript commit b21acb2f12941d9d7d4279320de4c55c7ee3b50f Author: William C. Johnson <[email protected]> Date: Sun Jul 16 21:17:17 2017 -0400 Basic pipeCall parsing commit 70ee2c8 Author: William C. Johnson <[email protected]> Date: Sun Jul 16 20:46:52 2017 -0400 Syntactic placeholders commit d5d4e74 Author: William C. Johnson <[email protected]> Date: Sun Jul 16 20:41:48 2017 -0400 Allow placeholder to be changed via config commit 32e43a0 Author: William C. Johnson <[email protected]> Date: Sun Jul 16 20:24:59 2017 -0400 Spread placeholder tests commit 73b9d32 Author: William C. Johnson <[email protected]> Date: Sun Jul 16 15:31:50 2017 -0400 Initial implementation of syntactic placeholders commit f199a61 Author: blackmiaool <[email protected]> Date: Wed Jun 28 22:22:53 2017 +0800 fix the error info of 'sourceType' (babel#572) commit c7292a7 Author: Daniel Tschinder <[email protected]> Date: Sun Jun 18 23:04:08 2017 +0200 Changelog 6.17.4 commit 5b7fd46 Author: Daniel Tschinder <[email protected]> Date: Sun Jun 18 23:01:51 2017 +0200 6.17.4 commit e79aadd Author: aardito2 <[email protected]> Date: Sun Jun 18 16:57:42 2017 -0400 Fix comment attachment for call expressions (babel#575) commit ec6d688 Author: Daniel Tschinder <[email protected]> Date: Sun Jun 18 22:52:25 2017 +0200 Correctly put typeParameters on FunctionExpression (babel#585) (babel#586) commit 40f9a95 Author: Daniel Tschinder <[email protected]> Date: Fri Jun 9 11:12:01 2017 +0200 6.17.3 commit 1a19491 Author: Daniel Tschinder <[email protected]> Date: Fri Jun 9 11:11:29 2017 +0200 Changelog 6.17.3 commit 041e7ef Author: Daniel Tschinder <[email protected]> Date: Fri Jun 9 11:05:37 2017 +0200 Fix location info on FunctionTypeParam nodes (babel#565) (babel#571) commit eeba714 Author: Daniel Tschinder <[email protected]> Date: Sat Jun 3 16:21:53 2017 +0200 Fix stmt value being the raw value (babel#557) (babel#558) commit e212701 Author: Daniel Tschinder <[email protected]> Date: Thu Jun 1 11:51:01 2017 +0200 Add node 8 and remove <4 (babel#553) commit a9aade9 Author: Daniel Tschinder <[email protected]> Date: Wed May 31 23:06:55 2017 +0200 Changelog 6.17.2 commit 8722762 Author: Daniel Tschinder <[email protected]> Date: Wed May 31 23:00:04 2017 +0200 6.17.2 commit 8a8cc1a Author: Daniel Tschinder <[email protected]> Date: Wed May 31 22:58:36 2017 +0200 Fixed disappearing comments following a trailing comma on the last property of an object literal or the last argument of a call expression (babel#478) (babel#551) commit 990675d Author: Daniel Tschinder <[email protected]> Date: Fri May 19 10:28:42 2017 +0200 Fix babel#437: only prohibit 'export type from "module" ' when flow is enabled (babel#438) (babel#531) * Only prohibit 'export type' when flow is enabled * Fix lint commit b7c13a8 Author: Daniel Tschinder <[email protected]> Date: Fri May 19 10:04:54 2017 +0200 Fix handling of anonymous parameters in `flowParseObjectTypeMethodish`. (babel#526) (babel#528) By analogy with `flowParseFunctionTypeParams` (cf. commit 407c97c). commit 54399ab Author: Daniel Tschinder <[email protected]> Date: Thu May 11 12:10:28 2017 +0200 Convert argument of SpreadElement correctly to assignable (babel#518) (babel#519) commit 28985e7 Author: Daniel Tschinder <[email protected]> Date: Wed May 10 18:25:58 2017 +0200 6.17.1 commit 934a3a7 Author: Daniel Tschinder <[email protected]> Date: Wed May 10 18:25:13 2017 +0200 Update changelog commit 9a1ef48 Merge: 8c885ea 1077a73 Author: Daniel Tschinder <[email protected]> Date: Wed May 10 18:22:06 2017 +0200 Merge pull request babel#516 from babel/backport2 Backport babel#433 babel#473 + typo commit 1077a73 Author: Brian Ng <[email protected]> Date: Mon Apr 10 10:48:51 2017 -0500 Fix typo in flow spread operator error [skip ci] commit b98f463 Author: Alex Kuzmenko <[email protected]> Date: Fri Apr 21 16:22:50 2017 +0300 Fixed invalid number literal parsing (babel#473) * Fixed invalid number literal parsing * Don't ignore period or E characters after octal numbers cherry-pick fix from acorn * Fix tests commit 406c3da Author: Alex Kuzmenko <[email protected]> Date: Mon Apr 3 23:25:29 2017 +0300 Fix number parser (babel#433) Fixed number parser #2 Added one more test commit 8c885ea Merge: a2c1432 7c56c24 Author: Daniel Tschinder <[email protected]> Date: Wed May 10 18:03:58 2017 +0200 Merge pull request babel#515 from babel/backport1 Backport babel#499, babel#510, babel#475, babel#479 commit 7c56c24 Author: Brian Ng <[email protected]> Date: Fri Apr 21 09:25:34 2017 -0500 Ensure non pattern shorthand props are checked for reserved words (babel#479) commit 67db275 Author: Brian Ng <[email protected]> Date: Sun Apr 23 17:45:19 2017 -0500 Remove jsx context when parsing arrow functions (babel#475) commit 4a29ccd Author: Brian Ng <[email protected]> Date: Tue May 2 13:41:10 2017 -0500 Allow super in class properties (babel#499) commit 63412e5 Author: Brian Ng <[email protected]> Date: Wed May 10 09:18:08 2017 -0500 Allow flow class field to be named constructor (babel#510) commit a2c1432 Author: Sebastian McKenzie <[email protected]> Date: Thu Apr 20 16:43:47 2017 +0100 Add changelog commit 2e17e5b Author: Sebastian McKenzie <[email protected]> Date: Thu Apr 20 16:41:23 2017 +0100 6.17.0 commit a4ca1cc Author: Sebastian McKenzie <[email protected]> Date: Thu Apr 20 16:40:55 2017 +0100 Cherry-pick babel#418 to 6.x (babel#476) * Add support for flow type spread (babel#418) * Add support for flow type spread * Broaden spreadable types from primary to all, more tests * Eliminate variance sigil for type spreads, better errors, fix tests # Conflicts: # src/plugins/flow.js * Fix tests commit fab343e Author: Kevin Gibbons <[email protected]> Date: Wed Mar 22 09:50:34 2017 +1300 Add support for invalid escapes in tagged templates (babel#274) Per the stage-3 TC39 proposal: https://github.com/tc39/proposal-template-literal-revision commit 0811438 Author: Daniel Tschinder <[email protected]> Date: Sun Mar 19 22:07:16 2017 +0100 Update flow (babel#422) commit 4c88cfe Author: Daniel Tschinder <[email protected]> Date: Fri Mar 10 13:50:53 2017 +0100 Disable failing tests (fixed in 7.0) commit c0a89f4 Author: Daniel Tschinder <[email protected]> Date: Fri Mar 10 13:41:08 2017 +0100 Upgrade flow to 0.41 commit ca652bd Author: Brian Ng <[email protected]> Date: Wed Mar 8 09:34:22 2017 -0600 Throw error if new.target is used outside of a function (babel#402) commit 35e7732 Author: Brian Ng <[email protected]> Date: Fri Mar 10 05:45:45 2017 -0600 Fix watch command (babel#403) commit 902f93d Author: Daniel Tschinder <[email protected]> Date: Fri Mar 10 13:35:49 2017 +0100 Update yarn lock commit 81056ee Author: Kevin Gibbons <[email protected]> Date: Fri Mar 10 03:43:45 2017 -0800 Fix parsing of class properties (babel#351) commit 0b7da50 Author: Daniel Tschinder <[email protected]> Date: Sat Mar 4 21:00:10 2017 +0100 Add estree test for correct order of directives commit 962ce16 Author: Alex Kuzmenko <[email protected]> Date: Fri Mar 3 22:38:04 2017 +0200 Add DoExpression to spec (babel#364)
1 parent 4fb4bef commit 640078c

File tree

867 files changed

+39513
-9495
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

867 files changed

+39513
-9495
lines changed

.travis.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
sudo: false
22
language: node_js
33
node_js:
4-
- "0.10"
5-
- "0.12"
64
- "4"
75
- "5"
86
- "6"
97
- "7"
8+
- "8"
109

1110
before_install:
1211
# Rollup doesn't support node < 4.x. Switch to latest for build

AUTHORS

+2-41
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,2 @@
1-
List of Acorn contributors. Updated before every release.
2-
3-
Adrian Rakovsky
4-
Alistair Braidwood
5-
Andres Suarez
6-
Aparajita Fishman
7-
Arian Stolwijk
8-
Artem Govorov
9-
Brandon Mills
10-
Charles Hughes
11-
Conrad Irwin
12-
David Bonnet
13-
Forbes Lindesay
14-
Gilad Peleg
15-
impinball
16-
Ingvar Stepanyan
17-
Jesse McCarthy
18-
Jiaxing Wang
19-
Joel Kemp
20-
Johannes Herr
21-
Jürg Lehni
22-
keeyipchan
23-
Kevin Kwok
24-
krator
25-
Marijn Haverbeke
26-
Martin Carlberg
27-
Mathias Bynens
28-
Mathieu 'p01' Henri
29-
Max Schaefer
30-
Max Zerzouri
31-
Mihai Bazon
32-
Mike Rennie
33-
Nick Fitzgerald
34-
Oskar Schöldström
35-
Paul Harper
36-
Peter Rust
37-
PlNG
38-
r-e-d
39-
Rich Harris
40-
Sebastian McKenzie
41-
zsjforcn
1+
Alex Rattray <[email protected]> (http://alexrattray.com/)
2+
William C. Johnson <[email protected]> (https://github.com/wcjohnson)

AUTHORS.acorn

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
List of Acorn contributors. Updated before every release.
2+
3+
Adrian Rakovsky
4+
Alistair Braidwood
5+
Andres Suarez
6+
Aparajita Fishman
7+
Arian Stolwijk
8+
Artem Govorov
9+
Brandon Mills
10+
Charles Hughes
11+
Conrad Irwin
12+
David Bonnet
13+
Forbes Lindesay
14+
Gilad Peleg
15+
impinball
16+
Ingvar Stepanyan
17+
Jesse McCarthy
18+
Jiaxing Wang
19+
Joel Kemp
20+
Johannes Herr
21+
Jürg Lehni
22+
keeyipchan
23+
Kevin Kwok
24+
krator
25+
Marijn Haverbeke
26+
Martin Carlberg
27+
Mathias Bynens
28+
Mathieu 'p01' Henri
29+
Max Schaefer
30+
Max Zerzouri
31+
Mihai Bazon
32+
Mike Rennie
33+
Nick Fitzgerald
34+
Oskar Schöldström
35+
Paul Harper
36+
Peter Rust
37+
PlNG
38+
r-e-d
39+
Rich Harris
40+
Sebastian McKenzie
41+
zsjforcn

CHANGELOG.md

+43-7
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,42 @@ _Note: Gaps between patch versions are faulty, broken or test releases._
1515

1616
See the [Babel Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md) for the pre-6.8.0 version Changelog.
1717

18+
## 6.17.4 (2017-06-18)
19+
20+
* Fix comment attachment for call expressions (#575) (aardito2)
21+
* Correctly put typeParameters on FunctionExpression (#585) (Daniel Tschinder)
22+
23+
## 6.17.3 (2017-06-09)
24+
25+
* Fix location info on FunctionTypeParam nodes (#565) (#571) (Michal Srb)
26+
* Fix stmt value being the raw value (#557) (#558) (Daniel Tschinder)
27+
28+
## 6.17.2 (2017-05-31)
29+
30+
* Fixed disappearing comments following a trailing comma on the last property of an object literal or the last argument of a call expression (#478) (aardito2)
31+
* Fix #437: only prohibit 'export type from "module" ' when flow is enabled (#438) (Kevin Gibbons)
32+
* Fix handling of anonymous parameters in `flowParseObjectTypeMethodish`. (#526) (Max Schaefer)
33+
* Convert argument of SpreadElement correctly to assignable (#518) (Daniel Tschinder)
34+
35+
## 6.17.1 (2017-05-10)
36+
37+
* Fix typo in flow spread operator error (Brian Ng)
38+
* Fixed invalid number literal parsing ([#473](https://github.com/babel/babylon/pull/473)) (Alex Kuzmenko)
39+
* Fix number parser ([#433](https://github.com/babel/babylon/pull/433)) (Alex Kuzmenko)
40+
* Ensure non pattern shorthand props are checked for reserved words ([#479](https://github.com/babel/babylon/pull/479)) (Brian Ng)
41+
* Remove jsx context when parsing arrow functions ([#475](https://github.com/babel/babylon/pull/475)) (Brian Ng)
42+
* Allow super in class properties ([#499](https://github.com/babel/babylon/pull/499)) (Brian Ng)
43+
* Allow flow class field to be named constructor ([#510](https://github.com/babel/babylon/pull/510)) (Brian Ng)
44+
45+
## 6.17.0 (2017-04-20)
46+
47+
* Cherry-pick #418 to 6.x ([#476](https://github.com/babel/babylon/pull/476)) (Sebastian McKenzie)
48+
* Add support for invalid escapes in tagged templates ([#274](https://github.com/babel/babylon/pull/274)) (Kevin Gibbons)
49+
* Throw error if new.target is used outside of a function ([#402](https://github.com/babel/babylon/pull/402)) (Brian Ng)
50+
* Fix parsing of class properties ([#351](https://github.com/babel/babylon/pull/351)) (Kevin Gibbons)
51+
* Fix parsing yield with dynamicImport ([#383](https://github.com/babel/babylon/pull/383)) (Brian Ng)
52+
* Ensure consistent start args for parseParenItem ([#386](https://github.com/babel/babylon/pull/386)) (Brian Ng)
53+
1854
## 6.16.0 (2017-02-23)
1955

2056
### :rocket: New Feature
@@ -172,7 +208,7 @@ Update API documentation ([#330](https://github.com/babel/babylon/pull/330)) (Ti
172208
Added keywords to package.json ([#323](https://github.com/babel/babylon/pull/323)) (Dmytro)
173209

174210
AST spec: fix casing of `RegExpLiteral` ([#318](https://github.com/babel/babylon/pull/318)) (Mathias Bynens)
175-
211+
176212
## 6.15.0 (2017-01-10)
177213

178214
### :eyeglasses: Spec Compliancy
@@ -313,20 +349,20 @@ type C = { [string]: number };
313349
```
314350

315351
Parse flow nested array type annotations like `number[][]` ([#219](https://github.com/babel/babylon/pull/219)) (Bernhard Häussner)
316-
352+
317353
Supports these form now of specifying array types:
318354

319355
```js
320356
var a: number[][][][];
321357
var b: string[][];
322358
```
323-
359+
324360
### :bug: Bug Fix
325361

326362
Correctly eat semicolon at the end of `DelcareModuleExports` ([#223](https://github.com/babel/babylon/pull/223)) (Daniel Tschinder)
327363

328364
```
329-
declare module "foo" { declare module.exports: number }
365+
declare module "foo" { declare module.exports: number }
330366
declare module "foo" { declare module.exports: number; } // also allowed now
331367
```
332368

@@ -414,7 +450,7 @@ Readd missin .eslinignore for IDEs (Daniel Tschinder)
414450
Error on missing expected.json fixture in CI ([#188](https://github.com/babel/babylon/pull/188)) (Moti Zilberman)
415451

416452
Add .gitattributes and .editorconfig for LF line endings ([#179](https://github.com/babel/babylon/pull/179)) (Moti Zilberman)
417-
453+
418454
Fixes two tests that are failing after the merge of #172 ([#177](https://github.com/babel/babylon/pull/177)) (Moti Zilberman)
419455

420456
## v6.12.0 (2016-10-14)
@@ -627,7 +663,7 @@ function something({ set = null, get = null }) {}
627663
```js
628664
// regression with duplicate export check
629665
SyntaxError: ./typography.js: `undefined` has already been exported. Exported identifiers must be unique. (22:13)
630-
20 |
666+
20 |
631667
21 | export const { rhythm } = typography;
632668
> 22 | export const { TypographyStyle } = typography
633669
```
@@ -932,7 +968,7 @@ var obj = {
932968
933969
There is also a new node type, `ForAwaitStatement`.
934970
935-
> [Async generators and for-await](https://github.com/tc39/proposal-async-iteration) are now a [stage 2 proposal](https://github.com/tc39/ecma262#current-proposals).
971+
> [Async generators and for-await](https://github.com/tc39/proposal-async-iteration) are now a [stage 2 proposal](https://github.com/tc39/ecma262#current-proposals).
936972
937973
Example:
938974

README.md

+9-29
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,20 @@
11
# @oigroup/babylon-lightscript
22

3-
> NB: This is a fork of babylon-lightscript which implements language changes that are not necessarily endorsed by upstream. Generally speaking, our intent is to closely follow the upstream language -- however, there may be notable deviations which are documented below.
3+
## If you are looking to get started with the LightScript language, this is the wrong place -- [check out the docs here!](http://wcjohnson.github.io/lightscript)
44

5-
The parser for [LightScript](http://lightscript.org).
5+
@oigroup/lightscript is a futuristic fork of the [LightScript](http://lightscript.org) language with additional features, fixes, and tools. This is the parser for [@oigroup/LightScript](http://wcjohnson.github.io/lightscript).
66
To be used with [@oigroup/babel-plugin-lightscript](https://github.com/wcjohnson/babel-plugin-lightscript).
77

8-
A minimally-invasive fork of [Babylon](https://github.com/babel/babylon).
9-
With the exception of a few reserved keywords,
10-
it parses JS as JS unless the `"lightscript"` plugin is passed.
8+
Unless you are working on tooling or hacking the language itself, you don't need this -- get the [Babel preset](http://wcjohnson.github.io/lightscript) instead.
9+
10+
A fork of [Babylon](https://github.com/babel/babylon).
1111

1212
### Contributing
1313

14-
yarn
14+
To get up and running:
15+
16+
npm install
1517
npm run build
1618
npm test
1719

18-
New tests should go in the
19-
[lightscript](https://github.com/lightscript/babylon-lightscript/tree/lightscript/test/fixtures/lightscript)
20-
directory.
21-
22-
### Deviations from LightScript proper
23-
24-
#### If Statements and Expressions
25-
26-
(See https://github.com/wcjohnson/babylon-lightscript/issues/2)
27-
28-
`@oigroup/babylon-lightscript` enforces consistent syntax between if statements and if expressions, so that programmers don't encounter land mines when switching between the two. In practical terms, this means:
29-
30-
**This is now illegal syntax:**
31-
```js
32-
if a: {x} else b
33-
```
34-
If you use colon syntax on one clause of an `if` you must use it on all clauses.
35-
36-
**This is now legal syntax:**
37-
```js
38-
y = if(three()) 3 else 4
39-
```
40-
Traditional JavaScript `if` syntax now works with `if` expressions (as it should, since it works for `if` statements).
20+
Issues: https://github.com/wcjohnson/lightscript/issues

ast/spec.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ These are the core Babylon AST node types.
7878
- [CallExpression](#callexpression)
7979
- [NewExpression](#newexpression)
8080
- [SequenceExpression](#sequenceexpression)
81+
- [DoExpression](#doexpression)
8182
- [Template Literals](#template-literals)
8283
- [TemplateLiteral](#templateliteral)
8384
- [TaggedTemplateExpression](#taggedtemplateexpression)
@@ -920,6 +921,15 @@ interface SequenceExpression <: Expression {
920921

921922
A sequence expression, i.e., a comma-separated sequence of expressions.
922923

924+
## DoExpression
925+
926+
```js
927+
interface DoExpression <: Expression {
928+
type: "DoExpression";
929+
body: BlockStatement
930+
}
931+
```
932+
923933
# Template Literals
924934

925935
## TemplateLiteral
@@ -949,7 +959,7 @@ interface TemplateElement <: Node {
949959
type: "TemplateElement";
950960
tail: boolean;
951961
value: {
952-
cooked: string;
962+
cooked: string | null;
953963
raw: string;
954964
};
955965
}

package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
{
22
"name": "@oigroup/babylon-lightscript",
3-
"version": "2.3.2",
3+
"version": "3.0.0-beta.9",
44
"description": "A LightScript parser, based on babylon (a JavaScript parser)",
5-
"author": "Alex Rattray <[email protected]>",
6-
"homepage": "http://lightscript.org/",
5+
"homepage": "http://wcjohnson.github.io/lightscript",
76
"license": "MIT",
87
"keywords": [
98
"babel",
@@ -12,7 +11,7 @@
1211
"babylon",
1312
"lightscript"
1413
],
15-
"repository": "https://github.com/lightscript/babylon-lightscript",
14+
"repository": "https://github.com/wcjohnson/babylon-lightscript",
1615
"main": "lib/index.js",
1716
"files": [
1817
"bin",
@@ -33,13 +32,14 @@
3332
"eslint": "^3.19.0",
3433
"eslint-config-babel": "^6.0.0",
3534
"eslint-plugin-flowtype": "^2.20.0",
36-
"flow-bin": "^0.40.0",
35+
"flow-bin": "^0.42.0",
3736
"lodash": "^4.0.0",
3837
"nyc": "^10.2.0",
3938
"rimraf": "^2.6.1",
4039
"rollup": "^0.41.0",
4140
"rollup-plugin-babel": "^2.6.1",
4241
"rollup-plugin-node-resolve": "^2.0.0",
42+
"rollup-watch": "^3.2.2",
4343
"try-resolve": "^1.0.1",
4444
"unicode-9.0.0": "~0.7.0"
4545
},
@@ -58,7 +58,7 @@
5858
"test-only": "ava",
5959
"test-ci": "nyc npm run test-only",
6060
"changelog": "git log `git describe --tags --abbrev=0`..HEAD --pretty=format:' * %s (%an)' | grep -v 'Merge pull request'",
61-
"watch": "npm run clean && cross-env BABEL_ENV=watch babel src --out-dir lib --watch",
61+
"watch": "npm run clean && rollup -c --watch",
6262
"debug-parse": "node --inspect --debug-brk bin/babylon-lightscript.js"
6363
},
6464
"nyc": {

src/index.js

+4
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,8 @@ export function getAvailablePlugins() {
3737
return result;
3838
}
3939

40+
export function getPluginMetadata() {
41+
return pluginMetadata;
42+
}
43+
4044
export { tokTypes };

0 commit comments

Comments
 (0)