Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(structure)!: remove BlockBody and OnelineBody #218

Merged
merged 1 commit into from
May 4, 2023

Conversation

martinohmann
Copy link
Owner

BREAKING CHANGE: The BlockBody and OnelineBody types were removed. Block now directly uses Body. One-line blocks can still be constructed by calling body.set_prefer_oneline(true).

This removes some unnecessary layer of abstraction which made working with blocks more complicated than it needed to be.

BREAKING CHANGE: The `BlockBody` and `OnelineBody` types were removed.
`Block` now directly uses `Body`. One-line blocks can still be
constructed by calling `body.set_prefer_oneline(true)`.

This removes some unnecessary layer of abstraction which made working
with blocks more complicated than it needed to be.
@martinohmann martinohmann merged commit 1267054 into main May 4, 2023
5 checks passed
@martinohmann martinohmann deleted the hcl-edit/remove-block-body branch May 4, 2023 05:30
@github-actions github-actions bot mentioned this pull request May 4, 2023
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.

None yet

1 participant