You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,26 @@
1
1
# Changelog
2
2
3
+
## 0.1.0-alpha.2 (2025-01-18)
4
+
5
+
Full Changelog: [v0.1.0-alpha.1...v0.1.0-alpha.2](https://github.com/zeroentropy-ai/zeroentropy-node/compare/v0.1.0-alpha.1...v0.1.0-alpha.2)
6
+
7
+
### Features
8
+
9
+
***api:** update via SDK Studio ([#10](https://github.com/zeroentropy-ai/zeroentropy-node/issues/10)) ([d599038](https://github.com/zeroentropy-ai/zeroentropy-node/commit/d599038d57c2ead625286aff71f945ddc1c3cfc0))
10
+
***api:** update via SDK Studio ([#11](https://github.com/zeroentropy-ai/zeroentropy-node/issues/11)) ([3eb5960](https://github.com/zeroentropy-ai/zeroentropy-node/commit/3eb59606d1c17fc5b8a0b461ffa95c4090f9498f))
11
+
***api:** update via SDK Studio ([#12](https://github.com/zeroentropy-ai/zeroentropy-node/issues/12)) ([eb87919](https://github.com/zeroentropy-ai/zeroentropy-node/commit/eb87919bd3f57a64ad0082be215c6a66438efbe9))
12
+
***api:** update via SDK Studio ([#13](https://github.com/zeroentropy-ai/zeroentropy-node/issues/13)) ([f104a26](https://github.com/zeroentropy-ai/zeroentropy-node/commit/f104a26939736b3ce81d90c09d204ba7b2309c43))
13
+
***api:** update via SDK Studio ([#14](https://github.com/zeroentropy-ai/zeroentropy-node/issues/14)) ([bb9467f](https://github.com/zeroentropy-ai/zeroentropy-node/commit/bb9467fa8e150520b8a5a41d6640e30accf6d292))
14
+
***api:** update via SDK Studio ([#5](https://github.com/zeroentropy-ai/zeroentropy-node/issues/5)) ([4cbe77d](https://github.com/zeroentropy-ai/zeroentropy-node/commit/4cbe77d77029907ed8e7cae27eaf02d85bad91a3))
15
+
***api:** update via SDK Studio ([#7](https://github.com/zeroentropy-ai/zeroentropy-node/issues/7)) ([8c2a250](https://github.com/zeroentropy-ai/zeroentropy-node/commit/8c2a250f8284daae8ec2b43b347f5b85d12c9507))
16
+
***api:** update via SDK Studio ([#8](https://github.com/zeroentropy-ai/zeroentropy-node/issues/8)) ([5b114e6](https://github.com/zeroentropy-ai/zeroentropy-node/commit/5b114e64b6a7e7367af7ff68e5a7326720933da1))
17
+
***api:** update via SDK Studio ([#9](https://github.com/zeroentropy-ai/zeroentropy-node/issues/9)) ([113b9a4](https://github.com/zeroentropy-ai/zeroentropy-node/commit/113b9a4778439d91c0031240d051ff18fc489a5a))
@@ -99,7 +99,7 @@ the changes aren't made through the automated pipeline, you may want to make rel
99
99
100
100
### Publish with a GitHub workflow
101
101
102
-
You can release to package managers by using [the `Publish NPM` GitHub action](https://www.github.com/ZeroEntropy-AI/zeroentropy-node/actions/workflows/publish-npm.yml). This requires a setup organization or repository secret to be set up.
102
+
You can release to package managers by using [the `Publish NPM` GitHub action](https://www.github.com/zeroentropy-ai/zeroentropy-node/actions/workflows/publish-npm.yml). This requires a setup organization or repository secret to be set up.
This library provides convenient access to the Zeroentropy REST API from server-side TypeScript or JavaScript.
5
+
This library provides convenient access to the ZeroEntropy REST API from server-side TypeScript or JavaScript.
6
6
7
-
The REST API documentation can be found on [docs.zeroentropy.com](https://docs.zeroentropy.com). The full API of this library can be found in [api.md](api.md).
7
+
The REST API documentation can be found on [docs.zeroentropy.dev](https://docs.zeroentropy.dev/api-reference). The full API of this library can be found in [api.md](api.md).
8
8
9
9
## Installation
10
10
@@ -18,16 +18,20 @@ The full API of this library can be found in [api.md](api.md).
18
18
19
19
<!-- prettier-ignore -->
20
20
```js
21
-
importZeroentropyfrom'zeroentropy';
21
+
importZeroEntropyfrom'zeroentropy';
22
22
23
-
constclient=newZeroentropy({
23
+
constclient=newZeroEntropy({
24
24
apiKey:process.env['ZEROENTROPY_API_KEY'], // This is the default and can be omitted
const { data: response, response: raw } =awaitclient.status.getStatus().withResponse();
159
189
console.log(raw.headers.get('X-My-Header'));
160
-
console.log(response.document);
190
+
console.log(response.num_documents);
161
191
```
162
192
163
193
### Making custom/undocumented requests
@@ -210,17 +240,17 @@ By default, this library uses `node-fetch` in Node, and expects a global `fetch`
210
240
211
241
If you would prefer to use a global, web-standards-compliant `fetch` function even in a Node environment,
212
242
(for example, if you are running Node with `--experimental-fetch` or using NextJS which polyfills with `undici`),
213
-
add the following import before your first import `from "Zeroentropy"`:
243
+
add the following import before your first import `from "ZeroEntropy"`:
214
244
215
245
```ts
216
246
// Tell TypeScript and the package to use the global web fetch instead of node-fetch.
217
247
// Note, despite the name, this does not add any polyfills, but expects them to be provided if needed.
218
248
import'zeroentropy/shims/web';
219
-
importZeroentropyfrom'zeroentropy';
249
+
importZeroEntropyfrom'zeroentropy';
220
250
```
221
251
222
252
To do the inverse, add `import "zeroentropy/shims/node"` (which does import polyfills).
223
-
This can also be useful if you are getting the wrong TypeScript types for `Response` ([more details](https://github.com/ZeroEntropy-AI/zeroentropy-node/tree/main/src/_shims#readme)).
253
+
This can also be useful if you are getting the wrong TypeScript types for `Response` ([more details](https://github.com/zeroentropy-ai/zeroentropy-node/tree/main/src/_shims#readme)).
224
254
225
255
### Logging and middleware
226
256
@@ -229,9 +259,9 @@ which can be used to inspect or alter the `Request` or `Response` before/after e
@@ -279,7 +306,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con
279
306
280
307
We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
281
308
282
-
We are keen for your feedback; please open an [issue](https://www.github.com/ZeroEntropy-AI/zeroentropy-node/issues) with questions, bugs, or suggestions.
309
+
We are keen for your feedback; please open an [issue](https://www.github.com/zeroentropy-ai/zeroentropy-node/issues) with questions, bugs, or suggestions.
0 commit comments