Repository navigation
Trysil 2.1.0 #18
davidlastrucci
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Trysil 2.1.0 is a minor release on top of 2.0.0.
Install it with the setup program
Download Trysil.Setup.exe and run it with Delphi closed. It finds the Delphi versions installed (10.3 to 13), downloads this release, builds the packages and the IDE Expert, and sets the
Trysilvariable and the library path of each IDE. It updates and uninstalls Trysil from the installed apps of Windows. The setup is not signed: the first time, SmartScreen asks you to click More info, then Run anyway. Its source is inTrysil.Setup. See the setup guide.GetIt, Boss and the manual build keep working as before: see the installation guide.
What's new
Trysil.OpenAPIpackage generates the OpenAPI 3.1 document of aTTHttpServer<C>and serves it on/openapi.json, schemas and validation constraints included.TTEntityEvents<T>andTTEventRegistrationkeep the business rules out of the entity unit, so a model regenerated by the Expert no longer takes them with it.TTHttpEntityReader<T>andTTHttpEntityWriter<T>carry the standard operations for any entity; your controllers declare the routes and delegate.AddBindAddressto choose the listening addresses,Routes,RegisterControllerClass,[TNotSqid], and with Sqids on the HTTP filter reads ids as sqids.ID;TTLazyList<T>.AddEntityis public;TTFilter.AddWhere, constructors forTTFireDACConnectionParameters, read-only values on the validation attributes,OldEntitynil in the events of an insert.TTJSonSerializerConfig; an eager relation goes through JSON and OpenAPI like aTTLazy<T>, key and nested object.Before you upgrade
A few changes need attention, each marked Breaking in the changelog:
requires Trysil, Trysil.JSon;instead ofrequires Trysil370, Trysil.JSon370;(the.bplkeeps its name,Trysil370.bpl);TLengthAttributethat calls theLengthfunction writesSystem.Length;This discussion was created from the release Trysil 2.1.0.
All reactions