chore: migrate unhead to v3, typescript to v6#2602
Merged
Conversation
✅ Deploy Preview for slidev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
…d by tsdown-stale-guard
tsdown 0.22 + rolldown-plugin-dts can't bundle transitive CJS d.ts files (postcss, esbuild, webpack-virtual-modules). Treat all node_modules as external so the bundled dts references them as imports instead of inlining.
@slidev/client
create-slidev
create-slidev-theme
@slidev/parser
@slidev/cli
@slidev/types
commit: |
Cypress 14.5.4's webpack-preprocessor injects `downlevelIteration: true` into its internal ts-loader config. TS 6 errors on it as deprecated and blocks spec compilation. Set `ignoreDeprecations: "6.0"` at the root so the cypress tsconfig inherits it and the deprecation downgrades to a silent acceptance until TS 7.
v15 officially supports TypeScript 6. None of its breaking changes (SelectorPlayground rename, cy.stub 3-arg signature, cy.exec exitCode, Firefox CDP, Node 18/23 drop) touch our specs, which only use cy.visit/get/wait/url/type.
Twoslash's virtual TS env sets baseUrl in its default compiler options, and TS 6 errors on it. Pass `ignoreDeprecations: '6.0'` through twoslashOptions.compilerOptions so the doc build's snippet compilation stops failing. Also remove the unused baseUrl from docs/tsconfig.json.
The vitepress-twoslash transformer Slidev installs for code blocks hits the same TS5101 baseUrl/moduleResolution deprecation as the docs build did. Pass `ignoreDeprecations: '6.0'` so the demo's starter slides (which feed Netlify's deploy preview) compile under TS 6.
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.
Summary
typescript^5.9.3 → ^6.0.3,unheadand@unhead/vue^2.1.15 → ^3.1.0.packages/slidev/node/setups/indexHtml.tsto unhead v3: dropawaiton the now-synctransformHtmlTemplate, and replace thefalsefallback inslidev:entry'scontentwithnullto satisfy v3's stricter Meta typing (existing.filter(x => x.content)still drops it in build mode).chore: update depscatalog refresh on this branch.Test plan
pnpm installclean (only pre-existing peer-dep warnings)pnpm lintcleanpnpm test: 143/143 tests pass (2 pre-existing suite-load failures from an unrelatedtsdown/rolldown-plugin-dtsissue with@slidev/types, reproduces onmain)pnpm dev): verify deck title, presenter/notes/overview titles, and<meta slidev:version>/slidev:entry(dev-only) render correctly