@parseapi/sdk 1.12.4 → 1.12.5

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/README.md CHANGED
@@ -189,8 +189,8 @@ await parse.date.today();
189
189
  await parse.holiday('US', { year: 2026 });
190
190
  await parse.holiday.date('US', '2026-12-25');
191
191
  await parse.elevation(35.2271, -80.8431);
192
- await parse.elevation.points([[35.2271, -80.8431], [40.7128, -74.006]]);
193
- await parse.elevation.path([[35.2271, -80.8431], [35.5951, -82.5515]], 100);
192
+ await parse.elevation.points([[39.7392, -104.9903], [39.75, -104.98]]);
193
+ await parse.elevation.path([[39.7392, -104.9903], [39.75, -104.98]], 100);
194
194
  await parse.point(36.0726, -79.792);
195
195
  await parse.weather(40.7128, -74.006);
196
196
  await parse.domain('example.com');
@@ -215,9 +215,11 @@ DNS uses pooled requests on every plan. Omit `type` to check A, AAAA, CNAME, MX,
215
215
 
216
216
  ## Elevation
217
217
 
218
- `elevation(lat, lon)` returns one sample with meters, feet and grid resolution in meters. `elevation.points(...)` accepts up to 512 `[lat, lon]` pairs, a `lat,lon|lat,lon` string, or `enc:` followed by a Google encoded polyline. Its `points` array preserves input order and duplicate coordinates. Unknown samples stay null, and negative elevations and known zero values are preserved. Each list uses one pooled request. The SDK automatically uses JSON POST for long URLs and numeric coordinates that JavaScript expresses in exponent notation.
218
+ `elevation(lat, lon)` returns one sample with meters, feet and grid resolution in meters. `elevation.points(...)` accepts up to 512 points per local batch as `[lat, lon]` pairs, a `lat,lon|lat,lon` string, or `enc:` followed by a Google encoded polyline. Its `points` array preserves input order and duplicate coordinates. Unknown samples stay null, and negative elevations and known zero values are preserved. Each accepted local list uses one pooled request. The SDK automatically uses JSON POST for long URLs and numeric coordinates that JavaScript expresses in exponent notation.
219
219
 
220
- `elevation.path(path, samples)` accepts the same input formats with 2-512 path vertices and a required integer sample count from 2 to 512. Its `points` array includes both endpoints, with samples spaced uniformly by cumulative great-circle distance along the path. Each segment follows the shortest arc. A segment with antipodal endpoints is rejected because it does not define a unique arc. Path sampling uses one pooled request and automatically selects JSON POST for a long URL.
220
+ `elevation.path(path, samples)` accepts the same input formats with 2-512 path vertices and a required integer sample count from 2 to 512. Its `points` array includes both endpoints, with samples spaced uniformly by cumulative great-circle distance along the path. Each segment follows the shortest arc. A segment with antipodal endpoints is rejected because it does not define a unique arc. Each accepted local path uses one pooled request and automatically selects JSON POST for a long URL.
221
+
222
+ Each local batch is limited to 25 km between any two coordinates and 12 distinct terrain files in total across the fine grid and all possible global fallback files. For paths, both the supplied vertices and generated samples must fit the 25 km span. The terrain file budget applies to the sampled coordinates. This is a span limit, not a limit on cumulative path length. Send longer or more spread-out routes in shorter sections. An over-limit batch returns HTTP 400. GET, POST and polylines use the same limits. The SDK does not silently split or discard coordinates.
221
223
 
222
224
  ## Time
223
225
 
@@ -412,10 +414,10 @@ console.log(basic.at, detail.deep?.next_dst);
412
414
 
413
415
  ## Domain results with unknown availability
414
416
 
415
- Use `domainResult` when deciding whether a domain is registered. It returns `available: true` for unregistered, `false` for registered, and `null` when the registry answer is unknown.
417
+ Use `domain` when deciding whether a domain is registered. It returns `available: true` for unregistered, `false` for registered, and `null` when the registry answer is unknown.
416
418
 
