Releases: fidelity/spock
Releases · fidelity/spock
Spock v2.4.2
Spock v2.4.2 Release Notes
Minor Changes
- Fixes missing import paths for
SavePath
that broke backwards compatibility (#216)
Stoke v2.4.1
Spock v2.4.1 Release Notes
Minor Changes
- Added evolve functionality similar to the underlying attrs lib that allows you to evolve the underlying
Spockspace
and return a newSpockspace
object with the requested deltas. The evolve interface takes in instantiated@spock
decorated classes, uses the deltas to evolve the underlying attrs classes, and then returns a newSpockSpace
object (#211) - Added in a function to convert any
SpockSpace
generated from aConfigArgBuilder
/SpockBuilder
object to its dictionary representation (#213) - Updated documentation (#210, #212)
Spock v2.4.0
Spock v2.4.0 Release Notes
Major Changes
- Top Level API:
ConfigArgBuilder
is now renamedSpockBuilder
and can now be imported from the top levelspock
module (e.g.from spock import SpockBuilder
) -- fully backwards compatible such that any code using the prior interface will still work (#205) - Top Level API: The
@spock
decorated can now also be imported from the top levelspock
module (e.g.from spock import spock
) -- fully backwards compatible such that any code using the prior interface will still work (#205) - Lazy Evaluation: The
@spock
decorator now has a boolean flag (dynamic
) that allows inherited classes to not be@spock
decorated -- this will automatically cast parent classes to aspock
class by traversing the MRO (#205) - Lazy Evaluation: Dependencies/references between
spock
classes can be lazily handled thus preventing the need for every@spock
decorated classes to be passed into*args
within the main SpockBuilder API -- uses thelazy
flag within theSpockBuilder
(#205)
Minor Changes
- Added stubs that should help type hinting in pylance/pyright for
@spock
and@spockTuner
decorated classes (VSCode) (#205, #206, #207, #208) - Moved some functionality not specific to the Graph class to the utils so they can be exposed (#203)
- Changed how graphs look-up class references and build G{V, E} via the dictionaries -- now uses names instead of type references (#202, #204)
- Added unit tests & cleaned up some old/useless code (#208)
Spock v2.3.3
Spock v2.3.3 Release Notes
Minor Changes
- New graph backend from #181 was causing translation from Spockspace to native python dictionary to fail in certain cases: (1) optional Enum's of @spock decorated classes, (2) nested @spock classes with definitions coming in from configuration file(s) -- as these were not getting recursed in the config check. Fixed with #201
- Added more unit tests (#201)
Spock v2.3.2
Spock v2.3.2 Release Notes
Minor Changes
- When coded values are passed to the repeated list def they now get caught via an instance check within the list field handlers (#200)
- Allows for multiple semantics for defining defaults of lists of repeated classes. If no config values are passed or defaults are coded it will fall back on the base classes defaults and instantiate a list of length equal to the number of class instances specified in the default constructor (#200)
- Added more unit tests (#200)
Spock v2.3.1
Spock v2.3.1 Release Notes
Minor Changes
- Loosened deps to prevent clashing and reduce the number of dependabot PRs (#189)