Repository navigation
Framework upgrades for maintainability - #1
Merged
Merged
Conversation
Upstream froze this framework on its legacy branch after 40.1.8 and replaced main with a different product, so we publish our own builds. Every public package is renamed from @evidence-dev/<name> to @yolean/evidence-<name> (@evidence-dev/evidence to @yolean/evidence). Workspace dependencies use pnpm aliases, workspace:@yolean/evidence-x@*, so source keeps importing @evidence-dev/* and the packed manifests say "@evidence-dev/x": "npm:@yolean/evidence-x@<version>". Consumers install the same way. source-javascript took db-commons from the registry and now takes it from the workspace like the other datasources. A changeset bumps the patch version of every package, together with upstream's unreleased CVE changeset (now naming @yolean/evidence-core-components). Packed tarballs of evidence and core-components have the same files as upstream's 40.1.8 and 5.4.2. The release workflow runs only on workflow_dispatch in Yolean/evidence-bi-dev, and no longer dispatches upstream's e2e smoke tests. README says this is an unofficial copy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
packageManager moves from pnpm 8.15.9 to 12.16.1, the version checkit uses. pnpm 12 no longer reads settings from package.json "pnpm" or .npmrc, so overrides and publicHoistPattern move to pnpm-workspace.yaml. The lockfile went through pnpm 9, which converts lockfile v6 to v9 and keeps every resolved version. pnpm 12 can't read v6 and re-resolves the whole tree instead. The only additions are pnpm 12's own packages. pnpm 12 fails install on dependency build scripts nobody approved. allowBuilds approves sqlite3 only, which downloads its native binding in its install script. The rest ship binaries as optional platform packages or just print messages; parcel, esbuild and svelte-package all build without them. build:tailwind is dropped from postinstall and release. The tailwind package has had no build script since 53292be, which pnpm 8 ignored and pnpm 12 reports as a missing script. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Vite 5.4.21 -> 8.3.8 (rolldown), @sveltejs/vite-plugin-svelte 3 -> 7.3.1,
svelte 4.2.19 -> 5.57.3 and @sveltejs/kit 2.8.4 -> 2.70.4, the last 2.x,
which supports Vite 8. Svelte 5 is required by vite-plugin-svelte 4 and
later, so it can't be a step of its own. Svelte libraries move to their
Svelte 5 capable versions: bits-ui 0.22, cmdk-sv 0.0.19,
@steeze-ui/svelte-icon 1.6.2, mdsvex 0.12.8, svelte-preprocess 6.0.5,
svelte2tsx 0.7.63, svelte-check 4.7.8, @sveltejs/package 2.5.8 and
adapter-static 3.0.11. core-components runs vitest 4.1.12, because
vitest 2 can't load vite-plugin-svelte 7; the other packages keep vitest
2, whose mocks their tests depend on. Storybook 8 stays, which accepts
Vite up to 6, so the component stories don't run for now.
Svelte 5 makes some markup errors that Svelte 4 warned about:
- headings that contain a link got wrapped in an anchor link, which is
<a> in <a>. A small rehype plugin replaces rehype-autolink-headings
5.1.0, which has no option to skip such headings
- <th> directly in <thead> in three format grids, now in a <tr>
- `export { _default as default }` in ButtonGroupItem; the default prop
is read from $$props
And flush from svelte/internal is gone; flushSync from svelte does the
same in the two ECharts wrappers. The template config gives
svelte-preprocess verbatimModuleSyntax, as it finds no tsconfig.json
there.
overrides in pnpm-workspace.yaml are unchanged, because any change to
them re-resolves the whole lockfile and the open ">=" overrides pull new
majors. The lockfile's changes are the bumped packages and their new
dependencies.
Measured on support-v3-bi with an anonymized dataset of 82 orgs:
org-build.js for the largest org 18.4 s -> 11.4 s, a small one 16.3 s ->
8.9 s, peak RSS 4.4 GB -> 3.5 GB; the full site build 25.9 s -> 18.6 s.
Pages render the same, filters re-query the same, and Print PDF of 22
page kinds matches except for differences that two builds with the old
framework also show between each other.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
changeset version for the Vite 8, Svelte 5 and SvelteKit 2.70 changeset: evidence 40.2.0, core-components 5.5.0, sdk 4.1.0, preprocess 6.1.0, component-utilities 4.1.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
eslint-plugin-svelte reports Svelte 5's compiler warnings as errors: - 76 self-closing non-void elements (<div ... />), expanded to <div ...></div> with positions from svelte's parser - <tr> directly in <table> in the three format grids, which the browser moves into a <tbody> and Svelte then fails to hydrate, now in <tbody> - another <h2> in <h1>, in a DateInput story Prettier formats the CHANGELOGs changeset version wrote and the spec with it.skip. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The upstream workflows run on Node 20, which Vite 8 and pnpm 12 don't support, and most of them serve the upstream project: pull_request_target tests behind an external-PR approval, issue tagging, and an e2e matrix over upstream's example sites. ci.yml installs (postinstall builds the packages), lints, runs the unit tests of the packages we publish and, on pull requests, checks for a changeset. universal-sql's only spec and one of preprocess's use mock-fs, which doesn't work on Node 26. Release keeps workflow_dispatch, with the same Node and pnpm/action-setup v6.1.1, which installs the packageManager pnpm 12. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
changeset status fails on any branch that already ran changeset version, which is how releases are cut here: version on the branch, review, then publish. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.