Mintplex-Labs / anything-llm

The all-in-one Desktop & Docker AI application with built-in RAG, AI agents, and more.
https://anythingllm.com
MIT License
27.45k stars 2.76k forks source link

Bump @datastax/astra-db-ts from 0.1.4 to 1.5.0 in /server #2691

Open dependabot[bot] opened 10 hours ago

dependabot[bot] commented 10 hours ago

Bumps @datastax/astra-db-ts from 0.1.4 to 1.5.0.

Release notes

Sourced from @​datastax/astra-db-ts's releases.

v1.5.0

Namespace deprecation (docs link)

  • The "namespace" terminology is now deprecated (still backwards compatible) everywhere
    • There is a new "keyspace" alternative for each parameter name or method with "namespace" in it
    • e.g. db.useNamespace(...) still works, but now prefer the db.useKeyspace(...) alternative
  • All usages of "namespace" will be removed in an upcoming major release

Other deprecations (to be removed in v2.0)

  • collection.bulkWrite() is now deprecated
    • Prefer to just manually call the functions yourself
  • db.collections() is also now deprecated
    • Equivalent to (await db.listCollections()).map(c => new Collection(c.name))

Misc improvements/fixes

  • collection.drop() will now work properly if the collection is in a non-default keyspace
    • Before, it would attempt to drop the collection from 'default_keyspace'
  • returnDocument on findOneAnd* functions are finally optional
    • Defaults to 'before' on the Data API
  • updateDbNamespace was changed to immediately set the new keyspace
    • Before, it would wait for the keyspace to be created first
      • This would lead to easier race conditions, and they keyspace wouldn't be set at all if creation errored
  • [Admin]CommandSucceededEvents now have a warnings field for any warnings the Data API may return
    • These may point out deprecated/incorrect practices, or any other issues that aren't strictly an error.
    • (e.g. using the now-deprecated (create|find|drop)Namespace admin commands on DSE/HCD)
  • Added missing DB statuses to the DatabaseStatus enum (e.g. 'HIBERNATED' and 'HIBERNATING')
    • You can check the diff here
  • Better error for if the Admin classes don't have a token set
    • (for the astra variants)
  • Various error message improvements throughout the client
    • Fixed some errors being obfuscated, improved the clarity of a few, added ' (+ more <num_errors> errors)' to the end of aggregated errors
  • Exposed FetchH2 and FetchNative fetchers to make it easier to wrap them with your own for customization purposes
    • For use with setting a 'custom' client
  • Exposed DEFAULT_KEYSPACE constant

Internal stuff

  • MAJOR overhaul of test suite
    • Massively parallelized tests (full test suite used to take over 50 min to run.. now it barely takes 10 minutes!)
    • Majorly improved test filtering through custom filtering functionality
    • Custom test report file generated to store full errors thrown during tests
    • Test suite sets up and cleans up after itself much better now (tests much more reproducible now)
    • Custom test script CLI to make running tests super easy
    • Vectorize tests wait for providers to warm up now instead of erroring out after the first try
    • Much more info here
  • Updated ESLint + config
    • Including adding rules to add all missing semicolons/commas
  • shell.nix + nix-direnv
    • Setups up shell env w/ nodejs_20, jq, and the astra CLI

... (truncated)

Commits
Maintainer changes

This version was pushed to npm by toptobes, a new releaser for @​datastax/astra-db-ts since your current version.


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)