Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: TanStack/virtual
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.8.1
Choose a base ref
...
head repository: TanStack/virtual
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.8.2
Choose a head ref
  • 8 commits
  • 42 files changed
  • 4 contributors

Commits on Jun 30, 2024

  1. ci: Optimise GitHub Actions workflow (#746)

    lachlancollins authored Jun 30, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    36faca8 View commit details

Commits on Jul 3, 2024

  1. docs: add documentation links to Lit Virtual (#747)

    kadoshms authored Jul 3, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    9f89211 View commit details

Commits on Jul 9, 2024

  1. ci: Add PR previews with pkg-pr-new (#751)

    * Fix repository fields
    
    * Add preview job
    
    * Add renovate.json
    lachlancollins authored Jul 9, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    9c3ee80 View commit details
  2. chore(deps): update all non-major dependencies (#753)

    * chore(deps): update all non-major dependencies
    
    * Fix lit version
    
    ---------
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
    renovate[bot] and lachlancollins authored Jul 9, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    557791a View commit details
  3. ci(renovate): Add ignorePresets

    lachlancollins committed Jul 9, 2024
    Copy the full SHA
    455c99b View commit details
  4. chore(deps): update all non-major dependencies (#754)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jul 9, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    1fe8a10 View commit details
  5. chore(deps): update dependency @tanstack/config to ^0.9.2 (#755)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jul 9, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    a4d2d41 View commit details
  6. release: v3.8.2

    tannerlinsley committed Jul 9, 2024
    Copy the full SHA
    b60110a View commit details
Showing with 695 additions and 1,086 deletions.
  1. +24 −0 .github/renovate.json
  2. +3 −12 .github/workflows/ci.yml
  3. +18 −11 .github/workflows/pr.yml
  4. +0 −4 .nx/workflows/dynamic-changesets.yaml
  5. +13 −0 docs/config.json
  6. +6 −0 docs/installation.md
  7. +1 −1 docs/introduction.md
  8. +4 −4 examples/lit/dynamic/package.json
  9. +4 −4 examples/lit/fixed/package.json
  10. +2 −2 examples/react/dynamic/package.json
  11. +2 −2 examples/react/fixed/package.json
  12. +3 −3 examples/react/infinite-scroll/package.json
  13. +2 −2 examples/react/padding/package.json
  14. +2 −2 examples/react/scroll-padding/package.json
  15. +2 −2 examples/react/smooth-scroll/package.json
  16. +2 −2 examples/react/sticky/package.json
  17. +3 −3 examples/react/table/package.json
  18. +2 −2 examples/react/variable/package.json
  19. +2 −2 examples/react/window/package.json
  20. +2 −2 examples/svelte/dynamic/package.json
  21. +2 −2 examples/svelte/fixed/package.json
  22. +3 −3 examples/svelte/infinite-scroll/package.json
  23. +2 −2 examples/svelte/smooth-scroll/package.json
  24. +2 −2 examples/svelte/sticky/package.json
  25. +3 −3 examples/svelte/table/package.json
  26. +3 −3 examples/vue/dynamic/package.json
  27. +3 −3 examples/vue/fixed/package.json
  28. +4 −4 examples/vue/infinite-scroll/package.json
  29. +3 −3 examples/vue/padding/package.json
  30. +3 −3 examples/vue/scroll-padding/package.json
  31. +3 −3 examples/vue/smooth-scroll/package.json
  32. +3 −3 examples/vue/sticky/package.json
  33. +4 −4 examples/vue/table/package.json
  34. +3 −3 examples/vue/variable/package.json
  35. +7 −8 package.json
  36. +21 −20 packages/lit-virtual/package.json
  37. +21 −20 packages/react-virtual/package.json
  38. +19 −18 packages/solid-virtual/package.json
  39. +20 −19 packages/svelte-virtual/package.json
  40. +21 −20 packages/virtual-core/package.json
  41. +20 −19 packages/vue-virtual/package.json
  42. +428 −861 pnpm-lock.yaml
24 changes: 24 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended",
"schedule:weekly",
":approveMajorUpdates",
":disablePeerDependencies",
":semanticCommitTypeAll(chore)"
],
"ignorePresets": [":ignoreModulesAndTests"],
"labels": ["dependencies"],
"rangeStrategy": "bump",
"postUpdateOptions": ["pnpmDedupe"],
"semanticCommits": "enabled",
"packageRules": [
{
"groupName": "all non-major dependencies",
"groupSlug": "all-minor-patch",
"matchCurrentVersion": ">=1.0.0",
"matchUpdateTypes": ["minor", "patch"]
}
],
"ignoreDeps": ["@types/node", "node", "typescript"]
}
15 changes: 3 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -25,16 +25,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile --prefer-offline
fetch-depth: 0
- name: Setup Tools
uses: tanstack/config/.github/setup@main
- name: Run Tests
run: pnpm run test:ci
- name: Publish
@@ -44,8 +37,6 @@ jobs:
npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
pnpm run cipublish
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
TAG: ${{ inputs.tag }}
29 changes: 18 additions & 11 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -23,18 +23,25 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile --prefer-offline
- name: Setup Tools
uses: tanstack/config/.github/setup@main
- name: Get base and head commits for `nx affected`
uses: nrwl/nx-set-shas@v3
uses: nrwl/nx-set-shas@v4
with:
main-branch-name: 'main'
main-branch-name: main
- name: Run Checks
run: pnpm run test:pr
preview:
name: Preview
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Tools
uses: tanstack/config/.github/setup@main
- name: Build Packages
run: pnpm run build:all
- name: Publish Previews
run: pnpx pkg-pr-new publish --pnpm --compact './packages/*' --template './examples/*/*'
4 changes: 0 additions & 4 deletions .nx/workflows/dynamic-changesets.yaml

This file was deleted.

13 changes: 13 additions & 0 deletions docs/config.json
Original file line number Diff line number Diff line change
@@ -173,6 +173,19 @@
"label": "Scroll Padding"
}
]
},
{
"label": "lit",
"children": [
{
"to": "framework/lit/examples/fixed",
"label": "Fixed"
},
{
"to": "framework/lit/examples/dynamic",
"label": "Dynamic"
}
]
}
]
}
6 changes: 6 additions & 0 deletions docs/installation.md
Original file line number Diff line number Diff line change
@@ -30,6 +30,12 @@ $ npm install @tanstack/svelte-virtual
$ npm install @tanstack/vue-virtual
```

## Lit Virtual

```bash
$ npm install @tanstack/lit-virtual
```

## Virtual Core (no framework)

```bash
2 changes: 1 addition & 1 deletion docs/introduction.md
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
title: Introduction
---

