# 6.4.3033

## New Features:

### Global Scripts

Scripts can now be defined once on an application level and then be used on any page in the application.

<div align="left"><figure><img src="/files/qqv5SJp9ykAijS8iZ0GU" alt="Global Scripts"><figcaption></figcaption></figure></div>

### Updated to latest SqlClient

Our database connector has been updated to use the latest Microsoft.Data.SqlClient. The new SqlClient handles SQL Server connections differently. See [Breaking changes in EF Core 7.0 (EF7) - EF Core | Microsoft Learn](https://learn.microsoft.com/en-us/ef/core/what-is-new/ef-core-7.0/breaking-changes#encrypt-true) for details on what has changed and possible mitigations thereof.

## Improvements

* Improve start-up speed of successive previews
* Allow setting a variable or similar to the value of ForEach.LoopValue
* Add a validation for the Response Type on REST operations

## Bug

* Manually removing `.map(...)` from an expression was reverted on save
* Exporting a previously deleted and then undid embedded file caused a ‘Value cannot be null’ exception
* Assigning an object caused an unexpected ‘Expected a single value’ validation
* `.mapAsync(...)` was thrown away when used inside of an object expression
* Repeater.ListItem did not update controls bound to it
* After the initial deployment of an application, the HTTP Response header (CORS) should not be updated in SAM


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.stadium.software/6/release-notes/6.4.3033.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
