Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected].1/schema.json",
"$schema": "https://unpkg.com/@changesets/[email protected].2/schema.json",
"changelog": [
"@svitejs/changesets-changelog-github-compact",
{ "repo": "TanStack/virtual" }
Expand All @@ -10,5 +10,8 @@
"updateInternalDependencies": "patch",
"fixed": [],
"linked": [],
"ignore": []
"ignore": [],
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
"onlyUpdatePeerDependentsWhenOutOfRange": true
}
}
1 change: 0 additions & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
github: tannerlinsley
custom: https://youtube.com/tannerlinsley
12 changes: 8 additions & 4 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
## 🎯 Changes

<!-- What changes are made in this PR? Is it a feature or a package submission? -->
<!-- What changes are made in this PR? Describe the change and its motivation. -->

## ✅ Checklist

- [ ] I have followed the steps listed in the [Contributing guide](https://github.com/TanStack/config/blob/main/CONTRIBUTING.md).
- [ ] I have tested and linted this code locally.
- [ ] I have generated a [changeset](https://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md) for this PR, or this PR should not release a new version.
- [ ] I have followed the steps in the [Contributing guide](https://github.com/TanStack/virtual/blob/main/CONTRIBUTING.md).
- [ ] I have tested this code locally with `pnpm run test:pr`.

## 🚀 Release Impact

- [ ] This change affects published code, and I have generated a [changeset](https://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md).
- [ ] This change is docs/CI/dev-only (no release).
4 changes: 2 additions & 2 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5.0.0
uses: actions/checkout@v6.0.1
with:
fetch-depth: 0
- name: Setup Tools
uses: tanstack/config/.github/setup@main
- name: Fix formatting
run: pnpm prettier:write
run: pnpm format
- name: Apply fixes
uses: autofix-ci/action@551dded8c6cc8a1054039c8bc0b8b48c51dfc6ef
with:
Expand Down
18 changes: 15 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5.0.0
uses: actions/checkout@v6.0.1
with:
fetch-depth: 0
- name: Setup Tools
uses: tanstack/config/.github/setup@main
- name: Get base and head commits for `nx affected`
uses: nrwl/nx-set-shas@v4.3.0
uses: nrwl/nx-set-shas@v4.4.0
with:
main-branch-name: main
- name: Install Playwright browsers
Expand All @@ -37,7 +37,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5.0.0
uses: actions/checkout@v6.0.1
with:
fetch-depth: 0
- name: Setup Tools
Expand All @@ -46,3 +46,15 @@ jobs:
run: pnpm run build:all
- name: Publish Previews
run: pnpx pkg-pr-new publish --pnpm --compact './packages/*' --template './examples/*/*'
provenance:
name: Provenance
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Check Provenance
uses: danielroe/[email protected]
with:
fail-on-downgrade: true
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5.0.0
uses: actions/checkout@v6.0.1
with:
fetch-depth: 0
- name: Setup Tools
Expand All @@ -41,4 +41,3 @@ jobs:
title: 'ci: Version Packages'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @ts-check

import { tanstackConfig } from '@tanstack/config/eslint'
import { tanstackConfig } from '@tanstack/eslint-config'

export default [
...tanstackConfig,
Expand Down
6 changes: 3 additions & 3 deletions examples/svelte/dynamic/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
<main>
<p>
These components are using <strong>dynamic</strong> sizes. This means that each
element's exact dimensions are unknown when rendered. An estimated dimension
is used as the initial measurement, then this measurement is readjusted on the
fly as each element is rendered.
element's exact dimensions are unknown when rendered. An estimated dimension is
used as the initial measurement, then this measurement is readjusted on the fly
as each element is rendered.
</p>
<nav>
<ul>
Expand Down
5 changes: 4 additions & 1 deletion nx.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"defaultBase": "main",
"nxCloudAccessToken": "ZjRlNGQyYjgtYmQ2NS00ZjNkLTgwZTktNGQ2YzEwZmRlNzQ3fHJlYWQ=",
"nxCloudId": "65d1330edb0c1e7def5cb068",
"useInferencePlugins": false,
"parallel": 5,
"tui": {
"enabled": false
},
"namedInputs": {
"sharedGlobals": [
"{workspaceRoot}/.nvmrc",
Expand Down
21 changes: 10 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/TanStack/virtual.git"
"url": "git+https://github.com/TanStack/virtual.git"
},
"packageManager": "[email protected]",
"type": "module",
Expand All @@ -13,7 +13,6 @@
"test:pr": "nx affected --targets=test:sherif,test:knip,test:docs,test:eslint,test:lib,test:e2e,test:types,test:build,build",
"test:ci": "nx run-many --targets=test:sherif,test:knip,test:docs,test:eslint,test:lib,test:e2e,test:types,test:build,build",
"test:eslint": "nx affected --target=test:eslint",
"test:format": "pnpm run prettier --check",
"test:sherif": "sherif",
"test:lib": "nx affected --target=test:lib --exclude=examples/**",
"test:lib:dev": "pnpm run test:lib && nx watch --all -- pnpm run test:lib",
Expand All @@ -26,10 +25,9 @@
"build:all": "nx run-many --target=build --exclude=examples/**",
"watch": "pnpm run build:all && nx watch --all -- pnpm run build:all",
"dev": "pnpm run watch",
"prettier": "prettier --ignore-unknown '**/*'",
"prettier:write": "pnpm run prettier --write",
"format": "prettier --experimental-cli --ignore-unknown '**/*' --write",
"changeset": "changeset",
"changeset:version": "changeset version && pnpm install --no-frozen-lockfile && pnpm prettier:write",
"changeset:version": "changeset version && pnpm install --no-frozen-lockfile && pnpm format",
"changeset:publish": "changeset publish"
},
"nx": {
Expand All @@ -40,22 +38,23 @@
]
},
"devDependencies": {
"@changesets/cli": "^2.29.7",
"@changesets/cli": "^2.29.8",
"@playwright/test": "^1.53.1",
"@svitejs/changesets-changelog-github-compact": "^1.2.0",
"@tanstack/config": "^0.20.2",
"@tanstack/eslint-config": "0.3.4",
"@tanstack/vite-config": "0.3.0",
"@testing-library/jest-dom": "^6.6.3",
"@types/node": "^24.5.2",
"eslint": "^9.36.0",
"jsdom": "^27.0.0",
"knip": "^5.63.1",
"markdown-link-extractor": "^4.0.2",
"nx": "^21.5.3",
"nx": "22.1.3",
"premove": "^4.0.0",
"prettier": "^3.6.2",
"prettier": "^3.7.4",
"prettier-plugin-svelte": "^3.4.0",
"publint": "^0.3.13",
"sherif": "^1.6.1",
"publint": "^0.3.15",
"sherif": "^1.9.0",
"tinyglobby": "^0.2.15",
"typescript": "5.4.5",
"vite": "^5.4.19",
Expand Down
2 changes: 1 addition & 1 deletion packages/angular-virtual/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/TanStack/virtual.git",
"url": "git+https://github.com/TanStack/virtual.git",
"directory": "packages/angular-virtual"
},
"homepage": "https://tanstack.com/virtual",
Expand Down
2 changes: 1 addition & 1 deletion packages/lit-virtual/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/TanStack/virtual.git",
"url": "git+https://github.com/TanStack/virtual.git",
"directory": "packages/lit-virtual"
},
"homepage": "https://tanstack.com/virtual",
Expand Down
3 changes: 1 addition & 2 deletions packages/lit-virtual/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ import type { PartialKeys, VirtualizerOptions } from '@tanstack/virtual-core'
class VirtualizerControllerBase<
TScrollElement extends Element | Window,
TItemElement extends Element,
> implements ReactiveController
{
> implements ReactiveController {
host: ReactiveControllerHost

private readonly virtualizer: Virtualizer<TScrollElement, TItemElement>
Expand Down
2 changes: 1 addition & 1 deletion packages/lit-virtual/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig, mergeConfig } from 'vitest/config'
import { tanstackViteConfig } from '@tanstack/config/vite'
import { tanstackViteConfig } from '@tanstack/vite-config'
import packageJson from './package.json'

const config = defineConfig({
Expand Down
2 changes: 1 addition & 1 deletion packages/react-virtual/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/TanStack/virtual.git",
"url": "git+https://github.com/TanStack/virtual.git",
"directory": "packages/react-virtual"
},
"homepage": "https://tanstack.com/virtual",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-virtual/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig, mergeConfig } from 'vitest/config'
import { tanstackViteConfig } from '@tanstack/config/vite'
import { tanstackViteConfig } from '@tanstack/vite-config'
import react from '@vitejs/plugin-react'
import packageJson from './package.json'

Expand Down
2 changes: 1 addition & 1 deletion packages/solid-virtual/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/TanStack/virtual.git",
"url": "git+https://github.com/TanStack/virtual.git",
"directory": "packages/solid-virtual"
},
"homepage": "https://tanstack.com/virtual",
Expand Down
2 changes: 1 addition & 1 deletion packages/solid-virtual/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig, mergeConfig } from 'vitest/config'
import { tanstackViteConfig } from '@tanstack/config/vite'
import { tanstackViteConfig } from '@tanstack/vite-config'
import solid from 'vite-plugin-solid'

const config = defineConfig({
Expand Down
2 changes: 1 addition & 1 deletion packages/svelte-virtual/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/TanStack/virtual.git",
"url": "git+https://github.com/TanStack/virtual.git",
"directory": "packages/svelte-virtual"
},
"homepage": "https://tanstack.com/virtual",
Expand Down
2 changes: 1 addition & 1 deletion packages/virtual-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/TanStack/virtual.git",
"url": "git+https://github.com/TanStack/virtual.git",
"directory": "packages/virtual-core"
},
"homepage": "https://tanstack.com/virtual",
Expand Down
2 changes: 1 addition & 1 deletion packages/virtual-core/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig, mergeConfig } from 'vitest/config'
import { tanstackViteConfig } from '@tanstack/config/vite'
import { tanstackViteConfig } from '@tanstack/vite-config'
import packageJson from './package.json'

const config = defineConfig({
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-virtual/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/TanStack/virtual.git",
"url": "git+https://github.com/TanStack/virtual.git",
"directory": "packages/vue-virtual"
},
"homepage": "https://tanstack.com/virtual",
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-virtual/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig, mergeConfig } from 'vitest/config'
import { tanstackViteConfig } from '@tanstack/config/vite'
import { tanstackViteConfig } from '@tanstack/vite-config'
import vue from '@vitejs/plugin-vue'

const config = defineConfig({
Expand Down
Loading
Loading