Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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`:
Expand Down
2 changes: 1 addition & 1 deletion lib/src/chart_engine_base.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
60 changes: 27 additions & 33 deletions lib/src/chart_engine_chartjs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
12 changes: 6 additions & 6 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
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
web_utils: ^1.1.0

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:
Expand Down
Loading