Skip to content

Commit 81aacb1

Browse files
chore: update SDK to v0.4.0
1 parent f6cafdb commit 81aacb1

File tree

99 files changed

+40048
-49518
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+40048
-49518
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ A comprehensive TypeScript SDK for the X API (formerly Twitter API) with advance
1313
- **📡 Streaming**: Event-driven streaming with automatic reconnection
1414
- **📚 Type Safety**: Complete TypeScript definitions for all endpoints and parameters
1515
- **🎯 Full X API Support**: Users, Posts, Lists, Bookmarks, Communities, and more
16+
- **📱 Multi-Platform**: Works in Node.js, browsers, and React Native
1617

1718
## Install
1819

@@ -43,6 +44,22 @@ The SDK is written in TypeScript and includes full type definitions. No addition
4344
- Node.js 16+
4445
- TypeScript 4.5+ (if using TypeScript)
4546

47+
### React Native Support
48+
49+
The SDK fully supports React Native out of the box. No additional polyfills or packages are required - just install the SDK and start using it:
50+
51+
```javascript
52+
import { Client } from '@xdevplatform/xdk';
53+
54+
const client = new Client({ bearerToken: 'your-token' });
55+
```
56+
57+
The SDK uses pure JavaScript crypto implementations that work in all environments, and React Native's built-in `fetch` for HTTP requests.
58+
59+
### Browser Support
60+
61+
The SDK works in modern browsers (Chrome, Firefox, Safari, Edge) out of the box using the Web Crypto API and native `fetch`.
62+
4663
## Quick Start
4764

4865
```typescript
@@ -234,7 +251,7 @@ while (!followers.done) {
234251

235252
const userCount: number = followers.users.length; // all fetched users
236253
const firstUser: Schemas.User | undefined = followers.users[0];
237-
const nextToken: string | undefined = followers.meta?.next_token;
254+
const nextToken: string | undefined = followers.meta?.nextToken;
238255
```
239256

240257
### Async iteration

dist/.tsbuildinfo

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)