Skip to content

revert: add response-only metadata fields to image elements and blocks (#57) - #58

Merged
StephenTangCook merged 1 commit into
mainfrom
claude/slack-blocks-image-props-bbw8t6
Jul 1, 2026
Merged

revert: add response-only metadata fields to image elements and blocks (#57)#58
StephenTangCook merged 1 commit into
mainfrom
claude/slack-blocks-image-props-bbw8t6

Conversation

@StephenTangCook

Copy link
Copy Markdown
Collaborator

Summary

Reverts #57 per request. Removes the response-only image metadata fields that #57 added to the image_block and image_element schema $defs: image_width, image_height, image_bytes, is_animated (block only), and fallback.

Note: #57 was merged but never released — the tree is still 0.1.10, because that PR's squash subject lacked a Conventional Commits prefix and release-please never cut a version. So no published package ever shipped these fields; this simply backs the change out of main.

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing behavior to change)
  • Schema update (changes to src/slack-block-kit.schema.json) — revert
  • Docs / chore (no runtime change)

Changes

Testing

  • pnpm test passes (493 tests)
  • pnpm typecheck passes
  • pnpm lint passes
  • pnpm validate-schema passes
  • Generated types verified in sync with the schema

Schema changes

  • Verified against the Slack Block Kit reference
  • Backwards compatible — reverts to the previously-shipped 0.1.10 schema; existing valid payloads still validate. (Trade-off: image blocks pulled straight from Slack's Web API responses will again report these response-only fields as unknown property.)
  • If breaking, called out in the summary and a release note is planned

Checklist

🤖 Generated with Claude Code


Generated by Claude Code

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
slack-block-kit-validator eca2a74 Commit Preview URL

Branch Preview URL
Jul 01 2026, 05:56 PM

@StephenTangCook
StephenTangCook merged commit 52e7f86 into main Jul 1, 2026
13 checks passed
@StephenTangCook
StephenTangCook deleted the claude/slack-blocks-image-props-bbw8t6 branch July 1, 2026 17:57
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.

2 participants