-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify ReadModule, ConfigSource and PropertyTree (#635)
* Redesign configsource and propertyTree * Remove ConfigSource_ and make ConfigSourceModule tied with String K and String V * Move the memoization at ZManaged level * Make all simple config sources devoid of ZIO * Remove Step in ReadError as it is redundant to Step in PropertyTreePath * Remove the hack of `ConfigSource` being part of `Sequence` and `Map` nodes in `ConfigDescriptor`, Recurse `Read` using `PropertyTree`, and Remove hacky `LeafForSequence` (#636) * Loop ReadModule using PropertyTree instead of leaf values * Try property tree all the way * Remove LeafForSequence data types and remove its concerns from ReadModule * Remove property tree optional values from recursions and simplify further * Remove source nodes from sequence and map forever * Fix empty check for recursive config and make simple recursive list read test pass * Remove unused imports * Uncomment recursive tests * Fix zio-native and zio-js * Experimenting with configsource cache, seem to be working * Remove printlns * Use type aliases going forward * Improve performance for all non-recursive configs * Clean up the ConfigSourceModule * use whenM for program summary * Fix slowness in collectAllRoundTripTest * Fix recursive config test for memoized resources * Reduce calls to tree * Rename reader to managed reader * Clean type aliases * Make sure resource is released after every config fetch * Reset environment * Add tests * Improve System Environment ConfigSource (#657) * Loop ReadModule using PropertyTree instead of leaf values * Try property tree all the way * Remove LeafForSequence data types and remove its concerns from ReadModule * Remove property tree optional values from recursions and simplify further * Remove source nodes from sequence and map forever * Fix empty check for recursive config and make simple recursive list read test pass * Remove unused imports * Uncomment recursive tests * Fix zio-native and zio-js * Experimenting with configsource cache, seem to be working * Remove printlns * Use type aliases going forward * Improve performance for all non-recursive configs * Clean up the ConfigSourceModule * use whenM for program summary * Fix slowness in collectAllRoundTripTest * Fix recursive config test for memoized resources * Reduce calls to tree * Rename reader to managed reader * Clean type aliases * Make sure resource is released after every config fetch * Reset environment * Add tests * Add more tests * System env logic improvements - Pick errors early for System Env, such as invalid delimiters, and avoid pushing it further to ReadModule - Improve performance by making propertyTree is calculated only once per system environment fetch. * Compile for scala3 * Make sure zio-config-magnolia works for all scala versions with the new core redesign * Implement typesafe config with the new changes in core * Fix pure config * Fix refined module to work with latest design * Fix more tests for the new design * Clean up ReadModule * Start changing examples * Fix more examples * Implement strictlyOnce and toLayer * Add comments * Fix all examples based on the new design * Fix all examples and clean up * Remove unused imports * Fix API docs in ConfigDescriptorModule * Experiment on layers * Try out configLayer and configLayer_ * Update comments * Fix shapeless module * Fix yaml module * Make leaf for yaml strict * Remove unused imports * Fix magnolia tests * Remove unused imports * Fix lint * Remove unused imports * Add silent for scala-2.11 * Add silent * Fix lint again * Reformat and lint * Fix lint again * Fix the lint again * Start fixing docs * Again lint * Fix all documentations * Fix formatting and docs
- Loading branch information
Showing
101 changed files
with
3,068 additions
and
2,951 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
cats/shared/src/main/scala/zio/config/cats/instances/package.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.