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

Stop freezing Literal::Data properties #252

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

joeldrapper
Copy link
Owner

@joeldrapper joeldrapper commented Dec 6, 2024

We had originally intended to have Literal::Data duplicate and freeze its non-frozen properties, however this causes issues with objects that are not easily duplicated such as ActiveRecord records. The duplication was removed in #248, this follows that to ensure we don’t freeze properties that we don’t own.

Going forward, only Literal::Data itself is frozen. It’s your responsibility to freeze properties you pass in, or be prepared for them to be mutated.

Closes #251

@joeldrapper joeldrapper merged commit 3370350 into main Dec 6, 2024
10 checks passed
@joeldrapper joeldrapper deleted the stop-freezing-data-properties branch December 6, 2024 10:35
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.

Stop freezing properties of Literal data
1 participant