Skip to content

Releases: etwodev/ramchi

v2.0.5

12 Oct 15:59

Choose a tag to compare

2.0.5 (2025-10-12)

Bug Fixes

  • add missing routes for http spec (5eb0a23)

v2.0.4

11 Jul 17:09

Choose a tag to compare

2.0.4 (2025-07-11)

Bug Fixes

  • prefer prefixed slashes for brevity (8bc3e05)

v2.0.3

11 Jul 16:45

Choose a tag to compare

2.0.3 (2025-07-11)

Bug Fixes

  • ensure context-dependent middleware gets ran first (fbd4e42)
  • update README.md [ci skip] (17a351e)
  • update README.md [ci skip] (7a8058c)
  • update README.md [ci skip] (763afd7)

v2.0.2

11 Jul 03:57

Choose a tag to compare

2.0.2 (2025-07-11)

Bug Fixes

  • update godoc and extend to include examples (2a4f080)

Chores

  • Update README.md [ci skip] (0518a9c)

v2.0.1

10 Jul 20:50

Choose a tag to compare

2.0.1 (2025-07-10)

Bug Fixes

  • correct module path for Go v2 compatibility (21f3409)

v2.0.0

10 Jul 20:32
868f50e

Choose a tag to compare

2.0.0 (2025-07-10)

Breaking Changes

  • server: extend middleware registration, config options, and test coverage (868f50e)

- Middleware:
  • Add togglable middleware support at global, router, and route level
  • Register CORS and Logging middleware based on config flags
  • Inject structured logger into request context via LoggingMiddleware

- Configuration:
  • Expand `ramchi.config.json` with:
    ◦ enableCORS, allowedOrigins
    ◦ enableRequestLogging
    ◦ enableTLS, tlsCertFile, tlsKeyFile
    ◦ read/write/idle timeouts and maxHeaderBytes
  • Middleware toggling tied directly to these fields

- Tests:
  • Added validation for CORS headers
  • Added logger context assertion
  • Error routes now return JSON-formatted error messages
  • Assert proper registration paths and method handling

- Docs:
  • README now documents all configuration fields
  • Added togglable middleware section

BREAKING CHANGE:
- Middleware registration is now config-driven. Any middleware not explicitly enabled via config will not be applied.
- LoggingMiddleware depends on `enableRequestLogging` in config.
- CORSMiddleware requires both `enableCORS=true` and non-empty `allowedOrigins`.
- `ramchi/config.New()` must be called before any server instantiation.
- Routes and middleware marked as `Experimental=true` require `"experimental": true` in config.
- Errors are no longer returned using `Handle()` (removed); replace with explicit JSON writing (e.g., `json.NewEncoder(w).Encode(...)`).

Feature

Bug Fixes

  • add proper error handling (3f5a946)
  • add default config option (d652359)

Chores

v1.3.0

10 Jul 01:59

Choose a tag to compare

1.3.0 (2025-07-10)

Feature

  • update to enable prefixing (3e5a9ac)

v1.2.0

20 Jun 19:55

Choose a tag to compare

1.2.0 (2024-06-20)

Feature

Chores

v1.1.0

14 Jun 17:30

Choose a tag to compare

1.1.0 (2024-06-14)

Feature

Chores

v1.0.2

14 Jun 13:24

Choose a tag to compare

1.0.2 (2024-06-14)

Bug Fixes

Chores