source: trip-planner-front/node_modules/magic-string/CHANGELOG.md@ 188ee53

Last change on this file since 188ee53 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 10.6 KB
Line 
1# magic-string changelog
2
3## 0.25.7
4
5* fix bundle mappings after remove and move in multiple sources ([#172](https://github.com/Rich-Harris/magic-string/issues/172))
6
7## 0.25.6
8
9* Use bitwise operators for small performance boost ([#171](https://github.com/Rich-Harris/magic-string/pull/171))
10
11## 0.25.5
12
13* Use a bitset to reduce memory consumption ([#167](https://github.com/Rich-Harris/magic-string/issues/167))
14
15## 0.25.4
16
17* Clone `intro` and `outro` ([#162](https://github.com/Rich-Harris/magic-string/issues/162))
18
19## 0.25.3
20
21* Fix typing of `SourceMap.version`.
22
23## 0.25.2
24
25* Remove deprecated `new Buffer(...)`
26* Handle characters outside Latin1 range when generating a sourcemap in browser ([#154](https://github.com/Rich-Harris/magic-string/issues/154))
27
28## 0.25.1
29
30* Additional types for index.d.ts ([#148](https://github.com/Rich-Harris/magic-string/pull/148))
31
32## 0.25.0
33
34* Add `length` method ([#145](https://github.com/Rich-Harris/magic-string/pull/145))
35* Fix trimming chunks with intro/outro ([#144](https://github.com/Rich-Harris/magic-string/pull/144))
36
37## 0.24.1
38
39* Add `lastLine` and `lastChar` methods ([#142](https://github.com/Rich-Harris/magic-string/pull/142))
40
41## 0.24.0
42
43* Add `isEmpty` methods ([#137](https://github.com/Rich-Harris/magic-string/pull/137))
44* Fix a potential race condition ([#136](https://github.com/Rich-Harris/magic-string/pull/136))
45* Fix CJS/ES bundles inlining `sourcemap-codec` in 0.23.2.
46
47## 0.23.2
48
49* Add `generateDecodedMap` methods ([#134](https://github.com/Rich-Harris/magic-string/pull/134))
50
51## 0.23.1
52
53* Performance ([#132](https://github.com/Rich-Harris/magic-string/pull/132))
54
55## 0.23.0
56
57* Use `sourcemap-codec` for improved performance ([#133](https://github.com/Rich-Harris/magic-string/pull/133))
58
59## 0.22.5
60
61* Add TypeScript interfaces used by rollup ([#131](https://github.com/Rich-Harris/magic-string/pull/131))
62* Remove src directory from npm package
63
64## 0.22.4
65
66* `contentOnly` and `storeName` are both optional
67
68## 0.22.3
69
70* Add `original` to TS definitions
71
72## 0.22.2
73
74* Avoid `declare module` ([#127](https://github.com/Rich-Harris/magic-string/pull/127))
75
76## 0.22.1
77
78* Update TypeScript definitions ([#124](https://github.com/Rich-Harris/magic-string/pull/124))
79
80## 0.22.0
81
82* Prevent `overwrite` state corruption ([#115](https://github.com/Rich-Harris/magic-string/issues/115))
83* Various bugfixes ([#126](https://github.com/Rich-Harris/magic-string/pull/126))
84
85## 0.21.3
86
87* Clone `indentExclusionRanges` correctly ([#122](https://github.com/Rich-Harris/magic-string/pull/122))
88* Fix more typings ([#122](https://github.com/Rich-Harris/magic-string/pull/122))
89
90## 0.21.2
91
92* Add `default` property referencing self in index-legacy.js, to work around TypeScript bug ([#121](https://github.com/Rich-Harris/magic-string/pull/121))
93
94## 0.21.1
95
96* Add typings file to package
97
98## 0.21.0
99
100* Add TypeScript bindings ([#119](https://github.com/Rich-Harris/magic-string/pull/119))
101
102## 0.20.0
103
104* The fourth argument to `overwrite` is a `{storeName, contentOnly}` options object. `storeName: true` is equivalent to `true` before. `contentOnly` will preserve existing appends/prepends to the chunk in question
105
106## 0.19.1
107
108* Prevent overwrites across a split point (i.e. following a `move`)
109* Implement `remove` separately to `overwrite`
110
111## 0.19.0
112
113* More accurate bundle sourcemaps ([#114](https://github.com/Rich-Harris/magic-string/pull/114))
114
115## 0.18.0
116
117* Optimisation – remove empty chunks following `overwrite` or `remove` ([#113](https://github.com/Rich-Harris/magic-string/pull/113))
118
119## 0.17.0
120
121* Add `appendLeft`, `appendRight`, `prependLeft`, `prependRight` methods ([#109](https://github.com/Rich-Harris/magic-string/issues/109))
122* `insertLeft` and `insertRight` are deprecated in favour of `appendLeft` and `prependRight` respectively
123
124## 0.16.0
125
126* Include inserts in range for `overwrite` and `remove` operations ([#89](https://github.com/Rich-Harris/magic-string/pull/89))
127* Make options optional for `bundle.generateMap(...)` ([#73](https://github.com/Rich-Harris/magic-string/pull/73))
128
129## 0.15.2
130
131* Generate correct bundle sourcemap with prepended/appended content
132
133## 0.15.1
134
135* Minor sourcemap fixes
136
137## 0.15.0
138
139* Use named export of `Bundle` in ES build, so ES consumers of magic-string can tree-shake it out
140
141## 0.14.0
142
143* Throw if overwrite of zero-length range is attempted
144* Correctly handle redundant move operations
145
146## 0.13.1
147
148* Fix a bevy of `s.slice()` issues ([#62](https://github.com/Rich-Harris/magic-string/pull/62))
149
150## 0.13.0
151
152* Breaking: `insertAfter` is now `insertLeft`, `insertBefore` is now `insertRight`
153* Breaking: `insert` is no longer available. Use `insertLeft` and `insertRight`
154* Significant performance improvements
155
156## 0.12.1
157
158* Fix sourcemap generation with `insertAfter` and `insertBefore`
159
160## 0.12.0
161
162* Add `insertAfter` and `insertBefore` methods
163
164## 0.11.4
165
166* Fix two regression bugs with `trim()`
167* More informative error message on illegal removals
168
169## 0.11.3
170
171* Fix trim methods to ensure correct sourcemaps with trimmed content ([#53](https://github.com/Rich-Harris/magic-string/pull/53))
172
173## 0.11.2
174
175* Support sourcemaps with moved content
176
177## 0.11.1
178
179* Use `findIndex` helper for 0.12 support
180
181## 0.11.0
182
183* Add experimental `move()` method
184* Refactor internals to support `move()`
185
186## 0.10.2
187
188* Do not overwrite inserts at the end of patched ranges ([#35](https://github.com/Rich-Harris/magic-string/pull/35))
189
190## 0.10.1
191
192* Zero-length inserts are not removed on adjacent overwrites
193
194## 0.10.0
195
196* Complete rewrite, resulting in ~40x speed increase ([#30](https://github.com/Rich-Harris/magic-string/pull/30))
197* Breaking – `magicString.locate` and `locateOrigin` are deprecated
198* More forgiving rules about contiguous patches, and which ranges are valid with `magicString.slice(...)`
199
200## 0.9.1
201
202* Update deps
203
204## 0.9.0
205
206* Update build process
207
208## 0.8.0
209
210* Add an ES6 build, change default UMD build to CommonJS (but keeping existing UMD build with bundled dependencies)
211* Make properties non-enumerable, for cleaner logging
212* Update dependencies
213
214## 0.7.0
215
216* The `names` array is populated when generating sourcemaps, and mappings include name indices where appropriate ([#16](https://github.com/Rich-Harris/magic-string/issues/16))
217* Replaced content is mapped correctly in sourcemaps ([#15](https://github.com/Rich-Harris/magic-string/issues/15))
218
219## 0.6.6
220
221* Adjust mappings correctly when removing replaced content
222* Error correctly when removed characters are used as slice anchors
223
224## 0.6.5
225
226* Fix `jsnext:main` in package.json
227
228## 0.6.4
229
230* Fix bug with positive integer coercion
231
232## 0.6.3
233
234* Intro content is correctly indented
235* Content following an intro with trailing newline is correctly indented
236
237## 0.6.2
238
239* Noop indents are still chainable (fixes bug introduced in 0.6.1)
240
241## 0.6.1
242
243* Indenting with an empty string is a noop
244
245## 0.6.0
246
247* Use rollup for bundling, instead of esperanto
248
249## 0.5.3
250
251* Correct sourcemap generation with bundles containing varied separators
252* `s.clone()` clones indent exclusion ranges and sourcemap locations
253
254## 0.5.2
255
256* `s.slice()` accepts negative numbers, and the second argument can be omitted (means 'original string length'), just like `String.prototype.slice`
257* More informative error message when trying to overwrite content illegally
258
259## 0.5.1
260
261* Allow bundle separator to be the empty string
262* Indenting is handled correctly with empty string separator
263
264## 0.5.0
265
266* `s.replace()` is deprecated in favour of `s.overwrite()` (identical signature)
267* `bundle.addSource()` can take a `MagicString` instance as its sole argument, for convenience
268* The `options` in `new MagicString(str, options)` can include `filename` and `indentExclusionRanges` options, which will be used when bundling
269* New method: `s.snip( start, end )`
270
271## 0.4.9
272
273* `file` option is optional when generating a bundle sourcemap
274
275## 0.4.7
276
277* Repeated insertions at position 0 behave the same as other positions ([#10](https://github.com/Rich-Harris/magic-string/pull/10))
278
279## 0.4.6
280
281* Overlapping ranges can be removed
282* Non-string content is rejected ([#9](https://github.com/Rich-Harris/magic-string/pull/9))
283
284## 0.4.5
285
286* Implement `source.addSourcemapLocation()`
287
288## 0.4.4
289
290* Another Windows fix, this time for file paths when bundling
291
292## 0.4.3
293
294* Handle Windows-style CRLF newlines when determining whether a line is empty
295
296## 0.4.2
297
298* Fix typo in package.json (d'oh again)
299* Use only relative paths for internal modules - makes bundling with dependents (i.e. esperanto) possible
300
301## 0.4.1
302
303* Includes correct files in npm package (d'oh)
304
305## 0.4.0
306
307* Using experimental Esperanto feature ([esperantojs/esperanto#68](https://github.com/esperantojs/esperanto/issues/68)) to generate version with `vlq` dependency included
308
309## 0.3.1
310
311* Fixes a bug whereby multiple insertions at the same location would cause text to repeat ([#5](https://github.com/Rich-Harris/magic-string/issues/5))
312
313## 0.3.0
314
315* Breaking change - `source.indentStr` is `null` if no lines are indented. Use `source.getIndentString()` for the old behaviour (guess, and if no lines are indented, return `\t`)
316* `bundle.getIndentString()` ignores sources with no indented lines when guessing indentation ([#3](https://github.com/Rich-Harris/magic-string/issues/3))
317
318## 0.2.7
319
320* `source.trimLines()` removes empty lines from start/end of source, leaving other whitespace untouched
321* Indentation is not added to an empty source
322
323## 0.2.6
324
325* Performance improvement - adjustments are only made when necessary
326
327## 0.2.5
328
329* Single spaces are ignored when guessing indentation - experience shows these are more likely to be e.g. JSDoc comments than actual indentation
330* `bundle.addSource()` can take an `indentExclusionRanges` option
331
332## 0.2.4
333
334* Empty lines are not indented
335
336## 0.2.3
337
338* Fixes edge case with bundle sourcemaps
339
340## 0.2.2
341
342* Make `sources` paths in sourcemaps relative to `options.file`
343
344## 0.2.1
345
346* Minor fix for `bundle.indent()`
347
348## 0.2.0
349
350* Implement `MagicString.Bundle` for concatenating magic strings
351
352## 0.1.10
353
354* Fix sourcemap encoding
355
356## 0.1.9
357
358* Better performance when indenting large chunks of code
359
360## 0.1.8
361
362* Sourcemaps generated with `s.generateMap()` have a `toUrl()` method that generates a DataURI
363
364## 0.1.7
365
366* Implement `s.insert( index, content )` - roughly equivalent to `s.replace( index, index, content )`
367
368## 0.1.6
369
370* Version bump for npm's benefit
371
372## 0.1.5
373
374* `s.indent({ exclude: [ x, y ] })` prevents lines between (original) characters `x` and `y` from being indented. Multiple exclusion ranges are also supported (e.g. `exclude: [[a, b], [c, d]]`)
375
376## 0.1.4
377
378* `s.locate()` doesn't throw out-of-bound error if index is equal to original string's length
379
380## 0.1.3
381
382* `s.trim()` returns `this` (i.e. is chainable)
383
384## 0.1.2
385
386* Implement `s.slice()`
387
388## 0.1.1
389
390* Implement `s.trim()`
391
392## 0.1.0
393
394* First release
Note: See TracBrowser for help on using the repository browser.