UNPKG

4.58 kBMarkdownView Raw
1# Change Log
2
3## 0.1.42
4
5* Fix an issue where `SourceNode`s from different versions of the source-map
6 library couldn't be used in conjunction with each other. See issue #142.
7
8## 0.1.41
9
10* Fix a bug with getting the source content of relative sources with a "./"
11 prefix. See issue #145 and [Bug 1090768](bugzil.la/1090768).
12
13* Add the `SourceMapConsumer.prototype.computeColumnSpans` method to compute the
14 column span of each mapping.
15
16* Add the `SourceMapConsumer.prototype.allGeneratedPositionsFor` method to find
17 all generated positions associated with a given original source and line.
18
19## 0.1.40
20
21* Performance improvements for parsing source maps in SourceMapConsumer.
22
23## 0.1.39
24
25* Fix a bug where setting a source's contents to null before any source content
26 had been set before threw a TypeError. See issue #131.
27
28## 0.1.38
29
30* Fix a bug where finding relative paths from an empty path were creating
31 absolute paths. See issue #129.
32
33## 0.1.37
34
35* Fix a bug where if the source root was an empty string, relative source paths
36 would turn into absolute source paths. Issue #124.
37
38## 0.1.36
39
40* Allow the `names` mapping property to be an empty string. Issue #121.
41
42## 0.1.35
43
44* A third optional parameter was added to `SourceNode.fromStringWithSourceMap`
45 to specify a path that relative sources in the second parameter should be
46 relative to. Issue #105.
47
48* If no file property is given to a `SourceMapGenerator`, then the resulting
49 source map will no longer have a `null` file property. The property will
50 simply not exist. Issue #104.
51
52* Fixed a bug where consecutive newlines were ignored in `SourceNode`s.
53 Issue #116.
54
55## 0.1.34
56
57* Make `SourceNode` work with windows style ("\r\n") newlines. Issue #103.
58
59* Fix bug involving source contents and the
60 `SourceMapGenerator.prototype.applySourceMap`. Issue #100.
61
62## 0.1.33
63
64* Fix some edge cases surrounding path joining and URL resolution.
65
66* Add a third parameter for relative path to
67 `SourceMapGenerator.prototype.applySourceMap`.
68
69* Fix issues with mappings and EOLs.
70
71## 0.1.32
72
73* Fixed a bug where SourceMapConsumer couldn't handle negative relative columns
74 (issue 92).
75
76* Fixed test runner to actually report number of failed tests as its process
77 exit code.
78
79* Fixed a typo when reporting bad mappings (issue 87).
80
81## 0.1.31
82
83* Delay parsing the mappings in SourceMapConsumer until queried for a source
84 location.
85
86* Support Sass source maps (which at the time of writing deviate from the spec
87 in small ways) in SourceMapConsumer.
88
89## 0.1.30
90
91* Do not join source root with a source, when the source is a data URI.
92
93* Extend the test runner to allow running single specific test files at a time.
94
95* Performance improvements in `SourceNode.prototype.walk` and
96 `SourceMapConsumer.prototype.eachMapping`.
97
98* Source map browser builds will now work inside Workers.
99
100* Better error messages when attempting to add an invalid mapping to a
101 `SourceMapGenerator`.
102
103## 0.1.29
104
105* Allow duplicate entries in the `names` and `sources` arrays of source maps
106 (usually from TypeScript) we are parsing. Fixes github issue 72.
107
108## 0.1.28
109
110* Skip duplicate mappings when creating source maps from SourceNode; github
111 issue 75.
112
113## 0.1.27
114
115* Don't throw an error when the `file` property is missing in SourceMapConsumer,
116 we don't use it anyway.
117
118## 0.1.26
119
120* Fix SourceNode.fromStringWithSourceMap for empty maps. Fixes github issue 70.
121
122## 0.1.25
123
124* Make compatible with browserify
125
126## 0.1.24
127
128* Fix issue with absolute paths and `file://` URIs. See
129 https://bugzilla.mozilla.org/show_bug.cgi?id=885597
130
131## 0.1.23
132
133* Fix issue with absolute paths and sourcesContent, github issue 64.
134
135## 0.1.22
136
137* Ignore duplicate mappings in SourceMapGenerator. Fixes github issue 21.
138
139## 0.1.21
140
141* Fixed handling of sources that start with a slash so that they are relative to
142 the source root's host.
143
144## 0.1.20
145
146* Fixed github issue #43: absolute URLs aren't joined with the source root
147 anymore.
148
149## 0.1.19
150
151* Using Travis CI to run tests.
152
153## 0.1.18
154
155* Fixed a bug in the handling of sourceRoot.
156
157## 0.1.17
158
159* Added SourceNode.fromStringWithSourceMap.
160
161## 0.1.16
162
163* Added missing documentation.
164
165* Fixed the generating of empty mappings in SourceNode.
166
167## 0.1.15
168
169* Added SourceMapGenerator.applySourceMap.
170
171## 0.1.14
172
173* The sourceRoot is now handled consistently.
174
175## 0.1.13
176
177* Added SourceMapGenerator.fromSourceMap.
178
179## 0.1.12
180
181* SourceNode now generates empty mappings too.
182
183## 0.1.11
184
185* Added name support to SourceNode.
186
187## 0.1.10
188
189* Added sourcesContent support to the customer and generator.