@codybrom/denim 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -6,6 +6,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to
7
7
  [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
8
8
 
9
+ ## [2.0.2] - 2026-07-11
10
+
11
+ ### Fixed
12
+
13
+ - `GifAttachment.provider` is now `"GIPHY"` instead of `"TENOR"`. Meta retired
14
+ Tenor as a GIF provider on March 31, 2026; GIPHY is now the only accepted
15
+ provider for `gif_attachment`. The old `"TENOR"` literal could no longer
16
+ produce a valid GIF post.
17
+
9
18
  ## [2.0.1] - 2026-04-17
10
19
 
11
20
  ### Fixed
package/deno.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codybrom/denim",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "A Deno/TypeScript library for the Threads API",
5
5
  "exports": {
6
6
  ".": "./mod.ts"
package/mod_test.ts CHANGED
@@ -141,7 +141,7 @@ Deno.test("Denim API Tests", async (t) => {
141
141
  text: "Check this GIF!",
142
142
  gifAttachment: {
143
143
  gif_id: "abc123",
144
- provider: "TENOR",
144
+ provider: "GIPHY",
145
145
  },
146
146
  };
147
147
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codybrom/denim",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "A Deno/TypeScript library for the Threads API",
5
5
  "main": "mod.ts",
6
6
  "directories": {
package/readme.md CHANGED
@@ -56,7 +56,7 @@ and usually `text`. Optional fields control the post type:
56
56
  | `isSpoilerMedia` | `boolean` | Hide media behind a spoiler overlay |
57
57
  | `textEntities` | `array` | Text spoiler ranges: `[{ entity_type, offset, length }]` |
58
58
  | `textAttachment` | `object` | Long-form text: `{ plaintext, link_attachment_url? }` |
59
- | `gifAttachment` | `object` | GIF: `{ gif_id, provider }` |
59
+ | `gifAttachment` | `object` | GIF: `{ gif_id, provider: "GIPHY" }` |
60
60
  | `locationId` | `string` | Location ID from `searchLocations` |
61
61
  | `children` | `string[]` | Carousel item IDs from `createCarouselItem` |
62
62
  | `autoPublishText` | `boolean` | Skip the publish step for text posts |
package/src/types.ts CHANGED
@@ -84,8 +84,8 @@ export interface TextAttachmentInput {
84
84
  export interface GifAttachment {
85
85
  /** The GIF ID from the provider */
86
86
  gif_id: string;
87
- /** The GIF provider */
88
- provider: "TENOR";
87
+ /** The GIF provider. GIPHY is currently the only supported provider (Tenor was retired March 31, 2026). */
88
+ provider: "GIPHY";
89
89
  }
90
90
 
91
91
  /**