All releases
Feature

Social SDK 1.1: social.community(id).as(actorId) and a method for every route

@productcraft/social 1.1 adds resource methods: bind a community once, act as a user with .as(actorId), and call posts.create(), conversations.messages.create() or search.posts.list() with retries, idempotency keys, pagination and typed errors.

social.community(communityId) returns a scope that every community route hangs off, and .as(actorId) fills actor_id in each body or query that takes one: social.community(id).as(actorId).posts.create({ body }). Workspace routes stay on social itself (social.communities.create()), and lists such as search.posts.list() walk every page for you.

Creates and sends carry an idempotency key, failures are classes you can catch, and social.webhooks.unwrap() verifies deliveries. 1.1 is additive: social.client and every 1.0 call keep working. The Social docs and the API reference, which now has a Node tab per operation, use the new methods; the migration guide shows each call before and after.