Skip to content

Chore: Migrate to Freezed 3.0 #1331

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

davidpryor
Copy link

@davidpryor davidpryor commented May 1, 2025

NOTE: This bumps the min SDK version to 3.0 but this seems to be planned already for the 9.0.0. I can rebase this to another commit if you want to continue forward with this PR.

Description: Upgraded the freezed package to 3.0 and performed code migrations
Related Issue: #1295

Summary:

  • bumped package sdk min version to 3.0 for sealed classes and class modifiers features
  • bumped example sdk min version to 3.0
  • upgraded packages
  • changed WebPurchaseRedemptionResult redirected constructors to be public so they may be used with switch expressions
  • migrated from using when method to switch expressions
  • fixed tests

- bumped package sdk min version to 3.0 for sealed classes and class modifiers features
- bumped example sdk min version to 3.0
- upgraded packages
- changed WebPurchaseRedemptionResult redirected constructors to be public so they may be used with switch expressions
- migrated from using "when" method to switch expressions
- fixed tests
@Defuera
Copy link

Defuera commented May 23, 2025

Pls merge and release asap 🙏

@g-apparence
Copy link

any news?

@davidpryor
Copy link
Author

davidpryor commented May 28, 2025

any news?

Just waiting on a review/comments from the maintainers

This probably wouldn't be able to ship until the next major release anyways as it bumps the minimum supported dart sdk.

@davidpryor
Copy link
Author

Just wanted to note for those waiting for this, you should be safe to override freezed to 3.0 if this is the only package blocking you.

In your `pubspec.yaml, you can add:

dependency_overrides:
  freezed: ^3.0.6
  freezed_annotation: ^3.0.0

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.

3 participants