egroups 2 Posted January 18 Spring4d 2.0 is out,but not compatible with 1.2. Of course its open source,but is any simply changelog between 1.2 and 2.0,what's new etc? And is any manual for easy convert Project with spring4d 1.2 for using with spring4d 2.0? Share this post Link to post
Vincent Parrett 745 Posted January 18 I guess it depends which features you are using, I did this a while back and only hit a few minor issues. I was mosly using the collections (and the IEnumerable<T> linq features) and the container. Share this post Link to post
egroups 2 Posted January 18 (edited) Collections,Container,Logging,Persistence,Events,TActions,TProcs... Edited January 18 by egroups Share this post Link to post
Vincent Parrett 745 Posted January 18 Just download v2, change your library/search paths and see what happens when you compile 😉 Share this post Link to post
Vincent Parrett 745 Posted January 18 Not sure what changes were made to parts other than Collections and Container - perhaps @Stefan Glienke can chime in here. Share this post Link to post
egroups 2 Posted January 19 I switched from Delphi 10.2 to Delphi 11 and for now I'm using Spring4d 1.2. When GetIt is functional, I'll install Delphi 11 at home and then I'll test with Spring4d 2.0. Share this post Link to post
Stefan Glienke 1996 Posted January 19 Do you mean this? https://bitbucket.org/sglienke/spring4d/wiki/Spring4D 2.0 Releasenotes (I think they are not linked from the readme thus easy to miss - I will fix that shortly) 1 2 Share this post Link to post
Vincent Parrett 745 Posted January 19 5 hours ago, egroups said: When GetIt is functional, I'll install Delphi 11 at home and then I'll test with Spring4d 2.0. Just clone the repo from bitbucket (with git) and use that. Share this post Link to post
egroups 2 Posted January 25 On 1/19/2024 at 10:58 AM, Stefan Glienke said: Do you mean this? https://bitbucket.org/sglienke/spring4d/wiki/Spring4D 2.0 Releasenotes (I think they are not linked from the readme thus easy to miss - I will fix that shortly) Super,many thanks. Share this post Link to post
vfbb 281 Posted March 15 (edited) @Stefan Glienke Could you add a version constant to Spring.pas? Something like: const Spring4DVersion = 2.0; to help us maintain code compatible with 1.x and 2.0 at the same time, as it would allow: {$IFNDEF DELPHI_12_UP} constructor THashSet<T>.Create(ACapacity: NativeInt); begin {$IF defined(Spring4DVersion) and (Spring4DVersion >= 2)} inherited Create(ACapacity, nil); {$ELSE} inherited Create; {$ENDIF} end; {$ENDIF} This is especially important for large teams/projects that share common code, where some projects and people use version 1.x while others use version 2.x, and the common code should support both. Edited March 16 by vfbb Share this post Link to post