Skip to content

Releases: DavidCuy/spa-cli

v1.2.1

01 Jun 04:32
b98ea26

Choose a tag to compare

What's Changed

Full Changelog: v1.2.0...v1.2.1

v1.2.0

31 May 23:47
3b09c5d

Choose a tag to compare

What's Changed

  • feat: container build mode — api_build_mode config, lambda filtering, ApiGateway detection by @DavidCuy in #15
  • feat: update documentation by @DavidCuy in #16

Full Changelog: v1.1.2...v1.2.0

v1.1.2

30 Apr 05:27
e0d0562

Choose a tag to compare

What's Changed

  • fix: manage binary object at return reponse by @DavidCuy in #14

Full Changelog: v1.1.1...v1.1.2

v1.1.1

29 Apr 13:28
df15fdb

Choose a tag to compare

What's Changed

  • fix: security scheme applied at the last endpoint with the same name by @DavidCuy in #13

Full Changelog: v1.1.0...v1.1.1

v1.1.0

29 Apr 04:25
97c2230

Choose a tag to compare

What's Changed

  • Feat/add claude docs by @DavidCuy in #10
  • feat: container deploy mode with Docker multi-stage build and auth bridge by @DavidCuy in #11

🚀 Container Deploy Mode

spa-cli ahora soporta deploy en contenedor Docker como alternativa al modelo serverless Lambda + API Gateway.

Nuevos comandos

  • spa project build --build-mode container — Además del pipeline serverless existente, prepara un directorio build/ listo para Docker con runtime FastAPI, layers, OpenAPI spec, y auth bridge.
  • spa project docker-init — Genera Dockerfile (multi-stage), docker-compose.yml, entrypoint.sh y .dockerignore en la raíz del proyecto. Soporta --force para sobreescribir.
  • spa authorizer add <name> — Genera handler stub en src/authorizers/<name>/handler.py y lo registra automáticamente en spa_project.toml. Opciones: --role-name, --lambda-name.

Dockerfile multi-stage

La imagen generada usa un build de dos etapas:

  • Stage 1 (builder): Poetry resuelve dependencias → export a requirements.txt → pip install en venv aislado + dependencias de layers
  • Stage 2 (runtime): Python 3.11-slim limpio, solo copia el venv y el código fuente. Sin Poetry, sin compiladores, sin cache.

Auth Bridge para Container

Nuevo middleware FastAPI (auth_bridge.py) que replica el comportamiento de Lambda Authorizers de API Gateway dentro del contenedor. Lee la configuración de authorizers desde spa_project.toml y genera un registry JSON en build time.

Cambios en modelo de datos

  • LambdaAuthorizer ahora acepta campos opcionales module y handler para resolución de authorizers en modo container.
  • build_api() omite sustitución de ARNs en modo container (placeholders preservados para el bridge).

📝 Documentación

Full Changelog: v1.0.12...v1.1.0

v1.0.12

23 Feb 04:55
92619af

Choose a tag to compare

What's Changed

  • fix: endpoints iguales con distintos métodos by @DavidCuy in #9

Full Changelog: v1.0.10...v1.0.12

v1.0.10

04 Dec 19:42
a3e9689

Choose a tag to compare

What's Changed

Full Changelog: v1.0.9...v1.0.10

v1.0.9

03 Dec 21:14
7f4e77d

Choose a tag to compare

What's Changed

  • fix: implements custom authorizers by @DavidCuy in #7

Full Changelog: v1.0.7...v1.0.9

v1.0.8

03 Dec 20:35
bfda421

Choose a tag to compare

What's Changed

  • support for multiple custom lambda by @DavidCuy in #6

Full Changelog: v1.0.7...v1.0.8

v1.0.7

03 Dec 19:16
7551b93

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: https://github.com/DavidCuy/spa-cli/commits/v1.0.7