Skip to content

v3.0.0 - #14

Merged
gmpassos merged 6 commits into
masterfrom
web-migration
Oct 7, 2026
Merged

gmpassos merged 6 commits into
masterfrom
web-migration

Conversation

@gmpassos

@gmpassos gmpassos commented Feb 19, 2025 •

Copy link
Copy Markdown
Contributor

Release v3.0.0: migrates dart:html (deprecated) to package web, raises the minimum SDK to 3.10, updates dependencies, and fixes several bugs found by a much larger test suite.

Migration

  • Migrate dart:html (deprecated) to package web (via web_utils).

Fixes

  • RenderedChart.chartJSObject/hasChartJSObject always threw (the isJSObject extension was called on a dynamic), so refresh() broke on every chart.
  • xAxisScale/yAxisScale crashed for typed data (e.g. ChartSet<String, int>): ScaleNum<num> → Scale<int> cast.
  • ChartData.from crashed with inline map literals.
  • matchesSeries/matchesTimeSeries/matchesSeriesPair/matchesChartData threw on non-Iterable values instead of returning false.
  • sortCategories = true crashed for untyped series (seriesSortedByCategory, setSorted).
  • ChartSeriesOptions.copy dropped steppedLines.
  • DateAdapter.format: the Do token output a stray o; multiple [...] literals were merged.
  • ChartEngine.VERSION was stale (2.0.3).

Tests

7 → 93 tests.

  • test/chart_engine_data_test.dart: unit tests for the ChartData implementations, options, and VerticalLine.
  • test/chart_engine_date_test.dart: DateAdapter, on both VM and Chrome.
  • test/chart_engine_integration_test.dart: renders every chart type with real ChartJS and ApexCharts in Chrome, plus ChartJS financial charts, ChartEngineSwitchable, and refresh. It replaces the old browser test, which never awaited its assertions.
  • CI now runs dart test --platform vm,chrome (the VM version test was never run before).

Dependencies

  • sdk: '>=3.10.0 <4.0.0'
  • swiss_knife: ^3.3.14
  • dom_tools: ^3.1.0
  • amdjs: ^3.0.0
  • intl: ^0.20.3
  • web_utils: ^1.1.0
  • lints: ^6.1.0
  • test: ^1.32.0
  • dependency_validator: ^5.1.0
  • build_runner: ^2.16.2
  • build_web_compilers: ^4.8.11

The 3.10 language version brings the new dart format style, so most of lib/ was reformatted.

🤖 Generated with Claude Code

gmpassos and others added 6 commits February 19, 2025 03:20
- Migrate `dart:html` (deprecated) to package `web`.

- sdk: '>=3.6.0 <4.0.0'

- dom_tools: ^3.0.0-beta.4
- amdjs: ^3.0.0-beta.2
- web: ^1.1.0
- web_utils: ^1.0.6
- js_interop_utils: ^1.0.5
- dom_tools: ^3.0.0-beta.6
- web_utils: ^1.0.9
- intl: ^0.20.2
- sdk: '>=3.10.0 <4.0.0'
- Update dependencies to latest versions.
- Fix RenderedChart.chartJSObject/refresh, typed axis scales,
  ChartData.from, matches* with non-Iterable values, sorting of untyped
  categories, ChartSeriesOptions.copy (steppedLines), DateAdapter `Do` token.
- New unit tests (ChartData, options, DateAdapter) and browser integration
  tests for ChartJS and ApexCharts.
- CI: run tests on VM and Chrome.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@gmpassos gmpassos changed the title v3.0.0-beta.1 v3.0.0 Oct 7, 2026
@gmpassos
gmpassos merged commit 5e23f4d into master Oct 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant