UNPKG

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