Skip to content

chore(deps): upgrade Ack to 1.6.2 - #130

Merged
leoafarias merged 1 commit into
chore/compatible-dependency-upgradesfrom
chore/ack-1-6
Sep 23, 2026
Merged

leoafarias merged 1 commit into
chore/compatible-dependency-upgradesfrom
chore/ack-1-6

Conversation

@leoafarias

Copy link
Copy Markdown
Collaborator

Intent

Stack 5/8, based on #129. It upgrades the Ack family from 1.2.0 to 1.6.2 (published 2026-09-23): ack, ack_annotations, ack_generator and ack_json_schema_builder, in core, demo and playground.

Changes

  • Constraints: raised to ^1.6.2. The workspace resolves analyzer 10.2 / build 4 / source_gen 4.2, which mix_generator also accepts.
  • Deprecations: 1.6 deprecates @AckField(presence: AckFieldPresence…). The six uses become @Required() (the four BlockInsets edges) and @Optional() (SectionBlock.blocks, ContentBlock.content). Regenerating shows byte-identical output for both files.
  • Generated code: one change. WidgetBlock.copyWith now treats args like its other nullable fields, so an explicit args: null clears it where it used to be ignored. The only callers are tests that pass non-null maps.

Serialization and schema checks (the 1.6.1 encoding changes)

  • melos run contracts:check: the canonical JSON Schema is unchanged.
  • Rebuilt the demo deck with the CLI: superdeck.json and superdeck_full.json are byte-identical.
  • The deterministic AI generation checkpoint (LIVE_FAKE_CHECKPOINT=true), which exercises the schemas the playground sends to Gemini, passes.

Impacted packages

superdeck_core, playground, demo.

Commands run

  • melos run build_runner:build --no-select: only the WidgetBlock.copyWith change above.
  • dart analyze --fatal-infos in all 7 packages: no issues.
  • Tests: core 699, builder 162, cli 33, superdeck 784, pdf 39, playground 371, AI checkpoint 1. All pass.

Upgrade ack, ack_annotations, ack_generator, and ack_json_schema_builder from 1.2.0 in core, demo, and playground, and move the six AckField(presence:) annotations to @required()/@optional(), which 1.6 deprecates them for. Regeneration changes one line: WidgetBlock.copyWith now treats args like its other nullable fields, so an explicit null clears it. No caller relied on the old behavior.
@github-actions

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit 54a086d):

https://superdeck-dev--pr130-chore-ack-1-6-z8x3vzor.web.app

(expires Fri, 23 Oct 2026 03:54:22 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: bd68fc230762285849207e7e120aaf87cd4ca2f9

@leoafarias
leoafarias added this pull request to stack #128 September 23, 2026 04:07
@leoafarias
leoafarias merged commit 716b196 into main Sep 23, 2026
5 checks passed
@leoafarias
leoafarias deleted the chore/ack-1-6 branch September 23, 2026 04:26
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