TanStack Virtual is a headless UI utility for virtualizing long lists of elements in JS/TS, React, Vue, Svelte and Solid. It is not a component therefore does not ship with or render any markup or styles for you. While this requires a bit of markup and styles from you, you will retain 100% control over your styles, design and implementation.
TanStack Virtual is a headless UI utility for virtualizing long lists of elements in JS/TS, React, Vue, Svelte, Solid and Lit. It is not a component therefore does not ship with or render any markup or styles for you. While this requires a bit of markup and styles from you, you will retain 100% control over your styles, design and implementation.

## The Virtualizer

8 changes: 4 additions & 4 deletions examples/lit/dynamic/package.json
Original file line number Diff line number Diff line change
@@ -9,13 +9,13 @@
},
"dependencies": {
"@faker-js/faker": "^7.6.0",
"@tanstack/lit-virtual": "^3.8.1",
"@tanstack/virtual-core": "^3.8.1",
"lit": "^3.1.3"
"@tanstack/lit-virtual": "^3.8.2",
"@tanstack/virtual-core": "^3.8.2",
"lit": "^3.1.4"
},
"devDependencies": {
"@types/node": "^18.19.3",
"typescript": "5.2.2",
"vite": "^5.3.2"
"vite": "^5.3.3"
}
}
8 changes: 4 additions & 4 deletions examples/lit/fixed/package.json
Original file line number Diff line number Diff line change
@@ -9,13 +9,13 @@
},
"dependencies": {
"@faker-js/faker": "^7.6.0",
"@tanstack/lit-virtual": "^3.8.1",
"@tanstack/virtual-core": "^3.8.1",
"lit": "^3.1.3"
"@tanstack/lit-virtual": "^3.8.2",
"@tanstack/virtual-core": "^3.8.2",
"lit": "^3.1.4"
},
"devDependencies": {
"@types/node": "^18.19.3",
"typescript": "5.2.2",
"vite": "^5.3.2"
"vite": "^5.3.3"
}
}
4 changes: 2 additions & 2 deletions examples/react/dynamic/package.json
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@
},
"dependencies": {
"@faker-js/faker": "^7.6.0",
"@tanstack/react-virtual": "^3.8.1",
"@tanstack/react-virtual": "^3.8.2",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
@@ -19,6 +19,6 @@
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.1",
"typescript": "5.2.2",
"vite": "^5.3.2"
"vite": "^5.3.3"
}
}
4 changes: 2 additions & 2 deletions examples/react/fixed/package.json
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@
"serve": "vite preview"
},
"dependencies": {
"@tanstack/react-virtual": "^3.8.1",
"@tanstack/react-virtual": "^3.8.2",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
@@ -18,6 +18,6 @@
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.1",
"typescript": "5.2.2",
"vite": "^5.3.2"
"vite": "^5.3.3"
}
}
6 changes: 3 additions & 3 deletions examples/react/infinite-scroll/package.json
Original file line number Diff line number Diff line change
@@ -9,13 +9,13 @@
"start": "vite"
},
"dependencies": {
"@tanstack/react-virtual": "^3.8.1",
"@tanstack/react-virtual": "^3.8.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"@tanstack/react-query": "^5.48.0"
"@tanstack/react-query": "^5.50.1"
},
"devDependencies": {
"@vitejs/plugin-react": "^4.3.1",
"vite": "^5.3.2"
"vite": "^5.3.3"
}
}
4 changes: 2 additions & 2 deletions examples/react/padding/package.json
Original file line number Diff line number Diff line change
@@ -11,10 +11,10 @@
"dependencies": {
"react": "^18.3.1",
"react-dom": "^18.3.1",
"@tanstack/react-virtual": "^3.8.1"
"@tanstack/react-virtual": "^3.8.2"
},
"devDependencies": {
"@vitejs/plugin-react": "^4.3.1",
"vite": "^5.3.2"
"vite": "^5.3.3"
}
}
4 changes: 2 additions & 2 deletions examples/react/scroll-padding/package.json
Original file line number Diff line number Diff line change
@@ -10,12 +10,12 @@
},
"dependencies": {
"@react-hookz/web": "^24.0.4",
"@tanstack/react-virtual": "^3.8.1",
"@tanstack/react-virtual": "^3.8.2",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@vitejs/plugin-react": "^4.3.1",
"vite": "^5.3.2"
"vite": "^5.3.3"
}
}
4 changes: 2 additions & 2 deletions examples/react/smooth-scroll/package.json
Original file line number Diff line number Diff line change
@@ -11,10 +11,10 @@
"dependencies": {
"react": "^18.3.1",
"react-dom": "^18.3.1",
"@tanstack/react-virtual": "^3.8.1"
"@tanstack/react-virtual": "^3.8.2"
},
"devDependencies": {
"@vitejs/plugin-react": "^4.3.1",
"vite": "^5.3.2"
"vite": "^5.3.3"
}
}
4 changes: 2 additions & 2 deletions examples/react/sticky/package.json
Original file line number Diff line number Diff line change
@@ -10,13 +10,13 @@
},
"dependencies": {
"@faker-js/faker": "^7.6.0",
"@tanstack/react-virtual": "^3.8.1",
"@tanstack/react-virtual": "^3.8.2",
"lodash": "^4.17.21",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@vitejs/plugin-react": "^4.3.1",
"vite": "^5.3.2"
"vite": "^5.3.3"
}
}
6 changes: 3 additions & 3 deletions examples/react/table/package.json
Original file line number Diff line number Diff line change
@@ -10,15 +10,15 @@
},
"dependencies": {
"@faker-js/faker": "^7.6.0",
"@tanstack/react-table": "^8.17.3",
"@tanstack/react-virtual": "^3.8.1",
"@tanstack/react-table": "^8.19.2",
"@tanstack/react-virtual": "^3.8.2",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.1",
"vite": "^5.3.2"
"vite": "^5.3.3"
}
}
4 changes: 2 additions & 2 deletions examples/react/variable/package.json
Original file line number Diff line number Diff line change
@@ -11,10 +11,10 @@
"dependencies": {
"react": "^18.3.1",
"react-dom": "^18.3.1",
"@tanstack/react-virtual": "^3.8.1"
"@tanstack/react-virtual": "^3.8.2"
},
"devDependencies": {
"@vitejs/plugin-react": "^4.3.1",
"vite": "^5.3.2"
"vite": "^5.3.3"
}
}
4 changes: 2 additions & 2 deletions examples/react/window/package.json
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@
"serve": "vite preview"
},
"dependencies": {
"@tanstack/react-virtual": "^3.8.1",
"@tanstack/react-virtual": "^3.8.2",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
@@ -18,6 +18,6 @@
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.1",
"typescript": "5.2.2",
"vite": "^5.3.2"
"vite": "^5.3.3"
}
}
4 changes: 2 additions & 2 deletions examples/svelte/dynamic/package.json
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@
},
"dependencies": {
"@faker-js/faker": "^7.6.0",
"@tanstack/svelte-virtual": "^3.8.1"
"@tanstack/svelte-virtual": "^3.8.2"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^3.1.1",
@@ -19,6 +19,6 @@
"svelte-check": "^3.8.4",
"tslib": "^2.6.3",
"typescript": "5.2.2",
"vite": "^5.3.2"
"vite": "^5.3.3"
}
}
4 changes: 2 additions & 2 deletions examples/svelte/fixed/package.json
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@
"check": "svelte-check --tsconfig ./tsconfig.json"
},
"dependencies": {
"@tanstack/svelte-virtual": "^3.8.1"
"@tanstack/svelte-virtual": "^3.8.2"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^3.1.1",
@@ -18,6 +18,6 @@
"svelte-check": "^3.8.4",
"tslib": "^2.6.3",
"typescript": "5.2.2",
"vite": "^5.3.2"
"vite": "^5.3.3"
}
}
6 changes: 3 additions & 3 deletions examples/svelte/infinite-scroll/package.json
Original file line number Diff line number Diff line change
@@ -9,8 +9,8 @@
"check": "svelte-check --tsconfig ./tsconfig.json"
},
"dependencies": {
"@tanstack/svelte-query": "^5.48.0",
"@tanstack/svelte-virtual": "^3.8.1"
"@tanstack/svelte-query": "^5.50.3",
"@tanstack/svelte-virtual": "^3.8.2"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^3.1.1",
@@ -19,6 +19,6 @@
"svelte-check": "^3.8.4",
"tslib": "^2.6.3",
"typescript": "5.2.2",
"vite": "^5.3.2"
"vite": "^5.3.3"
}
}
Loading