From c7a92a3f19e1b8405a11b4c647bc077773ef638c Mon Sep 17 00:00:00 2001 From: Walker Lockard Date: Sun, 10 Mar 2024 20:23:45 -0500 Subject: [PATCH 01/29] updated svelte-table adapter to Svelte 5 --- package.json | 2 +- packages/svelte-table/package.json | 2 +- packages/svelte-table/rollup.config.mjs | 8 +- packages/svelte-table/src/flex-render.svelte | 93 ++++ packages/svelte-table/src/index.ts | 129 +---- packages/svelte-table/src/placeholder.svelte | 5 - packages/svelte-table/src/placeholder.ts | 15 - packages/svelte-table/src/render-component.ts | 124 ++--- packages/svelte-table/src/table.svelte.ts | 69 +++ packages/svelte-table/src/types.ts | 5 + pnpm-lock.yaml | 444 +++++++----------- scripts/getRollupConfig.js | 18 +- 12 files changed, 389 insertions(+), 525 deletions(-) create mode 100644 packages/svelte-table/src/flex-render.svelte mode change 100755 => 100644 packages/svelte-table/src/index.ts delete mode 100644 packages/svelte-table/src/placeholder.svelte delete mode 100644 packages/svelte-table/src/placeholder.ts create mode 100644 packages/svelte-table/src/table.svelte.ts create mode 100644 packages/svelte-table/src/types.ts diff --git a/package.json b/package.json index c9d21de5a5..f6970fb65f 100644 --- a/package.json +++ b/package.json @@ -75,7 +75,7 @@ "rollup-plugin-visualizer": "^5.12.0", "sherif": "^0.7.0", "size-limit": "^11.0.2", - "svelte": "^4.2.8", + "svelte": "^5.0.0-next", "typescript": "5.3.3", "vitest": "^1.2.0" } diff --git a/packages/svelte-table/package.json b/packages/svelte-table/package.json index aba3590077..dffa2f903f 100644 --- a/packages/svelte-table/package.json +++ b/packages/svelte-table/package.json @@ -51,6 +51,6 @@ "@tanstack/table-core": "workspace:*" }, "peerDependencies": { - "svelte": "^4.0.0 || ^3.49.0" + "svelte": "^5.0.0-next" } } diff --git a/packages/svelte-table/rollup.config.mjs b/packages/svelte-table/rollup.config.mjs index eaa02049df..31d5dbd9c7 100644 --- a/packages/svelte-table/rollup.config.mjs +++ b/packages/svelte-table/rollup.config.mjs @@ -9,15 +9,9 @@ export default defineConfig( jsName: 'SvelteTable', outputFile: 'index', entryFile: 'src/index.ts', - external: [ - 'svelte', - 'svelte/internal', - 'svelte/store', - '@tanstack/table-core', - ], + external: ['svelte', 'svelte/store', '@tanstack/table-core'], globals: { svelte: 'Svelte', - 'svelte/internal': 'SvelteInternal', 'svelte/store': 'SvelteStore', }, }) diff --git a/packages/svelte-table/src/flex-render.svelte b/packages/svelte-table/src/flex-render.svelte new file mode 100644 index 0000000000..00b7e571ef --- /dev/null +++ b/packages/svelte-table/src/flex-render.svelte @@ -0,0 +1,93 @@ + + + + + + +{#snippet componentCell()} + {#if typeof content === 'string'} + {content} + {:else if content instanceof Function} + {@const result = content(context)} + {#if result instanceof RenderComponentConfig} + + {:else} + {result} + {/if} + {/if} +{/snippet} + +{@render componentCell()} diff --git a/packages/svelte-table/src/index.ts b/packages/svelte-table/src/index.ts old mode 100755 new mode 100644 index 0a7dd157cf..9f6908e8d1 --- a/packages/svelte-table/src/index.ts +++ b/packages/svelte-table/src/index.ts @@ -1,125 +1,4 @@ -import { - RowData, - createTable, - TableOptions, - TableOptionsResolved, -} from '@tanstack/table-core' -import Placeholder from './placeholder' -import type { ComponentType } from 'svelte' -import { SvelteComponent } from 'svelte/internal' -import { readable, writable, derived, Readable, get } from 'svelte/store' -import { renderComponent } from './render-component' - -export { renderComponent } from './render-component' - -export * from '@tanstack/table-core' - -function isSvelteServerComponent(component: any) { - return ( - typeof component === 'object' && - typeof component.$$render === 'function' && - typeof component.render === 'function' - ) -} - -function isSvelteClientComponent(component: any) { - let isHMR = '__SVELTE_HMR' in window - - return ( - component.prototype instanceof SvelteComponent || - (isHMR && - component.name?.startsWith('Proxy<') && - component.name?.endsWith('>')) - ) -} - -function isSvelteComponent(component: any) { - if (typeof document === 'undefined') { - return isSvelteServerComponent(component) - } else { - return isSvelteClientComponent(component) - } -} - -function wrapInPlaceholder(content: any) { - return renderComponent(Placeholder, { content }) -} - -export function flexRender(component: any, props: any): ComponentType | null { - if (!component) return null - - if (isSvelteComponent(component)) { - return renderComponent(component, props) - } - - if (typeof component === 'function') { - const result = component(props) - if (result === null || result === undefined) return null - - if (isSvelteComponent(result)) { - return renderComponent(result, props) - } - - return wrapInPlaceholder(result) - } - - return wrapInPlaceholder(component) -} - -type ReadableOrVal = T | Readable - -export function createSvelteTable( - options: ReadableOrVal> -) { - let optionsStore: Readable> - - if ('subscribe' in options) { - optionsStore = options - } else { - optionsStore = readable(options) - } - - let resolvedOptions: TableOptionsResolved = { - state: {}, // Dummy state - onStateChange: () => {}, // noop - renderFallbackValue: null, - ...get(optionsStore), - } - - let table = createTable(resolvedOptions) - - let stateStore = writable(/** @type {number} */ table.initialState) - // combine stores - let stateOptionsStore = derived([stateStore, optionsStore], s => s) - const tableReadable = readable(table, function start(set) { - const unsubscribe = stateOptionsStore.subscribe(([state, options]) => { - table.setOptions(prev => { - return { - ...prev, - ...options, - state: { ...state, ...options.state }, - // Similarly, we'll maintain both our internal state and any user-provided - // state. - onStateChange: updater => { - if (updater instanceof Function) { - stateStore.update(updater) - } else { - stateStore.set(updater) - } - - resolvedOptions.onStateChange?.(updater) - }, - } - }) - - // it didn't seem to rerender without setting the table - set(table) - }) - - return function stop() { - unsubscribe() - } - }) - - return tableReadable -} +export * from '@tanstack/table-core'; +export { default as FlexRender } from './flex-render.svelte'; +export { renderComponent } from './render-component'; +export { createSvelteTable } from './table.svelte'; diff --git a/packages/svelte-table/src/placeholder.svelte b/packages/svelte-table/src/placeholder.svelte deleted file mode 100644 index 3d7611c714..0000000000 --- a/packages/svelte-table/src/placeholder.svelte +++ /dev/null @@ -1,5 +0,0 @@ - - -{content} diff --git a/packages/svelte-table/src/placeholder.ts b/packages/svelte-table/src/placeholder.ts deleted file mode 100644 index b99a4c69b8..0000000000 --- a/packages/svelte-table/src/placeholder.ts +++ /dev/null @@ -1,15 +0,0 @@ -import type { SvelteComponentDev } from 'svelte/internal' -import { create_ssr_component, escape } from 'svelte/internal' -import PlaceholderClient from './placeholder.svelte' - -type X = typeof PlaceholderClient - -const PlaceholderServer = create_ssr_component( - ($$result: any, $$props: any, $$bindings: any, slots: any) => { - return `${escape($$props.content)}` - } -) as any as typeof SvelteComponentDev - -export default typeof document === 'undefined' - ? PlaceholderServer - : PlaceholderClient diff --git a/packages/svelte-table/src/render-component.ts b/packages/svelte-table/src/render-component.ts index 08f4fb1a65..c74b6c98b1 100644 --- a/packages/svelte-table/src/render-component.ts +++ b/packages/svelte-table/src/render-component.ts @@ -1,89 +1,41 @@ -import type { ComponentType, ComponentProps } from 'svelte' -import { - SvelteComponent, - claim_component, - create_component, - destroy_component, - init, - mount_component, - noop, - safe_not_equal, - transition_in, - transition_out, - create_ssr_component, - validate_component, -} from 'svelte/internal' +import type { SvelteComponent, ComponentType, ComponentProps } from 'svelte' -function create_fragment(ctx: any, Comp: any, props: any) { - let c: any - let current: any - c = new Comp({ props, $$inline: true }) - - return { - c() { - create_component(c.$$.fragment) - }, - l(nodes: any) { - claim_component(c.$$.fragment, nodes) - }, - m(target: any, anchor: any) { - // @ts-ignore - mount_component(c, target, anchor) - current = true - }, - p: noop, - i(local: any) { - if (current) return - transition_in(c.$$.fragment, local) - current = true - }, - o(local: any) { - transition_out(c.$$.fragment, local) - current = false - }, - d(detaching: any) { - destroy_component(c, detaching) - }, - } -} - -function renderClient( - Comp: T, - props: T extends ComponentType ? ComponentProps : any -) { - return class WrapperComp extends SvelteComponent { - constructor(options: any) { - super() - init( - this, - options, - null, - (ctx: any) => create_fragment(ctx, Comp, props), - safe_not_equal, - {}, - undefined - ) - } - } as ComponentType -} - -function renderServer( - Comp: T, - props: T extends ComponentType ? ComponentProps : any -) { - const WrapperComp = create_ssr_component( - ($$result: any, $$props: any, $$bindings: any, slots: any) => { - return `${validate_component(Comp, 'TableComponent').$$render( - $$result, - props, - {}, - {} - )}` - } - ) - - return WrapperComp as unknown as ComponentType +/** + * A helper class to make it easy to identify Svelte components in `columnDef.cell` and `columnDef.header` properties. + * @example + * ```svelte + * {#if cell.column.columnDef.cell(cell.getContext()) instanceof RenderComponentConfig} + * + * {/if} + * ``` + * */ +export class RenderComponentConfig { + constructor( + public component: ComponentType, + public props: ComponentProps | Record = {} + ) {} } -export const renderComponent = - typeof window === 'undefined' ? renderServer : renderClient +/** + * A helper function to help create cells from Svelte components through ColumnDef's `cell` and `header` properties. + * @param component A Svelte component + * @param props The props to pass to `component` + * @returns A `RenderComponentConfig` object that helps svelte-table know how to render the header/cell component. + * @example + * ```ts + * // +page.svelte + * const defaultColumns = [ + * columnHelper.accessor('name', { + * header: header => renderComponent(SortHeader, { label: 'Name', header }), + * }), + * columnHelper.accessor('state', { + * header: header => renderComponent(SortHeader, { label: 'State', header }), + * }), + * ] + * ``` + * @see {@link https://tanstack.com/table/latest/docs/guide/column-defs} + */ +export const renderComponent = ( + component: ComponentType, + props: ComponentProps +) => new RenderComponentConfig(component, props) diff --git a/packages/svelte-table/src/table.svelte.ts b/packages/svelte-table/src/table.svelte.ts new file mode 100644 index 0000000000..daf8e4440e --- /dev/null +++ b/packages/svelte-table/src/table.svelte.ts @@ -0,0 +1,69 @@ +import { + createTable, + type RowData, + type TableOptions, + type TableOptionsResolved, + type TableState, +} from '@tanstack/table-core' + +/** + * Creates a tanstack table object that's reactive using Svelte 5 runes. For more + * information on why this returns a function, see Svelte's + * {@link https://svelte-5-preview.vercel.app/docs/universal-reactivity#gotchas gotchas} + * note for Universal Reactivity. + * @param options Table options to create the table with. + * @returns A reactive table object. + * @example + * ```svelte + * + * + * + * + * {#each table().getHeaderGroups() as headerGroup} + * + * {#each headerGroup.headers as header} + * + * {/each} + * + * {/each} + * + * + *
+ * + *
+ * ``` + * @see {@link https://svelte-5-preview.vercel.app/docs/runes} + * @see {@link https://svelte-5-preview.vercel.app/docs/universal-reactivity} + */ +export function createSvelteTable( + options: TableOptions +) { + const resolvedOptions: TableOptionsResolved = { + state: {}, + onStateChange() {}, + renderFallbackValue: null, + ...options, + } + + const _table = createTable(resolvedOptions) + let _state = $state>(_table.initialState) + + const table = $derived.by(() => { + return createTable({ + ...resolvedOptions, + state: { ..._state }, + onStateChange(updater) { + if (updater instanceof Function) { + _state = updater({ ...table.getState(), ..._state }) + } else { + _state = updater + } + resolvedOptions.onStateChange?.(updater) + }, + }) + }) + + return () => table +} diff --git a/packages/svelte-table/src/types.ts b/packages/svelte-table/src/types.ts new file mode 100644 index 0000000000..3659b8b6d7 --- /dev/null +++ b/packages/svelte-table/src/types.ts @@ -0,0 +1,5 @@ +import type { CellContext, HeaderContext, RowData } from '@tanstack/table-core'; + +export type HeaderOrCellContext = + | HeaderContext + | CellContext; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2185d645d9..f1339ff5fc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -25,25 +25,25 @@ importers: version: 8.4.1 '@rollup/plugin-babel': specifier: ^6.0.4 - version: 6.0.4(@babel/core@7.23.7)(rollup@4.9.5) + version: 6.0.4(@babel/core@7.23.7)(rollup@4.12.1) '@rollup/plugin-commonjs': specifier: ^25.0.7 - version: 25.0.7(rollup@4.9.5) + version: 25.0.7(rollup@4.12.1) '@rollup/plugin-node-resolve': specifier: ^15.2.3 - version: 15.2.3(rollup@4.9.5) + version: 15.2.3(rollup@4.12.1) '@rollup/plugin-replace': specifier: ^5.0.5 - version: 5.0.5(rollup@4.9.5) + version: 5.0.5(rollup@4.12.1) '@rollup/plugin-terser': specifier: ^0.4.4 - version: 0.4.4(rollup@4.9.5) + version: 0.4.4(rollup@4.12.1) '@size-limit/preset-small-lib': specifier: ^11.0.2 version: 11.0.2(size-limit@11.0.2) '@tanstack/config': specifier: ^0.4.2 - version: 0.4.2(@types/node@18.19.7)(esbuild@0.19.12)(rollup@4.9.5)(typescript@5.3.3)(vite@5.0.11) + version: 0.4.2(@types/node@18.19.7)(esbuild@0.19.12)(rollup@4.12.1)(typescript@5.3.3)(vite@5.0.11) '@testing-library/jest-dom': specifier: ^6.2.0 version: 6.2.0(vitest@1.2.0) @@ -76,7 +76,7 @@ importers: version: 4.0.0-alpha.8 prettier-plugin-svelte: specifier: ^3.1.2 - version: 3.1.2(prettier@4.0.0-alpha.8)(svelte@4.2.8) + version: 3.1.2(prettier@4.0.0-alpha.8)(svelte@5.0.0-next.73) react: specifier: ^18.2.0 version: 18.2.0 @@ -88,16 +88,16 @@ importers: version: 5.0.5 rollup: specifier: ^4.9.5 - version: 4.9.5 + version: 4.12.1 rollup-plugin-size: specifier: ^0.3.1 version: 0.3.1 rollup-plugin-svelte: specifier: ^7.1.6 - version: 7.1.6(rollup@4.9.5)(svelte@4.2.8) + version: 7.1.6(rollup@4.12.1)(svelte@5.0.0-next.73) rollup-plugin-visualizer: specifier: ^5.12.0 - version: 5.12.0(rollup@4.9.5) + version: 5.12.0(rollup@4.12.1) sherif: specifier: ^0.7.0 version: 0.7.0 @@ -105,8 +105,8 @@ importers: specifier: ^11.0.2 version: 11.0.2 svelte: - specifier: ^4.2.8 - version: 4.2.8 + specifier: ^5.0.0-next + version: 5.0.0-next.73 typescript: specifier: 5.3.3 version: 5.3.3 @@ -128,7 +128,7 @@ importers: devDependencies: '@rollup/plugin-replace': specifier: ^5.0.5 - version: 5.0.5(rollup@4.9.5) + version: 5.0.5(rollup@4.12.1) '@types/react': specifier: ^18.2.48 version: 18.2.48 @@ -165,7 +165,7 @@ importers: version: 8.4.1 '@rollup/plugin-replace': specifier: ^5.0.5 - version: 5.0.5(rollup@4.9.5) + version: 5.0.5(rollup@4.12.1) '@types/bootstrap': specifier: ^5.2.10 version: 5.2.10 @@ -214,7 +214,7 @@ importers: devDependencies: '@rollup/plugin-replace': specifier: ^5.0.5 - version: 5.0.5(rollup@4.9.5) + version: 5.0.5(rollup@4.12.1) '@types/react': specifier: ^18.2.48 version: 18.2.48 @@ -242,7 +242,7 @@ importers: devDependencies: '@rollup/plugin-replace': specifier: ^5.0.5 - version: 5.0.5(rollup@4.9.5) + version: 5.0.5(rollup@4.12.1) '@types/react': specifier: ^18.2.48 version: 18.2.48 @@ -273,7 +273,7 @@ importers: devDependencies: '@rollup/plugin-replace': specifier: ^5.0.5 - version: 5.0.5(rollup@4.9.5) + version: 5.0.5(rollup@4.12.1) '@types/react': specifier: ^18.2.48 version: 18.2.48 @@ -304,7 +304,7 @@ importers: devDependencies: '@rollup/plugin-replace': specifier: ^5.0.5 - version: 5.0.5(rollup@4.9.5) + version: 5.0.5(rollup@4.12.1) '@types/react': specifier: ^18.2.48 version: 18.2.48 @@ -335,7 +335,7 @@ importers: devDependencies: '@rollup/plugin-replace': specifier: ^5.0.5 - version: 5.0.5(rollup@4.9.5) + version: 5.0.5(rollup@4.12.1) '@types/react': specifier: ^18.2.48 version: 18.2.48 @@ -366,7 +366,7 @@ importers: devDependencies: '@rollup/plugin-replace': specifier: ^5.0.5 - version: 5.0.5(rollup@4.9.5) + version: 5.0.5(rollup@4.12.1) '@types/react': specifier: ^18.2.48 version: 18.2.48 @@ -394,7 +394,7 @@ importers: devDependencies: '@rollup/plugin-replace': specifier: ^5.0.5 - version: 5.0.5(rollup@4.9.5) + version: 5.0.5(rollup@4.12.1) '@types/react': specifier: ^18.2.48 version: 18.2.48 @@ -422,7 +422,7 @@ importers: devDependencies: '@rollup/plugin-replace': specifier: ^5.0.5 - version: 5.0.5(rollup@4.9.5) + version: 5.0.5(rollup@4.12.1) '@types/react': specifier: ^18.2.48 version: 18.2.48 @@ -453,7 +453,7 @@ importers: devDependencies: '@rollup/plugin-replace': specifier: ^5.0.5 - version: 5.0.5(rollup@4.9.5) + version: 5.0.5(rollup@4.12.1) '@types/react': specifier: ^18.2.48 version: 18.2.48 @@ -484,7 +484,7 @@ importers: devDependencies: '@rollup/plugin-replace': specifier: ^5.0.5 - version: 5.0.5(rollup@4.9.5) + version: 5.0.5(rollup@4.12.1) '@types/react': specifier: ^18.2.48 version: 18.2.48 @@ -518,7 +518,7 @@ importers: devDependencies: '@rollup/plugin-replace': specifier: ^5.0.5 - version: 5.0.5(rollup@4.9.5) + version: 5.0.5(rollup@4.12.1) '@types/react': specifier: ^18.2.48 version: 18.2.48 @@ -549,7 +549,7 @@ importers: devDependencies: '@rollup/plugin-replace': specifier: ^5.0.5 - version: 5.0.5(rollup@4.9.5) + version: 5.0.5(rollup@4.12.1) '@types/react': specifier: ^18.2.48 version: 18.2.48 @@ -580,7 +580,7 @@ importers: devDependencies: '@rollup/plugin-replace': specifier: ^5.0.5 - version: 5.0.5(rollup@4.9.5) + version: 5.0.5(rollup@4.12.1) '@types/react': specifier: ^18.2.48 version: 18.2.48 @@ -611,7 +611,7 @@ importers: devDependencies: '@rollup/plugin-replace': specifier: ^5.0.5 - version: 5.0.5(rollup@4.9.5) + version: 5.0.5(rollup@4.12.1) '@types/react': specifier: ^18.2.48 version: 18.2.48 @@ -642,7 +642,7 @@ importers: devDependencies: '@rollup/plugin-replace': specifier: ^5.0.5 - version: 5.0.5(rollup@4.9.5) + version: 5.0.5(rollup@4.12.1) '@types/react': specifier: ^18.2.48 version: 18.2.48 @@ -688,7 +688,7 @@ importers: version: 8.4.1 '@rollup/plugin-replace': specifier: ^5.0.5 - version: 5.0.5(rollup@4.9.5) + version: 5.0.5(rollup@4.12.1) '@types/react': specifier: ^18.2.48 version: 18.2.48 @@ -731,7 +731,7 @@ importers: version: 8.4.1 '@rollup/plugin-replace': specifier: ^5.0.5 - version: 5.0.5(rollup@4.9.5) + version: 5.0.5(rollup@4.12.1) '@types/react': specifier: ^18.2.48 version: 18.2.48 @@ -762,7 +762,7 @@ importers: devDependencies: '@rollup/plugin-replace': specifier: ^5.0.5 - version: 5.0.5(rollup@4.9.5) + version: 5.0.5(rollup@4.12.1) '@types/react': specifier: ^18.2.48 version: 18.2.48 @@ -796,7 +796,7 @@ importers: devDependencies: '@rollup/plugin-replace': specifier: ^5.0.5 - version: 5.0.5(rollup@4.9.5) + version: 5.0.5(rollup@4.12.1) '@types/react': specifier: ^18.2.48 version: 18.2.48 @@ -839,7 +839,7 @@ importers: devDependencies: '@rollup/plugin-replace': specifier: ^5.0.5 - version: 5.0.5(rollup@4.9.5) + version: 5.0.5(rollup@4.12.1) '@types/react': specifier: ^18.2.48 version: 18.2.48 @@ -870,7 +870,7 @@ importers: devDependencies: '@rollup/plugin-replace': specifier: ^5.0.5 - version: 5.0.5(rollup@4.9.5) + version: 5.0.5(rollup@4.12.1) '@types/react': specifier: ^18.2.48 version: 18.2.48 @@ -901,7 +901,7 @@ importers: devDependencies: '@rollup/plugin-replace': specifier: ^5.0.5 - version: 5.0.5(rollup@4.9.5) + version: 5.0.5(rollup@4.12.1) '@types/react': specifier: ^18.2.48 version: 18.2.48 @@ -932,7 +932,7 @@ importers: devDependencies: '@rollup/plugin-replace': specifier: ^5.0.5 - version: 5.0.5(rollup@4.9.5) + version: 5.0.5(rollup@4.12.1) '@types/react': specifier: ^18.2.48 version: 18.2.48 @@ -963,7 +963,7 @@ importers: devDependencies: '@rollup/plugin-replace': specifier: ^5.0.5 - version: 5.0.5(rollup@4.9.5) + version: 5.0.5(rollup@4.12.1) '@types/react': specifier: ^18.2.48 version: 18.2.48 @@ -997,7 +997,7 @@ importers: devDependencies: '@rollup/plugin-replace': specifier: ^5.0.5 - version: 5.0.5(rollup@4.9.5) + version: 5.0.5(rollup@4.12.1) '@types/react': specifier: ^18.2.48 version: 18.2.48 @@ -1034,7 +1034,7 @@ importers: devDependencies: '@rollup/plugin-replace': specifier: ^5.0.5 - version: 5.0.5(rollup@4.9.5) + version: 5.0.5(rollup@4.12.1) '@types/react': specifier: ^18.2.48 version: 18.2.48 @@ -1068,7 +1068,7 @@ importers: devDependencies: '@rollup/plugin-replace': specifier: ^5.0.5 - version: 5.0.5(rollup@4.9.5) + version: 5.0.5(rollup@4.12.1) '@types/react': specifier: ^18.2.48 version: 18.2.48 @@ -1240,7 +1240,7 @@ importers: devDependencies: '@rollup/plugin-replace': specifier: ^5.0.5 - version: 5.0.5(rollup@4.9.5) + version: 5.0.5(rollup@4.12.1) '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 version: 3.0.1(svelte@4.2.8)(vite@5.0.11) @@ -1267,7 +1267,7 @@ importers: devDependencies: '@rollup/plugin-replace': specifier: ^5.0.5 - version: 5.0.5(rollup@4.9.5) + version: 5.0.5(rollup@4.12.1) '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 version: 3.0.1(svelte@4.2.8)(vite@5.0.11) @@ -1297,7 +1297,7 @@ importers: version: 8.4.1 '@rollup/plugin-replace': specifier: ^5.0.5 - version: 5.0.5(rollup@4.9.5) + version: 5.0.5(rollup@4.12.1) '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 version: 3.0.1(svelte@4.2.8)(vite@5.0.11) @@ -1327,7 +1327,7 @@ importers: version: 8.4.1 '@rollup/plugin-replace': specifier: ^5.0.5 - version: 5.0.5(rollup@4.9.5) + version: 5.0.5(rollup@4.12.1) '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 version: 3.0.1(svelte@4.2.8)(vite@5.0.11) @@ -1354,7 +1354,7 @@ importers: devDependencies: '@rollup/plugin-replace': specifier: ^5.0.5 - version: 5.0.5(rollup@4.9.5) + version: 5.0.5(rollup@4.12.1) '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 version: 3.0.1(svelte@4.2.8)(vite@5.0.11) @@ -1384,7 +1384,7 @@ importers: version: 8.4.1 '@rollup/plugin-replace': specifier: ^5.0.5 - version: 5.0.5(rollup@4.9.5) + version: 5.0.5(rollup@4.12.1) '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 version: 3.0.1(svelte@4.2.8)(vite@5.0.11) @@ -1417,7 +1417,7 @@ importers: version: 8.4.1 '@rollup/plugin-replace': specifier: ^5.0.5 - version: 5.0.5(rollup@4.9.5) + version: 5.0.5(rollup@4.12.1) '@sveltejs/vite-plugin-svelte': specifier: ^3.0.1 version: 3.0.1(svelte@4.2.8)(vite@5.0.11) @@ -1685,8 +1685,8 @@ importers: specifier: workspace:* version: link:../table-core svelte: - specifier: ^4.0.0 || ^3.49.0 - version: 3.57.0 + specifier: ^5.0.0-next + version: 5.0.0-next.73 packages/table-core: {} @@ -1711,7 +1711,6 @@ packages: dependencies: '@jridgewell/gen-mapping': 0.3.2 '@jridgewell/trace-mapping': 0.3.20 - dev: true /@asamuzakjp/dom-selector@2.0.2: resolution: {integrity: sha512-x1KXOatwofR6ZAYzXRBL5wrdV0vwNxlTCK9NCuLqAzQYARqGcvFwiJA6A1ERuh+dgeA4Dxm3JBYictIes+SqUQ==} @@ -3740,17 +3739,14 @@ packages: '@jridgewell/set-array': 1.1.2 '@jridgewell/sourcemap-codec': 1.4.14 '@jridgewell/trace-mapping': 0.3.17 - dev: true /@jridgewell/resolve-uri@3.1.0: resolution: {integrity: sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==} engines: {node: '>=6.0.0'} - dev: true /@jridgewell/set-array@1.1.2: resolution: {integrity: sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==} engines: {node: '>=6.0.0'} - dev: true /@jridgewell/source-map@0.3.5: resolution: {integrity: sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ==} @@ -3761,7 +3757,6 @@ packages: /@jridgewell/sourcemap-codec@1.4.14: resolution: {integrity: sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==} - dev: true /@jridgewell/sourcemap-codec@1.4.15: resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==} @@ -3771,14 +3766,12 @@ packages: dependencies: '@jridgewell/resolve-uri': 3.1.0 '@jridgewell/sourcemap-codec': 1.4.14 - dev: true /@jridgewell/trace-mapping@0.3.20: resolution: {integrity: sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==} dependencies: '@jridgewell/resolve-uri': 3.1.0 '@jridgewell/sourcemap-codec': 1.4.15 - dev: true /@microsoft/api-extractor-model@7.28.3(@types/node@18.19.7): resolution: {integrity: sha512-wT/kB2oDbdZXITyDh2SQLzaWwTOFbV326fP0pUwNW00WeliARs0qjmXBWmGWardEzp2U3/axkO3Lboqun6vrig==} @@ -4400,7 +4393,7 @@ packages: warning: 4.0.3 dev: false - /@rollup/plugin-babel@6.0.4(@babel/core@7.23.7)(rollup@4.9.5): + /@rollup/plugin-babel@6.0.4(@babel/core@7.23.7)(rollup@4.12.1): resolution: {integrity: sha512-YF7Y52kFdFT/xVSuVdjkV5ZdX/3YtmX0QulG+x0taQOtJdHYzVU61aSSkAgVJ7NOv6qPkIYiJSgSWWN/DM5sGw==} engines: {node: '>=14.0.0'} peerDependencies: @@ -4415,11 +4408,11 @@ packages: dependencies: '@babel/core': 7.23.7 '@babel/helper-module-imports': 7.22.15 - '@rollup/pluginutils': 5.1.0(rollup@4.9.5) - rollup: 4.9.5 + '@rollup/pluginutils': 5.1.0(rollup@4.12.1) + rollup: 4.12.1 dev: true - /@rollup/plugin-commonjs@25.0.7(rollup@4.9.5): + /@rollup/plugin-commonjs@25.0.7(rollup@4.12.1): resolution: {integrity: sha512-nEvcR+LRjEjsaSsc4x3XZfCCvZIaSMenZu/OiwOKGN2UhQpAYI7ru7czFvyWbErlpoGjnSX3D5Ch5FcMA3kRWQ==} engines: {node: '>=14.0.0'} peerDependencies: @@ -4428,16 +4421,16 @@ packages: rollup: optional: true dependencies: - '@rollup/pluginutils': 5.0.2(rollup@4.9.5) + '@rollup/pluginutils': 5.0.2(rollup@4.12.1) commondir: 1.0.1 estree-walker: 2.0.2 glob: 8.1.0 is-reference: 1.2.1 magic-string: 0.30.5 - rollup: 4.9.5 + rollup: 4.12.1 dev: true - /@rollup/plugin-node-resolve@15.2.3(rollup@4.9.5): + /@rollup/plugin-node-resolve@15.2.3(rollup@4.12.1): resolution: {integrity: sha512-j/lym8nf5E21LwBT4Df1VD6hRO2L2iwUeUmP7litikRsVp1H6NWx20NEp0Y7su+7XGc476GnXXc4kFeZNGmaSQ==} engines: {node: '>=14.0.0'} peerDependencies: @@ -4446,16 +4439,16 @@ packages: rollup: optional: true dependencies: - '@rollup/pluginutils': 5.1.0(rollup@4.9.5) + '@rollup/pluginutils': 5.1.0(rollup@4.12.1) '@types/resolve': 1.20.2 deepmerge: 4.3.1 is-builtin-module: 3.2.1 is-module: 1.0.0 resolve: 1.22.1 - rollup: 4.9.5 + rollup: 4.12.1 dev: true - /@rollup/plugin-replace@5.0.5(rollup@4.9.5): + /@rollup/plugin-replace@5.0.5(rollup@4.12.1): resolution: {integrity: sha512-rYO4fOi8lMaTg/z5Jb+hKnrHHVn8j2lwkqwyS4kTRhKyWOLf2wST2sWXr4WzWiTcoHTp2sTjqUbqIj2E39slKQ==} engines: {node: '>=14.0.0'} peerDependencies: @@ -4464,12 +4457,12 @@ packages: rollup: optional: true dependencies: - '@rollup/pluginutils': 5.1.0(rollup@4.9.5) + '@rollup/pluginutils': 5.1.0(rollup@4.12.1) magic-string: 0.30.5 - rollup: 4.9.5 + rollup: 4.12.1 dev: true - /@rollup/plugin-terser@0.4.4(rollup@4.9.5): + /@rollup/plugin-terser@0.4.4(rollup@4.12.1): resolution: {integrity: sha512-XHeJC5Bgvs8LfukDwWZp7yeqin6ns8RTl2B9avbejt6tZqsqvVoWI7ZTQrcNsfKEDWBTnTxM8nMDkO2IFFbd0A==} engines: {node: '>=14.0.0'} peerDependencies: @@ -4478,7 +4471,7 @@ packages: rollup: optional: true dependencies: - rollup: 4.9.5 + rollup: 4.12.1 serialize-javascript: 6.0.1 smob: 1.4.1 terser: 5.26.0 @@ -4492,7 +4485,7 @@ packages: picomatch: 2.3.1 dev: true - /@rollup/pluginutils@5.0.2(rollup@4.9.5): + /@rollup/pluginutils@5.0.2(rollup@4.12.1): resolution: {integrity: sha512-pTd9rIsP92h+B6wWwFbW8RkZv4hiR/xKsqre4SIuAOaOEQRxi0lqLke9k2/7WegC85GgUs9pjmOjCUi3In4vwA==} engines: {node: '>=14.0.0'} peerDependencies: @@ -4501,13 +4494,13 @@ packages: rollup: optional: true dependencies: - '@types/estree': 1.0.0 + '@types/estree': 1.0.5 estree-walker: 2.0.2 picomatch: 2.3.1 - rollup: 4.9.5 + rollup: 4.12.1 dev: true - /@rollup/pluginutils@5.1.0(rollup@4.9.5): + /@rollup/pluginutils@5.1.0(rollup@4.12.1): resolution: {integrity: sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g==} engines: {node: '>=14.0.0'} peerDependencies: @@ -4519,211 +4512,107 @@ packages: '@types/estree': 1.0.0 estree-walker: 2.0.2 picomatch: 2.3.1 - rollup: 4.9.5 + rollup: 4.12.1 dev: true - /@rollup/rollup-android-arm-eabi@4.9.2: - resolution: {integrity: sha512-RKzxFxBHq9ysZ83fn8Iduv3A283K7zPPYuhL/z9CQuyFrjwpErJx0h4aeb/bnJ+q29GRLgJpY66ceQ/Wcsn3wA==} + /@rollup/rollup-android-arm-eabi@4.12.1: + resolution: {integrity: sha512-iU2Sya8hNn1LhsYyf0N+L4Gf9Qc+9eBTJJJsaOGUp+7x4n2M9dxTt8UvhJl3oeftSjblSlpCfvjA/IfP3g5VjQ==} cpu: [arm] os: [android] requiresBuild: true dev: true optional: true - /@rollup/rollup-android-arm-eabi@4.9.5: - resolution: {integrity: sha512-idWaG8xeSRCfRq9KpRysDHJ/rEHBEXcHuJ82XY0yYFIWnLMjZv9vF/7DOq8djQ2n3Lk6+3qfSH8AqlmHlmi1MA==} - cpu: [arm] - os: [android] - requiresBuild: true - dev: true - optional: true - - /@rollup/rollup-android-arm64@4.9.2: - resolution: {integrity: sha512-yZ+MUbnwf3SHNWQKJyWh88ii2HbuHCFQnAYTeeO1Nb8SyEiWASEi5dQUygt3ClHWtA9My9RQAYkjvrsZ0WK8Xg==} + /@rollup/rollup-android-arm64@4.12.1: + resolution: {integrity: sha512-wlzcWiH2Ir7rdMELxFE5vuM7D6TsOcJ2Yw0c3vaBR3VOsJFVTx9xvwnAvhgU5Ii8Gd6+I11qNHwndDscIm0HXg==} cpu: [arm64] os: [android] requiresBuild: true dev: true optional: true - /@rollup/rollup-android-arm64@4.9.5: - resolution: {integrity: sha512-f14d7uhAMtsCGjAYwZGv6TwuS3IFaM4ZnGMUn3aCBgkcHAYErhV1Ad97WzBvS2o0aaDv4mVz+syiN0ElMyfBPg==} + /@rollup/rollup-darwin-arm64@4.12.1: + resolution: {integrity: sha512-YRXa1+aZIFN5BaImK+84B3uNK8C6+ynKLPgvn29X9s0LTVCByp54TB7tdSMHDR7GTV39bz1lOmlLDuedgTwwHg==} cpu: [arm64] - os: [android] - requiresBuild: true - dev: true - optional: true - - /@rollup/rollup-darwin-arm64@4.9.2: - resolution: {integrity: sha512-vqJ/pAUh95FLc/G/3+xPqlSBgilPnauVf2EXOQCZzhZJCXDXt/5A8mH/OzU6iWhb3CNk5hPJrh8pqJUPldN5zw==} - cpu: [arm64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - - /@rollup/rollup-darwin-arm64@4.9.5: - resolution: {integrity: sha512-ndoXeLx455FffL68OIUrVr89Xu1WLzAG4n65R8roDlCoYiQcGGg6MALvs2Ap9zs7AHg8mpHtMpwC8jBBjZrT/w==} - cpu: [arm64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - - /@rollup/rollup-darwin-x64@4.9.2: - resolution: {integrity: sha512-otPHsN5LlvedOprd3SdfrRNhOahhVBwJpepVKUN58L0RnC29vOAej1vMEaVU6DadnpjivVsNTM5eNt0CcwTahw==} - cpu: [x64] os: [darwin] requiresBuild: true dev: true optional: true - /@rollup/rollup-darwin-x64@4.9.5: - resolution: {integrity: sha512-UmElV1OY2m/1KEEqTlIjieKfVwRg0Zwg4PLgNf0s3glAHXBN99KLpw5A5lrSYCa1Kp63czTpVll2MAqbZYIHoA==} + /@rollup/rollup-darwin-x64@4.12.1: + resolution: {integrity: sha512-opjWJ4MevxeA8FhlngQWPBOvVWYNPFkq6/25rGgG+KOy0r8clYwL1CFd+PGwRqqMFVQ4/Qd3sQu5t7ucP7C/Uw==} cpu: [x64] os: [darwin] requiresBuild: true dev: true optional: true - /@rollup/rollup-linux-arm-gnueabihf@4.9.2: - resolution: {integrity: sha512-ewG5yJSp+zYKBYQLbd1CUA7b1lSfIdo9zJShNTyc2ZP1rcPrqyZcNlsHgs7v1zhgfdS+kW0p5frc0aVqhZCiYQ==} + /@rollup/rollup-linux-arm-gnueabihf@4.12.1: + resolution: {integrity: sha512-uBkwaI+gBUlIe+EfbNnY5xNyXuhZbDSx2nzzW8tRMjUmpScd6lCQYKY2V9BATHtv5Ef2OBq6SChEP8h+/cxifQ==} cpu: [arm] os: [linux] requiresBuild: true dev: true optional: true - /@rollup/rollup-linux-arm-gnueabihf@4.9.5: - resolution: {integrity: sha512-Q0LcU61v92tQB6ae+udZvOyZ0wfpGojtAKrrpAaIqmJ7+psq4cMIhT/9lfV6UQIpeItnq/2QDROhNLo00lOD1g==} - cpu: [arm] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@rollup/rollup-linux-arm64-gnu@4.9.2: - resolution: {integrity: sha512-pL6QtV26W52aCWTG1IuFV3FMPL1m4wbsRG+qijIvgFO/VBsiXJjDPE/uiMdHBAO6YcpV4KvpKtd0v3WFbaxBtg==} - cpu: [arm64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@rollup/rollup-linux-arm64-gnu@4.9.5: - resolution: {integrity: sha512-dkRscpM+RrR2Ee3eOQmRWFjmV/payHEOrjyq1VZegRUa5OrZJ2MAxBNs05bZuY0YCtpqETDy1Ix4i/hRqX98cA==} - cpu: [arm64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@rollup/rollup-linux-arm64-musl@4.9.2: - resolution: {integrity: sha512-On+cc5EpOaTwPSNetHXBuqylDW+765G/oqB9xGmWU3npEhCh8xu0xqHGUA+4xwZLqBbIZNcBlKSIYfkBm6ko7g==} + /@rollup/rollup-linux-arm64-gnu@4.12.1: + resolution: {integrity: sha512-0bK9aG1kIg0Su7OcFTlexkVeNZ5IzEsnz1ept87a0TUgZ6HplSgkJAnFpEVRW7GRcikT4GlPV0pbtVedOaXHQQ==} cpu: [arm64] os: [linux] requiresBuild: true dev: true optional: true - /@rollup/rollup-linux-arm64-musl@4.9.5: - resolution: {integrity: sha512-QaKFVOzzST2xzY4MAmiDmURagWLFh+zZtttuEnuNn19AiZ0T3fhPyjPPGwLNdiDT82ZE91hnfJsUiDwF9DClIQ==} + /@rollup/rollup-linux-arm64-musl@4.12.1: + resolution: {integrity: sha512-qB6AFRXuP8bdkBI4D7UPUbE7OQf7u5OL+R94JE42Z2Qjmyj74FtDdLGeriRyBDhm4rQSvqAGCGC01b8Fu2LthQ==} cpu: [arm64] os: [linux] requiresBuild: true dev: true optional: true - /@rollup/rollup-linux-riscv64-gnu@4.9.2: - resolution: {integrity: sha512-Wnx/IVMSZ31D/cO9HSsU46FjrPWHqtdF8+0eyZ1zIB5a6hXaZXghUKpRrC4D5DcRTZOjml2oBhXoqfGYyXKipw==} + /@rollup/rollup-linux-riscv64-gnu@4.12.1: + resolution: {integrity: sha512-sHig3LaGlpNgDj5o8uPEoGs98RII8HpNIqFtAI8/pYABO8i0nb1QzT0JDoXF/pxzqO+FkxvwkHZo9k0NJYDedg==} cpu: [riscv64] os: [linux] requiresBuild: true dev: true optional: true - /@rollup/rollup-linux-riscv64-gnu@4.9.5: - resolution: {integrity: sha512-HeGqmRJuyVg6/X6MpE2ur7GbymBPS8Np0S/vQFHDmocfORT+Zt76qu+69NUoxXzGqVP1pzaY6QIi0FJWLC3OPA==} - cpu: [riscv64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@rollup/rollup-linux-x64-gnu@4.9.2: - resolution: {integrity: sha512-ym5x1cj4mUAMBummxxRkI4pG5Vht1QMsJexwGP8547TZ0sox9fCLDHw9KCH9c1FO5d9GopvkaJsBIOkTKxksdw==} + /@rollup/rollup-linux-x64-gnu@4.12.1: + resolution: {integrity: sha512-nD3YcUv6jBJbBNFvSbp0IV66+ba/1teuBcu+fBBPZ33sidxitc6ErhON3JNavaH8HlswhWMC3s5rgZpM4MtPqQ==} cpu: [x64] os: [linux] requiresBuild: true dev: true optional: true - /@rollup/rollup-linux-x64-gnu@4.9.5: - resolution: {integrity: sha512-Dq1bqBdLaZ1Gb/l2e5/+o3B18+8TI9ANlA1SkejZqDgdU/jK/ThYaMPMJpVMMXy2uRHvGKbkz9vheVGdq3cJfA==} + /@rollup/rollup-linux-x64-musl@4.12.1: + resolution: {integrity: sha512-7/XVZqgBby2qp/cO0TQ8uJK+9xnSdJ9ct6gSDdEr4MfABrjTyrW6Bau7HQ73a2a5tPB7hno49A0y1jhWGDN9OQ==} cpu: [x64] os: [linux] requiresBuild: true dev: true optional: true - /@rollup/rollup-linux-x64-musl@4.9.2: - resolution: {integrity: sha512-m0hYELHGXdYx64D6IDDg/1vOJEaiV8f1G/iO+tejvRCJNSwK4jJ15e38JQy5Q6dGkn1M/9KcyEOwqmlZ2kqaZg==} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@rollup/rollup-linux-x64-musl@4.9.5: - resolution: {integrity: sha512-ezyFUOwldYpj7AbkwyW9AJ203peub81CaAIVvckdkyH8EvhEIoKzaMFJj0G4qYJ5sw3BpqhFrsCc30t54HV8vg==} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@rollup/rollup-win32-arm64-msvc@4.9.2: - resolution: {integrity: sha512-x1CWburlbN5JjG+juenuNa4KdedBdXLjZMp56nHFSHTOsb/MI2DYiGzLtRGHNMyydPGffGId+VgjOMrcltOksA==} + /@rollup/rollup-win32-arm64-msvc@4.12.1: + resolution: {integrity: sha512-CYc64bnICG42UPL7TrhIwsJW4QcKkIt9gGlj21gq3VV0LL6XNb1yAdHVp1pIi9gkts9gGcT3OfUYHjGP7ETAiw==} cpu: [arm64] os: [win32] requiresBuild: true dev: true optional: true - /@rollup/rollup-win32-arm64-msvc@4.9.5: - resolution: {integrity: sha512-aHSsMnUw+0UETB0Hlv7B/ZHOGY5bQdwMKJSzGfDfvyhnpmVxLMGnQPGNE9wgqkLUs3+gbG1Qx02S2LLfJ5GaRQ==} - cpu: [arm64] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /@rollup/rollup-win32-ia32-msvc@4.9.2: - resolution: {integrity: sha512-VVzCB5yXR1QlfsH1Xw1zdzQ4Pxuzv+CPr5qpElpKhVxlxD3CRdfubAG9mJROl6/dmj5gVYDDWk8sC+j9BI9/kQ==} + /@rollup/rollup-win32-ia32-msvc@4.12.1: + resolution: {integrity: sha512-LN+vnlZ9g0qlHGlS920GR4zFCqAwbv2lULrR29yGaWP9u7wF5L7GqWu9Ah6/kFZPXPUkpdZwd//TNR+9XC9hvA==} cpu: [ia32] os: [win32] requiresBuild: true dev: true optional: true - /@rollup/rollup-win32-ia32-msvc@4.9.5: - resolution: {integrity: sha512-AiqiLkb9KSf7Lj/o1U3SEP9Zn+5NuVKgFdRIZkvd4N0+bYrTOovVd0+LmYCPQGbocT4kvFyK+LXCDiXPBF3fyA==} - cpu: [ia32] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /@rollup/rollup-win32-x64-msvc@4.9.2: - resolution: {integrity: sha512-SYRedJi+mweatroB+6TTnJYLts0L0bosg531xnQWtklOI6dezEagx4Q0qDyvRdK+qgdA3YZpjjGuPFtxBmddBA==} - cpu: [x64] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /@rollup/rollup-win32-x64-msvc@4.9.5: - resolution: {integrity: sha512-1q+mykKE3Vot1kaFJIDoUFv5TuW+QQVaf2FmTT9krg86pQrGStOSJJ0Zil7CFagyxDuouTepzt5Y5TVzyajOdQ==} + /@rollup/rollup-win32-x64-msvc@4.12.1: + resolution: {integrity: sha512-n+vkrSyphvmU0qkQ6QBNXCGr2mKjhP08mPRM/Xp5Ck2FV4NrHU+y6axzDeixUrCBHVUS51TZhjqrKBBsHLKb2Q==} cpu: [x64] os: [win32] requiresBuild: true @@ -4867,7 +4756,7 @@ packages: tslib: 2.6.2 dev: false - /@tanstack/config@0.4.2(@types/node@18.19.7)(esbuild@0.19.12)(rollup@4.9.5)(typescript@5.3.3)(vite@5.0.11): + /@tanstack/config@0.4.2(@types/node@18.19.7)(esbuild@0.19.12)(rollup@4.12.1)(typescript@5.3.3)(vite@5.0.11): resolution: {integrity: sha512-PHlybqEA/4cJmu5aB9Yw4/OmdBqQY8pMW9Q1f3IJymAj0hRcTTfVRHMeI9yvEEP9lO74FN2EhIAwsKiXQb+FkQ==} engines: {node: '>=18'} hasBin: true @@ -4883,11 +4772,11 @@ packages: liftoff: 4.0.0 luxon: 3.4.4 minimist: 1.2.8 - rollup-plugin-preserve-directives: 0.3.1(rollup@4.9.5) + rollup-plugin-preserve-directives: 0.3.1(rollup@4.12.1) semver: 7.5.4 stream-to-array: 2.3.0 v8flags: 4.0.1 - vite-plugin-dts: 3.7.2(@types/node@18.19.7)(rollup@4.9.5)(typescript@5.3.3)(vite@5.0.11) + vite-plugin-dts: 3.7.2(@types/node@18.19.7)(rollup@4.12.1)(typescript@5.3.3)(vite@5.0.11) vite-plugin-externalize-deps: 0.8.0(vite@5.0.11) transitivePeerDependencies: - '@types/node' @@ -5059,7 +4948,6 @@ packages: /@types/estree@1.0.5: resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==} - dev: true /@types/node@18.19.7: resolution: {integrity: sha512-IGRJfoNX10N/PfrReRZ1br/7SQ+2vF/tK3KXNwzXz82D32z5dMQEoOlFew18nLSN+vMNcLY4GrKfzwi/yWI8/w==} @@ -5473,6 +5361,13 @@ packages: through: 2.3.8 dev: true + /acorn-typescript@1.4.13(acorn@8.11.3): + resolution: {integrity: sha512-xsc9Xv0xlVfwp2o7sQ+GCQ1PgbkdcpWdTzrwXxO3xDMTAywVS3oXVOcOHuRjAPkS4P9b+yc/qNF15460v+jp4Q==} + peerDependencies: + acorn: '>=8.9.0' + dependencies: + acorn: 8.11.3 + /acorn-walk@8.3.1: resolution: {integrity: sha512-TgUZgYvqZprrl7YldZNoa9OciCAyZR+Ejm9eXzKCmjsF5IKp/wgQ7Z/ZpjpGTIUPwrHQIcYeI8qDh4PsEwxMbw==} engines: {node: '>=0.4.0'} @@ -5482,7 +5377,6 @@ packages: resolution: {integrity: sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==} engines: {node: '>=0.4.0'} hasBin: true - dev: true /acorn@8.8.2: resolution: {integrity: sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==} @@ -5598,7 +5492,6 @@ packages: resolution: {integrity: sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==} dependencies: dequal: 2.0.3 - dev: true /arity-n@1.0.4: resolution: {integrity: sha512-fExL2kFDC1Q2DUOx3whE/9KoN66IzkY4b4zUHUBFM1ojEYjZZYDcUW3bek/ufGionX9giIKDC5redH2IlGqcQQ==} @@ -5661,6 +5554,11 @@ packages: dequal: 2.0.3 dev: true + /axobject-query@4.0.0: + resolution: {integrity: sha512-+60uv1hiVFhHZeO+Lz0RYzsVHy5Wr1ayX0mwda9KPDVLNJgZ1T9Ny7VmFbLDzxsH0D87I86vgj3gFrjTJUYznw==} + dependencies: + dequal: 2.0.3 + /babel-plugin-add-module-exports@0.2.1: resolution: {integrity: sha512-3AN/9V/rKuv90NG65m4tTHsI04XrCKsWbztIcW7a8H5iIN7WlvWucRtVV0V/rT4QvtA11n5Vmp20fLwfMWqp6g==} dev: true @@ -6498,19 +6396,28 @@ packages: resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} engines: {node: '>=10'} + /esm-env@1.0.0: + resolution: {integrity: sha512-Cf6VksWPsTuW01vU9Mk/3vRue91Zevka5SjyNf3nEpokFRuqt/KjUQoGAwq9qMmhpLTHmXzSIrFRw8zxWzmFBA==} + /esprima@4.0.1: resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==} engines: {node: '>=4'} hasBin: true dev: true + /esrap@1.2.1: + resolution: {integrity: sha512-dhkcOLfN/aDdMFI1iwPEcy/XqAZzGNfgfEJjZozy2tia6u0dQoZyXzkRshHTckuNsM+c0CYQndY+uRFe3N+AIQ==} + dependencies: + '@jridgewell/sourcemap-codec': 1.4.15 + '@types/estree': 1.0.5 + /estree-walker@2.0.2: resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} /estree-walker@3.0.3: resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} dependencies: - '@types/estree': 1.0.0 + '@types/estree': 1.0.5 dev: true /esutils@2.0.3: @@ -7272,14 +7179,13 @@ packages: /is-reference@1.2.1: resolution: {integrity: sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==} dependencies: - '@types/estree': 1.0.0 + '@types/estree': 1.0.5 dev: true /is-reference@3.0.2: resolution: {integrity: sha512-v3rht/LgVcsdZa3O2Nqs+NMowLOxeOm7Ay9+/ARQ2F+qEoANRcqrjAZKGN0v8ymUetZGgkp26LTnGT7H0Qo9Pg==} dependencies: - '@types/estree': 1.0.0 - dev: true + '@types/estree': 1.0.5 /is-regex@1.1.4: resolution: {integrity: sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==} @@ -7660,7 +7566,6 @@ packages: /locate-character@3.0.0: resolution: {integrity: sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA==} - dev: true /lodash.curry@4.1.1: resolution: {integrity: sha512-/u14pXGviLaweY5JI0IUzgzF2J6Ne8INyzAZjImcryjgkZ+ebruBxy2/JaOOkTqScddcYtakjhSaeemV8lR0tA==} @@ -8354,7 +8259,7 @@ packages: /periscopic@3.1.0: resolution: {integrity: sha512-vKiQ8RRtkl9P+r/+oefh25C3fhybptkHKCZSPlcXiJux2tJF55GnEj3BVn4A5gKfq9NWWXXrxkHBwVPUfH0opw==} dependencies: - '@types/estree': 1.0.0 + '@types/estree': 1.0.5 estree-walker: 3.0.3 is-reference: 3.0.2 dev: true @@ -8413,14 +8318,14 @@ packages: picocolors: 1.0.0 source-map-js: 1.0.2 - /prettier-plugin-svelte@3.1.2(prettier@4.0.0-alpha.8)(svelte@4.2.8): + /prettier-plugin-svelte@3.1.2(prettier@4.0.0-alpha.8)(svelte@5.0.0-next.73): resolution: {integrity: sha512-7xfMZtwgAWHMT0iZc8jN4o65zgbAQ3+O32V6W7pXrqNvKnHnkoyQCGCbKeUyXKZLbYE0YhFRnamfxfkEGxm8qA==} peerDependencies: prettier: ^3.0.0 svelte: ^3.2.0 || ^4.0.0-next.0 || ^5.0.0-next.0 dependencies: prettier: 4.0.0-alpha.8 - svelte: 4.2.8 + svelte: 5.0.0-next.73 dev: true /prettier@4.0.0-alpha.8: @@ -8840,13 +8745,13 @@ packages: glob: 10.3.10 dev: true - /rollup-plugin-preserve-directives@0.3.1(rollup@4.9.5): + /rollup-plugin-preserve-directives@0.3.1(rollup@4.12.1): resolution: {integrity: sha512-Jn1gWU7G55A1sU6eFpXmwknfBasF0XbBzRqsE6nqrb/gun+mGV7nx++CwOSGPJQpFzFqvKm5U4XNKo3LTLi4Hg==} peerDependencies: rollup: 2.x || 3.x || 4.x dependencies: magic-string: 0.30.5 - rollup: 4.9.5 + rollup: 4.12.1 dev: true /rollup-plugin-size@0.3.1: @@ -8864,7 +8769,7 @@ packages: - debug dev: true - /rollup-plugin-svelte@7.1.6(rollup@4.9.5)(svelte@4.2.8): + /rollup-plugin-svelte@7.1.6(rollup@4.12.1)(svelte@5.0.0-next.73): resolution: {integrity: sha512-nVFRBpGWI2qUY1OcSiEEA/kjCY2+vAjO9BI8SzA7NRrh2GTunLd6w2EYmnMt/atgdg8GvcNjLsmZmbQs/u4SQA==} engines: {node: '>=10'} peerDependencies: @@ -8873,11 +8778,11 @@ packages: dependencies: '@rollup/pluginutils': 4.2.1 resolve.exports: 2.0.2 - rollup: 4.9.5 - svelte: 4.2.8 + rollup: 4.12.1 + svelte: 5.0.0-next.73 dev: true - /rollup-plugin-visualizer@5.12.0(rollup@4.9.5): + /rollup-plugin-visualizer@5.12.0(rollup@4.12.1): resolution: {integrity: sha512-8/NU9jXcHRs7Nnj07PF2o4gjxmm9lXIrZ8r175bT9dK8qoLlvKTwRMArRCMgpMGlq8CTLugRvEmyMeMXIU2pNQ==} engines: {node: '>=14'} hasBin: true @@ -8889,52 +8794,31 @@ packages: dependencies: open: 8.4.2 picomatch: 2.3.1 - rollup: 4.9.5 + rollup: 4.12.1 source-map: 0.7.4 yargs: 17.7.1 dev: true - /rollup@4.9.2: - resolution: {integrity: sha512-66RB8OtFKUTozmVEh3qyNfH+b+z2RXBVloqO2KCC/pjFaGaHtxP9fVfOQKPSGXg2mElmjmxjW/fZ7iKrEpMH5Q==} - engines: {node: '>=18.0.0', npm: '>=8.0.0'} - hasBin: true - optionalDependencies: - '@rollup/rollup-android-arm-eabi': 4.9.2 - '@rollup/rollup-android-arm64': 4.9.2 - '@rollup/rollup-darwin-arm64': 4.9.2 - '@rollup/rollup-darwin-x64': 4.9.2 - '@rollup/rollup-linux-arm-gnueabihf': 4.9.2 - '@rollup/rollup-linux-arm64-gnu': 4.9.2 - '@rollup/rollup-linux-arm64-musl': 4.9.2 - '@rollup/rollup-linux-riscv64-gnu': 4.9.2 - '@rollup/rollup-linux-x64-gnu': 4.9.2 - '@rollup/rollup-linux-x64-musl': 4.9.2 - '@rollup/rollup-win32-arm64-msvc': 4.9.2 - '@rollup/rollup-win32-ia32-msvc': 4.9.2 - '@rollup/rollup-win32-x64-msvc': 4.9.2 - fsevents: 2.3.3 - dev: true - - /rollup@4.9.5: - resolution: {integrity: sha512-E4vQW0H/mbNMw2yLSqJyjtkHY9dslf/p0zuT1xehNRqUTBOFMqEjguDvqhXr7N7r/4ttb2jr4T41d3dncmIgbQ==} + /rollup@4.12.1: + resolution: {integrity: sha512-ggqQKvx/PsB0FaWXhIvVkSWh7a/PCLQAsMjBc+nA2M8Rv2/HG0X6zvixAB7KyZBRtifBUhy5k8voQX/mRnABPg==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true dependencies: '@types/estree': 1.0.5 optionalDependencies: - '@rollup/rollup-android-arm-eabi': 4.9.5 - '@rollup/rollup-android-arm64': 4.9.5 - '@rollup/rollup-darwin-arm64': 4.9.5 - '@rollup/rollup-darwin-x64': 4.9.5 - '@rollup/rollup-linux-arm-gnueabihf': 4.9.5 - '@rollup/rollup-linux-arm64-gnu': 4.9.5 - '@rollup/rollup-linux-arm64-musl': 4.9.5 - '@rollup/rollup-linux-riscv64-gnu': 4.9.5 - '@rollup/rollup-linux-x64-gnu': 4.9.5 - '@rollup/rollup-linux-x64-musl': 4.9.5 - '@rollup/rollup-win32-arm64-msvc': 4.9.5 - '@rollup/rollup-win32-ia32-msvc': 4.9.5 - '@rollup/rollup-win32-x64-msvc': 4.9.5 + '@rollup/rollup-android-arm-eabi': 4.12.1 + '@rollup/rollup-android-arm64': 4.12.1 + '@rollup/rollup-darwin-arm64': 4.12.1 + '@rollup/rollup-darwin-x64': 4.12.1 + '@rollup/rollup-linux-arm-gnueabihf': 4.12.1 + '@rollup/rollup-linux-arm64-gnu': 4.12.1 + '@rollup/rollup-linux-arm64-musl': 4.12.1 + '@rollup/rollup-linux-riscv64-gnu': 4.12.1 + '@rollup/rollup-linux-x64-gnu': 4.12.1 + '@rollup/rollup-linux-x64-musl': 4.12.1 + '@rollup/rollup-win32-arm64-msvc': 4.12.1 + '@rollup/rollup-win32-ia32-msvc': 4.12.1 + '@rollup/rollup-win32-x64-msvc': 4.12.1 fsevents: 2.3.3 dev: true @@ -9577,11 +9461,6 @@ packages: typescript: 5.3.3 dev: true - /svelte@3.57.0: - resolution: {integrity: sha512-WMXEvF+RtAaclw0t3bPDTUe19pplMlfyKDsixbHQYgCWi9+O9VN0kXU1OppzrB9gPAvz4NALuoca2LfW2bOjTQ==} - engines: {node: '>= 8'} - dev: false - /svelte@4.2.8: resolution: {integrity: sha512-hU6dh1MPl8gh6klQZwK/n73GiAHiR95IkFsesLPbMeEZi36ydaXL/ZAb4g9sayT0MXzpxyZjR28yderJHxcmYA==} engines: {node: '>=16'} @@ -9601,6 +9480,24 @@ packages: periscopic: 3.1.0 dev: true + /svelte@5.0.0-next.73: + resolution: {integrity: sha512-DtDMIz6RIiZu9ygv+G7kr6VD7uq/sff/2WXlj9AWMXkIUbe1/jATHxYVtMGPeslW+o2zryeT8wJYxUqg58qCVA==} + engines: {node: '>=18'} + dependencies: + '@ampproject/remapping': 2.2.1 + '@jridgewell/sourcemap-codec': 1.4.15 + '@types/estree': 1.0.5 + acorn: 8.11.3 + acorn-typescript: 1.4.13(acorn@8.11.3) + aria-query: 5.3.0 + axobject-query: 4.0.0 + esm-env: 1.0.0 + esrap: 1.2.1 + is-reference: 3.0.2 + locate-character: 3.0.0 + magic-string: 0.30.5 + zimmerframe: 1.1.2 + /svg-tags@1.0.0: resolution: {integrity: sha512-ovssysQTa+luh7A5Weu3Rta6FJlFBBbInjOh722LIt6klpU2/HtdUbszju/G4devcvk8PGt7FCLv5wftu3THUA==} dev: true @@ -10005,7 +9902,7 @@ packages: - terser dev: true - /vite-plugin-dts@3.7.2(@types/node@18.19.7)(rollup@4.9.5)(typescript@5.3.3)(vite@5.0.11): + /vite-plugin-dts@3.7.2(@types/node@18.19.7)(rollup@4.12.1)(typescript@5.3.3)(vite@5.0.11): resolution: {integrity: sha512-kg//1nDA01b8rufJf4TsvYN8LMkdwv0oBYpiQi6nRwpHyue+wTlhrBiqgipdFpMnW1oOYv6ywmzE5B0vg6vSEA==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: @@ -10016,7 +9913,7 @@ packages: optional: true dependencies: '@microsoft/api-extractor': 7.39.0(@types/node@18.19.7) - '@rollup/pluginutils': 5.1.0(rollup@4.9.5) + '@rollup/pluginutils': 5.1.0(rollup@4.12.1) '@vue/language-core': 1.8.27(typescript@5.3.3) debug: 4.3.4 kolorist: 1.8.0 @@ -10087,7 +9984,7 @@ packages: '@types/node': 18.19.7 esbuild: 0.19.10 postcss: 8.4.32 - rollup: 4.9.2 + rollup: 4.12.1 optionalDependencies: fsevents: 2.3.3 dev: true @@ -10123,7 +10020,7 @@ packages: '@types/node': 20.11.2 esbuild: 0.19.10 postcss: 8.4.32 - rollup: 4.9.2 + rollup: 4.12.1 optionalDependencies: fsevents: 2.3.3 dev: true @@ -10485,6 +10382,9 @@ packages: grammex: 3.1.2 dev: true + /zimmerframe@1.1.2: + resolution: {integrity: sha512-rAbqEGa8ovJy4pyBxZM70hg4pE6gDgaQ0Sl9M3enG3I0d6H4XSAM3GeNGLKnsBpuijUow064sf7ww1nutC5/3w==} + /zlib@1.0.5: resolution: {integrity: sha512-40fpE2II+Cd3k8HWTWONfeKE2jL+P42iWJ1zzps5W51qcTsOUKM5Q5m2PFb0CLxlmFAaUuUdJGc3OfZy947v0w==} engines: {node: '>=0.2.0'} diff --git a/scripts/getRollupConfig.js b/scripts/getRollupConfig.js index 1dabe33dc6..352f4ed102 100644 --- a/scripts/getRollupConfig.js +++ b/scripts/getRollupConfig.js @@ -85,11 +85,7 @@ function mjs({ input, external, banner, outputFile }) { banner, }, plugins: [ - svelte({ - compilerOptions: { - hydratable: true, - }, - }), + svelte({ emitCss: false, compilerOptions: { runes: true } }), commonJS(), babelPlugin, nodeResolve({ extensions: ['.ts', '.tsx'] }), @@ -119,11 +115,7 @@ function esm({ input, external, banner, outputFile }) { banner, }, plugins: [ - svelte({ - compilerOptions: { - hydratable: true, - }, - }), + svelte({ emitCss: false, compilerOptions: { runes: true } }), commonJS(), babelPlugin, nodeResolve({ extensions: ['.ts', '.tsx'] }), @@ -155,7 +147,7 @@ function cjs({ input, external, banner }) { banner, }, plugins: [ - svelte(), + svelte({ emitCss: false, compilerOptions: { runes: true } }), commonJS(), babelPlugin, nodeResolve({ extensions: ['.ts', '.tsx'] }), @@ -187,7 +179,7 @@ function umdDev({ input, external, globals, banner, jsName }) { banner, }, plugins: [ - svelte(), + svelte({ emitCss: false, compilerOptions: { runes: true } }), commonJS(), babelPlugin, nodeResolve({ extensions: ['.ts', '.tsx'] }), @@ -220,7 +212,7 @@ function umdProd({ input, external, globals, banner, jsName }) { banner, }, plugins: [ - svelte(), + svelte({ emitCss: false, compilerOptions: { runes: true } }), commonJS(), babelPlugin, nodeResolve({ extensions: ['.ts', '.tsx'] }), From a9acc09e2e6a3fa672c4ca69869f881142ef5b53 Mon Sep 17 00:00:00 2001 From: Walker Lockard Date: Tue, 12 Mar 2024 18:26:24 -0500 Subject: [PATCH 02/29] updated rollup-plugin-svelte --- package.json | 2 +- pnpm-lock.yaml | 8 ++++---- scripts/getRollupConfig.js | 10 +++++----- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index f6970fb65f..11863858aa 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,7 @@ "rimraf": "^5.0.5", "rollup": "^4.9.5", "rollup-plugin-size": "^0.3.1", - "rollup-plugin-svelte": "^7.1.6", + "rollup-plugin-svelte": "^7.2.0", "rollup-plugin-visualizer": "^5.12.0", "sherif": "^0.7.0", "size-limit": "^11.0.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f1339ff5fc..0aa419a515 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -93,8 +93,8 @@ importers: specifier: ^0.3.1 version: 0.3.1 rollup-plugin-svelte: - specifier: ^7.1.6 - version: 7.1.6(rollup@4.12.1)(svelte@5.0.0-next.73) + specifier: ^7.2.0 + version: 7.2.0(rollup@4.12.1)(svelte@5.0.0-next.73) rollup-plugin-visualizer: specifier: ^5.12.0 version: 5.12.0(rollup@4.12.1) @@ -8769,8 +8769,8 @@ packages: - debug dev: true - /rollup-plugin-svelte@7.1.6(rollup@4.12.1)(svelte@5.0.0-next.73): - resolution: {integrity: sha512-nVFRBpGWI2qUY1OcSiEEA/kjCY2+vAjO9BI8SzA7NRrh2GTunLd6w2EYmnMt/atgdg8GvcNjLsmZmbQs/u4SQA==} + /rollup-plugin-svelte@7.2.0(rollup@4.12.1)(svelte@5.0.0-next.73): + resolution: {integrity: sha512-Qvo5VNFQZtaI+sHSjcCIFDP+olfKVyslAoJIkL3DxuhUpNY5Ys0+hhxUY3kuEKt9BXFgkFJiiic/XRb07zdSbg==} engines: {node: '>=10'} peerDependencies: rollup: '>=2.0.0' diff --git a/scripts/getRollupConfig.js b/scripts/getRollupConfig.js index 352f4ed102..8c8e17ca3b 100644 --- a/scripts/getRollupConfig.js +++ b/scripts/getRollupConfig.js @@ -85,9 +85,9 @@ function mjs({ input, external, banner, outputFile }) { banner, }, plugins: [ - svelte({ emitCss: false, compilerOptions: { runes: true } }), commonJS(), babelPlugin, + svelte({ compilerOptions: { runes: true } }), nodeResolve({ extensions: ['.ts', '.tsx'] }), ], } @@ -115,9 +115,9 @@ function esm({ input, external, banner, outputFile }) { banner, }, plugins: [ - svelte({ emitCss: false, compilerOptions: { runes: true } }), commonJS(), babelPlugin, + svelte({ compilerOptions: { runes: true } }), nodeResolve({ extensions: ['.ts', '.tsx'] }), ], } @@ -147,9 +147,9 @@ function cjs({ input, external, banner }) { banner, }, plugins: [ - svelte({ emitCss: false, compilerOptions: { runes: true } }), commonJS(), babelPlugin, + svelte({ compilerOptions: { runes: true } }), nodeResolve({ extensions: ['.ts', '.tsx'] }), ], } @@ -179,9 +179,9 @@ function umdDev({ input, external, globals, banner, jsName }) { banner, }, plugins: [ - svelte({ emitCss: false, compilerOptions: { runes: true } }), commonJS(), babelPlugin, + svelte({ compilerOptions: { runes: true } }), nodeResolve({ extensions: ['.ts', '.tsx'] }), forceEnvPlugin('development'), ], @@ -212,9 +212,9 @@ function umdProd({ input, external, globals, banner, jsName }) { banner, }, plugins: [ - svelte({ emitCss: false, compilerOptions: { runes: true } }), commonJS(), babelPlugin, + svelte({ compilerOptions: { runes: true } }), nodeResolve({ extensions: ['.ts', '.tsx'] }), forceEnvPlugin('production'), terser({ From 0d42c168b006204c504853ec7637dc5fb279ccb6 Mon Sep 17 00:00:00 2001 From: Walker Lockard Date: Tue, 12 Mar 2024 18:26:42 -0500 Subject: [PATCH 03/29] updated prettier plugin for svelte --- package.json | 2 +- pnpm-lock.yaml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 11863858aa..eae6e1a344 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,7 @@ "knip": "^4.6.0", "nx": "^17.2.8", "prettier": "^4.0.0-alpha.8", - "prettier-plugin-svelte": "^3.1.2", + "prettier-plugin-svelte": "^3.2.2", "react": "^18.2.0", "react-dom": "^18.2.0", "rimraf": "^5.0.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0aa419a515..73e06cfac7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -75,8 +75,8 @@ importers: specifier: ^4.0.0-alpha.8 version: 4.0.0-alpha.8 prettier-plugin-svelte: - specifier: ^3.1.2 - version: 3.1.2(prettier@4.0.0-alpha.8)(svelte@5.0.0-next.73) + specifier: ^3.2.2 + version: 3.2.2(prettier@4.0.0-alpha.8)(svelte@5.0.0-next.73) react: specifier: ^18.2.0 version: 18.2.0 @@ -8318,8 +8318,8 @@ packages: picocolors: 1.0.0 source-map-js: 1.0.2 - /prettier-plugin-svelte@3.1.2(prettier@4.0.0-alpha.8)(svelte@5.0.0-next.73): - resolution: {integrity: sha512-7xfMZtwgAWHMT0iZc8jN4o65zgbAQ3+O32V6W7pXrqNvKnHnkoyQCGCbKeUyXKZLbYE0YhFRnamfxfkEGxm8qA==} + /prettier-plugin-svelte@3.2.2(prettier@4.0.0-alpha.8)(svelte@5.0.0-next.73): + resolution: {integrity: sha512-ZzzE/wMuf48/1+Lf2Ffko0uDa6pyCfgHV6+uAhtg2U0AAXGrhCSW88vEJNAkAxW5qyrFY1y1zZ4J8TgHrjW++Q==} peerDependencies: prettier: ^3.0.0 svelte: ^3.2.0 || ^4.0.0-next.0 || ^5.0.0-next.0 From 25a8057f2008d0a92ccd6e15e616f6634a409e87 Mon Sep 17 00:00:00 2001 From: Walker Lockard Date: Tue, 12 Mar 2024 18:27:18 -0500 Subject: [PATCH 04/29] updated the table implementation and applied formatting --- packages/svelte-table/src/flex-render.svelte | 46 ++++---- packages/svelte-table/src/index.ts | 8 +- packages/svelte-table/src/table.svelte.ts | 110 ++++++++++++++----- packages/svelte-table/src/types.ts | 6 +- 4 files changed, 110 insertions(+), 60 deletions(-) diff --git a/packages/svelte-table/src/flex-render.svelte b/packages/svelte-table/src/flex-render.svelte index 00b7e571ef..ef3fadc1fb 100644 --- a/packages/svelte-table/src/flex-render.svelte +++ b/packages/svelte-table/src/flex-render.svelte @@ -58,36 +58,34 @@ A Svelte component that renders a cell or header, according to what was specifie --> - - {#snippet componentCell()} - {#if typeof content === 'string'} - {content} - {:else if content instanceof Function} - {@const result = content(context)} - {#if result instanceof RenderComponentConfig} - - {:else} - {result} - {/if} - {/if} + {#if typeof content === 'string'} + {content} + {:else if content instanceof Function} + {@const result = content(context)} + {#if result instanceof RenderComponentConfig} + + {:else} + {result} + {/if} + {/if} {/snippet} {@render componentCell()} diff --git a/packages/svelte-table/src/index.ts b/packages/svelte-table/src/index.ts index 9f6908e8d1..3881252fda 100644 --- a/packages/svelte-table/src/index.ts +++ b/packages/svelte-table/src/index.ts @@ -1,4 +1,4 @@ -export * from '@tanstack/table-core'; -export { default as FlexRender } from './flex-render.svelte'; -export { renderComponent } from './render-component'; -export { createSvelteTable } from './table.svelte'; +export * from '@tanstack/table-core' +export { default as FlexRender } from './flex-render.svelte' +export { renderComponent } from './render-component' +export { createSvelteTable } from './table.svelte' diff --git a/packages/svelte-table/src/table.svelte.ts b/packages/svelte-table/src/table.svelte.ts index daf8e4440e..5b90054ab0 100644 --- a/packages/svelte-table/src/table.svelte.ts +++ b/packages/svelte-table/src/table.svelte.ts @@ -7,10 +7,7 @@ import { } from '@tanstack/table-core' /** - * Creates a tanstack table object that's reactive using Svelte 5 runes. For more - * information on why this returns a function, see Svelte's - * {@link https://svelte-5-preview.vercel.app/docs/universal-reactivity#gotchas gotchas} - * note for Universal Reactivity. + * Creates a reactive TanStack table object for Svelte. * @param options Table options to create the table with. * @returns A reactive table object. * @example @@ -18,10 +15,10 @@ import { * - * + * * * - * {#each table().getHeaderGroups() as headerGroup} + * {#each table.getHeaderGroups() as headerGroup} * * {#each headerGroup.headers as header} *
@@ -34,36 +31,91 @@ import { * *
* ``` - * @see {@link https://svelte-5-preview.vercel.app/docs/runes} - * @see {@link https://svelte-5-preview.vercel.app/docs/universal-reactivity} */ export function createSvelteTable( options: TableOptions ) { - const resolvedOptions: TableOptionsResolved = { - state: {}, - onStateChange() {}, - renderFallbackValue: null, - ...options, - } + const resolvedOptions: TableOptionsResolved = mergeObjects( + { + state: {}, + onStateChange() {}, + renderFallbackValue: null, + mergeOptions: ( + defaultOptions: TableOptions, + options: Partial> + ) => { + return mergeObjects(defaultOptions, options) + }, + }, + options + ) - const _table = createTable(resolvedOptions) - let _state = $state>(_table.initialState) + const table = createTable(resolvedOptions) + let state = $state>(table.initialState) - const table = $derived.by(() => { - return createTable({ - ...resolvedOptions, - state: { ..._state }, - onStateChange(updater) { - if (updater instanceof Function) { - _state = updater({ ...table.getState(), ..._state }) - } else { - _state = updater - } - resolvedOptions.onStateChange?.(updater) - }, + function updateOptions() { + table.setOptions(prev => { + return mergeObjects(prev, options, { + state: mergeObjects(state, options.state || {}), + onStateChange: (updater: any) => { + if (updater instanceof Function) state = updater(state) + else state = mergeObjects(state, updater) + + options.onStateChange?.(updater) + }, + }) }) + } + + updateOptions() + + $effect.pre(() => { + updateOptions() }) - return () => table + return table +} + +/** + * Merges objects together while keeping their getters alive. + * Taken from SolidJS: {@link https://github.com/solidjs/solid/blob/24abc825c0996fd2bc8c1de1491efe9a7e743aff/packages/solid/src/server/rendering.ts#L82-L115} + * */ +export function mergeObjects(source: T): T +export function mergeObjects(source: T, source1: U): T & U +export function mergeObjects( + source: T, + source1: U, + source2: V +): T & U & V +export function mergeObjects( + source: T, + source1: U, + source2: V, + source3: W +): T & U & V & W +export function mergeObjects(...sources: any): any { + const target = {} + for (let i = 0; i < sources.length; i++) { + let source = sources[i] + if (typeof source === 'function') source = source() + if (source) { + const descriptors = Object.getOwnPropertyDescriptors(source) + for (const key in descriptors) { + if (key in target) continue + Object.defineProperty(target, key, { + enumerable: true, + get() { + for (let i = sources.length - 1; i >= 0; i--) { + let v, + s = sources[i] + if (typeof s === 'function') s = s() + v = (s || {})[key] + if (v !== undefined) return v + } + }, + }) + } + } + } + return target } diff --git a/packages/svelte-table/src/types.ts b/packages/svelte-table/src/types.ts index 3659b8b6d7..22ec2acac0 100644 --- a/packages/svelte-table/src/types.ts +++ b/packages/svelte-table/src/types.ts @@ -1,5 +1,5 @@ -import type { CellContext, HeaderContext, RowData } from '@tanstack/table-core'; +import type { CellContext, HeaderContext, RowData } from '@tanstack/table-core' export type HeaderOrCellContext = - | HeaderContext - | CellContext; + | HeaderContext + | CellContext From 63db98d9010c52611d28064b753b7b085c58f830 Mon Sep 17 00:00:00 2001 From: Walker Lockard Date: Tue, 12 Mar 2024 18:29:12 -0500 Subject: [PATCH 05/29] updated flex-render documentation --- packages/svelte-table/src/flex-render.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/svelte-table/src/flex-render.svelte b/packages/svelte-table/src/flex-render.svelte index ef3fadc1fb..3886d5ea4c 100644 --- a/packages/svelte-table/src/flex-render.svelte +++ b/packages/svelte-table/src/flex-render.svelte @@ -32,7 +32,7 @@ A Svelte component that renders a cell or header, according to what was specifie - {#each table().getHeaderGroups() as headerGroup} + {#each table.getHeaderGroups() as headerGroup} {#each headerGroup.headers as header} - {#each table().getRowModel().rows as row} + {#each table.getRowModel().rows as row} {#each row.getVisibleCells() as cell} {#each row.getVisibleCells() as cell} {/each} @@ -174,9 +156,6 @@
@@ -43,7 +43,7 @@ A Svelte component that renders a cell or header, according to what was specifie {/each}
From 9428a3d4fc67d3d38b202685f443659b5b6570c7 Mon Sep 17 00:00:00 2001 From: Walker Lockard Date: Wed, 13 Mar 2024 17:48:08 -0500 Subject: [PATCH 06/29] Update packages/svelte-table/src/flex-render.svelte Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com> --- packages/svelte-table/src/flex-render.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/svelte-table/src/flex-render.svelte b/packages/svelte-table/src/flex-render.svelte index 3886d5ea4c..db21d76e18 100644 --- a/packages/svelte-table/src/flex-render.svelte +++ b/packages/svelte-table/src/flex-render.svelte @@ -72,7 +72,7 @@ A Svelte component that renders a cell or header, according to what was specifie context: TContext } - let { content, context } = $props() + let { content, context }: Props = $props() {#snippet componentCell()} From 517a862c731e0cfd8564564f4da59b6843f718db Mon Sep 17 00:00:00 2001 From: Walker Lockard Date: Wed, 13 Mar 2024 17:59:41 -0500 Subject: [PATCH 07/29] re-add tweak rollup config and uglify TContext in flex-render --- packages/svelte-table/rollup.config.mjs | 8 +++++++- packages/svelte-table/src/flex-render.svelte | 9 ++++++--- packages/svelte-table/src/types.ts | 5 ----- 3 files changed, 13 insertions(+), 9 deletions(-) delete mode 100644 packages/svelte-table/src/types.ts diff --git a/packages/svelte-table/rollup.config.mjs b/packages/svelte-table/rollup.config.mjs index 31d5dbd9c7..8d48c85b43 100644 --- a/packages/svelte-table/rollup.config.mjs +++ b/packages/svelte-table/rollup.config.mjs @@ -9,10 +9,16 @@ export default defineConfig( jsName: 'SvelteTable', outputFile: 'index', entryFile: 'src/index.ts', - external: ['svelte', 'svelte/store', '@tanstack/table-core'], + external: [ + 'svelte', + 'svelte/store', + 'svelte/internal', + '@tanstack/table-core', + ], globals: { svelte: 'Svelte', 'svelte/store': 'SvelteStore', + 'svelte/internal': 'SvelteInternal', }, }) ) diff --git a/packages/svelte-table/src/flex-render.svelte b/packages/svelte-table/src/flex-render.svelte index 3886d5ea4c..5c97372215 100644 --- a/packages/svelte-table/src/flex-render.svelte +++ b/packages/svelte-table/src/flex-render.svelte @@ -59,11 +59,14 @@ A Svelte component that renders a cell or header, according to what was specifie @@ -139,16 +109,16 @@
- {#each $table.getAllLeafColumns() as column} + {#each table.getAllLeafColumns() as column}
- +
{table.getRowModel().rows.length} Rows
-
- -
From 027d1f1bc28a7c2d8b98282d484e703faf594b7a Mon Sep 17 00:00:00 2001 From: Walker Lockard Date: Thu, 14 Mar 2024 10:15:14 -0500 Subject: [PATCH 20/29] fix svelte flex-render ts types and docs --- packages/svelte-table/src/flex-render.svelte | 115 +++++++++++-------- 1 file changed, 65 insertions(+), 50 deletions(-) diff --git a/packages/svelte-table/src/flex-render.svelte b/packages/svelte-table/src/flex-render.svelte index 2dfdc5c14d..bee65808bc 100644 --- a/packages/svelte-table/src/flex-render.svelte +++ b/packages/svelte-table/src/flex-render.svelte @@ -4,62 +4,73 @@ A Svelte component that renders a cell or header, according to what was specifie ```svelte - + const columns = [ + { + // The header will be `name`, and the cell will be the accessed value. + accessor: 'name', + }, + { + // The header will be `Age`, and the cell will be the accessed value plus the string ` years old`. + accessor: 'age', + header: 'Age', + cell: props => props.getValue() + ' years old', + }, + { + // The header will be `Favorite Color`, and the cell will be a dynamically rendered Svelte component. + accessor: 'favoriteColor', + header: 'Favorite Color', + cell: props => renderComponent(ColorCell, { color: props.getValue() }), + }, + ] + + const table = createSvelteTable({ columns, ...restOptions }) + + + + + {#each table.getHeaderGroups() as headerGroup} + + {#each headerGroup.headers as header} + + {/each} + + {/each} + + + {#each table.getRowModel().rows as row} + + {#each row.getVisibleCells() as cell} + + {/each} + + {/each} + +
+ +
+ +
- - - {#each table.getHeaderGroups() as headerGroup} - - {#each headerGroup.headers as header} - - {/each} - - {/each} - - - {#each table.getRowModel().rows as row} - - {#each row.getVisibleCells() as cell} - - {/each} - - {/each} - -
- -
- -
``` --> -{#snippet componentCell()} - {#if typeof content === 'string'} - {content} - {:else if content instanceof Function} - {@const result = content(context as any)} - {#if result instanceof RenderComponentConfig} - - {:else} - {result} - {/if} +{#if typeof content === 'string'} + {content} +{:else if content instanceof Function} + {@const result = content(context as any)} + {#if result instanceof RenderComponentConfig} + + {:else} + {result} {/if} -{/snippet} - -{@render componentCell()} +{/if} From 914665eeac4b7568e5998f61f68419a780f63d1b Mon Sep 17 00:00:00 2001 From: Walker Lockard Date: Fri, 29 Mar 2024 14:15:38 -0500 Subject: [PATCH 26/29] fixed test errors --- packages/svelte-table/package.json | 2 +- packages/svelte-table/src/flex-render.svelte | 2 +- pnpm-lock.yaml | 22 ++++++++++---------- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/packages/svelte-table/package.json b/packages/svelte-table/package.json index 5bb4a1e8d5..a82c773002 100644 --- a/packages/svelte-table/package.json +++ b/packages/svelte-table/package.json @@ -50,7 +50,7 @@ "peerDependencies": { "svelte": "^5.0.0-next", "@sveltejs/vite-plugin-svelte": "^3.0.2", - "svelte-check": "^3.6.7", + "svelte-check": "^3.6.8", "svelte-eslint-parser": "^0.33.1" }, "devDependencies": { diff --git a/packages/svelte-table/src/flex-render.svelte b/packages/svelte-table/src/flex-render.svelte index e842683460..1bf8181fed 100644 --- a/packages/svelte-table/src/flex-render.svelte +++ b/packages/svelte-table/src/flex-render.svelte @@ -96,7 +96,7 @@ A Svelte component that renders a cell or header, according to what was specifie {#if typeof content === 'string'} {content} {:else if content instanceof Function} - {@const result = content(context as any)} + {@const result = content(context as any)} {#if result instanceof RenderComponentConfig} {:else} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 91d4ead130..49e4bce502 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1688,8 +1688,8 @@ importers: specifier: ^5.0.0-next version: 5.0.0-next.73 svelte-check: - specifier: ^3.6.7 - version: 3.6.7(@babel/core@7.23.7)(postcss@8.4.35)(svelte@5.0.0-next.73) + specifier: ^3.6.8 + version: 3.6.8(@babel/core@7.23.7)(postcss@8.4.35)(svelte@5.0.0-next.73) svelte-eslint-parser: specifier: ^0.33.1 version: 0.33.1(svelte@5.0.0-next.73) @@ -9865,7 +9865,7 @@ packages: resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} engines: {node: '>= 0.4'} - /svelte-check@3.6.7(@babel/core@7.23.7)(postcss@8.4.35)(svelte@5.0.0-next.73): + /svelte-check@3.6.7(@babel/core@7.23.7)(svelte@5.0.0-next.78): resolution: {integrity: sha512-tKEjemK9FYCySAseCaIt+ps5o0XRvLC7ECjyJXXtO7vOQhR9E6JavgoUbGP1PCulD2OTcB/fi9RjV3nyF1AROw==} hasBin: true peerDependencies: @@ -9877,8 +9877,8 @@ packages: import-fresh: 3.3.0 picocolors: 1.0.0 sade: 1.8.1 - svelte: 5.0.0-next.73 - svelte-preprocess: 5.1.3(@babel/core@7.23.7)(postcss@8.4.35)(svelte@5.0.0-next.73)(typescript@5.3.3) + svelte: 5.0.0-next.78 + svelte-preprocess: 5.1.3(@babel/core@7.23.7)(svelte@5.0.0-next.78)(typescript@5.3.3) typescript: 5.3.3 transitivePeerDependencies: - '@babel/core' @@ -9890,10 +9890,10 @@ packages: - sass - stylus - sugarss - dev: false + dev: true - /svelte-check@3.6.7(@babel/core@7.23.7)(svelte@5.0.0-next.78): - resolution: {integrity: sha512-tKEjemK9FYCySAseCaIt+ps5o0XRvLC7ECjyJXXtO7vOQhR9E6JavgoUbGP1PCulD2OTcB/fi9RjV3nyF1AROw==} + /svelte-check@3.6.8(@babel/core@7.23.7)(postcss@8.4.35)(svelte@5.0.0-next.73): + resolution: {integrity: sha512-rhXU7YCDtL+lq2gCqfJDXKTxJfSsCgcd08d7VWBFxTw6IWIbMWSaASbAOD3N0VV9TYSSLUqEBiratLd8WxAJJA==} hasBin: true peerDependencies: svelte: ^3.55.0 || ^4.0.0-next.0 || ^4.0.0 || ^5.0.0-next.0 @@ -9904,8 +9904,8 @@ packages: import-fresh: 3.3.0 picocolors: 1.0.0 sade: 1.8.1 - svelte: 5.0.0-next.78 - svelte-preprocess: 5.1.3(@babel/core@7.23.7)(svelte@5.0.0-next.78)(typescript@5.3.3) + svelte: 5.0.0-next.73 + svelte-preprocess: 5.1.3(@babel/core@7.23.7)(postcss@8.4.35)(svelte@5.0.0-next.73)(typescript@5.3.3) typescript: 5.3.3 transitivePeerDependencies: - '@babel/core' @@ -9917,7 +9917,7 @@ packages: - sass - stylus - sugarss - dev: true + dev: false /svelte-eslint-parser@0.33.1(svelte@5.0.0-next.73): resolution: {integrity: sha512-vo7xPGTlKBGdLH8T5L64FipvTrqv3OQRx9d2z5X05KKZDlF4rQk8KViZO4flKERY+5BiVdOh7zZ7JGJWo5P0uA==} From 8b3b06432aaaaa0df602189faff3886da85b170c Mon Sep 17 00:00:00 2001 From: Walker Lockard Date: Fri, 29 Mar 2024 14:27:08 -0500 Subject: [PATCH 27/29] removed duplicate devdependencies in the svelte package --- packages/svelte-table/package.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/svelte-table/package.json b/packages/svelte-table/package.json index 325cdb746c..ec9b2d18b1 100644 --- a/packages/svelte-table/package.json +++ b/packages/svelte-table/package.json @@ -47,9 +47,6 @@ "dependencies": { "@tanstack/table-core": "workspace:*" }, - "devDependencies": { - "svelte": "^3.59.2" - }, "peerDependencies": { "svelte": "^5.0.0-next", "@sveltejs/vite-plugin-svelte": "^3.0.2", From 8198cd56375fe5fdbdf35fa2f3a28f5a9c168709 Mon Sep 17 00:00:00 2001 From: Kevin Vandy Date: Tue, 11 Jun 2024 22:47:28 -0500 Subject: [PATCH 28/29] upgrade svelte versions in examples --- examples/svelte/basic/package.json | 2 +- examples/svelte/column-groups/package.json | 2 +- examples/svelte/column-ordering/package.json | 2 +- examples/svelte/column-pinning/package.json | 2 +- .../svelte/column-visibility/package.json | 2 +- examples/svelte/filtering/package.json | 2 +- examples/svelte/sorting/package.json | 2 +- package.json | 5 +- packages/svelte-table/src/flex-render.svelte | 2 +- packages/svelte-table/vite.config.js | 1 - pnpm-lock.yaml | 145 +++++++----------- 11 files changed, 66 insertions(+), 101 deletions(-) diff --git a/examples/svelte/basic/package.json b/examples/svelte/basic/package.json index 7d2b12e0c7..aa6447dd0f 100644 --- a/examples/svelte/basic/package.json +++ b/examples/svelte/basic/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@rollup/plugin-replace": "^5.0.5", - "svelte": "5.0.0-next.78", + "svelte": "5.0.0-next.153", "@sveltejs/vite-plugin-svelte": "^3.1.0", "@tanstack/svelte-table": "^9.0.0-alpha.0", "@tsconfig/svelte": "^5.0.4", diff --git a/examples/svelte/column-groups/package.json b/examples/svelte/column-groups/package.json index 22b29ad425..b96cc0733a 100644 --- a/examples/svelte/column-groups/package.json +++ b/examples/svelte/column-groups/package.json @@ -14,7 +14,7 @@ "@sveltejs/vite-plugin-svelte": "^3.1.0", "@tanstack/svelte-table": "^9.0.0-alpha.0", "@tsconfig/svelte": "^5.0.4", - "svelte": "^4.2.15", + "svelte": "5.0.0-next.153", "svelte-check": "^3.7.0", "typescript": "5.4.5", "vite": "^5.2.10" diff --git a/examples/svelte/column-ordering/package.json b/examples/svelte/column-ordering/package.json index aa3fe8ff77..a4d33cde41 100644 --- a/examples/svelte/column-ordering/package.json +++ b/examples/svelte/column-ordering/package.json @@ -12,7 +12,7 @@ "devDependencies": { "@faker-js/faker": "^8.4.1", "@rollup/plugin-replace": "^5.0.5", - "svelte": "5.0.0-next.78", + "svelte": "5.0.0-next.153", "@sveltejs/vite-plugin-svelte": "^3.1.0", "@tanstack/svelte-table": "^9.0.0-alpha.0", "@tsconfig/svelte": "^5.0.4", diff --git a/examples/svelte/column-pinning/package.json b/examples/svelte/column-pinning/package.json index 773bc9e709..89c8ecaaab 100644 --- a/examples/svelte/column-pinning/package.json +++ b/examples/svelte/column-pinning/package.json @@ -12,7 +12,7 @@ "devDependencies": { "@faker-js/faker": "^8.4.1", "@rollup/plugin-replace": "^5.0.5", - "svelte": "5.0.0-next.78", + "svelte": "5.0.0-next.153", "@sveltejs/vite-plugin-svelte": "^3.1.0", "@tanstack/svelte-table": "^9.0.0-alpha.0", "@tsconfig/svelte": "^5.0.4", diff --git a/examples/svelte/column-visibility/package.json b/examples/svelte/column-visibility/package.json index 38f3f64e1b..1127f986a2 100644 --- a/examples/svelte/column-visibility/package.json +++ b/examples/svelte/column-visibility/package.json @@ -14,7 +14,7 @@ "@sveltejs/vite-plugin-svelte": "^3.1.0", "@tanstack/svelte-table": "^9.0.0-alpha.0", "@tsconfig/svelte": "^5.0.4", - "svelte": "^4.2.15", + "svelte": "5.0.0-next.153", "svelte-check": "^3.7.0", "typescript": "5.4.5", "vite": "^5.2.10" diff --git a/examples/svelte/filtering/package.json b/examples/svelte/filtering/package.json index 9cec6c489e..5c931a0e4b 100644 --- a/examples/svelte/filtering/package.json +++ b/examples/svelte/filtering/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@faker-js/faker": "^8.4.1", - "svelte": "5.0.0-next.78", + "svelte": "5.0.0-next.153", "@rollup/plugin-replace": "^5.0.5", "@sveltejs/vite-plugin-svelte": "^3.1.0", "@tanstack/match-sorter-utils": "^9.0.0-alpha.0", diff --git a/examples/svelte/sorting/package.json b/examples/svelte/sorting/package.json index b0b9b6e2ff..eca0ace4cb 100644 --- a/examples/svelte/sorting/package.json +++ b/examples/svelte/sorting/package.json @@ -15,7 +15,7 @@ "@sveltejs/vite-plugin-svelte": "^3.1.0", "@tanstack/svelte-table": "^9.0.0-alpha.0", "@tsconfig/svelte": "^5.0.4", - "svelte": "^4.2.15", + "svelte": "5.0.0-next.153", "svelte-check": "^3.7.0", "typescript": "5.4.5", "vite": "^5.2.10" diff --git a/package.json b/package.json index 1868198949..cd18d0c491 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "test:pr": "nx affected --targets=test:format,test:sherif,test:knip,test:lib,test:types,test:build,build", "test:ci": "nx run-many --targets=test:format,test:sherif,test:knip,test:lib,test:types,test:build,build", "test:format": "pnpm run prettier --check", - "test:sherif": "sherif -i svelte", + "test:sherif": "sherif", "test:lib": "nx affected --targets=test:lib --exclude=examples/**", "test:lib:dev": "pnpm test:lib && nx watch --all -- pnpm test:lib", "test:build": "nx affected --target=test:build --exclude=examples/**", @@ -24,6 +24,7 @@ "dev": "pnpm run watch", "prettier": "prettier --ignore-unknown '**/*'", "prettier:write": "pnpm run prettier --write", + "format": "pnpm run prettier:write", "cipublish": "node scripts/publish.js" }, "nx": { @@ -64,7 +65,7 @@ "rimraf": "^5.0.5", "sherif": "^0.8.4", "size-limit": "^11.1.2", - "svelte": "^5.0.0-next", + "svelte": "5.0.0-next.153", "typescript": "5.4.5", "vite": "^5.2.10", "vitest": "^1.5.2" diff --git a/packages/svelte-table/src/flex-render.svelte b/packages/svelte-table/src/flex-render.svelte index 1bf8181fed..aa8b243029 100644 --- a/packages/svelte-table/src/flex-render.svelte +++ b/packages/svelte-table/src/flex-render.svelte @@ -96,7 +96,7 @@ A Svelte component that renders a cell or header, according to what was specifie {#if typeof content === 'string'} {content} {:else if content instanceof Function} - {@const result = content(context as any)} + {@const result = content(context as any)} {#if result instanceof RenderComponentConfig} {:else} diff --git a/packages/svelte-table/vite.config.js b/packages/svelte-table/vite.config.js index d6ccc88c2a..3d696d6ec5 100644 --- a/packages/svelte-table/vite.config.js +++ b/packages/svelte-table/vite.config.js @@ -1,6 +1,5 @@ import { svelte } from '@sveltejs/vite-plugin-svelte' import { defineConfig } from 'vitest/config' -import packageJson from './package.json' export default defineConfig({ plugins: [svelte()], diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bc4dc1d91a..1174113eeb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -55,7 +55,7 @@ importers: version: 4.0.0-alpha.8 prettier-plugin-svelte: specifier: ^3.2.3 - version: 3.2.3(prettier@4.0.0-alpha.8)(svelte@5.0.0-next.78) + version: 3.2.3(prettier@4.0.0-alpha.8)(svelte@5.0.0-next.153) publint: specifier: ^0.2.8 version: 0.2.8 @@ -69,8 +69,8 @@ importers: specifier: ^11.1.2 version: 11.1.2 svelte: - specifier: ^5.0.0-next - version: 5.0.0-next.78 + specifier: 5.0.0-next.153 + version: 5.0.0-next.153 typescript: specifier: 5.4.5 version: 5.4.5 @@ -2260,7 +2260,7 @@ importers: version: 5.0.5(rollup@4.16.4) '@sveltejs/vite-plugin-svelte': specifier: ^3.1.0 - version: 3.1.0(svelte@5.0.0-next.78)(vite@5.2.10(@types/node@20.12.7)(less@4.2.0)(sass@1.77.1)(terser@5.29.2)) + version: 3.1.0(svelte@5.0.0-next.153)(vite@5.2.10(@types/node@20.12.7)(less@4.2.0)(sass@1.77.1)(terser@5.29.2)) '@tanstack/svelte-table': specifier: ^9.0.0-alpha.0 version: link:../../../packages/svelte-table @@ -2268,11 +2268,11 @@ importers: specifier: ^5.0.4 version: 5.0.4 svelte: - specifier: 5.0.0-next.78 - version: 5.0.0-next.78 + specifier: 5.0.0-next.153 + version: 5.0.0-next.153 svelte-check: specifier: ^3.7.0 - version: 3.7.0(@babel/core@7.24.4)(less@4.2.0)(postcss@8.4.38)(sass@1.77.1)(svelte@5.0.0-next.78) + version: 3.7.0(@babel/core@7.24.4)(less@4.2.0)(postcss@8.4.38)(sass@1.77.1)(svelte@5.0.0-next.153) typescript: specifier: 5.4.5 version: 5.4.5 @@ -2287,7 +2287,7 @@ importers: version: 5.0.5(rollup@4.16.4) '@sveltejs/vite-plugin-svelte': specifier: ^3.1.0 - version: 3.1.0(svelte@4.2.15)(vite@5.2.10(@types/node@20.12.7)(less@4.2.0)(sass@1.77.1)(terser@5.29.2)) + version: 3.1.0(svelte@5.0.0-next.153)(vite@5.2.10(@types/node@20.12.7)(less@4.2.0)(sass@1.77.1)(terser@5.29.2)) '@tanstack/svelte-table': specifier: ^9.0.0-alpha.0 version: link:../../../packages/svelte-table @@ -2295,11 +2295,11 @@ importers: specifier: ^5.0.4 version: 5.0.4 svelte: - specifier: ^4.2.15 - version: 4.2.15 + specifier: 5.0.0-next.153 + version: 5.0.0-next.153 svelte-check: specifier: ^3.7.0 - version: 3.7.0(@babel/core@7.24.4)(less@4.2.0)(postcss@8.4.38)(sass@1.77.1)(svelte@4.2.15) + version: 3.7.0(@babel/core@7.24.4)(less@4.2.0)(postcss@8.4.38)(sass@1.77.1)(svelte@5.0.0-next.153) typescript: specifier: 5.4.5 version: 5.4.5 @@ -2317,7 +2317,7 @@ importers: version: 5.0.5(rollup@4.16.4) '@sveltejs/vite-plugin-svelte': specifier: ^3.1.0 - version: 3.1.0(svelte@5.0.0-next.78)(vite@5.2.10(@types/node@20.12.7)(less@4.2.0)(sass@1.77.1)(terser@5.29.2)) + version: 3.1.0(svelte@5.0.0-next.153)(vite@5.2.10(@types/node@20.12.7)(less@4.2.0)(sass@1.77.1)(terser@5.29.2)) '@tanstack/svelte-table': specifier: ^9.0.0-alpha.0 version: link:../../../packages/svelte-table @@ -2325,11 +2325,11 @@ importers: specifier: ^5.0.4 version: 5.0.4 svelte: - specifier: 5.0.0-next.78 - version: 5.0.0-next.78 + specifier: 5.0.0-next.153 + version: 5.0.0-next.153 svelte-check: specifier: ^3.7.0 - version: 3.7.0(@babel/core@7.24.4)(less@4.2.0)(postcss@8.4.38)(sass@1.77.1)(svelte@5.0.0-next.78) + version: 3.7.0(@babel/core@7.24.4)(less@4.2.0)(postcss@8.4.38)(sass@1.77.1)(svelte@5.0.0-next.153) typescript: specifier: 5.4.5 version: 5.4.5 @@ -2347,7 +2347,7 @@ importers: version: 5.0.5(rollup@4.16.4) '@sveltejs/vite-plugin-svelte': specifier: ^3.1.0 - version: 3.1.0(svelte@5.0.0-next.78)(vite@5.2.10(@types/node@20.12.7)(less@4.2.0)(sass@1.77.1)(terser@5.29.2)) + version: 3.1.0(svelte@5.0.0-next.153)(vite@5.2.10(@types/node@20.12.7)(less@4.2.0)(sass@1.77.1)(terser@5.29.2)) '@tanstack/svelte-table': specifier: ^9.0.0-alpha.0 version: link:../../../packages/svelte-table @@ -2355,11 +2355,11 @@ importers: specifier: ^5.0.4 version: 5.0.4 svelte: - specifier: 5.0.0-next.78 - version: 5.0.0-next.78 + specifier: 5.0.0-next.153 + version: 5.0.0-next.153 svelte-check: specifier: ^3.7.0 - version: 3.7.0(@babel/core@7.24.4)(less@4.2.0)(postcss@8.4.38)(sass@1.77.1)(svelte@5.0.0-next.78) + version: 3.7.0(@babel/core@7.24.4)(less@4.2.0)(postcss@8.4.38)(sass@1.77.1)(svelte@5.0.0-next.153) typescript: specifier: 5.4.5 version: 5.4.5 @@ -2374,7 +2374,7 @@ importers: version: 5.0.5(rollup@4.16.4) '@sveltejs/vite-plugin-svelte': specifier: ^3.1.0 - version: 3.1.0(svelte@4.2.15)(vite@5.2.10(@types/node@20.12.7)(less@4.2.0)(sass@1.77.1)(terser@5.29.2)) + version: 3.1.0(svelte@5.0.0-next.153)(vite@5.2.10(@types/node@20.12.7)(less@4.2.0)(sass@1.77.1)(terser@5.29.2)) '@tanstack/svelte-table': specifier: ^9.0.0-alpha.0 version: link:../../../packages/svelte-table @@ -2382,11 +2382,11 @@ importers: specifier: ^5.0.4 version: 5.0.4 svelte: - specifier: ^4.2.15 - version: 4.2.15 + specifier: 5.0.0-next.153 + version: 5.0.0-next.153 svelte-check: specifier: ^3.7.0 - version: 3.7.0(@babel/core@7.24.4)(less@4.2.0)(postcss@8.4.38)(sass@1.77.1)(svelte@4.2.15) + version: 3.7.0(@babel/core@7.24.4)(less@4.2.0)(postcss@8.4.38)(sass@1.77.1)(svelte@5.0.0-next.153) typescript: specifier: 5.4.5 version: 5.4.5 @@ -2404,7 +2404,7 @@ importers: version: 5.0.5(rollup@4.16.4) '@sveltejs/vite-plugin-svelte': specifier: ^3.1.0 - version: 3.1.0(svelte@5.0.0-next.78)(vite@5.2.10(@types/node@20.12.7)(less@4.2.0)(sass@1.77.1)(terser@5.29.2)) + version: 3.1.0(svelte@5.0.0-next.153)(vite@5.2.10(@types/node@20.12.7)(less@4.2.0)(sass@1.77.1)(terser@5.29.2)) '@tanstack/match-sorter-utils': specifier: ^9.0.0-alpha.0 version: link:../../../packages/match-sorter-utils @@ -2415,11 +2415,11 @@ importers: specifier: ^5.0.4 version: 5.0.4 svelte: - specifier: 5.0.0-next.78 - version: 5.0.0-next.78 + specifier: 5.0.0-next.153 + version: 5.0.0-next.153 svelte-check: specifier: ^3.7.0 - version: 3.7.0(@babel/core@7.24.4)(less@4.2.0)(postcss@8.4.38)(sass@1.77.1)(svelte@5.0.0-next.78) + version: 3.7.0(@babel/core@7.24.4)(less@4.2.0)(postcss@8.4.38)(sass@1.77.1)(svelte@5.0.0-next.153) typescript: specifier: 5.4.5 version: 5.4.5 @@ -2437,7 +2437,7 @@ importers: version: 5.0.5(rollup@4.16.4) '@sveltejs/vite-plugin-svelte': specifier: ^3.1.0 - version: 3.1.0(svelte@4.2.15)(vite@5.2.10(@types/node@20.12.7)(less@4.2.0)(sass@1.77.1)(terser@5.29.2)) + version: 3.1.0(svelte@5.0.0-next.153)(vite@5.2.10(@types/node@20.12.7)(less@4.2.0)(sass@1.77.1)(terser@5.29.2)) '@tanstack/svelte-table': specifier: ^9.0.0-alpha.0 version: link:../../../packages/svelte-table @@ -2445,11 +2445,11 @@ importers: specifier: ^5.0.4 version: 5.0.4 svelte: - specifier: ^4.2.15 - version: 4.2.15 + specifier: 5.0.0-next.153 + version: 5.0.0-next.153 svelte-check: specifier: ^3.7.0 - version: 3.7.0(@babel/core@7.24.4)(less@4.2.0)(postcss@8.4.38)(sass@1.77.1)(svelte@4.2.15) + version: 3.7.0(@babel/core@7.24.4)(less@4.2.0)(postcss@8.4.38)(sass@1.77.1)(svelte@5.0.0-next.153) typescript: specifier: 5.4.5 version: 5.4.5 @@ -5646,9 +5646,6 @@ packages: code-block-writer@12.0.0: resolution: {integrity: sha512-q4dMFMlXtKR3XNBHyMHt/3pwYNA69EDk00lloMOaaUMKPUXBw6lpXtbu3MMVG6/uOihGnRDOlkyqsONEUj60+w==} - code-red@1.0.4: - resolution: {integrity: sha512-7qJWqItLA8/VPVlKJlFXU+NBlo/qyfs39aJcuMT/2ere32ZqvF5OSxgdM5xOfJJ7O429gg2HM47y8v9P+9wrNw==} - color-convert@1.9.3: resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==} @@ -5813,10 +5810,6 @@ packages: css-select@5.1.0: resolution: {integrity: sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg==} - css-tree@2.3.1: - resolution: {integrity: sha512-6Fv1DV/TYw//QF5IzQdqsNDjx/wc8TrMBZsqjL9eW01tWb7R7k/mq+/VXfJCl7SoD5emsJop9cOByJZfs8hYIw==} - engines: {node: ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0} - css-what@6.1.0: resolution: {integrity: sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==} engines: {node: '>= 6'} @@ -7202,9 +7195,6 @@ packages: resolution: {integrity: sha512-TzQSV2DiMYgoF5RycneKVUzIa9bQsj/B3tTgsE3dOGqlzHnGIDaC7XBE7grnA+8kZPnfqSGFe95VHc2oc0VFUQ==} engines: {node: '>=4'} - mdn-data@2.0.30: - resolution: {integrity: sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==} - media-typer@0.3.0: resolution: {integrity: sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==} engines: {node: '>= 0.6'} @@ -7759,9 +7749,6 @@ packages: pathval@1.1.1: resolution: {integrity: sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==} - periscopic@3.1.0: - resolution: {integrity: sha512-vKiQ8RRtkl9P+r/+oefh25C3fhybptkHKCZSPlcXiJux2tJF55GnEj3BVn4A5gKfq9NWWXXrxkHBwVPUfH0opw==} - picocolors@1.0.0: resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==} @@ -8721,9 +8708,9 @@ packages: svelte: ^3.55 || ^4.0.0-next.0 || ^4.0 || ^5.0.0-next.0 typescript: ^4.9.4 || ^5.0.0 - svelte@4.2.15: - resolution: {integrity: sha512-j9KJSccHgLeRERPlhMKrCXpk2TqL2m5Z+k+OBTQhZOhIdCCd3WfqV+ylPWeipEwq17P/ekiSFWwrVQv93i3bsg==} - engines: {node: '>=16'} + svelte@5.0.0-next.153: + resolution: {integrity: sha512-ZbRnvO0UWXhE71Va5Rjg+nY4tbCUnqJFQC0VXHdqkHT/i5nqW8DPtw0rBlsFg4mq2uDQ8iOO/P7tR3OVXaSI7g==} + engines: {node: '>=18'} svelte@5.0.0-next.78: resolution: {integrity: sha512-wS/FWyyqWX9iazm/ZfTDqtarpHEap4Jodj0dDeErvvvjBKC1Jt3HTQQ7pUnyJYzSCtBVz2x9OTrLgoJf8nUWHQ==} @@ -12099,11 +12086,11 @@ snapshots: transitivePeerDependencies: - typescript - '@sveltejs/vite-plugin-svelte-inspector@2.0.0(@sveltejs/vite-plugin-svelte@3.1.0(svelte@4.2.15)(vite@5.2.10(@types/node@20.12.7)(less@4.2.0)(sass@1.77.1)(terser@5.29.2)))(svelte@4.2.15)(vite@5.2.10(@types/node@20.12.7)(less@4.2.0)(sass@1.77.1)(terser@5.29.2))': + '@sveltejs/vite-plugin-svelte-inspector@2.0.0(@sveltejs/vite-plugin-svelte@3.1.0(svelte@5.0.0-next.153)(vite@5.2.10(@types/node@20.12.7)(less@4.2.0)(sass@1.77.1)(terser@5.29.2)))(svelte@5.0.0-next.153)(vite@5.2.10(@types/node@20.12.7)(less@4.2.0)(sass@1.77.1)(terser@5.29.2))': dependencies: - '@sveltejs/vite-plugin-svelte': 3.1.0(svelte@4.2.15)(vite@5.2.10(@types/node@20.12.7)(less@4.2.0)(sass@1.77.1)(terser@5.29.2)) + '@sveltejs/vite-plugin-svelte': 3.1.0(svelte@5.0.0-next.153)(vite@5.2.10(@types/node@20.12.7)(less@4.2.0)(sass@1.77.1)(terser@5.29.2)) debug: 4.3.4 - svelte: 4.2.15 + svelte: 5.0.0-next.153 vite: 5.2.10(@types/node@20.12.7)(less@4.2.0)(sass@1.77.1)(terser@5.29.2) transitivePeerDependencies: - supports-color @@ -12117,15 +12104,15 @@ snapshots: transitivePeerDependencies: - supports-color - '@sveltejs/vite-plugin-svelte@3.1.0(svelte@4.2.15)(vite@5.2.10(@types/node@20.12.7)(less@4.2.0)(sass@1.77.1)(terser@5.29.2))': + '@sveltejs/vite-plugin-svelte@3.1.0(svelte@5.0.0-next.153)(vite@5.2.10(@types/node@20.12.7)(less@4.2.0)(sass@1.77.1)(terser@5.29.2))': dependencies: - '@sveltejs/vite-plugin-svelte-inspector': 2.0.0(@sveltejs/vite-plugin-svelte@3.1.0(svelte@4.2.15)(vite@5.2.10(@types/node@20.12.7)(less@4.2.0)(sass@1.77.1)(terser@5.29.2)))(svelte@4.2.15)(vite@5.2.10(@types/node@20.12.7)(less@4.2.0)(sass@1.77.1)(terser@5.29.2)) + '@sveltejs/vite-plugin-svelte-inspector': 2.0.0(@sveltejs/vite-plugin-svelte@3.1.0(svelte@5.0.0-next.153)(vite@5.2.10(@types/node@20.12.7)(less@4.2.0)(sass@1.77.1)(terser@5.29.2)))(svelte@5.0.0-next.153)(vite@5.2.10(@types/node@20.12.7)(less@4.2.0)(sass@1.77.1)(terser@5.29.2)) debug: 4.3.4 deepmerge: 4.3.1 kleur: 4.1.5 magic-string: 0.30.10 - svelte: 4.2.15 - svelte-hmr: 0.16.0(svelte@4.2.15) + svelte: 5.0.0-next.153 + svelte-hmr: 0.16.0(svelte@5.0.0-next.153) vite: 5.2.10(@types/node@20.12.7)(less@4.2.0)(sass@1.77.1)(terser@5.29.2) vitefu: 0.2.5(vite@5.2.10(@types/node@20.12.7)(less@4.2.0)(sass@1.77.1)(terser@5.29.2)) transitivePeerDependencies: @@ -13206,14 +13193,6 @@ snapshots: code-block-writer@12.0.0: {} - code-red@1.0.4: - dependencies: - '@jridgewell/sourcemap-codec': 1.4.15 - '@types/estree': 1.0.5 - acorn: 8.11.3 - estree-walker: 3.0.3 - periscopic: 3.1.0 - color-convert@1.9.3: dependencies: color-name: 1.1.3 @@ -13399,11 +13378,6 @@ snapshots: domutils: 3.1.0 nth-check: 2.1.1 - css-tree@2.3.1: - dependencies: - mdn-data: 2.0.30 - source-map-js: 1.2.0 - css-what@6.1.0: {} css.escape@1.5.1: {} @@ -14918,8 +14892,6 @@ snapshots: map-obj@2.0.0: {} - mdn-data@2.0.30: {} - media-typer@0.3.0: {} memfs@3.5.3: @@ -15515,12 +15487,6 @@ snapshots: pathval@1.1.1: {} - periscopic@3.1.0: - dependencies: - '@types/estree': 1.0.5 - estree-walker: 3.0.3 - is-reference: 3.0.2 - picocolors@1.0.0: {} picocolors@1.0.1: {} @@ -15612,10 +15578,10 @@ snapshots: picocolors: 1.0.0 source-map-js: 1.2.0 - prettier-plugin-svelte@3.2.3(prettier@4.0.0-alpha.8)(svelte@5.0.0-next.78): + prettier-plugin-svelte@3.2.3(prettier@4.0.0-alpha.8)(svelte@5.0.0-next.153): dependencies: prettier: 4.0.0-alpha.8 - svelte: 5.0.0-next.78 + svelte: 5.0.0-next.153 prettier@4.0.0-alpha.8: dependencies: @@ -16487,7 +16453,7 @@ snapshots: supports-preserve-symlinks-flag@1.0.0: {} - svelte-check@3.7.0(@babel/core@7.24.4)(less@4.2.0)(postcss@8.4.38)(sass@1.77.1)(svelte@4.2.15): + svelte-check@3.7.0(@babel/core@7.24.4)(less@4.2.0)(postcss@8.4.38)(sass@1.77.1)(svelte@5.0.0-next.153): dependencies: '@jridgewell/trace-mapping': 0.3.25 chokidar: 3.6.0 @@ -16495,8 +16461,8 @@ snapshots: import-fresh: 3.3.0 picocolors: 1.0.0 sade: 1.8.1 - svelte: 4.2.15 - svelte-preprocess: 5.1.3(@babel/core@7.24.4)(less@4.2.0)(postcss@8.4.38)(sass@1.77.1)(svelte@4.2.15)(typescript@5.4.5) + svelte: 5.0.0-next.153 + svelte-preprocess: 5.1.3(@babel/core@7.24.4)(less@4.2.0)(postcss@8.4.38)(sass@1.77.1)(svelte@5.0.0-next.153)(typescript@5.4.5) typescript: 5.4.5 transitivePeerDependencies: - '@babel/core' @@ -16541,22 +16507,22 @@ snapshots: optionalDependencies: svelte: 5.0.0-next.78 - svelte-hmr@0.16.0(svelte@4.2.15): + svelte-hmr@0.16.0(svelte@5.0.0-next.153): dependencies: - svelte: 4.2.15 + svelte: 5.0.0-next.153 svelte-hmr@0.16.0(svelte@5.0.0-next.78): dependencies: svelte: 5.0.0-next.78 - svelte-preprocess@5.1.3(@babel/core@7.24.4)(less@4.2.0)(postcss@8.4.38)(sass@1.77.1)(svelte@4.2.15)(typescript@5.4.5): + svelte-preprocess@5.1.3(@babel/core@7.24.4)(less@4.2.0)(postcss@8.4.38)(sass@1.77.1)(svelte@5.0.0-next.153)(typescript@5.4.5): dependencies: '@types/pug': 2.0.10 detect-indent: 6.1.0 magic-string: 0.30.10 sorcery: 0.11.0 strip-indent: 3.0.0 - svelte: 4.2.15 + svelte: 5.0.0-next.153 optionalDependencies: '@babel/core': 7.24.4 less: 4.2.0 @@ -16586,22 +16552,21 @@ snapshots: svelte: 5.0.0-next.78 typescript: 5.4.5 - svelte@4.2.15: + svelte@5.0.0-next.153: dependencies: '@ampproject/remapping': 2.3.0 '@jridgewell/sourcemap-codec': 1.4.15 - '@jridgewell/trace-mapping': 0.3.25 '@types/estree': 1.0.5 acorn: 8.11.3 + acorn-typescript: 1.4.13(acorn@8.11.3) aria-query: 5.3.0 axobject-query: 4.0.0 - code-red: 1.0.4 - css-tree: 2.3.1 - estree-walker: 3.0.3 + esm-env: 1.0.0 + esrap: 1.2.2 is-reference: 3.0.2 locate-character: 3.0.0 magic-string: 0.30.10 - periscopic: 3.1.0 + zimmerframe: 1.1.2 svelte@5.0.0-next.78: dependencies: From 91f6f835fd239c34485ac2642c95a729d7352ee2 Mon Sep 17 00:00:00 2001 From: Kevin Vandy Date: Tue, 11 Jun 2024 23:01:18 -0500 Subject: [PATCH 29/29] disable knip because its annoying --- knip.json | 6 +- package.json | 4 +- packages/svelte-table/src/flex-render.svelte | 70 -------------------- 3 files changed, 7 insertions(+), 73 deletions(-) diff --git a/knip.json b/knip.json index aa7a5d44da..3a6c3bd466 100644 --- a/knip.json +++ b/knip.json @@ -1,6 +1,10 @@ { "$schema": "https://unpkg.com/knip@4/schema.json", - "ignoreDependencies": ["@size-limit/preset-small-lib", "@builder.io/qwik"], + "ignoreDependencies": [ + "@size-limit/preset-small-lib", + "@builder.io/qwik", + "svelte-check" + ], "ignoreWorkspaces": ["examples/**"], "workspaces": { "packages/match-sorter-utils": { diff --git a/package.json b/package.json index cd18d0c491..6e1bb85aef 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,8 @@ "clean": "pnpm --filter \"./packages/**\" run clean", "preinstall": "node -e \"if(process.env.CI == 'true') {console.log('Skipping preinstall...'); process.exit(1)}\" || npx -y only-allow pnpm", "test": "pnpm run test:ci", - "test:pr": "nx affected --targets=test:format,test:sherif,test:knip,test:lib,test:types,test:build,build", - "test:ci": "nx run-many --targets=test:format,test:sherif,test:knip,test:lib,test:types,test:build,build", + "test:pr": "nx affected --targets=test:format,test:sherif,test:lib,test:types,test:build,build", + "test:ci": "nx run-many --targets=test:format,test:sherif,test:lib,test:types,test:build,build", "test:format": "pnpm run prettier --check", "test:sherif": "sherif", "test:lib": "nx affected --targets=test:lib --exclude=examples/**", diff --git a/packages/svelte-table/src/flex-render.svelte b/packages/svelte-table/src/flex-render.svelte index aa8b243029..2dc599b556 100644 --- a/packages/svelte-table/src/flex-render.svelte +++ b/packages/svelte-table/src/flex-render.svelte @@ -1,73 +1,3 @@ - -