v1.0.0 of shrtnr

2026-04-29T09:03:41.555519Z

1.0.0 was published on Apr 29, 2026.

Changelog excerpt:
Ground-up rewrite derived from the OpenAPI spec. This is a deliberate breaking release.

### Breaking changes

**Resource-grouped client.**All methods now live under `client.links`, `client.slugs`, or `client.bundles`. Flat methods on the top-level client are gone.

```
`// 0.x await client.createLink(CreateLinkOptions(url: '...')); await client.archiveBundle(42); // 1.0 await client.links.create(url: '...'); await client.bundles.archive(42);````
**Constructor shape.**The nested `auth: ApiKeyAuth(apiKey: ...)`parameter is replaced by a flat `apiKey`string.

```
`// 0.x ShrtnrClient(baseUrl: '...', auth: ApiKeyAuth(apiKey: 'sk_...')) // 1.0 ShrtnrClient(baseUrl: '...', apiKey: 'sk_...')````
**`ShrtnrError`replaces `ShrtnrException`.**The old `body`and `statusCode`fields are gone. Use `status`and `serverMessage`.

```
`// 0.x e.statusCode; e.body; // 1.0 e.status; e.serverMessage;````
**Result types.** `delete`, `addLink`, and `removeLink`return typed objects instead of `bool`.

```
`// …