Skip to content

Fix MultiJson v1.21.0+ deprecation warnings with fallback for older versions - #83

Open
larouxn wants to merge 1 commit into
lostisland:masterfrom
larouxn:address_multi_json_deprecation_warnings
Open

Fix MultiJson v1.21.0+ deprecation warnings with fallback for older versions#83
larouxn wants to merge 1 commit into
lostisland:masterfrom
larouxn:address_multi_json_deprecation_warnings

Conversation

@larouxn

@larouxn larouxn commented May 30, 2026

Copy link
Copy Markdown

Description

Due to v1.21.0 of the MultiJson gem deprecating a lot of things, deprecation warnings have begun appearing from this gem. Thus, this PR is aiming to address said deprecation warnings when peeps are using v1.21.0 of the MultiJson gem and simply fallback to existing behaviour when they're using older versions of it.

How?

Migrates to the new MultiJSON constant with generate/parse when available, falling back to the legacy MultiJson with dump/load for older versions.

Testing

Before

The MultiJson constant is deprecated and will be removed in v2.0. Use MultiJSON instead.
MultiJSON.load is deprecated and will be removed in v2.0. Use MultiJSON.parse instead.
MultiJSON.dump is deprecated and will be removed in v2.0. Use MultiJSON.generate instead.

After

No deprecation warnings.

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