Skip to content

move development of d2mini to the db monorepo and rename db-ivm#330

Merged
samwillis merged 7 commits intomainfrom
samwillis/db-ivm
Jul 29, 2025
Merged

move development of d2mini to the db monorepo and rename db-ivm#330
samwillis merged 7 commits intomainfrom
samwillis/db-ivm

Conversation

@samwillis
Copy link
Copy Markdown
Collaborator

@samwillis samwillis commented Jul 29, 2025

This is a fairly clean copy/paste of the code, with just changes to fix linting and ts-config issues.

The individual commits step through this process for review.

Other than renaming a few vars to not shadow others (required by the lint rules) there are no JS changes. All most all changes are simple formatting or ts type changes.

The failed CI task is that it can't publish a preview package for an unpublished package.

After this is merged, we will have a small refactor:

  • this depends on sorted-btree, we will move our btree implication from the main db package into this one and export it for use in the db package, dropping the dep
  • there are a few redundant operators - mostly the order by ones - that need a cleanout
  • check for any unused code that we don't need any more

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jul 29, 2025

🦋 Changeset detected

Latest commit: 2d79e56

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 10 packages
Name Type
@tanstack/svelte-db Patch
@tanstack/react-db Patch
@tanstack/solid-db Patch
@tanstack/db-ivm Patch
@tanstack/vue-db Patch
@tanstack/db Patch
@tanstack/db-example-react-todo Patch
@tanstack/electric-db-collection Patch
@tanstack/query-db-collection Patch
@tanstack/trailbase-db-collection Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Copy Markdown
Collaborator

@KyleAMathews KyleAMathews left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did the initial release to npm so this should be ready to go!

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Jul 29, 2025

@tanstack/db-example-react-todo@tanstack/db-example-solid-todo

@tanstack/db

npm i https://pkg.pr.new/@tanstack/db@330

@tanstack/db-ivm

npm i https://pkg.pr.new/@tanstack/db-ivm@330

@tanstack/electric-db-collection

npm i https://pkg.pr.new/@tanstack/electric-db-collection@330

@tanstack/query-db-collection

npm i https://pkg.pr.new/@tanstack/query-db-collection@330

@tanstack/react-db

npm i https://pkg.pr.new/@tanstack/react-db@330

@tanstack/solid-db

npm i https://pkg.pr.new/@tanstack/solid-db@330

@tanstack/svelte-db

npm i https://pkg.pr.new/@tanstack/svelte-db@330

@tanstack/trailbase-db-collection

npm i https://pkg.pr.new/@tanstack/trailbase-db-collection@330

@tanstack/vue-db

npm i https://pkg.pr.new/@tanstack/vue-db@330

commit: 2d79e56

@github-actions
Copy link
Copy Markdown
Contributor

Size Change: -10 B (-0.02%)

Total Size: 58.1 kB

Filename Size Change
./packages/db/dist/esm/query/compiler/group-by.js 2.03 kB -1 B (-0.05%)
./packages/db/dist/esm/query/compiler/index.js 1.74 kB -1 B (-0.06%)
./packages/db/dist/esm/query/compiler/joins.js 1.56 kB -2 B (-0.13%)
./packages/db/dist/esm/query/compiler/order-by.js 703 B -2 B (-0.28%)
./packages/db/dist/esm/query/compiler/select.js 655 B -2 B (-0.3%)
./packages/db/dist/esm/query/live-query-collection.js 2.45 kB -2 B (-0.08%)
ℹ️ View Unchanged
Filename Size
./packages/db/dist/esm/change-events.js 1.13 kB
./packages/db/dist/esm/collection.js 9.8 kB
./packages/db/dist/esm/deferred.js 230 B
./packages/db/dist/esm/errors.js 2.98 kB
./packages/db/dist/esm/index.js 1.51 kB
./packages/db/dist/esm/indexes/auto-index.js 689 B
./packages/db/dist/esm/indexes/base-index.js 605 B
./packages/db/dist/esm/indexes/btree-index.js 1.47 kB
./packages/db/dist/esm/indexes/lazy-index.js 1.25 kB
./packages/db/dist/esm/local-only.js 827 B
./packages/db/dist/esm/local-storage.js 2.03 kB
./packages/db/dist/esm/optimistic-action.js 294 B
./packages/db/dist/esm/proxy.js 4.19 kB
./packages/db/dist/esm/query/builder/functions.js 575 B
./packages/db/dist/esm/query/builder/index.js 3.67 kB
./packages/db/dist/esm/query/builder/ref-proxy.js 890 B
./packages/db/dist/esm/query/compiler/evaluators.js 1.48 kB
./packages/db/dist/esm/query/compiler/expressions.js 631 B
./packages/db/dist/esm/query/ir.js 318 B
./packages/db/dist/esm/query/optimizer.js 2.44 kB
./packages/db/dist/esm/SortedMap.js 1.24 kB
./packages/db/dist/esm/transactions.js 2.28 kB
./packages/db/dist/esm/utils.js 419 B
./packages/db/dist/esm/utils/btree.js 5.93 kB
./packages/db/dist/esm/utils/comparison.js 539 B
./packages/db/dist/esm/utils/index-optimization.js 1.62 kB

compressed-size-action::db-package-size

@github-actions
Copy link
Copy Markdown
Contributor

Size Change: 0 B

Total Size: 1.05 kB

ℹ️ View Unchanged
Filename Size
./packages/react-db/dist/esm/index.js 152 B
./packages/react-db/dist/esm/useLiveQuery.js 902 B

compressed-size-action::react-db-package-size

@samwillis samwillis merged commit f0eda36 into main Jul 29, 2025
5 checks passed
@samwillis samwillis deleted the samwillis/db-ivm branch July 29, 2025 14:07
@github-actions github-actions Bot mentioned this pull request Jul 29, 2025
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.

2 participants