Skip to content

Commit 1a2f243

Browse files
Document rejection of invisible-separator baseURL wrappers
Co-authored-by: Eric Allam <eric@trigger.dev>
1 parent abdddac commit 1a2f243

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.changeset/curly-radios-visit.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ Add a new `@trigger.dev/ai` package with:
1111
- strict `baseURL` normalization/validation (trimming, path-safe slash handling, absolute `http(s)` URLs only, no query/hash/credentials)
1212
- rejection of internal whitespace characters in normalized `baseURL` values
1313
- rejection of internal invisible separator characters (e.g. zero-width/BOM characters) in normalized `baseURL` values
14+
- rejection of invisible separator wrappers around otherwise valid `baseURL` values (for example `\u200B...` and `\u2060...`)
1415
- deterministic baseURL validation error ordering for multi-issue inputs (internal whitespace → protocol → query/hash → credentials)
1516
- explicit default `baseURL` behavior (`https://api.trigger.dev`) and case-insensitive `HTTP(S)` protocol acceptance

packages/ai/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
- Added explicit validation that `baseURL` excludes query parameters and hash fragments.
2828
- Added explicit validation that `baseURL` excludes username/password credentials.
2929
- Added explicit validation that `baseURL` excludes internal whitespace/invisible separator characters (including zero-width/BOM characters).
30+
- Clarified that invisible separator characters are rejected even when wrapped around an otherwise valid `baseURL`.
3031
- Documented that `HTTP://` and `HTTPS://` are accepted (case-insensitive protocol matching).
3132
- Added deterministic validation ordering for multi-issue baseURL values
3233
(internal whitespace → protocol → query/hash → credentials).

0 commit comments

Comments
 (0)