For the first time in years of releases, in order to be ready with the DecSoft App Builder 2027.1 release, we need to take care of some things, due to the lot of changes that we made. Please, take a look at the below topics in order to be ready for this specific release of DecSoft App Builder.
If you are not using specific Bootstrap classes or variables in your apps, for example, inside some HTML controls, you no need to worry: Bootstrap 6 will be ready for your app transparently. If you are using Bootstrap classes or variables, you must take care, since some Bootstrap 5 classes and variables have been changed or replaced in Bootstrap 6. In this documentation topic you can found more information that can help you.
Luxon is the best JavaScript library to work with dates in JavaScript, and, if you are using it like "luxon.DateTime", the only you must do is to use it like "DateTime", that is, remove the "luxon." prefix, since the "luxon" variable is no more needed. So replace "luxon.DateTime" by "DateTime".
If you are using Font Awesome icons using HTML markup inside an HTML control, like <i class="fa-solid fa-user"></i>, change that with <dab-icon class="fa-solid fa-user"></dab-icon>.
If you are using the above "i" markup to set the "text" of a Push button control, for example, in order to change the icon at runtime, don't do it anymore: just set the "leftIcon" property of the Push button control to the icon that you wanted, for example, "fa-solid fa-user", since now it's possible to change the icons (any property of any control who accepts and icon) at runtime.
There is a new optional "icon" argument for the app.showAlert() method. All the arguments of this method are optional except the first one, which is the body of the alert. If you are using app.showAlert() indicating arguments beyond the "kind" argument, you must add an argument after the "kind" one: you can set an empty string (no icon) or an icon if you want to use it. Basically, if you are using "buttons" in some app.showAlert(), then you need to take care and add the empty string or an icon for the "icon" argument.
There is a new optional "icon" argument for the app.showToast() method. All the arguments of this method are optional except the first one, which is the text of the toast. If you are using app.showToast() indicating arguments beyond the "title" argument, you must add an argument after the "title" one: you can set an empty string (no icon) or an icon if you want to use it. Basically, if you are using "subtitles" in some app.showToast(), then you need to take care and add the empty string or an icon for the "icon" argument.
The HTTP client is no more based in jQuery $.ajax, but, in the JavaScript Fetch API. This offers to us more capabilities, more response types and better error control, among other things. If you use HTTP client controls in your apps, follow this recommendations:
1. Rename the "self.response" or "views.view1.http1.response" (note here "view1" and "http1" are the name of an app view and an HTTP client control) by "self.result" or "views.view1.http1.result". In other words, the response from the server is no more in "response" but in "result".
2. "self.response" or "views.view1.http1.response" still exists at the Done event and sometimes at the Fail event of the HTTP client, but, this property is not more the server response (which is in "result" now) but a JavaScript Response object, which is the result of the Fetch API request.
3. The "errorThrown", "status", "textStatus" properties do not exists anymore. There is only three properties now: "result", "response" and "error". "result" is the server response, which can be plain text, JSON, Blob and more (depending on the "ResponseType"), "response" is a Response JavaScript object and "error" is an Error JavaScript object.
4. If you previously expected a "text" from the server, set the "ResponseType" property of the HTTP client control to "text" (this is the default). If you expected a JSON "as a text", set the "ResponseType" to "text" and use "JSON.parse" to parse the received text. If you expected a JSON object "as is", then set the "ResponseType" to "json": in this case you no need to parse the JSON, since will be already a JSON object or the error event will be fired.