diff --git a/packages/vector_graphics_compiler/CHANGELOG.md b/packages/vector_graphics_compiler/CHANGELOG.md index b955e2646e57..adc696ab5efa 100644 --- a/packages/vector_graphics_compiler/CHANGELOG.md +++ b/packages/vector_graphics_compiler/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.1.14 + +* Makes the package WASM compatible. + ## 1.1.13 * Relaxes dependency constraint on vector_graphics_codec. diff --git a/packages/vector_graphics_compiler/lib/vector_graphics_compiler.dart b/packages/vector_graphics_compiler/lib/vector_graphics_compiler.dart index c4a8efe3b27a..206041b7d264 100644 --- a/packages/vector_graphics_compiler/lib/vector_graphics_compiler.dart +++ b/packages/vector_graphics_compiler/lib/vector_graphics_compiler.dart @@ -18,9 +18,9 @@ import 'src/svg/theme.dart'; import 'src/vector_instructions.dart'; export 'src/_initialize_path_ops_io.dart' - if (dart.library.html) 'src/_initialize_path_ops_web.dart'; + if (dart.library.js_interop) 'src/_initialize_path_ops_web.dart'; export 'src/_initialize_tessellator_io.dart' - if (dart.library.html) 'src/_initialize_tessellator_web.dart'; + if (dart.library.js_interop) 'src/_initialize_tessellator_web.dart'; export 'src/geometry/basic_types.dart'; export 'src/geometry/matrix.dart'; export 'src/geometry/path.dart'; diff --git a/packages/vector_graphics_compiler/pubspec.yaml b/packages/vector_graphics_compiler/pubspec.yaml index fca28d4f1472..6c86d50b38af 100644 --- a/packages/vector_graphics_compiler/pubspec.yaml +++ b/packages/vector_graphics_compiler/pubspec.yaml @@ -2,7 +2,7 @@ name: vector_graphics_compiler description: A compiler to convert SVGs to the binary format used by `package:vector_graphics`. repository: https://github.com/flutter/packages/tree/main/packages/vector_graphics_compiler issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+vector_graphics%22 -version: 1.1.13 +version: 1.1.14 executables: vector_graphics_compiler: @@ -31,8 +31,7 @@ dev_dependencies: flutter_test: sdk: flutter test: ^1.20.1 - # See https://github.com/flutter/flutter/issues/157626 - vector_graphics: ">=1.1.11+1 <= 1.1.12" + vector_graphics: ^1.1.13 vector_math: ^2.1.2 platforms: