Skip to content

WIP: chore(mix_protocol): upgrade to ack 2.0.0-beta.3 and drop material imports - #1150

Draft
leoafarias wants to merge 1 commit into
mainfrom
chore/mix-protocol-ack2-widgets
Draft

leoafarias wants to merge 1 commit into
mainfrom
chore/mix-protocol-ack2-widgets

Conversation

@leoafarias

Copy link
Copy Markdown
Collaborator

Summary

  • Ack 2 & SDK constraints (packages/mix_protocol/pubspec.yaml): bumped ack dependency to >=2.0.0-beta.3 <3.0.0 and raised environment constraints to Dart >=3.13.0 <4.0.0 / Flutter >=3.47.0.
  • Drop Material imports (mix_protocol_contract.dart, variant_codec.dart): replaced the two package:flutter/material.dart imports with package:flutter/widgets.dart.
  • Ack 2 API migration:
    • Updated JSON Schema export calls from .toJsonSchema() to .toJsonSchemaDraft7() in mix_protocol_contract.dart, common_codecs.dart, and wire_schema.dart, and regenerated packages/mix_protocol/schema/style.schema.json.
    • Replaced wildcard catch-all in schema_error_mapper.dart with exhaustive SchemaNestedError() handling.
    • Updated error_mapper_test.dart (transform_failed) to throw FormatException in codec decode.

Verification

Run in /Volumes/Dev/worktrees/mix/mix-protocol-ack2/packages/mix_protocol at 547156da731aed2aaf478f7e36ce577341f8f307 with Flutter 3.47.8 (Dart 3.13.7):

  • flutter analyze: 0 errors (9 info-level deprecated_member_use notices in test/composite_multi_source_codec_test.dart and test/wrap_styler_codec_test.dart).
  • flutter test: 406/406 tests passed.

Status

  • Draft WIP PR. Note: the repository .fvmrc still pins Flutter 3.44.0, while packages/mix_protocol now requires Flutter >=3.47.0 / Dart >=3.13.0 (verified with 3.47.8).

This branch has not been deployed

No deployments
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