- Require Dart 3.3
- Add additional types at API boundaries.
- Populate the pubspec
repository
field. - Update the source map documentation link in the readme.
- Stable release for null safety.
- Fix a number of document comment issues.
- Allow parsing source map files with a missing
names
field.
- Preserve source-map extensions in
SingleMapping
. Extensions are keys in the json map that start with"x_"
.
- Set max SDK version to
<3.0.0
, and adjust other dependencies.
- Require version 2.0.0 of the Dart SDK.
-
Add a
SingleMapping.files
field which provides access toSourceFile
s representing the"sourcesContent"
fields in the source map. -
Add an
includeSourceContents
flag toSingleMapping.toJson()
which indicates whether to include source file contents in the source map.
- Implement
highlight
inSourceMapFileSpan
. - Require version
^1.3.0
ofsource_span
.
- Add
addMapping
andcontainsMapping
members toMappingBundle
.
- Support for extended source map format.
- Polish
MappingBundle.spanFor
handling of URIs that have a suffix that exactly match a source map in the MappingBundle.
- Fix strong mode warning in test.
- Extend
MappingBundle.spanFor
to accept requests for output files that don't have source maps.
- Add
MappingBundle
class that handles extended source map format that supports source maps for multiple output files in a single mapper. ExtendMapping.spanFor
API to accept a uri parameter that is optional for normal source maps but required for MappingBundle source maps.
- Fix more strong mode warnings.
- Fix all strong mode warnings.
- Add a
mapUrl
named argument toparse
andparseJson
. This argument is used to resolve source URLs for source spans.
- Fix analyzer error (FileSpan has a new field since
source_span
1.1.1)
- Remove an unnecessary warning printed when the "file" field is missing from a Json formatted source map. This field is optional and its absence is not unusual.
- Remove the
Span
,Location
andSourceFile
classes. Use the correspondingsource_span
classes instead.
-
Update
SpanFormatException
withsource
andoffset
. -
All methods that take
Span
s,Location
s, andSourceFile
s as inputs now also accept the correspondingsource_span
classes as well. Using the old classes is now deprecated and will be unsupported in version 0.10.0.
- Support writing SingleMapping objects to source map version 3 format.
- Support the
sourceRoot
field in the SingleMapping class. - Support updating the
targetUrl
field in the SingleMapping class.
- Fix a bug in
FixedSpan.getLocationMessage
.
- Minor readability improvements to
FixedSpan.getLocationMessage
andSpanException.toString
.
- Add
SpanException
andSpanFormatException
classes.
-
Support unmapped areas in source maps.
-
Increase the readability of location messages.