Releases: nylas/javascript
Releases · nylas/javascript
@nylas/connect@1.2.5
Patch Changes
- 93bc4db: Update release workflow to use npm trusted publishing with OIDC authentication
@nylas/connect@1.2.4
Patch Changes
- 3b179b4: Changed the header name from
x-nylas-application-public-idto improve API consistency.
@nylas/connect@1.2.3
Patch Changes
- 948428e: Updated the x-nylas-public-application-id header.
@nylas/react@3.0.1
@nylas/react@3.0.0
Major Changes
-
0ba7885: Add
@nylas/reactto the monorepo with initial components, hooks, and build setup.- Introduces React utilities for integrating with the Nylas platform
- Includes basic docs and distribution configuration
Cosmetic updates to
@nylas/connect.- Style and documentation polish; no functional changes
Patch Changes
- Updated dependencies [0ba7885]
- @nylas/connect@1.2.1
@nylas/connect@1.2.2
Patch Changes
- 86253d9: Fix publishing process by removing prepublishOnly hooks that caused TypeScript compilation errors during changeset publish
@nylas/connect@1.2.0
Minor Changes
- bf03a1e: Export CodeExchangeMethod and CodeExchangeParams types for custom code exchange implementations.
@nylas/connect@1.1.0
Minor Changes
- 75d6769: - Added
IdentityProviderTokenCallbacktype for providing JWT tokens- Added optional
identityProviderTokencallback toConnectConfig - Token exchange now uses JSON format instead of form-encoded requests
- Added
idp_claimsfield to token exchange when IDP token is provided
- Added optional
@nylas/connect@1.0.0
Major Changes
-
2408953: Add custom code exchange functionality for enhanced security.
Usage
// Handle code exchange on your backend const nylasConnect = new NylasConnect({ clientId: "your-client-id", redirectUri: "http://localhost:3000/callback", codeExchange: async (params) => { const response = await fetch("/api/auth/exchange", { method: "POST", body: JSON.stringify(params), }); return await response.json(); }, }); // Use normally - custom exchange is called automatically const result = await nylasConnect.connect({ method: "popup" });
@nylas/connect@0.1.0
Minor Changes
-
356ac8f: Add automatic API URL version suffix handling
The NylasConnect client now automatically appends
/v3to API URLs that don't already have a version suffix. This ensures all API calls use versioned endpoints while preserving any explicitly set versions.Features:
- Automatically appends
/v3to API URLs without version suffixes - Preserves existing version suffixes (e.g.,
/v1,/v2,/v10) - Handles trailing slashes correctly
- Works with custom API URLs and regional endpoints
Examples:
https://api.us.nylas.com→https://api.us.nylas.com/v3https://api.us.nylas.com/v2→https://api.us.nylas.com/v2(unchanged)https://custom.api.com→https://custom.api.com/v3
This change is backward compatible and doesn't affect existing functionality.
- Automatically appends