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

Fluter freezed v3.0.0 #14

Closed
wants to merge 5 commits into from
Closed

Fluter freezed v3.0.0 #14

wants to merge 5 commits into from

Conversation

Parables
Copy link
Contributor

@Parables Parables commented Nov 8, 2022

@Parables
Copy link
Contributor Author

Parables commented Nov 8, 2022

Work is in progress on this issue here

@charlypoly charlypoly changed the title migrated to the community repo Fluter freezed v3.0.0 Nov 9, 2022
The previous version used classes to store instances of the Freezed Blocks and mutated its properties with setters which made it hard to test the plugin and also made it hard to identify state changes caused by side-effects. This version throws all the setters and use static methods and functions that only do one thing

DefaultFreezedConfig and DefaultFlutterFreezedPluginConfig classes have been removed, all setters on the blocks have been removed
@denes16
Copy link

denes16 commented Nov 20, 2022

When will this be merged?

@Parables
Copy link
Contributor Author

@charlypoly Why is the PR failing the tests? I am pretty sure all my tests pass. Could you look into that for me please?

Comment on lines 4 to 6
import { FlutterFreezedPluginConfig } from './config';
import { schemaVisitor } from './schema-visitor';
import { buildImportStatements, defaultFreezedPluginConfig } from './utils';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Parables all relative imports should end with a .js (for ESM support)

This is what is causing the CI tests to fail

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks very much for the feedback

@Parables
Copy link
Contributor Author

Parables commented Dec 2, 2022

@denes16 @charlypoly @endigo @auaicn, I seriously need your feedback on these new breaking features.

Clone this repo where I do all my crazy experimentation before releasing them for this plugin

In an attempt to make the plugin more flexible for any use case, and provide more features to enhance the DevX of using GraphQL in Flutter projects, I have introduced some features but I fear I might be over-engineering something that nobody will ever use.

I have been working on this straight for a month now and I feel no one is going to ever need these features I am going sleepless nights working on.

@Parables
Copy link
Contributor Author

I thought I was going crazy with these new features I was implementing but am I proud I did.

What's new and upcoming in this plugin is modular configuration using specific patterns.
You'll be trading the previous bloated singular configuration for a more compact(okay: maybe a little verbose), granular multi configuration.

Watch out for flutter-freezed-v4.0.0

@charlypoly I will need you to review this PR.
Please let me know if you're available or if there's anyone I should reach out to

@Parables Parables closed this Jan 16, 2023
@Parables Parables deleted the flutter-freezed-v3.0.0-fix branch January 16, 2023 00:39
@Parables Parables mentioned this pull request Jan 16, 2023
9 tasks
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.

4 participants