Skip to content

Commit dd5ecf1

Browse files
authored
blast_repo fixes (dart-archive/source_span#96)
* blast_repo fixes auto-publish * update changelog
1 parent dab9e4e commit dd5ecf1

File tree

2 files changed

+49
-35
lines changed

2 files changed

+49
-35
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# A CI configuration to auto-publish pub packages.
2+
3+
name: Publish
4+
5+
on:
6+
pull_request:
7+
branches: [ master ]
8+
push:
9+
tags: [ 'v[0-9]+.[0-9]+.[0-9]+' ]
10+
11+
jobs:
12+
publish:
13+
if: ${{ github.repository_owner == 'dart-lang' }}
14+
uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main

pkgs/source_span/CHANGELOG.md

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,69 @@
1-
# 1.9.2-dev
1+
## 1.9.2-dev
22

33
* Require Dart 2.18
44
* Add an API usage example in `example/`.
55

6-
# 1.9.1
6+
## 1.9.1
77

88
* Properly handle multi-line labels for multi-span highlights.
99

1010
* Populate the pubspec `repository` field.
1111

12-
# 1.9.0
12+
## 1.9.0
1313

1414
* Add `SourceSpanWithContextExtension.subspan` that returns a
1515
`SourceSpanWithContext` rather than a plain `SourceSpan`.
1616

17-
# 1.8.2
17+
## 1.8.2
1818

1919
* Fix a bug where highlighting multiple spans with `null` URLs could cause an
2020
assertion error. Now when multiple spans are passed with `null` URLs, they're
2121
highlighted as though they all come from different source files.
2222

23-
# 1.8.1
23+
## 1.8.1
2424

2525
* Fix a bug where the URL header for the highlights with multiple files would
2626
get omitted only one span has a non-null URI.
2727

28-
# 1.8.0
28+
## 1.8.0
2929

3030
* Stable release for null safety.
3131

32-
# 1.7.0
32+
## 1.7.0
3333

3434
* Add a `SourceSpan.subspan()` extension method which returns a slice of an
3535
existing source span.
3636

37-
# 1.6.0
37+
## 1.6.0
3838

3939
* Add support for highlighting multiple source spans at once, providing more
4040
context for span-based messages. This is exposed through the new APIs
4141
`SourceSpan.highlightMultiple()` and `SourceSpan.messageMultiple()` (both
4242
extension methods), `MultiSourceSpanException`, and
4343
`MultiSourceSpanFormatException`.
4444

45-
# 1.5.6
45+
## 1.5.6
4646

4747
* Fix padding around line numbers that are powers of 10 in
4848
`FileSpan.highlight()`.
4949

50-
# 1.5.5
50+
## 1.5.5
5151

5252
* Fix a bug where `FileSpan.highlight()` would crash for spans that covered a
5353
trailing newline and a single additional empty line.
5454

55-
# 1.5.4
55+
## 1.5.4
5656

5757
* `FileSpan.highlight()` now properly highlights point spans at the beginning of
5858
lines.
5959

60-
# 1.5.3
60+
## 1.5.3
6161

6262
* Fix an edge case where `FileSpan.highlight()` would put the highlight
6363
indicator in the wrong position when highlighting a point span after the end
6464
of a file.
6565

66-
# 1.5.2
66+
## 1.5.2
6767

6868
* `SourceFile.span()` now goes to the end of the file by default, rather than
6969
ending one character before the end of the file. This matches the documented
@@ -75,15 +75,15 @@
7575
* Fix an edge case where `FileSpan.highlight()` could crash when highlighting a
7676
span that ended with an empty line.
7777

78-
# 1.5.1
78+
## 1.5.1
7979

8080
* Produce better source span highlights for multi-line spans that cover the
8181
entire last line of the span, including the newline.
8282

8383
* Produce better source span highlights for spans that contain Windows-style
8484
newlines.
8585

86-
# 1.5.0
86+
## 1.5.0
8787

8888
* Improve the output of `SourceSpan.highlight()` and `SourceSpan.message()`:
8989

@@ -94,11 +94,11 @@
9494

9595
[`term_glyph.ascii`]: https://pub.dartlang.org/documentation/term_glyph/latest/term_glyph/ascii.html
9696

97-
# 1.4.1
97+
## 1.4.1
9898

9999
* Set max SDK version to `<3.0.0`, and adjust other dependencies.
100100

101-
# 1.4.0
101+
## 1.4.0
102102

103103
* The `new SourceFile()` constructor is deprecated. This constructed a source
104104
file from a string's runes, rather than its code units, which runs counter to
@@ -111,95 +111,95 @@
111111
* The current behavior when characters larger than `0xFFFF` are passed to `new
112112
SourceFile.decoded()` is now considered deprecated.
113113

114-
# 1.3.1
114+
## 1.3.1
115115

116116
* Properly highlight spans for lines that include tabs with
117117
`SourceSpan.highlight()` and `SourceSpan.message()`.
118118

119-
# 1.3.0
119+
## 1.3.0
120120

121121
* Add `SourceSpan.highlight()`, which returns just the highlighted text that
122122
would be included in `SourceSpan.message()`.
123123

124-
# 1.2.4
124+
## 1.2.4
125125

126126
* Fix a new strong mode error.
127127

128-
# 1.2.3
128+
## 1.2.3
129129

130130
* Fix a bug where a point span at the end of a file without a trailing newline
131131
would be printed incorrectly.
132132

133-
# 1.2.2
133+
## 1.2.2
134134

135135
* Allow `SourceSpanException.message`, `SourceSpanFormatException.source`, and
136136
`SourceSpanWithContext.context` to be overridden in strong mode.
137137

138-
# 1.2.1
138+
## 1.2.1
139139

140140
* Fix the declared type of `FileSpan.start` and `FileSpan.end`. In 1.2.0 these
141141
were mistakenly changed from `FileLocation` to `SourceLocation`.
142142

143-
# 1.2.0
143+
## 1.2.0
144144

145145
* **Deprecated:** Extending `SourceLocation` directly is deprecated. Instead,
146146
extend the new `SourceLocationBase` class or mix in the new
147147
`SourceLocationMixin` mixin.
148148

149149
* Dramatically improve the performance of `FileLocation`.
150150

151-
# 1.1.6
151+
## 1.1.6
152152

153153
* Optimize `getLine()` in `SourceFile` when repeatedly called.
154154

155-
# 1.1.5
155+
## 1.1.5
156156

157157
* Fixed another case in which `FileSpan.union` could throw an exception for
158158
external implementations of `FileSpan`.
159159

160-
# 1.1.4
160+
## 1.1.4
161161

162162
* Eliminated dart2js warning about overriding `==`, but not `hashCode`.
163163

164-
# 1.1.3
164+
## 1.1.3
165165

166166
* `FileSpan.compareTo`, `FileSpan.==`, `FileSpan.union`, and `FileSpan.expand`
167167
no longer throw exceptions for external implementations of `FileSpan`.
168168

169169
* `FileSpan.hashCode` now fully agrees with `FileSpan.==`.
170170

171-
# 1.1.2
171+
## 1.1.2
172172

173173
* Fixed validation in `SourceSpanWithContext` to allow multiple occurrences of
174174
`text` within `context`.
175175

176-
# 1.1.1
176+
## 1.1.1
177177

178178
* Fixed `FileSpan`'s context to include the full span text, not just the first
179179
line of it.
180180

181-
# 1.1.0
181+
## 1.1.0
182182

183183
* Added `SourceSpanWithContext`: a span that also includes the full line of text
184184
that contains the span.
185185

186-
# 1.0.3
186+
## 1.0.3
187187

188188
* Cleanup equality operator to accept any Object rather than just a
189189
`SourceLocation`.
190190

191-
# 1.0.2
191+
## 1.0.2
192192

193193
* Avoid unintentionally allocating extra objects for internal `FileSpan`
194194
operations.
195195

196196
* Ensure that `SourceSpan.operator==` works on arbitrary `Object`s.
197197

198-
# 1.0.1
198+
## 1.0.1
199199

200200
* Use a more compact internal representation for `FileSpan`.
201201

202-
# 1.0.0
202+
## 1.0.0
203203

204204
This package was extracted from the
205205
[`source_maps`](https://pub.dev/packages/source_maps) package, but the

0 commit comments

Comments
 (0)