Logan Smyth
55a1ffd266
Mark a bunch of methods private.
2016-07-14 22:58:46 -07:00
Justin Ridgewell
a70755d0e6
Further optimize babel-generator Buffer
...
We can eek out a bit more speed from Babel generator by turning the
buffer into an array as well.
Re: #3565
```
Items: 2 , time: 4 length: 114
Items: 4 , time: 3 length: 218
Items: 8 , time: 3 length: 426
Items: 16 , time: 2 length: 861
Items: 32 , time: 5 length: 1741
Items: 64 , time: 2 length: 3501
Items: 128 , time: 4 length: 7106
Items: 256 , time: 8 length: 14530
Items: 512 , time: 12 length: 29378
Items: 1024 , time: 24 length: 59147
Items: 2048 , time: 38 length: 121611
Items: 4096 , time: 71 length: 246539
Items: 8192 , time: 131 length: 496395
Items: 16384 , time: 350 length: 1015260
Items: 32768 , time: 573 length: 2063836
Items: 65536 , time: 1263 length: 4160988
Items: 131072 , time: 2143 length: 8448509
Items: 262144 , time: 4859 length: 17230333
```
to
```
Items: 2 , time: 4 length: 114
Items: 4 , time: 3 length: 218
Items: 8 , time: 9 length: 426
Items: 16 , time: 1 length: 861
Items: 32 , time: 5 length: 1741
Items: 64 , time: 1 length: 3501
Items: 128 , time: 3 length: 7106
Items: 256 , time: 7 length: 14530
Items: 512 , time: 9 length: 29378
Items: 1024 , time: 17 length: 59147
Items: 2048 , time: 30 length: 121611
Items: 4096 , time: 61 length: 246539
Items: 8192 , time: 113 length: 496395
Items: 16384 , time: 307 length: 1015260
Items: 32768 , time: 443 length: 2063836
Items: 65536 , time: 1065 length: 4160988
Items: 131072 , time: 1799 length: 8448509
Items: 262144 , time: 4217 length: 17230333
```
2016-07-15 01:27:45 -04:00
Logan Smyth
6b7f3cc4cd
Inline comment generation function.
2016-07-14 21:55:08 -07:00
Logan Smyth
475581dc66
Ditch the tiny Position class.
2016-07-14 21:55:08 -07:00
Logan Smyth
8379c21939
Drop unneeded condition in SourceMap class.
2016-07-14 21:54:47 -07:00
Greenkeeper
f5df4b9411
chore(package): update cross-env to version 2.0.0 ( #77 )
...
https://greenkeeper.io/
2016-07-14 00:35:13 +02:00
Henry Zhu
3073c63e58
Docs: 6.11.3 changelog [skip ci] ( #3576 )
2016-07-13 06:50:47 -04:00
Daniel Tschinder
406cd33ca2
Use plugin-babel-istanbul for codecoverage
2016-07-13 11:43:31 +02:00
Henry Zhu
7076c675d9
v6.11.3
2016-07-12 22:33:58 -04:00
Justin Ridgewell
823ffbd87c
Fix error in rest parameter length optimization ( #3573 )
...
If there aren’t enough arguments to get to the offset index, we would
return an negative length.
2016-07-12 21:12:45 -04:00
Sebastian McKenzie
3fad8cc9a7
Merge pull request #42 from calebmer/feat/jsx-spread-children
...
Add JSX spread children
2016-07-13 01:32:09 +01:00
Daniel Tschinder
b00ba47e6c
run build before publish with production env
2016-07-13 01:02:11 +02:00
Daniel Tschinder
964bd4d609
Add coverage badge
2016-07-13 00:43:26 +02:00
Daniel Tschinder
0b62ecee21
Add sourcemaps for code coverage
2016-07-13 00:27:53 +02:00
Daniel Tschinder
149a339932
Use codecov node client
2016-07-12 23:05:13 +02:00
Daniel Tschinder
f4b8b85f11
Use correct coverage reporter
2016-07-12 22:34:43 +02:00
Daniel Tschinder
47d11ae084
Enable coverage on travis
2016-07-12 22:20:31 +02:00
Daniel Tschinder
15a391d305
Fix tests to not save expected output if we expect the test to fail
2016-07-11 13:35:50 +02:00
James Talmage
0a9cbe6e83
git commit add test for package.json config
2016-07-07 16:58:22 -04:00
James Talmage
8e84196eb8
add tests for env options
2016-07-07 16:36:34 -04:00
Daniel Tschinder
50422c6db1
Add PR numbers to changelog [skip ci]
2016-07-07 10:17:33 +02:00
Daniel Tschinder
ee6a578478
Make a shallow clone of babel for testing
...
There is no need to retrieve the whole history.
2016-07-07 10:00:04 +02:00
Logan Smyth
57ef3ea8eb
Merge pull request #3567 from loganfsmyth/fix-generator-buffer-getlast
...
Use the first item in the queue since it is the most recent.
2016-07-06 23:45:46 -07:00
Logan Smyth
11d49db23b
Use the first item in the queue since it is the most recent.
2016-07-06 23:30:45 -07:00
Logan Smyth
f1a71093f9
Merge pull request #3566 from jridgewell/patch-1
...
Remove unused Position#unshift
2016-07-06 19:13:53 -07:00
Justin Ridgewell
9cdb24157e
Remove unused Position#unshift
...
Not only is it unused, it'll break things if you push a newline since it doesn't set a new `#column` value.
2016-07-06 21:58:02 -04:00
Logan Smyth
193b9b5797
Merge pull request #3565 from loganfsmyth/codegen-append-only
...
Make the code generator write-only to avoid exponential time generation
2016-07-06 18:33:00 -07:00
Henry Zhu
46ed49fe3a
add 6.8.3,6.8.4 changelog [skip ci]
2016-07-06 19:40:51 -04:00
Henry Zhu
46fc224382
6.8.4
2016-07-06 19:34:38 -04:00
Daniel Tschinder
34a82f716e
Fix the location of params, when flow and default value used ( #68 )
...
Fixes #67
2016-07-06 17:48:47 -04:00
Daniel Tschinder
83bf84f7cd
6.8.2 changelog [skip ci] ( #60 )
2016-07-06 17:48:31 -04:00
Logan Smyth
65a677decd
Maintain a queue to allow deletion of whitespace/semicolons without accessing buf.
2016-07-05 21:03:29 -07:00
Logan Smyth
cb60808500
Make buffer a property for managing the token queue.
2016-07-05 21:02:46 -07:00
Logan Smyth
c5a6c5c291
Pass values directly to avoid object usage.
2016-07-05 21:01:33 -07:00
Logan Smyth
abb9618e8c
Drop array support from endsWith.
2016-07-05 19:44:51 -07:00
Logan Smyth
f908f3fc88
Use 'push' for all cases.
2016-07-04 22:49:59 -07:00
Logan Smyth
caef91672d
Remove unnecessary passthrough function.
2016-07-04 22:49:59 -07:00
Logan Smyth
578f48134b
Remove removeLast usage.
2016-07-04 22:49:59 -07:00
Logan Smyth
80cd3ca331
Drop one usage of removeLast.
2016-07-04 22:49:59 -07:00
Logan Smyth
d6b1e36d49
Make the 'catchUp' call implicit to source location updates.
2016-07-04 22:49:58 -07:00
Logan Smyth
3680d10b6f
Centralize position tracking into buffer.
2016-07-04 22:42:28 -07:00
James Talmage
62ad67e5d9
add tests for build-config-chain
2016-07-03 23:58:44 -04:00
Sebastian McKenzie
e0639505d1
6.8.3
2016-07-03 16:47:35 +01:00
Sebastian McKenzie
22cf1f8826
Merge pull request #63 from danez/performance-regression
...
Fix performance regression introduced in 6.8.2
2016-07-03 16:46:44 +01:00
Daniel Tschinder
4e2072def8
Fix performance regression introduced in 6.8.2
...
This commit e6c11a0 (#19 ) made a big performance regression.
The reason was that parseConditional was always cloning the current state
even if no question mark (potential conditional or flow-optional
token) was at the current position.
Simply checking if questionmark matches the current token solves the problem.
Fixes #62
2016-07-03 11:52:01 +02:00
Logan Smyth
177c092496
Remove sideeffectful position mutation.
2016-07-02 15:38:05 -07:00
Logan Smyth
e4da8cfea5
Use the standard newline function.
2016-07-02 15:38:05 -07:00
James Kyle
c561312bee
Adds strictMode option to strict-mode transform ( #3562 )
2016-07-02 13:27:57 -07:00
Logan Smyth
52683f0018
Use the proper transform plugin for preset-es2016. ( #3563 )
2016-07-02 14:46:38 -04:00
James Talmage
79d8c5aa14
find list of applicable configs without requiring babel-core or plugins
...
`build-config-chain.js` creates an array of options which will be passed to `OptionsManager#mergeOptions`. The advantage of separating it out is that `build-config-chain` has a very minimal dependency list. The eventual intent is to allow the require hook to lazy load only when required. In other words, if no required files ever match the patterns `ignore` / `only` patterns, the bulk of babel-core, and the associated plugins, will never be loaded.
2016-07-02 03:04:49 -04:00