diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index 066dda0..12ca268 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - uses: dart-lang/setup-dart@v1 - name: Dart version run: | diff --git a/CHANGELOG.md b/CHANGELOG.md index a99b7ae..204f4e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ +## 3.0.1 + +- Apply the `dart format` style of the new SDK floor. +- CI: update `actions/checkout` to v7. + +- sdk: ^3.13.0 + +- swiss_knife: ^3.4.2 +- dom_tools: ^3.1.1 +- test: ^1.33.0 +- build_web_compilers: ^4.8.12 + ## 3.0.0 - `RenderedChart`: diff --git a/lib/src/chart_engine_base.dart b/lib/src/chart_engine_base.dart index dab8ef3..8fe82e8 100644 --- a/lib/src/chart_engine_base.dart +++ b/lib/src/chart_engine_base.dart @@ -12,7 +12,7 @@ final String CHART_ENGINE_PACKAGE_PATH = 'packages/chart_engine'; abstract class ChartEngine { /// `chart_engine` package version. // ignore: non_constant_identifier_names - static final String VERSION = '3.0.0'; + static final String VERSION = '3.0.1'; String get version; diff --git a/lib/src/chart_engine_chartjs.dart b/lib/src/chart_engine_chartjs.dart index 7b31585..d91b0fc 100644 --- a/lib/src/chart_engine_chartjs.dart +++ b/lib/src/chart_engine_chartjs.dart @@ -88,39 +88,33 @@ class ChartEngineChartJS extends ChartEngine { throw StateError("Can't allowInterop _DateAdapter: null _jsWrapper"); } - _jsWrapper!['_DateAdapter__parse'] = - (([JSAny? a, JSAny? b]) => DateAdapter.parse( - a.dartify(), - b.dartify(), - )).toJS; - _jsWrapper!['_DateAdapter__format'] = - (([JSAny? a, JSAny? b]) => DateAdapter.format( - a.dartify(), - b.dartify(), - )).toJS; - _jsWrapper!['_DateAdapter__startOf'] = - (([JSAny? a, JSAny? b, JSAny? c]) => DateAdapter.startOf( - a.dartify(), - b.dartify(), - c.dartify(), - )).toJS; - _jsWrapper!['_DateAdapter__endOf'] = - (([JSAny? a, JSAny? b]) => DateAdapter.endOf( - a.dartify(), - b.dartify(), - )).toJS; - _jsWrapper!['_DateAdapter__add'] = - (([JSAny? a, JSAny? b, JSAny? c]) => DateAdapter.add( - a.dartify(), - b.dartify(), - c.dartify(), - )).toJS; - _jsWrapper!['_DateAdapter__diff'] = - (([JSAny? a, JSAny? b, JSAny? c]) => DateAdapter.diff( - a.dartify(), - b.dartify(), - c.dartify(), - )).toJS; + _jsWrapper!['_DateAdapter__parse'] = (([ + JSAny? a, + JSAny? b, + ]) => DateAdapter.parse(a.dartify(), b.dartify())).toJS; + _jsWrapper!['_DateAdapter__format'] = (([ + JSAny? a, + JSAny? b, + ]) => DateAdapter.format(a.dartify(), b.dartify())).toJS; + _jsWrapper!['_DateAdapter__startOf'] = (([ + JSAny? a, + JSAny? b, + JSAny? c, + ]) => DateAdapter.startOf(a.dartify(), b.dartify(), c.dartify())).toJS; + _jsWrapper!['_DateAdapter__endOf'] = (([ + JSAny? a, + JSAny? b, + ]) => DateAdapter.endOf(a.dartify(), b.dartify())).toJS; + _jsWrapper!['_DateAdapter__add'] = (([ + JSAny? a, + JSAny? b, + JSAny? c, + ]) => DateAdapter.add(a.dartify(), b.dartify(), c.dartify())).toJS; + _jsWrapper!['_DateAdapter__diff'] = (([ + JSAny? a, + JSAny? b, + JSAny? c, + ]) => DateAdapter.diff(a.dartify(), b.dartify(), c.dartify())).toJS; _jsWrapper!['_DateAdapter__create'] = (([JSAny? a]) => DateAdapter.create( a.dartify(), )).toJS; diff --git a/pubspec.yaml b/pubspec.yaml index 045b57f..0d1b50f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,14 +1,14 @@ name: chart_engine description: Chart generator with interchangeable chart engines, like ChartJS and ApexCharts. -version: 3.0.0 +version: 3.0.1 homepage: https://github.com/Colossus-Services/chart_engine environment: - sdk: '>=3.10.0 <4.0.0' + sdk: ^3.13.0 dependencies: - swiss_knife: ^3.3.14 - dom_tools: ^3.1.0 + swiss_knife: ^3.4.2 + dom_tools: ^3.1.1 color_palette_generator: ^2.0.1 amdjs: ^3.0.0 intl: ^0.20.3 @@ -16,11 +16,11 @@ dependencies: dev_dependencies: lints: ^6.1.0 - test: ^1.32.0 + test: ^1.33.0 path: ^1.9.1 dependency_validator: ^5.1.0 build_runner: ^2.16.2 - build_web_compilers: ^4.8.11 + build_web_compilers: ^4.8.12 collection: ^1.19.1 #dependency_overrides: