@codybrom/denim 2.0.0 → 2.0.1

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.1] - 2026-04-17
10
+
11
+ ### Fixed
12
+
13
+ - `searchLocations()` now sends the query string as the `q` URL parameter.
14
+ Meta's `/location_search` endpoint requires `q`; the prior `query` name was
15
+ silently ignored, causing proximity-only results regardless of the search
16
+ string.
17
+
9
18
  ## [2.0.0] - 2026-02-08
10
19
 
11
20
  ### Changed
package/deno.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codybrom/denim",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "A Deno/TypeScript library for the Threads API",
5
5
  "exports": {
6
6
  ".": "./mod.ts"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codybrom/denim",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "A Deno/TypeScript library for the Threads API",
5
5
  "main": "mod.ts",
6
6
  "directories": {
@@ -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("query", options.query);
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
  }