Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: pass deletePrefix and delete spread through dedupe #319

Merged
merged 2 commits into from
Feb 20, 2024

Conversation

ForbesLindesay
Copy link
Owner

No description provided.

Copy link

rollingversions bot commented Feb 20, 2024

@databases/cache (1.1.0 → 1.1.1)

Bug Fixes

  • If 0 parameters are passed to .delete it will no longer generate a DELETE_MULIPLE event for replication.

@databases/dataloader (1.0.1 → 1.1.0)

New Features

  • You can pass multiple keys to cachedFn.cache.delete(...keys) now for both dedupeAsync and dedupeSync. If the underlying cache/map accepts a ... spread parameter, the array of keys will be passed directly to the undelrying map. Otherwise .delete will be called multiple times on the underlying map.

  • A new method has been added for cachedFn.cache.deletePrefix(prefix) for both dedupeAsync and dedupeSync.

    If the map used as the cache is a MultiKeyMap, deletePrefix takes any sub-path for the key. e.g. MultiKeyMap<[string, number, string]> would result in a deletePrefix function that accepts [string] | [string, number] as the key.

    If the map used as the cache has a deletePrefix method, the prefix is passed directly to that method.

    If the keys are serialized to a string, deletePrefix accepts a string and will delete keys where the serialized value matches that string.

Packages With No Changes

The following packages have no user facing changes, so won't be released:

  • @databases/bigquery
  • @databases/connection-pool
  • @databases/escape-identifier
  • @databases/expo
  • @databases/lock
  • @databases/migrations-base
  • @databases/mock-db
  • @databases/mock-db-typed
  • @databases/mysql
  • @databases/mysql-config
  • @databases/mysql-schema-cli
  • @databases/mysql-schema-introspect
  • @databases/mysql-schema-print-types
  • @databases/mysql-test
  • @databases/mysql-typed
  • @databases/pg
  • @databases/pg-bulk
  • @databases/pg-cluster
  • @databases/pg-config
  • @databases/pg-connection-string
  • @databases/pg-create
  • @databases/pg-data-type-id
  • @databases/pg-errors
  • @databases/pg-migrations
  • @databases/pg-schema-cli
  • @databases/pg-schema-introspect
  • @databases/pg-schema-print-types
  • @databases/pg-test
  • @databases/pg-typed
  • @databases/push-to-async-iterable
  • @databases/queue
  • @databases/shared
  • @databases/shared-print-types
  • @databases/split-sql-query
  • @databases/sql
  • @databases/sqlite
  • @databases/sqlite-sync
  • @databases/validate-unicode
  • @databases/website
  • @databases/websql
  • @databases/websql-core
  • @databases/with-container

Edit changelogs

@ForbesLindesay ForbesLindesay merged commit 66c0122 into master Feb 20, 2024
23 checks passed
@ForbesLindesay ForbesLindesay deleted the feat/fl/delete-multiple-dataloader branch February 20, 2024 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant