UNPKG

6.49 kBMarkdownView Raw
1# 3.8.1 (2018-12-03)
2
3* Fix infinite loop when a file ends with a short identifier ([#363])
4* Small perf improvements.
5
6# 3.8.0 (2018-11-25)
7
8* Various simplifications in prep for compiling the project with AssemblyScript.
9* Performance improvements, varying from 10% to 70% better performance depending
10 on use case.
11* Fix infinite loop in flow `declare module` parsing ([#359])
12
13# 3.7.1 (2018-11-18)
14
15* Fix crash on empty export expressions ([#338])
16* Fix crash on TypeScript `declare global` ([#339])
17* Fix crash when using overloaded constructors in TypeScript ([#340])
18* Fix TypeScript import elision when imported names are shadowed by variables
19 ([#342])
20* Fix import name transform to work in code without semicolons ([#337])
21 (Alec Larson)
22
23# 3.7.0 (2018-11-11)
24
25* Fix perf regression in TypeScript parsing ([#327])
26* Fix broken line numbers in syntax errors, improve parser backtracking
27 performance ([#331])
28* Add Parser features and bugfixes from the Babel parser, including TypeScript
29 3.0 support ([#333])
30
31# 3.6.0 (2018-10-29)
32
33* Add CLI support for jsx pragmas ([#321]) (Josiah Savary)
34* Allow super.method() calls in constructor ([#324]) (Erik Arvidsson)
35
36# 3.5.0 (2018-09-30)
37
38* Change class field implementation to use initializer methods ([#313])
39* Update TypeScript and Flow support to include new language features recently
40 supported by Babel. ([#314], [#315], [#316])
41* Properly handle function name inference in named exports ([#317])
42
43# 3.4.2 (2018-08-27)
44
45* Implement destructuring in export declarations ([#305])
46* Properly handle function name inference in named exports ([#308])
47
48# 3.4.1 (2018-07-06)
49
50* Quote shorthand prop keys that contain a hyphen ([#292]) (Kevin Gao)
51* Fix infinite loop on incomplete JSX. ([#296])
52
53# 3.4.0 (2018-07-01)
54
55* Add a sucrase-node CLI that wraps node. ([#288])
56* Allow exported generator functions. ([#290])
57
58# 3.3.0 (2018-06-28)
59
60* Add a --out-extension option to the CLI. ([#282])
61* Add a -q/--quiet option in the CLI and use it in the build script. ([#284])
62* Don't emit semicolons in class bodies. ([#285])
63* Fix ugly emitted comments when removing code between tokens. ([#286])
64
65# 3.2.1 (2018-06-27)
66
67* Allow TS type parameters on object member methods. ([#276])
68* Simplify identity source map generator. ([#265])
69* Fix crash on destructured params in arrow function types. ([#278])
70* Remove @flow directives from comments when the flow transform is enabled.
71 ([#279])
72
73# 3.2.0 (2018-06-25)
74
75* Fix crash when using JSX elements as props. ([#268]) (Erik Arvidsson)
76* Fix incorrect compilation of TypeScript optional class properties with an
77 initializer. ([#264])
78* Fix crash on class fields that don't end in a semicolon. ([#271])
79* Allow trailing commas after rest elements. ([#272])
80* Don't crash on class bodies with an index signature. ([#273])
81* Allow member expression identifiers when determining React displayName.
82 ([#274])
83* Add production option and use it for JSX. ([#270]) (Erik Arvidsson)
84* Fix off-by-one error in parsing JSX fragments. ([#275])
85
86# 3.1.0 (2018-06-18)
87
88* Add basic support for source maps ([#257], [#261])
89
90# 3.0.1 (2018-06-11)
91
92* Fix crash in `getVersion`.
93
94# 3.0.0 (2018-06-10)
95
96### Breaking Changes
97
98* `transform` now returns an object ([#244]). You now should write
99 `transform(...).code` instead of just `transform(...)`. `code` is the only
100 property for now, but this allows Sucrase to return source maps and possibly
101 other values.
102* The package's `dist` folder has been restructured, so direct internal module
103 imports may break.
104
105### Other changes
106
107* Overhaul build system to use Sucrase for everything ([#243])
108* Omit import helpers when unused ([#237]) (Alec Larson)
109* Fix files accidentally included in final package ([#233])
110* Various refactors and performance improvements.
111
112# 2.2.0 (2018-05-19)
113
114* Add support for JSX fragment syntax.
115* Add support for custom JSX pragmas rather than defaulting to
116 `React.createElement` and `React.Fragment`.
117
118[#233]: https://github.com/alangpierce/sucrase/pull/233
119[#237]: https://github.com/alangpierce/sucrase/pull/237
120[#243]: https://github.com/alangpierce/sucrase/pull/243
121[#244]: https://github.com/alangpierce/sucrase/pull/244
122[#257]: https://github.com/alangpierce/sucrase/pull/257
123[#261]: https://github.com/alangpierce/sucrase/pull/261
124[#264]: https://github.com/alangpierce/sucrase/pull/264
125[#265]: https://github.com/alangpierce/sucrase/pull/265
126[#268]: https://github.com/alangpierce/sucrase/pull/268
127[#270]: https://github.com/alangpierce/sucrase/pull/270
128[#271]: https://github.com/alangpierce/sucrase/pull/271
129[#272]: https://github.com/alangpierce/sucrase/pull/272
130[#273]: https://github.com/alangpierce/sucrase/pull/273
131[#274]: https://github.com/alangpierce/sucrase/pull/274
132[#275]: https://github.com/alangpierce/sucrase/pull/275
133[#276]: https://github.com/alangpierce/sucrase/pull/276
134[#278]: https://github.com/alangpierce/sucrase/pull/278
135[#279]: https://github.com/alangpierce/sucrase/pull/279
136[#282]: https://github.com/alangpierce/sucrase/pull/282
137[#284]: https://github.com/alangpierce/sucrase/pull/284
138[#285]: https://github.com/alangpierce/sucrase/pull/285
139[#286]: https://github.com/alangpierce/sucrase/pull/286
140[#288]: https://github.com/alangpierce/sucrase/pull/288
141[#290]: https://github.com/alangpierce/sucrase/pull/290
142[#292]: https://github.com/alangpierce/sucrase/pull/292
143[#296]: https://github.com/alangpierce/sucrase/pull/296
144[#305]: https://github.com/alangpierce/sucrase/pull/305
145[#308]: https://github.com/alangpierce/sucrase/pull/308
146[#313]: https://github.com/alangpierce/sucrase/pull/313
147[#314]: https://github.com/alangpierce/sucrase/pull/314
148[#315]: https://github.com/alangpierce/sucrase/pull/315
149[#316]: https://github.com/alangpierce/sucrase/pull/316
150[#317]: https://github.com/alangpierce/sucrase/pull/317
151[#321]: https://github.com/alangpierce/sucrase/pull/321
152[#324]: https://github.com/alangpierce/sucrase/pull/324
153[#327]: https://github.com/alangpierce/sucrase/pull/327
154[#331]: https://github.com/alangpierce/sucrase/pull/331
155[#333]: https://github.com/alangpierce/sucrase/pull/333
156[#337]: https://github.com/alangpierce/sucrase/pull/337
157[#338]: https://github.com/alangpierce/sucrase/pull/338
158[#339]: https://github.com/alangpierce/sucrase/pull/339
159[#340]: https://github.com/alangpierce/sucrase/pull/340
160[#342]: https://github.com/alangpierce/sucrase/pull/342
161[#359]: https://github.com/alangpierce/sucrase/pull/359
162[#363]: https://github.com/alangpierce/sucrase/pull/363