# @alfalab/scripts-server

## 1.4.0

### Minor Changes

-   [#532](https://github.com/core-ds/arui-scripts/pull/532) [`b82a10c`](https://github.com/core-ds/arui-scripts/commit/b82a10c4e90e625ff538f47528de0869f798d6d4) Thanks [@heymdall-legal](https://github.com/heymdall-legal)! - Добавлена поддержка серверного рендера модулей в `createGetModulesMethod`:

    -   `ModuleDescriptor` теперь может принимать метод `renderToHtml`, который возвращает HTML
        модуля для SSR-запросов;
    -   в ответ ресурсов модуля может попадать поле `html`, которое используется
        `createSsrMounter` из `@alfalab/scripts-modules/ssr`;
    -   для SSR-запросов в ответ добавляются `styles` module-federation модулей, что позволяет
        хост-серверу встроить стили при серверном рендере и избежать мигания интерфейса; для
        обычных (не-SSR) запросов ответ остаётся прежним;
    -   экспортированы типы `RenderModuleToHtmlParams`, `SsrErrorMode` и
        `CreateGetModulesMethodOptions`, включая настройку обработки ошибок SSR через
        `ssrErrorMode`.

    Подробнее: [SSR-спецификация модулей](../docs/specs/ssr-spec.md).

## 1.3.1

### Patch Changes

-   [#449](https://github.com/core-ds/arui-scripts/pull/449) [`63a7336`](https://github.com/core-ds/arui-scripts/commit/63a7336cc279d6eeab3bc8ba24246a036e683d72) Thanks [@heymdall-legal](https://github.com/heymdall-legal)! - Сборка переведена на typescript@6. Изменений для внешних потребителей нет

## 1.3.0

### Minor Changes

-   [#244](https://github.com/core-ds/arui-scripts/pull/244) [`2b7664b`](https://github.com/core-ds/arui-scripts/commit/2b7664bea1f8cb247f8248b3793b33961d4d9cf2) Thanks [@e-ogri](https://github.com/e-ogri)! - Добавление дженерика для функции createGetModulesMethod

## 1.2.3

### Patch Changes

-   [#215](https://github.com/core-ds/arui-scripts/pull/215) [`bfb00ce`](https://github.com/core-ds/arui-scripts/commit/bfb00cec20095d43046669c9bf2ef189d1a5b1e8) Thanks [@Haskiro](https://github.com/Haskiro)! - Исправление обработки массива assets из manifest в функции readAssetsManifest

## 1.2.2

### Patch Changes

-   [#200](https://github.com/core-ds/arui-scripts/pull/200) [`607bd73`](https://github.com/core-ds/arui-scripts/commit/607bd73504e8ecb72b30c60b9f18784a45dedd98) Thanks [@dependabot](https://github.com/apps/dependabot)! - bump express from 4.18.2 to 4.19.2

## 1.2.1

### Patch Changes

-   [#98](https://github.com/core-ds/arui-scripts/pull/98) [`ed40587`](https://github.com/core-ds/arui-scripts/commit/ed4058763981be72124be3f29269563df748b627) Thanks [@heymdall-legal](https://github.com/heymdall-legal)! - Удалены неиспользуемые типы.

## 1.2.0

### Minor Changes

-   [#67](https://github.com/core-ds/arui-scripts/pull/67) [`5f0b9bb`](https://github.com/core-ds/arui-scripts/commit/5f0b9bbb2ed995a8888492b389a5ad340e783d0a) Thanks [@chermashentsau](https://github.com/chermashentsau)! - Add factory modules support

## 1.1.0

### Minor Changes

-   [#56](https://github.com/core-ds/arui-scripts/pull/56) [`1c64198`](https://github.com/core-ds/arui-scripts/commit/1c641989791c4ff1e7a20d05c115f8a1d7817e30) Thanks [@heymdall-legal](https://github.com/heymdall-legal)! - Add modules support and various tools to work with them correctly.

    Modules provides a way to define reusable piece of code to consume from different applications.
    Additional tooling provides a convenient way to consume this modules in applications.
    Full documentation is available in [separate doc](https://github.com/core-ds/arui-scripts/blob/master/packages/arui-scripts/docs/modules.md).
