Skip to content

chore: prepare for 1.0 release (docs overhaul + remove deprecated APIs)#119

Merged
leoafarias merged 4 commits into
mainfrom
chore/1.0-release
Jun 26, 2026
Merged

chore: prepare for 1.0 release (docs overhaul + remove deprecated APIs)#119
leoafarias merged 4 commits into
mainfrom
chore/1.0-release

Conversation

@leoafarias

Copy link
Copy Markdown
Member

Summary

Prepares the ack ecosystem for its 1.0 release: removes deprecated APIs and overhauls the documentation site, README, and llms.txt for accuracy and developer experience. Every code snippet was validated against the implementation; the full test suite and dart analyze are green.

Breaking changes

Removes members that were deprecated in earlier betas (the pre-1.0 window):

  • StringSchema.enumString() / StringSchema.literal() instance methods → use the Ack.enumString(...) / Ack.literal(...) factories.
  • MapValue typedef → use JsonMap. (Internal-only — it was never exported, so no impact on consumers.)
  • CodecSchema.inputSchema / outputSchema and the wrapPropertyConversion helper are now @internal (off the public surface).

Documentation & site

  • DX-first restructure: task-first Overview and Quickstart, a warmer narrative voice, and a learning-ordered sidebar (Getting Started → Essentials → How-To Guides → Advanced → For Package Authors → Reference).
  • New Codecs concept page and a tested example/lib/codecs_example.dart.
  • README and llms.txt now cover code generation (@AckType) and codecs; the README package list is complete.
  • Validated every snippet against source and fixed inaccuracies (e.g. string().length(), SchemaResult.map/match/ifOk/ifFail, SchemaEncodeError, @AckType(name:), constrain requiring Validator, build flags, error.path).
  • Removed cross-page duplication and tightened narrative flow.

Validation

  • dart analyze (all packages + example): clean.
  • Tests — ack 922 · ack_generator 130 · ack_json_schema_builder 49 · ack_firebase_ai 98 · example 105: all pass (includes 124 doc content-guard tests).
  • Docs: 0 broken cross-page anchors; docs.json valid.

Not included (release-cut steps)

  • Version bump 1.0.0-beta.12 → 1.0.0 via melos version (also docs.json version/isPrerelease and llms.txt).
  • Add CONTRIBUTING.md (referenced by the README and a guide).

BREAKING CHANGE: removes members that were deprecated in earlier betas.

- Remove StringSchema.enumString() and .literal() instance methods; use the Ack.enumString() / Ack.literal() factories.
- Remove the MapValue typedef; use JsonMap.
- Mark CodecSchema.inputSchema/outputSchema and wrapPropertyConversion @internal so they leave the public surface.
- Rework the site for developer experience: task-first Overview and Quickstart, a warmer narrative voice, and a learning-ordered sidebar (Essentials / How-To / Advanced / Package Authors).
- Add a Codecs guide and a tested codecs example.
- Validate snippets against the implementation and fix inaccuracies (string length(), SchemaResult methods, SchemaEncodeError, @AckType(name:), constrain/Validator, build flags, error.path).
- Cut cross-page duplication; add code-generation and codecs coverage to the README and llms.txt.
- Configuration: replace duplicated custom-validation and @AckType examples with links.
- Installation: add an opener, trim the quickstart-duplicating Basic usage section, fix the generator link.
- JSON Schema Integration: lead with the value; group the adapter-author note beside the adapter model.
- Common Recipes: add forward links to Codecs and JSON Schema Integration.
@docs-page

docs-page Bot commented Jun 26, 2026

Copy link
Copy Markdown

To preview the documentation for this pull request, visit the following URL:

docs.page/btwld/ack~119

Documentation is deployed and generated using docs.page

docs.page renders .mdx pages but not .md, so links/sidebar entries to the .md schema-converter guides resolved to missing pages.

- Drop the 'For Package Authors' sidebar group (the two guides are .md templates with <Target> placeholders that MDX can't render).
- Point the JSON Schema Integration adapter note at the GitHub-rendered guide.

The guides remain in docs/guides for contributors. Verified with 'npx @docs.page/cli check'.
@leoafarias
leoafarias merged commit 6e73995 into main Jun 26, 2026
3 checks passed
@leoafarias
leoafarias deleted the chore/1.0-release branch June 26, 2026 17:36
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