Skip to content

chore(deps): Bump @evolu/common from 8.24.1 to 8.27.0 - #81

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/evolu/common-8.27.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/evolu/common-8.27.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 6, 2026

Copy link
Copy Markdown
Contributor

Bumps @evolu/common from 8.24.1 to 8.27.0.

Release notes

Sourced from @​evolu/common's releases.

@​evolu/common@​8.27.0

Minor Changes

  • 030ea30: Implemented Evolu.deleteOwner

    deleteOwner was declared but threw, so an app couldn't remove one owner's data from a device without deleting the whole database, for example when a user removes a wallet (#676). It now deletes the owner's rows from the instance's local database on this device, stops syncing the owner, and resolves once the rows are gone.

    The deletion runs after the mutations and requests made before it. It deletes the owner's rows of every table, local-only tables included, and its history in one transaction, including tables a newer version of the app created. Then it ends every useOwner registration of the owner in every instance of the database, in every tab, so relays don't bring the rows back; other databases that use the owner keep it. Each instance of the database, including the one that asked, then calls EvoluConfig.onOwnerDeleted, which is now called, so the app stops showing the owner in one place, whichever tab deleted it. Subscribed queries load again right after, and until then they still return the owner's rows.

    It deletes only this device's copy. Changes not yet synced are lost, relays keep the owner's data, and a later useOwner of the owner syncs it back, so stop using the owner first, such as by removing it from where the app lists it.

    deleteOwner now takes a ShardOwner, SharedOwner, or SharedReadonlyOwner instead of any Owner, so passing the AppOwner, whose ID names the database, fails to compile; deleteDatabase deletes the whole database instead. It returns a promise of a Result instead of void. It fails with UnknownError when SQLite fails the deletion, which then deletes nothing, with the refusal's error when Evolu refused the database, and with EvoluDisposedError when its instance is disposed first. onOwnerDeleted receives the owner's ID instead of the owner, because other tabs never get the owner's keys.

    import {
      assertType,
      type DeleteOwnerError,
      type Evolu,
      type EvoluConfig,
      type Owner,
      type OwnerId,
      type Result,
      type ShardOwner,
    } from "@evolu/common";
    const _deleteWalletBefore = (evolu: Evolu, wallet: Owner) =>
    // @​ts-expect-error deleteOwner takes a ShardOwner, SharedOwner, or SharedReadonlyOwner, not any Owner, because the AppOwner is one.
    evolu.deleteOwner(wallet);
    const _deleteAppOwner = (evolu: Evolu) =>
    // @​ts-expect-error deleteOwner takes no AppOwner, which names the database.
    evolu.deleteOwner(evolu.appOwner);
    const deleteWallet = (evolu: Evolu, wallet: ShardOwner) =>
    evolu.deleteOwner(wallet);
    assertType<
    Awaited<ReturnType<typeof deleteWallet>>,
    Result<void, DeleteOwnerError>
    >();
    const _configBefore: Pick<EvoluConfig, "onOwnerDeleted"> = {
    // @​ts-expect-error onOwnerDeleted receives the owner's ID, not the owner.
    onOwnerDeleted: (wallet: Owner) => {
    void wallet;
    },
    };
    const _config: Pick<EvoluConfig, "onOwnerDeleted"> = {
    onOwnerDeleted: (walletId: OwnerId) => {

... (truncated)

Commits
  • 3ce634e Version Packages
  • 3e40f89 Update the benchmarks' upstream pins and stop committing SQLite comparison re...
  • 3c25f6b Link the upstream strip reports from the app size README
  • 37bd29b Record the example apps' Release sizes
  • a648277 Track the example apps' Release sizes in CI
  • 030ea30 Implement Evolu.deleteOwner in @​evolu/common
  • 762fc4e Start the release's React Native app jobs without waiting for the checks
  • 7cbeb7d Remove react-native-svg from the Expo example and pin its Gesture Handler
  • 21c085a Version Packages
  • b20abd6 Merge remote-tracking branch 'origin/main' into claude/evolu-delete-database-...
  • Additional commits viewable in compare view

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

Bumps [@evolu/common](https://github.com/evoluhq/evolu) from 8.24.1 to 8.27.0.
- [Release notes](https://github.com/evoluhq/evolu/releases)
- [Commits](https://github.com/evoluhq/evolu/compare/@evolu/common@8.24.1...@evolu/common@8.27.0)

---
updated-dependencies:
- dependency-name: "@evolu/common"
  dependency-version: 8.27.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants