Skip to content

1.1

Choose a tag to compare

@emericklaw emericklaw released this 28 Sep 05:25
· 6 commits to master since this release

v1.1 - Positional Parameters & Single Service Mode (2025-09-28)

πŸš€ New Features

  • Positional Parameters: Added USE_POSITIONAL_PARAMS support for numbered placeholders ({1}, {2}, {3})
  • Single Service Mode: New URL_PATTERN environment variable for single-pattern deployments without service prefixes
  • Flexible Configuration: Choose between URL_PATTERNS (multi-service) or URL_PATTERN (single service)

πŸ› οΈ Improvements

  • Refactored parameter processing into reusable processRequest() function
  • Enhanced startup logging with parameter mode indication
  • Added example URL generation for positional parameter patterns
  • Improved error handling with mutual exclusion validation

πŸ” Examples

Positional parameters:

Pattern: {1}/{2}/{3}/{4}
URL: /service/github/twbs/bootstrap/v5.3.8/bootstrap.zip
Result: {1}="twbs", {2}="bootstrap", {3}="v5.3.8", {4}="bootstrap.zip"

Single service mode:

Pattern: https://github.com/{owner}/{repo}/archive/{tag}.zip
URL: /owner/facebook/repo/react/tag/v18.2.0

πŸ“‹ Technical Notes

  • Breaking change: Cannot use both URL_PATTERNS and URL_PATTERN simultaneously
  • Positional mode requires numbered placeholders in URL patterns
  • Single service mode uses catch-all route without /service/ prefix

Full Changelog: 1.0...1.1