Skip to content

Commit 021960b

Browse files
committed
Fix web CI
1 parent c351f97 commit 021960b

File tree

5 files changed

+93
-17
lines changed

5 files changed

+93
-17
lines changed

.github/workflows/platform_web.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ on:
1010
- "web-v[0-9]+.[0-9]+.[0-9]+*"
1111
branches: [develop, main]
1212
paths:
13-
- "cached_network_image_platform_web/**"
13+
- "cached_network_image_web/**"
1414
- ".github/workflows/platform_web.yaml"
1515
pull_request:
1616
branches: [develop]
1717
paths:
18-
- "cached_network_image_platform_web/**"
18+
- "cached_network_image_web/**"
1919
- ".github/workflows/platform_web.yaml"
2020

2121
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
@@ -27,7 +27,7 @@ jobs:
2727
runs-on: ubuntu-latest
2828

2929
env:
30-
source-directory: ./cached_network_image_platform_web
30+
source-directory: ./cached_network_image_web
3131

3232
# Steps represent a sequence of tasks that will be executed as part of the job
3333
steps:
@@ -59,7 +59,7 @@ jobs:
5959
runs-on: ubuntu-latest
6060

6161
env:
62-
source-directory: ./cached_network_image_platform_web
62+
source-directory: ./cached_network_image_web
6363

6464
# Steps represent a sequence of tasks that will be executed as part of the job
6565
steps:
@@ -90,7 +90,7 @@ jobs:
9090
runs-on: ubuntu-latest
9191

9292
env:
93-
source-directory: ./cached_network_image_platform_web
93+
source-directory: ./cached_network_image_web
9494

9595
# Steps represent a sequence of tasks that will be executed as part of the job
9696
steps:
@@ -134,7 +134,7 @@ jobs:
134134
runs-on: ubuntu-latest
135135

136136
env:
137-
source-directory: ./cached_network_image_platform_web
137+
source-directory: ./cached_network_image_web
138138

139139
# Steps represent a sequence of tasks that will be executed as part of the job
140140
steps:

cached_network_image/CHANGELOG.md

Lines changed: 62 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,75 @@
1-
## [3.3.2] - 2024-04-10
1+
## [3.4.0] - 2024-04-10
2+
23
* Change how errors are reported by ImageLoader. Emitting errors as streams instead of re-throwing.
4+
* Improved debug console messages
5+
* Update dependencies
6+
* added static field defaultCacheManager to CachedNetworkImageProvider
7+
* Expose scale of CachedNetworkImageProvider on CachedNetworkImage
38

49
## [3.3.1] - 2023-12-31
10+
511
* Adding an errorListener prevents automatic reporting to global error handler.
612

