@lexapi/client 0.1.0 → 0.2.0

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 ADDED
@@ -0,0 +1,226 @@
1
+ # Changelog
2
+
3
+ All notable changes to `@lexapi/client`. Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/);
4
+ versioning: [SemVer](https://semver.org/) — while the package is `0.x`, a **minor** bump may contain
5
+ breaking changes (documented below with a migration note); `npm install @lexapi/client@^0.1.0` never
6
+ picks up `0.2.0` on its own.
7
+
8
+ ## [0.2.0] — 2026-10-26
9
+
10
+ Full re-sync with the LexAPI API (validated against lex-api `main` @ `633eb67`, PR #298, and
11
+ `openapi.yaml` / `docs.md` at that commit). Every endpoint, parameter, response field and error shape
12
+ was audited against the spec **and** the server controllers.
13
+
14
+ ### Added
15
+
16
+ - **Point-in-time legislation search** — `semanticLegislationSearch({ query, asOf: "2019-06-01" })`
17
+ returns, per hit, the text in force on that date. New result fields: `asOf`, `asOfResolved`,
18
+ `asOfReason` (typed `AsOfReason`, runtime list `AS_OF_REASONS`), `asOfVersion`
19
+ (`{ celex, date, kind }`), `matchedVersion`; new response fields `asOf` and `asOfSummary`
20
+ (`liveFetches`, `unresolved`). New options type `SemanticLegislationSearchOptions`.
21
+ - **Consolidated-text labels** on legislation hits: `consolidated`, `consolidatedAsOf`, `baseCelex`,
22
+ `consolidatedNote`, `baseAct`; plus `id`, `snippet`, `language`, `section`, `chapter`,
23
+ `exact_match_law_id`.
24
+ - **Case-law hit fields**: `snippet` (the default payload), `parties`, `summary`, `decision_date`,
25
+ `jurisdiction`, `language`, the structured analytics block (`outcome`, `claimed_amount`, …) and
26
+ `metadata.paragraph_number`; `semanticUsage.unitsCharged`.
27
+ - **Text availability**: `document.textAvailability` (`available`, `reason`, `retryable`,
28
+ `availableLanguages`, `externalSource`, `source`, `checkedAt`, `latestConsolidated`,
29
+ `upcomingConsolidated`, `newestConsolidated`); `textUnavailable` on batch responses;
30
+ consolidated-version hints on `/documents/metadata`.
31
+ - **Language**: `acceptLanguages` (`["fr", "de"]` or `"any"`) on `getDocument` /
32
+ `getDocumentsBatch`; `titleLanguage` on documents, batch items and metadata.
33
+ - **Search**: `fresh` (bypass the 60-minute result cache), response `hint` and `source: "corpus"`.
34
+ - **Response headers on every result** — `result.headers` (`ResponseHeaders`): `source`
35
+ (`corpus`/`cellar`/`cellar-oj`/`live` — what a document read settled at), `searchSource`,
36
+ `searchCache`, `language`, `languageFallback`, `textAvailable`, `corpusVersion`, `corpusFetchedAt`,
37
+ `warning`, `ignoredDocumentTypes`, `postFilteredBy`, `documentTypeFanOut`, the batch source split
38
+ (`batch.corpusHits/cellarServed/ojRecovered/liveFetches/textUnavailable`) and `rateLimit`
39
+ (`RateLimit-Limit/Remaining/Reset/Policy`). `parseResponseHeaders()` is exported.
40
+ - **Webhooks**: `watchCelex` watch lists (create/update/read), `searchCriteria` now optional and
41
+ nullable on update (`null` removes it), `WebhookCriteria` (the webhook filter vocabulary),
42
+ `criteriaErrors`, `retryPolicy`, `requeuedDeliveries`; `webhooks.paginateDeliveries()`.
43
+ - **Webhook receivers** (§1.9): `verifyWebhook()` (signature + 300 s replay window + typed parse into the
44
+ `WebhookPayload` union: `documents.new` / `watchlist.changes` / `webhook.test`), `verifySignature()` (a
45
+ missing, empty, non-ASCII or non-hex header is a plain `false`), `computeSignature()`,
46
+ `WebhookSignatureError`; Web Crypto — still zero dependencies.
47
+ - **Citations**: `citationType: "corrigendum"`, `relationSync` on cited-by and network,
48
+ `titleSource` on every neighbour/path node, `language` (title language) on cites / cited-by /
49
+ network / path / related; `paginateCites()` / `paginateCitedBy()` page iterators.
50
+ - **Export**: `includeStubs`; array values for `documentType` / `author` / `subdomain`;
51
+ `stream.cancel()`; typed `_meta` / `_done` contents (`totalMatching`, `written`, `skippedStubs`, …).
52
+ - **Errors**: `ServiceUnavailableError` (503); every `LexAPIError` now carries `body` (the raw JSON
53
+ error body — e.g. `upgradeUrl`, `current`/`limit`) and `headers`; legacy-shape `details` lists
54
+ (search / webhook validation) are kept; `CreditsExhaustedError` exposes `operation`, `weight`,
55
+ `available` and typed `details`; `RateLimitedError.rateLimit`.
56
+ - `SubscriptionTier` includes `SCALE`; `SubscriptionInfo.maxResults`; `ResolvedVia` includes
57
+ `ecli-corpus` / `eli-corpus`; `DocumentUrls.pdf/xml`; `Document.fetchedAt`.
58
+ - `ResponseHeaders.retryAfter`; `RateLimitedError.quotaExhausted` / `resetsAt`.
59
+ - **Cancellation:** `{ signal }` on every method (`CallOptions.signal`) — aborts the request, any retry
60
+ wait and an export stream; rejects with `RequestAbortedError` (`ABORTED`), never retried.
61
+ - **Cross-build `instanceof`:** error classes carry a shared `Symbol.for` brand, so errors from the CommonJS
62
+ build (or a second installed copy) satisfy the ESM build's `instanceof`; `isLexAPIError(err, Class?)`.
63
+ - New errors: `RequestAbortedError`, `InvalidResponseError` (a 2xx with a non-JSON body),
64
+ `IncompleteExportError` (export ended without `_done`, `rowsRead`).
65
+ - `ResponseHeaders.apiVersion` / `release` (`X-LexAPI-Version` / `X-LexAPI-Release`), `languagePartialKept`,
66
+ `cacheAge`. Types: `Document.version`, `SearchResult.dateType/ecli/internalNumber`,
67
+ `CitationEdgeSummary.sourceCelex/direction`, `CitingDocumentGroup.hasResume/hasSummary`,
68
+ `CitationStatsResponse.cachedAt/cacheTtlSeconds`, `UsageInfo.unitsCharged`.
69
+ - `LICENSE` file, `CHANGELOG.md`, `prepublishOnly` guard, and a framework-free dist smoke test
70
+ (`npm run smoke:dist`, incl. a CJS↔ESM `instanceof` check) that CI runs on Node 18–24, Bun and Deno.
71
+
72
+ ### Fixed
73
+
74
+ - **Export trailer/meta were never readable**: the server nests them (`{"_done": {written, truncated,
75
+ skippedStubs}}`), so `stream.done?.truncated` was always `undefined`. The fields are now lifted to
76
+ the top level (`stream.done.truncated`, `stream.meta.totalMatching`); the raw `_done` / `_meta`
77
+ stay available.
78
+ - Breaking out of `for await` over an export now cancels the response body instead of leaving the
79
+ connection streaming; `stream.cancel()` takes effect immediately, even during a pending read.
80
+ - **An export that ended without its `_done` trailer looked complete** (iteration finished, `done` was
81
+ `undefined`, so `done?.truncated` was falsy). It now throws `IncompleteExportError` after yielding the rows
82
+ that arrived; `stream.complete`, `stream.rowsRead`, `stream.invalidLines` (lines that are not JSON objects
83
+ are counted, not yielded) and `stream.truncated` (header → `_meta` → `_done` discounted by `skippedStubs`)
84
+ follow §1.8. A stream is read once: re-iterating one read to its `_done` yields nothing; iterating one that
85
+ was ended early (`cancel()`, `break`, an error) raises `IncompleteExportError`.
86
+ - **A dropped export connection threw a raw `TypeError: terminated`**; it is now a `NetworkError`
87
+ ("Export stream interrupted after N rows").
88
+ - **`timeoutMs` stopped at the response headers** — a server that sent headers then stalled hung the call
89
+ (and an export) forever. It is now an inactivity limit that restarts on every body chunk (§1.6).
90
+ - **The API key was visible** in `console.log(client)`, `util.inspect` and `JSON.stringify(client)`. It now
91
+ lives in a private field; the client redacts itself in all three.
92
+ - `paginateCites` / `paginateCitedBy` could stop early: they compared the edge offset with
93
+ `totalCitations`, which counts distinct pairs (raw rows can outnumber it). They now stop on a short page.
94
+ - `BatchDocumentError` used field names the server never sends: it is `{ celex, error }` (the README example
95
+ printed `undefined`).
96
+ - `getRecentDocuments({ documentType: [...] })` / `({ subdomain: [...] })` silently used only the first value
97
+ (the endpoint has no fan-out and EUR-Lex reads the first `DTS_SUBDOM` only); both now take one value.
98
+ `search()` keeps multi-value `subdomain` (the web service ORs them) with a documented caveat for the
99
+ result-page fallback. `author` arrays work on both (every `AU_CODED` is sent and ORed).
100
+ - Aborting an export now releases the connection immediately, even while nobody is iterating.
101
+ - A 200 with a non-JSON body threw a raw `SyntaxError` (now `InvalidResponseError`); an empty `Retry-After`
102
+ meant a 0 ms retry (now ignored); unmapped 4xx were `InternalServerError` (now a base `LexAPIError`, code
103
+ `INTERNAL` per §1.3); an empty webhook secret threw a raw Web Crypto `DataError` (now
104
+ `WebhookSignatureError("missing_secret")`); NDJSON lines were rescanned per chunk (quadratic on
105
+ multi-MB `includeHtml` rows; now linear).
106
+ - Copy: export pricing is no longer stated as "1 credit per row" (see the pricing page); `extractCitations`
107
+ never settles at 4; batch source headers overlap rather than partition; the 95 s timeout covers a single
108
+ live fetch, not every request; the "edge runtimes" claim was removed (Bun and Deno are now tested).
109
+ - `resolvedVia` was typed as `IdentifierType`; the server returns `ecli-corpus` / `eli-corpus`.
110
+ - CommonJS consumers got ESM type declarations ("masquerading as ESM", per arethetypeswrong):
111
+ the `exports` map now points `require` at `index.d.cts`.
112
+ - Legacy error bodies dropped their `details` (e.g. which `/search` parameter failed validation).
113
+ - Docs/README: the export tier gate is a `403` (not `402`) and covers BUSINESS, SCALE and
114
+ ENTERPRISE; tier limits include SCALE; "not yet published" and "requires lex-api PR #72" notes
115
+ removed; webhook ceilings updated.
116
+ - Export streams never report a failed export as complete. A `_done` trailer with
117
+ `complete: false`, or any line whose only key is `_error`, now throws `IncompleteExportError`
118
+ (after the rows that did arrive) and leaves `stream.complete` false; before, any `_done` line
119
+ counted as complete and an `_error` line was yielded as an `ExportRow`. The error line's body is
120
+ on the exception's `details` and on the new `stream.error`. Unknown `_done` fields
121
+ (`truncatedBy`, `credits`) are kept on `stream.done`. (PLAN.md §1.8; lex-api #303.)
122
+ - A top-level string `code` on a legacy-shape error body (lex-api #304 adds it next to the text
123
+ `error`) is now the error's `code`, ahead of the status-derived one. A 429 with
124
+ `code: "QUOTA_EXHAUSTED"` (a legacy plan's used-up daily or monthly-semantic quota) is a
125
+ `RateLimitedError` with `code === "QUOTA_EXHAUSTED"`, `quotaExhausted` true, `retryAfter`
126
+ `undefined` and `resetsAt` from the body's `resetsAt`; it is never retried. `QUOTA_EXHAUSTED`
127
+ joins `ErrorCode`. Servers without the `code` are still recognised by the old shape check.
128
+ (PLAN.md §1.2/§1.3.)
129
+ - Export parameters for API 2.3.0 (lex-api #303): `documentTypeCode` (a type family) and
130
+ `changedSince` (rows whose text changed); `fetchedSince` / `changedSince` also take a `Date`
131
+ (sent as UTC). A `limit` that is not a positive integer throws `RangeError` before the request
132
+ (the API answers 400). `ExportDoneInfo` types `truncatedBy` and `credits`. Docs describe the
133
+ per-row billing and the filter semantics of API 2.3.0. **Publish only after lex-api #303 is
134
+ deployed.**
135
+ - `stream.truncated` reads `_done.truncated` first once the trailer has been read. From API
136
+ 2.3.0 that flag is authoritative: set when matching rows remain unreached (`truncatedBy`:
137
+ `limit`, `max_rows`, `credits` or `recovered` — both join the type) and never derived from the row
138
+ count. The `X-Export-Truncated` header and `_meta.truncated` come from an up-front count that
139
+ may be a minute old and never caps the stream, so they are now only the fallback before the
140
+ trailer arrives. (PLAN.md §1.8; lex-api #303.)
141
+
142
+ ### Changed
143
+
144
+ Retries, timeouts and error codes now follow the shared SDK contract (PLAN.md §1, identical in
145
+ `lexapi-python`) — **an SDK retries only when the retry cannot charge the caller twice**:
146
+
147
+ - **Retry decision table (§1.2).** 429 that is not a quota: every call. Never reached the server (DNS failure,
148
+ connection refused/unreachable, connect timeout incl. `ETIMEDOUT` with `syscall: "connect"`, TLS
149
+ certificate-verification and handshake-alert failures; Cloudflare 521/522/523): every call. App-origin
150
+ 502/503/504: GETs, and read-only POSTs only with the opt-in. Proxy-origin 502/503/504, 520, 524 and any other
151
+ transport error (reset, closed connection — `fetch` cannot tell before-response from mid-response — read
152
+ timeout): **free calls only** (`getInfo`, webhook reads). Never: quota 429, 4xx, 500.
153
+ 0.1 retried every 502/503/504 and every network error on a GET, including when a proxy answered after the API
154
+ had charged the call (no refund), and never retried a POST that provably never left the machine.
155
+ - **App-origin** = a non-empty `X-LexAPI-Version` header (lex-api #299 on) or a `RateLimit-Limit` header (the
156
+ app's rate limiter sets `RateLimit-*` on every billable app response; proxies never do). A JSON error body alone
157
+ is not enough.
158
+ - **New opt-in `retry.retryReadOnlyPosts`** (default off): the eight read-only POSTs (`search`, `getDocument`,
159
+ `getDocumentsBatch`, `getDocumentByUrl`, `getDocumentMetadata`, `resolve`, `semanticSearch`,
160
+ `semanticLegislationSearch`) also retry an app-origin 502/503/504 — refunded in full, so billing-safe.
161
+ `extractCitations` is a mutating call (it persists edges) and is never retried on 5xx.
162
+ - **Timeout model (§1.6): `timeoutMs` is a per-attempt inactivity limit**, default **95 s** (was 60 s): it runs
163
+ until the response head and then restarts on every body chunk, for JSON bodies and export streams alike. 0.1's
164
+ timer stopped at the headers, so a stalled body hung forever. 95 s lets the API's 90 s limit on one live
165
+ EUR-Lex fetch reach the caller as a typed, refunded 504; `timeoutMs: 60_000` restores the old value.
166
+ - **Retry waits (§1.2):** `Retry-After` on any status (empty or unparseable = absent); on a 429 only, then
167
+ `RateLimit-Reset` and the JSON `retryAfter` field. `X-RateLimit-*` is not read. Hints are clamped to the 30 s
168
+ cap; numbers above 1e12 / 1e9 are epoch ms / s. 0.1 used `RateLimit-Reset` on every retryable status — the API
169
+ sends it on every response, so a retried 5xx slept for the rate window.
170
+ - **Quota 429s are not retried** (legacy daily quota, monthly semantic quota: `usage.resetsAt`, no `Retry-After`,
171
+ no `retryAfter`) and expose `retryAfter: undefined`; `RateLimitedError.quotaExhausted` / `.resetsAt`.
172
+ - **Error codes (§1.3):** `NetworkError.code` is `CONNECTION_ERROR` (was `NETWORK_ERROR`); the SDK's own timeout
173
+ is `TimeoutError` with `code: "REQUEST_TIMEOUT"`, status 0 (was `TIMEOUT`); 503 → `SERVICE_UNAVAILABLE`
174
+ (`ServiceUnavailableError`); 520–523 → `UPSTREAM_ERROR`, 524 → `TIMEOUT`; any other status → `INTERNAL`
175
+ (unmapped 4xx such as 409/413 are a base `LexAPIError`, not an `InternalServerError`); a legacy string `error`
176
+ is human text, never a code; top-level `details` is kept even on bodies without an `error` member; a 204 or
177
+ empty 2xx body is `{}` (was `undefined`); a non-empty non-JSON 2xx is `InvalidResponseError`.
178
+ - **Pagination (§1.4):** cites / cited-by advance by the sum of the page's `citationCount`s and stop on a short
179
+ page; deliveries are deduplicated on `id`.
180
+ - **Credit helper (§1.5):** `getCreditUsage().unitsCharged` is `0` (was `undefined`) on legacy accounts.
181
+ - Dev toolchain: vitest 2 → 4, tsup/TypeScript/@types/node patch updates (clears all `npm audit` advisories,
182
+ which were dev-only — the package has no runtime dependencies). CI uses `npm ci` and runs the unit suite on
183
+ Node 20/22/24 plus the dist smoke test on Node 18, Bun and Deno.
184
+
185
+ ### Breaking changes (type-level) and migration
186
+
187
+ Runtime behaviour changes are listed under *Changed* and *Fixed*; the ones that can change what your code
188
+ sees are also in this table. TypeScript users may see new compile errors where the old types were wrong:
189
+
190
+ | Change | Why | Migrate |
191
+ | --- | --- | --- |
192
+ | `Document.content` is `DocumentContent \| null` | The API returns `content: null` for documents whose text EUR-Lex does not publish (since 2026-08). | Check `document.textAvailability?.available` (or `document.content`) before reading `content.*`. |
193
+ | `WebhookCreateRequest.searchCriteria` / `WebhookUpdateRequest.searchCriteria` are `WebhookCriteria` (not `SearchRequest`) | Webhooks accept a narrower vocabulary; `procedure`, `month`, `maxPages`, `textScope: "text"`, `domain: "NATIONAL_LAW"` are refused with 400. | Pass a `WebhookCriteria` object; drop unsupported filters. |
194
+ | `webhooks.delete()` resolves `WebhookDeleteResponse` (was `void`); any 204/empty 2xx body resolves `{}` (was `undefined`) | The server answers `200 { success, message }`; §1.3 empty-body rule. | No change needed unless you checked for `undefined`. |
195
+ | `ResolveResponse.resolvedVia` is `ResolvedVia` | Real values include `ecli-corpus` / `eli-corpus`. | Update exhaustive `switch`es. |
196
+ | `ExportDone` / `ExportMeta` field types | Matched to the real server shape. | Read `done.truncated` / `done.written` directly. |
197
+ | `DocumentMetadata.author` and `Document.author` are `string \| null` | Placeholder authors are now `null`. | Handle `null`. |
198
+ | `SearchResponse.searchParameters` is `Omit<SearchRequest, "fresh" \| "maxPages">` | The server's echo never contains them. | Read `maxPages` from your own request. |
199
+ | `SubscriptionTier` gains `SCALE` and an open `(string & {})`; `CitationType` gains `corrigendum`; `DocumentTypeCode` gains `consolidated_text` | New API values. | Add the cases; a `Record<SubscriptionTier, …>` needs a fallback. |
200
+ | `RecentDocumentsResponse.parameters.documentType/author/subdomain` are `string \| string[] \| null` | Echo of repeated query params. | Handle arrays. |
201
+ | `RecentDocumentsParams.documentType` is a single `DocumentType` | The endpoint uses only the first type. | Pass one type, or use `search()` for several. |
202
+ | `RecentDocumentsParams.subdomain` is a single `Subdomain` | A subdomain filter sends the request to EUR-Lex result pages, where EUR-Lex reads only the first `DTS_SUBDOM`. | Pass one subdomain, or use `search()` (the web service ORs several). |
203
+ | `BatchDocumentError` is `{ celex, error }` (`celexNumber` / `message` deprecated, never sent) | Matches the server. | Read `e.celex` and `e.error`. |
204
+ | `Section.number` / `Section.title` and `Recital.number` may be `null`; `SearchResult.celex` may be `null` | The parser emits `null` when the markup has no value. | Handle `null`. |
205
+ | `stream.done` is the lifted trailer (`done.truncated`, `done.written`) — 0.1 exposed the raw `{_done: {…}}` | Raw key kept as `done._done`. | Read the top-level fields. |
206
+ | An export without its `_done` trailer throws `IncompleteExportError`; a dropped connection throws `NetworkError` | It used to finish quietly / throw a raw `TypeError`. | Catch them; treat as an incomplete export. |
207
+ | Unmapped 4xx (409, 413, …) are a base `LexAPIError` (code `INTERNAL`, `status` kept) instead of an `InternalServerError` | They are client errors; §1.3 keeps the code. | Branch on `status`. |
208
+ | A 2xx with a non-JSON body throws `InvalidResponseError` (was a `SyntaxError`) | Typed. | Catch `LexAPIError`. |
209
+ | `timeoutMs` covers the response body (and is an idle timeout for exports) | A stalled body used to hang. | Raise `timeoutMs` if you read very large bodies on slow links. |
210
+ | Retry decisions follow §1.2 (see *Changed*): billed GETs no longer retry proxy 5xx/520/524 or post-send network errors; never-reached failures retry for every method | Billing safety. | `retry: { maxRetries: 0 }` disables retries. |
211
+ | `timeoutMs` default 95 s and now an inactivity limit (restarts per body chunk) | §1.6. | Pass `timeoutMs` to change it. |
212
+ | `IncompleteExportError` / `InvalidResponseError` / `RequestAbortedError` are new error types | §1.3 / §1.8. | Catch them or the base `LexAPIError`. |
213
+ | `UsageInfo.resetsAt` is `string \| null` | The credit-pool mirror can carry `null` until the first reset is set. | Handle `null`. |
214
+ | 503 throws `ServiceUnavailableError` (was `InternalServerError`); 520–523 throw `UpstreamError`, 524 `TimeoutError` (were `InternalServerError`) | §1.3 status table. | Catch the new classes or the base `LexAPIError`. |
215
+ | `NetworkError.code` is `CONNECTION_ERROR` (was `NETWORK_ERROR`); a client-side timeout is `TimeoutError` with `code: "REQUEST_TIMEOUT"` (was `TIMEOUT`) | §1.3 SDK-side codes; tells the SDK's timeout apart from the server's 504. | Branch on the new codes, or on `status === 0`. |
216
+ | `getCreditUsage().unitsCharged` is `number` (`0` on legacy accounts, was `undefined`) | §1.5. | Drop `undefined` checks. |
217
+ | `DEFAULT_TIMEOUT_MS` is `95_000` | See *Changed*. | Pass `timeoutMs` explicitly to keep 60 s. |
218
+
219
+ ## [0.1.0] — 2026-07-02
220
+
221
+ Initial release: request core (auth, retries with `Retry-After`, typed errors, credit visibility),
222
+ search and document endpoints, citations, semantic search (incl. HyDE), webhooks, NDJSON export,
223
+ point-in-time versions.
224
+
225
+ [0.2.0]: https://github.com/Lex-API/lexapi-typescript/compare/583b501...v0.2.0
226
+ [0.1.0]: https://www.npmjs.com/package/@lexapi/client/v/0.1.0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Arieta Labs Ltd
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.