Skip to content

chore: remove Flow, migrate to Biome and Vitest, bump Node to 26#19

Merged
fey merged 1 commit into
mainfrom
chore/migrate-biome-vitest-node26
Jun 1, 2026
Merged

chore: remove Flow, migrate to Biome and Vitest, bump Node to 26#19
fey merged 1 commit into
mainfrom
chore/migrate-biome-vitest-node26

Conversation

@fey

@fey fey commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Группа D (Flow + yarn + babel).

  • Flow удалён (flow-remove-types по src и тестам), babel-сборка убрана — ESM-исходники публикуются напрямую (type: module)
  • Jest→Vitest, ESLint(airbnb+flowtype)→Biome, yarn→npm
  • создан CI (его не было), Node→26
  • исправлены латентные баги, вскрытые удалением babel:
    • bottle.service('models', стрелка)factory (стрелки не конструируются)
    • default-импорт date-fns → namespace (нет default-экспорта)
    • пин javascript-state-machine ^2.4.0 (код использует v2 API .create)

Проверено локально: make lint ✅, vitest (12 тестов) ✅.

🤖 Generated with Claude Code

- strip Flow types from src and tests (flow-remove-types), drop Babel build
- publish ESM sources directly (type: module, main src/index.js)
- replace Jest with Vitest, ESLint (airbnb+flowtype) with Biome
- yarn -> npm (package-lock.json), add Node CI workflow (was none)
- fix latent issues exposed by dropping Babel:
  - bottle.service('models', arrow) -> bottle.factory (arrows are not constructors)
  - date-fns default import -> namespace import (no default export)
  - pin javascript-state-machine ^2.4.0 (code uses v2 .create API)
- bump engines.node to >=26.0

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@fey
fey merged commit 60fa327 into main Jun 1, 2026
1 check passed
@fey
fey deleted the chore/migrate-biome-vitest-node26 branch June 1, 2026 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant