Skip to content

Commit 022fbaa

Browse files
chore: version packages (#14)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 356ac8f commit 022fbaa

File tree

3 files changed

+22
-21
lines changed

3 files changed

+22
-21
lines changed

.changeset/api-url-version-suffix.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

packages/nylas-connect/CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# @nylas/connect
22

3+
## 0.1.0
4+
5+
### Minor Changes
6+
7+
- 356ac8f: Add automatic API URL version suffix handling
8+
9+
The NylasConnect client now automatically appends `/v3` to API URLs that don't already have a version suffix. This ensures all API calls use versioned endpoints while preserving any explicitly set versions.
10+
11+
**Features:**
12+
- Automatically appends `/v3` to API URLs without version suffixes
13+
- Preserves existing version suffixes (e.g., `/v1`, `/v2`, `/v10`)
14+
- Handles trailing slashes correctly
15+
- Works with custom API URLs and regional endpoints
16+
17+
**Examples:**
18+
- `https://api.us.nylas.com``https://api.us.nylas.com/v3`
19+
- `https://api.us.nylas.com/v2``https://api.us.nylas.com/v2` (unchanged)
20+
- `https://custom.api.com``https://custom.api.com/v3`
21+
22+
This change is backward compatible and doesn't affect existing functionality.
23+
324
## 0.0.3
425

526
### Patch Changes

packages/nylas-connect/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nylas/connect",
3-
"version": "0.0.3",
3+
"version": "0.1.0",
44
"description": "Modern, lightweight Nylas connection library with PKCE support",
55
"main": "dist/index.js",
66
"module": "dist/index.js",

0 commit comments

Comments
 (0)