417
419
  ```ts
418
- const result = await parse.domainResult('example.com', { deep: true });
420
+ const result = await parse.domain('example.com', { deep: true });
419
421
  if (result.available === null) {
420
422
  console.log('Registration could not be determined');
421
423
  } else {
@@ -425,7 +427,7 @@ if (result.available === null) {
425
427
 
426
428
  This makes one ordinary Domain lookup with the same options, authentication and retry policy. Registration detail may be partial. Missing or null `dnssec` is unknown, while `false` is a known negative. Missing or null `status` is unknown, while `[]` is a known empty list.
427
429
 
428
- The existing `domain` method and `Domain` type keep their published interface. That older type declares `available` as a boolean even though the API can return null. Use `domainResult` for its accurate nullable type.
430
+ The ordinary `Domain` type represents unknown availability as `null`. The existing `domainResult` method and its result type remain available.
429
431
 
430
432
  ## Stack API
431
433
 
package/dist/index.cjs CHANGED
@@ -448,7 +448,7 @@ var EmojiCatalog = class {
448
448
  };
449
449
 
450
450
  // src/index.ts
451
- var VERSION = "1.12.4";
451
+ var VERSION = "1.12.5";
452
452
  var API_VERSION = "2.0.0";
453
453
  var DEFAULT_BASE_URL = "https://api.parseapi.com";
454
454
  var DEFAULT_TIMEOUT_MS = 1e4;
@@ -752,7 +752,7 @@ function parseAPI(apiKey, options = {}) {
752
752
  hlr: (number, opts) => request(`/hlr/${enc(number)}`, { country: opts?.country, ...deepQuery(opts) }, void 0, opts),
753
753
  /** Identify website technologies by category, with homepage or bounded site coverage metadata. */
754
754
  stack: (domain, opts) => request(`/stack/${enc(domain)}`, { ...deepQuery(opts), pretty: opts?.pretty }, void 0, opts),
755
- /** Check whether a domain is registered. Deep adds registration dates, registrar, status and DNSSEC on paid plans. */
755
+ /** Check registration: available is true, false or null when unknown. Paid Deep adds available registration details. */
756
756
  domain: (domain, opts) => request(`/domain/${enc(domain)}`, deepQuery(opts), void 0, opts),
757
757
  /** Check domain registration while preserving unknown availability and partial detail. */
758
758
  domainResult: (domain, opts) => request(`/domain/${enc(domain)}`, deepQuery(opts), void 0, opts),
package/dist/index.d.cts CHANGED
@@ -368,19 +368,21 @@ interface Stack {
368
368
  }
369
369
  interface DomainRegistration {
370
370
  registered: boolean;
371
- created: string | null;
372
- updated: string | null;
373
- expires: string | null;
374
- registrar: string | null;
375
- status: string[];
376
- dnssec: boolean;
371
+ created?: string | null;
372
+ updated?: string | null;
373
+ expires?: string | null;
374
+ registrar?: string | null;
375
+ status?: string[] | null;
376
+ /** Missing or null is unknown; false is a known unsigned observation. */
377
+ dnssec?: boolean | null;
377
378
  }
378
379
  interface DomainDeep {
379
380
  registration: DomainRegistration;
380
381
  }
381
382
  interface Domain {
382
383
  domain: string;
383
- available: boolean;
384
+ /** true means unregistered, false means registered, null means unknown. */
385
+ available: boolean | null;
384
386
  deep?: Deep<DomainDeep>;
385
387
  }
386
388
  /** Network identity for an autonomous system number. */
@@ -2279,7 +2281,7 @@ declare function parseAPI(apiKey?: string, options?: ParseAPIOptions): {
2279
2281
  hlr: (number: string, opts?: HlrOptions) => Promise<Hlr>;
2280
2282
  /** Identify website technologies by category, with homepage or bounded site coverage metadata. */
2281
2283
  stack: (domain: string, opts?: StackOptions) => Promise<Stack>;
2282
- /** Check whether a domain is registered. Deep adds registration dates, registrar, status and DNSSEC on paid plans. */
2284
+ /** Check registration: available is true, false or null when unknown. Paid Deep adds available registration details. */
2283
2285
  domain: (domain: string, opts?: DomainOptions) => Promise<Domain>;
2284
2286
  /** Check domain registration while preserving unknown availability and partial detail. */
2285
2287
  domainResult: (domain: string, opts?: DomainOptions) => Promise<DomainResult>;
package/dist/index.d.ts CHANGED
@@ -368,19 +368,21 @@ interface Stack {
368
368
  }
369
369
  interface DomainRegistration {
370
370
  registered: boolean;
371
- created: string | null;
372
- updated: string | null;
373
- expires: string | null;
374
- registrar: string | null;
375
- status: string[];
376
- dnssec: boolean;
371
+ created?: string | null;
372
+ updated?: string | null;
373
+ expires?: string | null;
374
+ registrar?: string | null;
375
+ status?: string[] | null;
376
+ /** Missing or null is unknown; false is a known unsigned observation. */
377
+ dnssec?: boolean | null;
377
378
  }
378
379
  interface DomainDeep {
379
380
  registration: DomainRegistration;
380
381
  }
381
382
  interface Domain {
382
383
  domain: string;
383
- available: boolean;
384
+ /** true means unregistered, false means registered, null means unknown. */
385
+ available: boolean | null;
384
386
  deep?: Deep<DomainDeep>;
385
387
  }
386
388
  /** Network identity for an autonomous system number. */
@@ -2279,7 +2281,7 @@ declare function parseAPI(apiKey?: string, options?: ParseAPIOptions): {
2279
2281
  hlr: (number: string, opts?: HlrOptions) => Promise<Hlr>;
2280
2282
  /** Identify website technologies by category, with homepage or bounded site coverage metadata. */
2281
2283
  stack: (domain: string, opts?: StackOptions) => Promise<Stack>;
2282
- /** Check whether a domain is registered. Deep adds registration dates, registrar, status and DNSSEC on paid plans. */
2284
+ /** Check registration: available is true, false or null when unknown. Paid Deep adds available registration details. */
2283
2285
  domain: (domain: string, opts?: DomainOptions) => Promise<Domain>;
2284
2286
  /** Check domain registration while preserving unknown availability and partial detail. */
2285
2287
  domainResult: (domain: string, opts?: DomainOptions) => Promise<DomainResult>;
package/dist/index.js CHANGED
@@ -416,7 +416,7 @@ var EmojiCatalog = class {
416
416
  };
417
417
 
418
418
  // src/index.ts
419
- var VERSION = "1.12.4";
419
+ var VERSION = "1.12.5";
420
420
  var API_VERSION = "2.0.0";
421
421
  var DEFAULT_BASE_URL = "https://api.parseapi.com";
422
422
  var DEFAULT_TIMEOUT_MS = 1e4;
@@ -720,7 +720,7 @@ function parseAPI(apiKey, options = {}) {
720
720
  hlr: (number, opts) => request(`/hlr/${enc(number)}`, { country: opts?.country, ...deepQuery(opts) }, void 0, opts),
721
721
  /** Identify website technologies by category, with homepage or bounded site coverage metadata. */
722
722
  stack: (domain, opts) => request(`/stack/${enc(domain)}`, { ...deepQuery(opts), pretty: opts?.pretty }, void 0, opts),
723
- /** Check whether a domain is registered. Deep adds registration dates, registrar, status and DNSSEC on paid plans. */
723
+ /** Check registration: available is true, false or null when unknown. Paid Deep adds available registration details. */
724
724
  domain: (domain, opts) => request(`/domain/${enc(domain)}`, deepQuery(opts), void 0, opts),
725
725
  /** Check domain registration while preserving unknown availability and partial detail. */
726
726
  domainResult: (domain, opts) => request(`/domain/${enc(domain)}`, deepQuery(opts), void 0, opts),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parseapi/sdk",
3
- "version": "1.12.4",
3
+ "version": "1.12.5",
4
4
  "description": "Official ParseAPI client for Node and TypeScript. One key, minimal JSON, fast.",
5
5
  "keywords": [
6
6
  "parseapi",