713
## [3.3.0] - 2023-09-25
14+
815
* Add error to ErrorListener
916
* Update to Dart 3
1017
* Remove [`load`](https://github.com/flutter/flutter/pull/132679), use `loadImage` instead `loadBuffer`
1118

1219
Minor code clean-ups:
20+
1321
* Add topics in pubspec
1422
* Specify types
1523
* Update example
1624

1725
## [3.2.3] - 2022-11-25
26+
1827
* Correctly dispose image stream handler
1928

2029
## [3.2.2] - 2022-08-31
30+
2131
* loadBuffer is added and used instead of load
2232

2333
## [3.2.1] - 2022-05-16
34+
2435
* Update to Flutter 3
2536

2637
## [3.2.0] - 2021-11-29
38+
2739
* Add option to set the log level of the cache manager, for example:
40+
2841
```dart
2942
CachedNetworkImage.logLevel = CacheManagerLogLevel.debug;
3043
```
44+
3145
* Update cache manager dependency.
3246

3347
## [3.1.0+1] - 2021-11-04
48+
3449
* Update Readme
3550

3651
## [3.1.0] - 2021-07-16
52+
3753
* Separate Web and IO implementations
3854

3955
## [3.0.0] - 2021-03-27
56+
4057
* Migrate to null safety
4158
* Fix "Cannot clone a disposed image" error
4259
* Update dependencies.
4360

4461
## [3.0.0-nullsafety] - 2021-01-02
62+
4563
* Migrate to null safety
46-
64+
4765
## [2.5.1] - 2021-03-09
66+
4867
* Update dependencies
4968

5069
## [2.5.0] - 2020-12-22
70+
5171
* Add support for resizing images in disk cache.
72+
5273
```dart
5374
CachedNetworkImage(
5475
maxHeightDiskCache: 200,
@@ -57,80 +78,100 @@ CachedNetworkImage(
5778
```
5879

5980
## [2.4.1] - 2020-12-01
81+
6082
* Fix a bug that an image is disposed when it shouldn't.
6183

6284
## [2.4.0] - 2020-11-30
85+
6386
* Added support for a cache key which is different from the image url.
6487

6588
## [2.3.3] - 2020-10-16
89+
6690
* Support for flutter_cache_manager 2.x.x.
6791

6892
## [2.3.2] - 2020-09-10
93+
6994
* Fixed placeholders and error widgets, those are not always centered anymore.
7095
* Evict an image from ImageCache if image fails to load.
7196
* Added method to evict an image from memory and disk cache.
7297

7398
## [2.3.1] - 2020-08-25
99+
74100
* Fixed fading when the image has no placeholder or progress indicator.
75101

76102
## [2.3.0] - 2020-08-25
103+
77104
* Improved image loading by using OctoImage. OctoImage uses the native callbacks of the ImageProvider instead of
78105
loading the file when the ImageWidget is build the first time.
79106
* Set minimal Flutter version to 1.20.0; first compatible stable version.
80107
* Added choice for rendering of images on web. Defaults to standard HTML ImageElement, but gives the option to use a
81108
custom HTTP Get for headers and skia support.
82-
* Use a MultiImageStreamCompleter for when an image that is available in the cache is updated.
109+
* Use a MultiImageStreamCompleter for when an image that is available in the cache is updated.
83110

84111
## [2.3.0-rc] - 2020-06-20
112+
85113
* Added choice for rendering of images on web. Defaults to standard HTML ImageElement, but gives the option to use a
86114
custom HTTP Get for headers and skia support.
87-
* Use a MultiImageStreamCompleter for when an image that is available in the cache is updated.
115+
* Use a MultiImageStreamCompleter for when an image that is available in the cache is updated.
88116
* Increase minimal version of Flutter to 1.19.0-2.0.pre (currently requires Beta) due to an error listener bug.
89117

90118
## [2.3.0-beta.1] - 2020-05-28
119+
91120
* Improved web support: support for headers and skia.
92121

93122
## [2.3.0-beta] - 2020-05-20
123+
94124
* Rewrote image widget by using OctoImage.
95125

96126
## [2.2.0+1] - 2020-05-05
127+
97128
* Fix ImageProvider not using provided headers.
98129

99130
## [2.2.0] - 2020-04-30
131+
100132
* Upgrades on CachedNetworkImageProvider:
101-
* Support for download progress.
102-
* Basic web support (no caching).
133+
* Support for download progress.
134+
* Basic web support (no caching).
103135

104136
## [2.1.0+1] - 2020-04-10
137+
105138
* Update minimal Dart sdk version
106139

107140
## [2.1.0] - 2020-04-10
141+
108142
* Update CacheManager
109143
* Added option for progress indicator
110144

111145
## [2.0.0] - 2019-12-31
146+
112147
* Public release of 2.0 version
113148

114149
## [2.0.0-rc.1] - 2019-11-04
150+
115151
* Revert scaling of image due to issues with BoxFit.
116152

117153
## [2.0.0-rc] - 2019-10-17
154+
118155
* BREAKING CHANGE: Compatibility for [breaking change in Flutter 1.10.15](https://groups.google.com/forum/#!topic/flutter-announce/lUKzLAd8OG8)
119156

120157
## [1.1.3] - 2019-11-04
158+
121159
* Revert scaling of image due to issues with BoxFit.
122160

123161
## [1.1.2+1] - 2019-10-17
162+
124163
* Fix for widgets declared with infinite size.
125164

126165
## [1.1.2] - 2019-10-16
166+
127167
* Add filterQuality property.
128168
* Scale image to size when showing in widget.
129169
* Better error handling.
130170
* Fix for useOldImageOnUrlChange.
131171
* Update cache manager to 1.1.2.
132172

133173
## [1.1.1] - 2019-07-23
174+
134175
* Updated cache manager for error handling fix
135176

136177
## [1.1.0] - 2019-07-13
@@ -141,24 +182,30 @@ CachedNetworkImage(
141182
* Added extra example to show the imageBuilder
142183

143184
## [1.0.0] - 2019-06-27
185+
144186
* Updated dependencies
145187

146188
## [0.8.0] - 2019-05-06
189+
147190
* Fixed compile error on informationCollector by temporarily disabling it.
148191

149192
## [0.7.0] - 2019-03-06
193+
150194
* BREAKING CHANGE: Renamed ErrorWidgetBuilder to LoadingErrorWidgetBuilder
151195
* LoadingErrorWidgetBuilder returns an Object instead of an Exception
152196
* Fixed BoxFit to also work when size is not defined
153197

154198
## [0.6.2] - 2019-02-27
199+
155200
* Added option to blend image with color
156201
* Added option in CacheManager to clear the cache
157202

158203
## [0.6.1] - 2019-02-25 BREAKING CHANGES
204+
159205
* No longer assume infinite size.
160206

161207
## [0.6.0] - 2019-02-18 BREAKING CHANGES
208+
162209
* Breaking changes in API and behaviour
163210
* Very much improved though
164211
* Adapted for new cache manager library
@@ -167,26 +214,33 @@ CachedNetworkImage(
167214
* Added optional builder to customize the image
168215

169216
## [0.5.1] - 2018-11-19
217+
170218
* Fixed error throwing
171219

172220
## [0.5.0] - 2018-10-13
221+
173222
* Updated cache manager for http 0.12.0
174223

175224
## [0.4.2] - 2018-08-30
225+
176226
* Updated cache manager dependency
177227

178228
## [0.4.1] - 2018-04-27
229+
179230
* Improved error handling when a file could not be loaded.
180231

181232
## [0.4.0] - 2018-04-14
233+
182234
* Added optional headers.
183235
* Changed to Dart 2.0
184236
* Fixed bug when updating widget with new url
185237

186238
## [0.3.0] - 2018-02-09
239+
187240
* Added CachedNetworkImage with placeholder and error widgets.
188241

189242
## [0.2.1] - 2018-01-08
243+
190244
* Moved from OneFrameImageStreamCompleter to MultiFrameImageStreamCompleter.
191245
* Updated CacheManager dependency for critical bug fix.
192246

@@ -203,7 +257,9 @@ CachedNetworkImage(
203257
[here](https://github.com/flutter/flutter/wiki/Updating-Flutter-projects-to-Gradle-4.1-and-Android-Studio-Gradle-plugin-3.0.1).
204258

205259
## [0.0.2] - 10 December 2017
260+
206261
Added an ImageProvider and improved documentation
207262

208263
## [0.0.1] - 2 December 2017
264+
209265
Initial release, should be polished

cached_network_image/pubspec.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ topics:
66
- cache
77
- image
88
- network-image
9-
version: 3.3.2
9+
version: 3.4.0
1010
environment:
1111
sdk: ^3.0.0
1212
flutter: '>=3.10.0'
1313

1414
dependencies:
15-
cached_network_image_platform_interface: ^4.0.0
16-
cached_network_image_web: ^1.2.0
15+
cached_network_image_platform_interface: ^4.1.0
16+
cached_network_image_web: ^1.3.0
1717
flutter:
1818
sdk: flutter
1919
flutter_cache_manager: ^3.4.0
20-
octo_image: ^2.0.0
20+
octo_image: ^2.1.0
2121

2222
dev_dependencies:
2323
file: '>=7.0.0 <8.0.0'
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
1+
## [4.1.0] - 2023-12-31
2+
3+
* Update dependencies
4+
* Update SDK version to 3.0.0
5+
16
## [4.0.0] - 2023-12-31
7+
28
* Removed errorListener from ImageLoader interface
39

410
## [3.0.0] - 2023-09-25
11+
512
* Add error to ErrorListener
613
* Specify types
714
* Remove [`load`](https://github.com/flutter/flutter/pull/132679), use `loadImage` instead `loadBuffer`
815

916
## [2.0.0] - 2022-08-31
17+
1018
* Added loadBufferAsync for Flutter 3.3
1119

1220
## [1.0.0] - 2021-07-16
21+
1322
* Initial release

cached_network_image_web/CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,31 @@
1-
## [1.2.0] - 2024-04-29
1+
## [1.3.0] - 2024-08-01
2+
3+
* Update dependencies
4+
* Update SDK version to 3.0.0
5+
6+
## [1.2.0] - 2024-04-29
7+
28
* Replace deprecated `webOnlyInstantiateImageCodecFromUrl` to `createImageCodecFromUrl` from `dart:ui_web`
39

410
## [1.1.1] - 2023-12-31
11+
512
* Removed errorListener from ImageLoader interface
613

714
## [1.1.0] - 2023-09-25
15+
816
* Add error to ErrorListener
917
* Specify types
1018
* Update example
1119
* Remove [`load`](https://github.com/flutter/flutter/pull/132679), use `loadImage` instead `loadBuffer`
1220

1321
## [1.0.2] - 2022-08-31
22+
1423
* Added loadBufferAsync and deprecated loadAsync
1524

1625
## [1.0.1] - 2021-08-02
26+
1727
* Bug: fixed CORS issues in HTML image version.
1828

1929
## [1.0.0] - 2021-07-16
30+
2031
* Initial release

0 commit comments

Comments
 (0)