diff --git a/changelog.mdx b/changelog.mdx index 6b57727ec..07989867f 100644 --- a/changelog.mdx +++ b/changelog.mdx @@ -7,6 +7,16 @@ keywords: ["changelog", "API updates", "release notes", "what's new", "API chang To subscribe to updates, please [**“Turn on notifications”**](https://help.x.com/en/managing-your-account/notifications-on-mobile-devices#:~:text=In%20the%20top%20menu,%20you,you%20would%20like%20to%20receive) for [**@API**](https://x.com/api). You can also follow this changelog in your feed reader via the [**RSS feed**](https://docs.x.com/changelog/rss.xml). + + ### .NET Framework 4.7.2+ support for Chat XDK (`XDevPlatform.ChatXdk` `0.7.11`) + + The official **.NET Chat XDK** ([`XDevPlatform.ChatXdk`](https://www.nuget.org/packages/XDevPlatform.ChatXdk/0.7.11) `0.7.11`) now multi-targets `netstandard2.0` alongside `net8.0`, enabling **.NET Framework 4.7.2+** applications to encrypt/decrypt X Chat messages and media, manage public keys, and unlock keys with a PIN with no public API changes: + + - **Zero breaking changes on `.NET 8+`:** `net8.0` keeps its native zero-dependency package layout; `netstandard2.0` adds `System.Text.Json` (`8.0.5`) and `System.Memory` (`4.5.5`). + - **Windows `x64` and `x86` bundling:** Ships both `win-x64` and `win-x86` `chat_xdk_ffi.dll` binaries with MSBuild `.targets` (`build/net472/` and `buildTransitive/net472/`) and automatic architecture-aware loading for `PackageReference`, `packages.config`, `AnyCPU` (with or without **Prefer 32-bit**), and IIS/ASP.NET deployments. + - **`.NET Framework 4.7.2` requirements:** Set `11` (or `latest`), ensure TLS 1.2 is enabled (`ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12;`) on older Windows hosts, and install the matching Microsoft Visual C++ 2015–2022 Redistributable. See [Chat XDK](/xchat/xchat-xdk) and [`examples/dotnet/ChatBot.Net472`](https://github.com/xdevplatform/chat-xdk/tree/main/examples/dotnet/ChatBot.Net472). + + ### Official Ruby XDK (`xdk`) and Ruby Chat XDK (`chat_xdk`) diff --git a/xchat/getting-started.mdx b/xchat/getting-started.mdx index 3959a1029..b1bef090a 100644 --- a/xchat/getting-started.mdx +++ b/xchat/getting-started.mdx @@ -68,7 +68,7 @@ X Chat apps use two pieces together: dotnet add package XDevPlatform.ChatXdk ``` - The package is self-contained: native libraries for macOS (arm64, x64), Linux (x64), and Windows (x64) ship inside it. Requires .NET 8+. + The package is self-contained: native libraries for macOS (`arm64`, `x64`), Linux (`x64`, `arm64`), and Windows (`x64`, `x86`) ship inside it. Supports **.NET 8+** and **.NET Framework 4.7.2+** (via `netstandard2.0`; set `11` or `latest` and ensure TLS 1.2 is enabled on older Windows). ```xml diff --git a/xchat/migrate-from-legacy-dms.mdx b/xchat/migrate-from-legacy-dms.mdx index d9466131a..23d968ecd 100644 --- a/xchat/migrate-from-legacy-dms.mdx +++ b/xchat/migrate-from-legacy-dms.mdx @@ -65,7 +65,7 @@ Existing conversations are upgraded on X's side — you do **not** need to migra | **Python** (`chatxdk`, `import chat_xdk`) | `pip install chatxdk` | Python 3.10+. Supports Juicebox unlock and `export_keys` / `import_keys`. | | **JS / TS (browser)** (`@xdevplatform/chat-xdk`) | `npm install @xdevplatform/chat-xdk juicebox-sdk` | WASM for browsers and Node 18+. Keys stay in Juicebox secure key backup (**no key export**). | | **Node.js (server)** (`@xdevplatform/chat-xdk-server`) | `npm install @xdevplatform/chat-xdk-server` | Server-side `exportKeys` / `importKeys`. Never bundle into a browser app. | - | **Go, Rust, .NET 8+, JVM (JDK 8+)** | See [Chat XDK](/xchat/xchat-xdk) | Native bindings supporting `export_keys` / `import_keys`. Go ships prebuilt libraries for macOS and Linux `amd64` only (on Linux `ARM64`, use Python, Ruby, or `@xdevplatform/chat-xdk-server`). | + | **Go, Rust, .NET 8+ / .NET Framework 4.7.2+, JVM (JDK 8+)** | See [Chat XDK](/xchat/xchat-xdk) | Native bindings supporting `export_keys` / `import_keys`. Go ships prebuilt libraries for macOS and Linux `amd64` only (on Linux `ARM64`, use Python, Ruby, or `@xdevplatform/chat-xdk-server`). | | **Ruby** (`chat_xdk`, `require "chat_xdk"`) | `gem install chat_xdk` | Ruby 3.0+. Bundles prebuilt native libraries for macOS (`arm64`, `x64`), Linux (`x64`, `arm64`), and Windows (`x64`). Supports Juicebox unlock and `export_keys` / `import_keys`. | There are no Ruby or PHP bindings — run encryption in a small service in a supported language and call it from your app. For REST transport, use the official XDK (`pip install xdk` / `npm install @xdevplatform/xdk`) or any HTTP client. diff --git a/xchat/migrate-from-legacy-dms/faq.mdx b/xchat/migrate-from-legacy-dms/faq.mdx index 4064f9074..9a5650afa 100644 --- a/xchat/migrate-from-legacy-dms/faq.mdx +++ b/xchat/migrate-from-legacy-dms/faq.mdx @@ -331,7 +331,7 @@ Limits are set per access package, per user and per app, in 15-minute and 24-hou
Which languages does the Chat XDK support?
-Python, JavaScript/TypeScript (browser, plus `@xdevplatform/chat-xdk-server` for Node), Go, Rust, .NET 8+, and JVM (JDK 8 or later). There is no Ruby or PHP binding — run encryption in a small service in a supported language and call it from your app. Go ships prebuilt libraries for macOS and Linux `amd64` only; on Linux `ARM64`, use the Python or Node server package. Do not write your own encryption. +Python, JavaScript/TypeScript (browser, plus `@xdevplatform/chat-xdk-server` for Node), Go, Rust, .NET 8+ and .NET Framework 4.7.2+, JVM (JDK 8 or later), and Ruby (3.0+). There is no PHP binding — run encryption in a small service in a supported language and call it from your app. Go ships prebuilt libraries for macOS and Linux `amd64` only; on Linux `ARM64`, use the Python, Ruby, or Node server package. Do not write your own encryption.
diff --git a/xchat/xchat-xdk.mdx b/xchat/xchat-xdk.mdx index 4dec4aa83..b362223a7 100644 --- a/xchat/xchat-xdk.mdx +++ b/xchat/xchat-xdk.mdx @@ -54,7 +54,9 @@ App walkthrough: [Getting Started](/xchat/getting-started). Sample bots: [chat-x dotnet add package XDevPlatform.ChatXdk ``` - The package is self-contained: native libraries for macOS (arm64, x64), Linux (x64), and Windows (x64) ship inside it. Requires .NET 8+. + The package is self-contained: native libraries for macOS (`arm64`, `x64`), Linux (`x64`, `arm64`), and Windows (`x64`, `x86`) ship inside it. Supports **.NET 8+** (`net8.0`, zero external NuGet dependencies) and **.NET Framework 4.7.2+** (via `netstandard2.0`, pulling `System.Text.Json` and `System.Memory`). + + On **.NET Framework 4.7.2+**: set `11` (or `latest`) in your `.csproj`, ensure TLS 1.2 is enabled (`ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12;`) on older Windows versions, and install the matching Microsoft Visual C++ 2015–2022 Redistributable (`x64` or `x86`). The package's MSBuild `.targets` automatically deploy both `win-x64` and `win-x86` native DLLs for `PackageReference`, `packages.config`, and `AnyCPU` (with or without **Prefer 32-bit**). See the [.NET Framework 4.7.2 sample](https://github.com/xdevplatform/chat-xdk/tree/main/examples/dotnet/ChatBot.Net472).
```xml