2sxc 16.03 with enhanced Typed mode
This massively improves v16.02 with the typed mode and is slowly finalizing all work.
Important Breaking Change (for new Typed code only)
Read the breaking changes in typed code in v16.03 blog post.
Note that we
- Base classes were renamed because of confusing
...Prosuffix.RazorProis nowRazorTyped,ApiProisApiTypedandCodeProisCodeTyped#3147 - Now by default, all access to a property like
.String("SomeName")will throw an error inrequiredmode if the field doesn't exist #3138 - The
.Parents(...)was enhanced to require named parameters (see blog post) #3139
Enhancements
- Typed: Massively enhanced and reduced the possibility of writing code which doesn't do anything
- Oqtane: Better error when Oqtane in installed without sufficient DB permissions #3128 / #3131
- Image Resizer: Upgrade to dnn-imageflow 1.2.1 #3130
- Image Resizer: New
Squareresize settings #3134 - Typed: ITypedItem now has a new
.Picture(...)method making the code nicer #3135 - Image Resizer: ImageService can now also handle IFile objects and get the metadata automatically #3140
- Typed: ITypedItems can now be mocked #3141 to create alternate data in code when no data exists
- Typed: New methods
ContainsKey(...),Keys(...)#3142 - Typed: New methods
IsEmpty(...)and `IsNotEmpty(...) #3144 - Typed: method
.String(..., scrubHtml)now also accepts a string containing tags to remove #3146 - Typed: If an error occurs, much more information is provided as to how to fix #3143 #3145
- Web Farm Cache: Updated for v16.02+ (enterprise customers only)
- Page Parameters: now support
ITypedso you can useMyPage.Parameters.Int("id")and similar - Typed Json: now also supports paths, so you can use
Kit.Json.ToTyped(jsonString).Int("Root.Child.Id") - Typed Json: now also strict using
propsRequiredby default - Typed: the property
.Dynnow only exists onITypedItem(entity-based) and not on other wrappers
Bugfixes
- turnOn failed on AJAX reloads during editing #3127
- Oqtane: Bugfix importing App Assets #3129
- Web Farm Cache: Fix issue which occured on license uploads
- Licenses: fix issue with multiple licenses / names resulting in an
unlicensedmessage