Skip to content

Releases: bitrix-tools/chef

v1.9.1

30 Apr 11:18

Choose a tag to compare

Глобальные неймспейсы для зависимостей, заремапленных на npm-пакеты: при включённом standalone.exposeNamespaces экспорты npm-пакета теперь регистрируются под неймспейсом исходного расширения (например, ui.lexical.core → globalThis.BX.UI.Lexical.Core).


Global namespaces for npm-remapped dependencies: when standalone.exposeNamespaces is enabled, npm package exports are now registered under the source extension namespace (e.g. ui.lexical.core → globalThis.BX.UI.Lexical.Core).

v1.9.0

29 Apr 11:57

Choose a tag to compare

  • Полная переработка эмиттера .d.ts на TypeScript Compiler API: правки через AST по точным позициям, корректный резолв npm-типов через sibling-экстеншены, поддержка ImportTypeNode, эмит для entry-файлов с импортами за пределами packageRoot
  • Транзитивный обход npm-импортов sibling-экстеншенов: типы из под-пакетов (например, @vue/runtime-core за vue) теперь корректно ссылаются на ambient-namespace sibling'а вместо инлайн-копии
  • bundle.config: новое поле types для указания .d.ts файла — chef aliases и webpack-резолверы используют его вместо input для design-time резолва

  • Rewrote the .d.ts emitter on top of the TypeScript Compiler API: AST-positional edits, proper npm type resolution via sibling extensions, ImportTypeNode support, emit for entries that import outside packageRoot
  • Transitively walk sibling npm imports when matching ownership — types from sub-packages (e.g. @vue/runtime-core behind vue) now reference the sibling's ambient namespace instead of being inlined
  • bundle.config: new types field pointing at a .d.ts file — chef aliases and webpack resolvers use it instead of input for design-time resolution

v1.8.3

17 Apr 12:01

Choose a tag to compare

• standalone: npm-пакеты в remap резолвятся через Rollup node-resolve (ESM вместо CJS)
• standalone: упрощена экспозиция пространств имён зависимостей — меньше рантайм-кода, чище бандл
• test runner: тестовый бандл больше не инлайнит граф зависимостей; сборка тестов для больших пакетов больше не ломается


• standalone: npm packages in remap now resolve through Rollup's node-resolve (ESM instead of CJS)
• standalone: simplified dependency namespace exposure — less runtime code, cleaner bundle
• test runner: test bundle no longer inlines the dependency graph; building tests for large packages no longer breaks

v1.8.2

16 Apr 13:41

Choose a tag to compare

Исправлены runtime-ошибки в standalone-сборках с exposeNamespaces: true: ошибки TDZ при циклических зависимостях, падение на read-only свойствах замороженных объектов, конфликт при совпадении namespace зависимости и текущего расширения.


Fixed runtime errors in standalone builds with exposeNamespaces: true: TDZ errors with circular dependencies, crashes on read-only properties of frozen objects, and conflicts when a dependency namespace matches the current extension namespace.

v1.8.1

16 Apr 08:44

Choose a tag to compare

  • Предупреждения о неиспользуемых импортах теперь показывают точное имя и файл с code frame

  • Unused import warnings now show exact names and files with code frames

v1.8.0

15 Apr 18:24

Choose a tag to compare

  • Добавлен production-режим сборки и поддержка export conditions из package.json
  • Standalone-сборки теперь включают CSS и ассеты зависимостей
  • Исправлена генерация d.ts: корректная обработка реэкспортов через barrel-файлы и резолв путей через tsconfig
  • Исправлены абсолютные пути в sourcemap при конкатенации файлов
  • Исправлен safeNamespaces для формата IIFE в Rollup 4
  • Исправлен резолв CSS-only зависимостей в config.php
  • Добавлен флаг --force для пропуска валидации конфига проекта

  • Added production build mode and package.json export conditions support
  • Standalone builds now include CSS and assets from dependencies
  • Fixed d.ts generation: correct handling of re-exports through barrel files and tsconfig path resolution
  • Fixed absolute paths in sourcemaps when concatenating files
  • Fixed safeNamespaces for Rollup 4 IIFE format
  • Fixed CSS-only dependency resolution in config.php
  • Added --force flag to skip project config validation

v1.7.0

15 Apr 09:15

Choose a tag to compare

  • Standalone-сборка: инлайн всех зависимостей в один бандл с поддержкой remap для переопределения зависимостей
  • CSS-only расширения: поддержка CSS-файла как точки входа без JS-обёртки
  • Опция cssImages.absolutePaths для абсолютных URL изображений в CSS
  • Опция exposeNamespaces для standalone-сборок
  • Исправлена сборка protected-расширений в standalone-режиме
  • E2E-тесты: корректный поиск конфига Playwright и запуск без ошибки при пустом тест-сьюте

  • Standalone builds: inline all dependencies into a single bundle with remap support for dependency overrides
  • CSS-only extensions: use CSS file as entry point without JS wrapper
  • cssImages.absolutePaths option for absolute image URLs in CSS
  • exposeNamespaces option for standalone builds
  • Fixed protected extension inlining in standalone mode
  • E2E tests: proper Playwright config lookup and graceful handling of empty test suites

v1.6.3

13 Apr 07:51

Choose a tag to compare

  • Исправлено удаление side-effect импортов при сборке (например, файлы с регистрацией обработчиков)
  • Исправлено игнорирование параметра adjustConfigPhp: false в bundle.config
  • Настройки tree-shaking приведены к стандартным значениям Rollup

  • Fixed removal of side-effect imports during build (e.g. handler registration files)
  • Fixed adjustConfigPhp: false being ignored in bundle.config
  • Tree-shaking settings aligned with Rollup defaults

v1.6.2

13 Apr 06:45

Choose a tag to compare

Добавлена поддержка директории tests/ как альтернативы test/ для unit и e2e тестов


Added support for tests/ directory as an alternative to test/ for unit and e2e tests

v1.6.1

11 Apr 15:10

Choose a tag to compare

  • Исправлена выборочная транспиляция классов: статические свойства других классов больше не затрагиваются

  • Fixed selective class transpilation: static properties of other classes are no longer affected