DelphiMVCFramework 3.0.0-hydrogen is out!

Summary: DelphiMVCFramework 3.0.0-hydrogen is out! Tons of new features are available. Let’s see what’s new!

  Yes! After 18 months of development, more than 10 contributors (with a special thanks to Ezequiel Juliano Müller) and more than 500 commits, DelphiMVCFramework 3.0.0-hydrogen is finally out! It is a big releases with a lot of changes, refactorings and new features. All the 2.x users are strongly encouraged to migrate to this version.

The latest version will be always available at this link. Please, check that the suggested installation procedure is different from the 2.x branch. You have just to download the zip from the previous link and put the paths in the Delphi libs path. That’s it! Then, you have Delphi Ent+ you can also install the IDEExpert, however the IDEExpert is not required to use the framework… it is just an helper.

To help the migration from the 2.1.x branch, we wrote the breaking changes list.

DelphiMVCFramework 3.0.0 breaking changes

Use BodyAs<T> or the following pattern to migrate:

    JSON := TJSONObject.ParseJSONValue(Context.Request.Body) as TJSONObject;
    try
      if not Assigned(JSON) then
        raise EMVCException.Create('Invalid JSON');
      // do something here
    finally
      JSON.Free;
    end;

TRESTClient specific breaking changes

Before

lMyJSONObject := Response.BodyAsJsonObject.Clone as TJSONObject;

After

lMyJSONObject := TSystemJSON.BodyAsJsonObject(Response) as TJSONObject; 
try 
  //use the object 
finally 
  lMyJSONObject.Free; 
end;

 

Conclusions

If you are on Delphi XE7+ there are no reason (apart time/money) to mantain a 2.x server. The change is smooth and simple. The DMVCFramework team already did portings for a lot of customers and the porting is a matter of hours, not days nor weeks…. just hours. Many users already did the change.

 

DelphiMVCFramework Book

Considering the high demand, I’m starting to write a DelphiMVCFramework book that will cover from the basic utilization to the advanced scenarios with a lot real-world samples and how to sections. The book will be available ASAP through the leanpub platform as DelphiMVCFramework Handbook.

Enjoy!

Comments

comments powered by Disqus