[PR #2691] [CLOSED] Bump @datastax/astra-db-ts from 0.1.4 to 1.5.0 in /server #4085

Closed
opened 2026-02-22 18:35:06 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/2691
Author: @dependabot[bot]
Created: 11/21/2024
Status: Closed

Base: masterHead: dependabot/npm_and_yarn/server/datastax/astra-db-ts-1.5.0


📝 Commits (1)

  • 3167a9e Bump @datastax/astra-db-ts from 0.1.4 to 1.5.0 in /server

📊 Changes

2 files changed (+130 additions, -30 deletions)

View changed files

📝 server/package.json (+1 -1)
📝 server/yarn.lock (+129 -29)

📄 Description

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 <dependency name> 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)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/2691 **Author:** [@dependabot[bot]](https://github.com/apps/dependabot) **Created:** 11/21/2024 **Status:** ❌ Closed **Base:** `master` ← **Head:** `dependabot/npm_and_yarn/server/datastax/astra-db-ts-1.5.0` --- ### 📝 Commits (1) - [`3167a9e`](https://github.com/Mintplex-Labs/anything-llm/commit/3167a9e94d1c13688d6c7dd2967a8011c7150d8b) Bump @datastax/astra-db-ts from 0.1.4 to 1.5.0 in /server ### 📊 Changes **2 files changed** (+130 additions, -30 deletions) <details> <summary>View changed files</summary> 📝 `server/package.json` (+1 -1) 📝 `server/yarn.lock` (+129 -29) </details> ### 📄 Description Bumps [@datastax/astra-db-ts](https://github.com/datastax/astra-db-ts) from 0.1.4 to 1.5.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/datastax/astra-db-ts/releases"><code>@​datastax/astra-db-ts</code>'s releases</a>.</em></p> <blockquote> <h2>v1.5.0</h2> <h2>Namespace deprecation <em>(<a href="https://docs.datastax.com/en/astra-db-serverless/api-reference/client-versions.html#version-1-5">docs link</a>)</em></h2> <ul> <li>The &quot;namespace&quot; terminology is now deprecated (still backwards compatible) everywhere <ul> <li>There is a new &quot;keyspace&quot; alternative for each parameter name or method with &quot;namespace&quot; in it</li> <li>e.g. <code>db.useNamespace(...)</code> still works, but now prefer the <code>db.useKeyspace(...)</code> alternative</li> </ul> </li> <li>All usages of &quot;namespace&quot; will be removed in an upcoming major release</li> </ul> <h2>Other deprecations <em>(to be removed in v2.0)</em></h2> <ul> <li><code>collection.bulkWrite()</code> is now deprecated <ul> <li>Prefer to just manually call the functions yourself</li> </ul> </li> <li><code>db.collections()</code> is also now deprecated <ul> <li>Equivalent to <code>(await db.listCollections()).map(c =&gt; new Collection(c.name))</code></li> </ul> </li> </ul> <h2>Misc improvements/fixes</h2> <ul> <li><code>collection.drop()</code> will now work properly if the collection is in a non-default keyspace <ul> <li>Before, it would attempt to drop the collection from <code>'default_keyspace'</code></li> </ul> </li> <li><code>returnDocument</code> on <code>findOneAnd*</code> functions are finally optional <ul> <li>Defaults to <code>'before'</code> on the Data API</li> </ul> </li> <li><code>updateDbNamespace</code> was changed to immediately set the new keyspace <ul> <li>Before, it would wait for the keyspace to be created first <ul> <li>This would lead to easier race conditions, and they keyspace wouldn't be set at all if creation errored</li> </ul> </li> </ul> </li> <li><code>[Admin]CommandSucceededEvents</code> now have a <code>warnings</code> field for any warnings the Data API may return <ul> <li>These may point out deprecated/incorrect practices, or any other issues that aren't strictly an error.</li> <li>(e.g. using the now-deprecated <code>(create|find|drop)Namespace</code> admin commands on DSE/HCD)</li> </ul> </li> <li>Added missing DB statuses to the <code>DatabaseStatus</code> enum (e.g. <code>'HIBERNATED'</code> and <code>'HIBERNATING'</code>) <ul> <li>You can check the diff <a href="https://github.com/datastax/astra-db-ts/compare/2f462622d60965bf9d2536fe711fec56ad6fa445..f3d818711e98861e125ebd327d5a8c570fe47bd3#diff-4ba33e556ac7ec163f6b76c4e90da08c71e9da57b30a65a6f57db4bb359f741e">here</a></li> </ul> </li> <li>Better error for if the <code>Admin</code> classes don't have a token set <ul> <li>(for the astra variants)</li> </ul> </li> <li>Various error message improvements throughout the client <ul> <li>Fixed some errors being obfuscated, improved the clarity of a few, added <code>' (+ more &lt;num_errors&gt; errors)'</code> to the end of aggregated errors</li> </ul> </li> <li>Exposed <code>FetchH2</code> and <code>FetchNative</code> fetchers to make it easier to wrap them with your own for customization purposes <ul> <li>For use with setting a <code>'custom'</code> client</li> </ul> </li> <li>Exposed <code>DEFAULT_KEYSPACE</code> constant</li> </ul> <h2>Internal stuff</h2> <!-- raw HTML omitted --> <ul> <li>MAJOR overhaul of test suite <ul> <li>Massively parallelized tests <strong>(full test suite used to take over 50 min to run.. now it barely takes 10 minutes!)</strong></li> <li>Majorly improved test filtering through custom filtering functionality</li> <li>Custom test report file generated to store full errors thrown during tests</li> <li>Test suite sets up and cleans up after itself much better now (tests much more reproducible now)</li> <li>Custom test script CLI to make running tests super easy</li> <li>Vectorize tests wait for providers to warm up now instead of erroring out after the first try</li> <li><a href="https://redirect.github.com/datastax/astra-db-ts/pull/66">Much more info here</a></li> </ul> </li> <li>Updated ESLint + config <ul> <li>Including adding rules to add all missing semicolons/commas</li> </ul> </li> <li><code>shell.nix</code> + <code>nix-direnv</code> <ul> <li>Setups up shell env w/ <code>nodejs_20</code>, <code>jq</code>, and the <code>astra</code> CLI</li> </ul> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/datastax/astra-db-ts/commits/v1.5.0">compare view</a></li> </ul> </details> <details> <summary>Maintainer changes</summary> <p>This version was pushed to npm by <a href="https://www.npmjs.com/~toptobes">toptobes</a>, a new releaser for <code>@​datastax/astra-db-ts</code> since your current version.</p> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@datastax/astra-db-ts&package-manager=npm_and_yarn&previous-version=0.1.4&new-version=1.5.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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 <dependency name> 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) </details> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:35:06 -05:00
yindo closed this issue 2026-02-22 18:35:06 -05:00
yindo changed title from [PR #2691] Bump @datastax/astra-db-ts from 0.1.4 to 1.5.0 in /server to [PR #2691] [CLOSED] Bump @datastax/astra-db-ts from 0.1.4 to 1.5.0 in /server 2026-06-05 15:16:44 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#4085