@codybrom/denim 2.0.0 → 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 +18 -0
- package/deno.json +1 -1
- package/mod_test.ts +1 -1
- package/package.json +1 -1
- package/readme.md +1 -1
- package/src/api/searchLocations.ts +1 -1
- package/src/types.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,24 @@ 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
|
+
|
|
18
|
+
## [2.0.1] - 2026-04-17
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
|
|
22
|
+
- `searchLocations()` now sends the query string as the `q` URL parameter.
|
|
23
|
+
Meta's `/location_search` endpoint requires `q`; the prior `query` name was
|
|
24
|
+
silently ignored, causing proximity-only results regardless of the search
|
|
25
|
+
string.
|
|
26
|
+
|
|
9
27
|
## [2.0.0] - 2026-02-08
|
|
10
28
|
|
|
11
29
|
### Changed
|
package/deno.json
CHANGED
package/mod_test.ts
CHANGED
package/package.json
CHANGED
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 |
|
|
@@ -26,7 +26,7 @@ export async function searchLocations(
|
|
|
26
26
|
url.searchParams.append("access_token", accessToken);
|
|
27
27
|
url.searchParams.append("fields", fieldList);
|
|
28
28
|
|
|
29
|
-
if (options.query) url.searchParams.append("
|
|
29
|
+
if (options.query) url.searchParams.append("q", options.query);
|
|
30
30
|
if (options.latitude !== undefined) {
|
|
31
31
|
url.searchParams.append("latitude", options.latitude.toString());
|
|
32
32
|
}
|
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: "
|
|
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
|
/**
|