Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(config): ✨ added patterns for granular configuration TypeNamePattern are used to configure the class and its factories whiles the FieldNamePattern is used to configure the parameters. New plugin-config interface * feat(config): 💥 refactored plugin-config to use Patterns Using tuples instead of Records, we sacrifice IDE auto-complete and bloated config for positional(poor IDE support) but compact config New interface * test(config): ✅ added config-value with some tests config-value provides some methods that parses the config and returns ready-to-consume values in the various blocks * refactor(core): 🔥 utils contains shared functions used across multiple domains applying DDD concepts: moved every function into its appropirate domain dropped support for customDecorators, FreezedFactoryBlockRepository class renamed to NodeRepository class, FreezedConfigValue class renamed to Config classs * refactor(core): ♻️ functional+composition over OOP+mutations The previous version mutated properties of the class to generated the output. This made it very difficult to write tests without running the whole plugin and good luck tracking bugs and wrong generated output. This rewrite used functions everywhere for everything. Being static methods, you can test each independently without having to create a full instance of the class. Using value objects eliminates the use of primitive values plus ensures that we have a valid value everytime. * fix(core logic): 🎨 fixed broken indentation * refactor(plugin): 🔥 refactoring, code cleanup and integration testing * feat: 🚀 ready for v4.0.0 * fix: 🚑 fixed issue with CI * fix: 🚑 fixed ESM & CJS integrity issue * fix: 🚑 minor fix * added changeset documentation * added missing url * minor fix * minor fix * docs(config): 🔥 removed fromJsonToJson config option fromJsonToJson will be implented in the next release * style: prettier: Co-authored-by: Saihajpreet Singh <[email protected]>
- Loading branch information