Skip to content

Commit c77cf6f

Browse files
authored
Final 2.0 changes (#109)
* tiny bit of work to the example files * added "migration types" * run premerge script * requestTimeoutMS -> 15s; make datatype shorthands return instances directly * allow binary vecs in sorts + little renaming of types * tweak events properties * added TypeOverrides for InferTableSChema * added more explicit options objects as opposed to using WithTImeout direclty * doc work * some docs work * run premerge script * 2.0.0-rc.1 * tuple maps support + fix couple of local tets * add lexicaldoc; reranking => rerank in creaetCollections * laxxer typing for .find() regarding projections * a bit of docs work * some beta tagging * lots more docs work * little more docs work * run premerge script
1 parent 3a4638a commit c77cf6f

File tree

154 files changed

+5799
-3059
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

154 files changed

+5799
-3059
lines changed

DEVGUIDE.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# DEVGUIDE.md
1+
# DEVGUIDE.md (WIP)
2+
3+
> **Note: this DEVGUIDE is under construction and is not complete yet; see `scripts/docs` for documentation on each of the available scripts.**
24
35
## Contents
46
1. [I can't be bothered to read all of this](#i-cant-be-bothered-to-read-all-of-this)

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
`astra-db-ts` is a TypeScript client for interacting with [DataStax Astra DB](https://astra.datastax.com/signup).
44

5-
> **Warning**
6-
> This README is still under construction; parts of it may be incomplete or outdated.
7-
85
*This README targets v2.0.0+, which expands on the previous 1.x API. Click [here](https://github.com/datastax/astra-db-ts/tree/v1.x?tab=readme-ov-file#datastaxastra-db-ts) for the pre-existing client readme.*
96

107
## Table of contents
@@ -221,10 +218,10 @@ const admin = client.admin();
221218
// list info about all databases
222219
const databases = await admin.listDatabases();
223220
const dbInfo = databases[0];
224-
console.log(dbInfo.info.name, dbInfo.id, dbInfo.info.region);
221+
console.log(dbInfo.name, dbInfo.id, dbInfo.regions);
225222

226223
// list keyspaces for the first database
227-
const dbAdmin = admin.dbAdmin(dbInfo.id, dbInfo.info.region);
224+
const dbAdmin = admin.dbAdmin(dbInfo.id, dbInfo.regions[0].name);
228225
console.log(await dbAdmin.listKeyspaces());
229226
})();
230227
```

api-extractor.jsonc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,12 @@
431431
"default": {
432432
"logLevel": "warning"
433433
// "addToApiReportFile": false
434-
}
434+
},
435+
436+
"tsdoc-escape-greater-than": {
437+
"logLevel": "none",
438+
"addToApiReportFile": false
439+
},
435440

436441
// "tsdoc-link-tag-unescaped-text": {
437442
// "logLevel": "warning",

0 commit comments

Comments
 (0)