Skip to content

Fix compilation against ponyc 0.65.0#129

Merged
SeanTAllen merged 1 commit into
mainfrom
json-print-rename
Jun 4, 2026
Merged

Fix compilation against ponyc 0.65.0#129
SeanTAllen merged 1 commit into
mainfrom
json-print-rename

Conversation

@SeanTAllen
Copy link
Copy Markdown
Member

@SeanTAllen SeanTAllen commented Jun 4, 2026

ponyc 0.65.0 drops Stringable from JsonObject/JsonArray and renames their serialization methods (.string().print()), which broke compilation against it. This renames the 11 affected call sites, bumps the README minimum ponyc version to 0.65.0, and adds a Fixed release note.

Since 0.65.0 is not yet released, CI (pr.yml, generate-documentation.yml, release.yml) moves to nightly ponyc. Switching back to release is tracked as a post-release task in ponylang/ponyc#5392. The pr.yml job id/name are intentionally left referencing "release" so branch-protection required-check names are unaffected; the switch-back restores accuracy.

Built and tested locally against ponyc 0.64.0-9282cbcc7 (the PR #5397 build): 89/89 unit tests pass, examples build.

Parked for input (from the lightweight code review — Low/pre-existing, not introduced by this change):

  • _test_json_converters.pony:2015-2018 — the obj/arr assertions compare .print() against JsonTypeString(...), which also calls .print(), so they verify match-dispatch but not serialization output. Pre-existing (both sides were .string() on main). Worth tightening to literal-JSON assertions, or fine to leave?

Note: this library should not be released until ponyc 0.65.0 ships, since main now requires it.

ponyc 0.65.0 makes JsonObject and JsonArray no longer Stringable and
renames their serialization methods (.string() -> .print()), so the
library no longer compiles against it. Rename the affected call sites.

Because 0.65.0 is not yet released, CI moves to nightly ponyc until it
ships; switching back to release is tracked as a post-release task in
ponylang/ponyc#5392.
@SeanTAllen SeanTAllen added the changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge label Jun 4, 2026
@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Jun 4, 2026
@SeanTAllen SeanTAllen merged commit 949053a into main Jun 4, 2026
12 checks passed
@SeanTAllen SeanTAllen deleted the json-print-rename branch June 4, 2026 02:19
@ponylang-main ponylang-main removed the discuss during sync Should be discussed during an upcoming sync label Jun 4, 2026
github-actions Bot pushed a commit that referenced this pull request Jun 4, 2026
github-actions Bot pushed a commit that referenced this pull request Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants