Skip to content

Commit 25f4cde

Browse files
Document unicode wrapper trimming and empty-after-trim behavior
Co-authored-by: Eric Allam <eric@trigger.dev>
1 parent bed3c81 commit 25f4cde

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.changeset/curly-radios-visit.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,7 @@ Add a new `@trigger.dev/ai` package with:
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
1414
- rejection of invisible separator wrappers around otherwise valid `baseURL` values (for example `\u200B...` and `\u2060...`)
15+
- support for trimming additional unicode wrapper whitespace (`\u1680`, `\u3000`) while still rejecting
16+
values that normalize to empty after trimming
1517
- deterministic baseURL validation error ordering for multi-issue inputs (internal whitespace → protocol → query/hash → credentials)
1618
- explicit default `baseURL` behavior (`https://api.trigger.dev`) and case-insensitive `HTTP(S)` protocol acceptance

packages/ai/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
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).
3030
- Clarified that invisible separator characters are rejected even when wrapped around an otherwise valid `baseURL`.
31+
- Added explicit test/docs coverage for additional unicode-trimmable wrappers (`\u1680`, `\u3000`) and
32+
confirmed empty-after-trim values still throw `baseURL must not be empty`.
3133
- Documented that `HTTP://` and `HTTPS://` are accepted (case-insensitive protocol matching).
3234
- Added deterministic validation ordering for multi-issue baseURL values
3335
(internal whitespace → protocol → query/hash → credentials).

0 commit comments

Comments
 (0)