Repository navigation
Releases
Releases · umijs/umi
v4.7.44
What's Changed
- Update Utoopack from
1.6.10to1.6.12. This update adds support for named async chunk groups and syncs Turbopack with Next.js canary822a20a8. Utoopack changes - Generate UnoCSS before starting the development compiler so styles are ready for the initial build. #13521
v4.7.43
What's Changed
- Update Utoopack from
1.6.8to1.6.10. Production browser builds now minify JavaScript before chunking and target about 400 kB of estimated minified JavaScript per chunk. Chunk grouping and filenames may change. Utoopack 1.6.10 release notes
v4.7.42
What's Changed
- Fix stale CSS in development when an imported Less file used by
src/overrides.lesschanges. The watcher also picks up changes to the import list. #13517 - Add
monorepoRedirect.sourceTypesto let TypeScript resolve a workspace package and its subpaths from source before its declarations are rebuilt. This is opt-in. If you userootDirwith this option, include the redirected sources. #13519 - Discover locale files with three-letter languages, scripts, and numeric regions, including
fil.ts,zh-Hant-TW.json, andes-419.js. Check for helper files in locale directories whose names now match these patterns. #13520 - Fix
umi g jestfor projects using TypeScript bundler resolution orverbatimModuleSyntax. New setups generatejest.config.cjsand include jsdom with either testing-library choice. If you regenerate your config, update any script that explicitly points tojest.config.ts. #13516
v4.7.41
What's Changed
- Upgrade Vite to 7.3.8 to fix a vulnerability affecting network-accessible development servers. #13515 · Vite security advisory
- Fix Webpack's
granularChunksstrategy so unrelated groups of unnamed lazy imports can load their shared code independently. Affected output filenames can lose theshared-prefix. Custom asset upload rules that match this prefix should include the new filenames. #13518
v4.7.40
What's Changed
- Restrict MFSU asset serving to files inside the configured build output directory. The same check applies to generated assets and named chunks. Commit
v4.7.39
What's Changed
- Update
@umijs/bundler-utoopackto use@utoo/pack@1.6.8. The updated peer dependency ranges resolve pnpm errors with Umi'sless-loader@11.1.0and PostCSS 8.5.x. #13514 · Utoopack 1.6.8
v4.7.38
What's Changed
- Update
@umijs/bundler-utoopackto@utoo/pack@1.6.7. Utoopack can now follow symlinks into additional filesystem roots configured withadditionalRoots. TurboTasks garbage collection is enabled by default when persistent caching is enabled. Utoopack 1.6.7
v4.7.37
What's Changed
- Start memory history at the configured
basewhen no initial entries are supplied. #13510 - Keep locale changes in memory when
locale.useLocalStorageis disabled so language switching remains consistent within the page. #13512 - Keep the current path and origin when a
Linkor history update changes only the query string or fragment. #13513 - Export configured index routes without a path and skip wildcard routes that cannot be exported. #13513
- Render stylesheet objects in SSR while preserving inline CSS, wait for asynchronous metadata, and serialize inline SSR data safely. #13513
- Match same-name assets to their emitted content in SSR manifests and limit comparison reads to regular files inside the source or output directories. #13513
Thanks to Aminark for the original fixes and regression tests.
v4.7.36
What's Changed
- Fetch data when navigating from an SSR page to a route that only declares a
serverLoader. Preserve dual-loader request timing, publish complete fallback data for nested routes, and retain the existinguseLoaderData()type signature. #13499 · #13504 - Ignore stale
clientLoaderresults during navigation. #13498 - Merge SSR metadata in route order. Child routes take precedence for scalar fields, and arrays follow parent-to-child order. #13500
- Fix generated TypeScript entry points for MPA pages. #13501
- Preserve query parameters and fragments on redirects with
keepQuery. An explicit destination fragment takes precedence. #13502 - Accept
{ path, prerender }entries inexportStatic.extraRoutePaths. #13489 - Honor
mock: falseinumi preview. #13491
Routing compatibility
Convention-based routing now preserves -index in page names. For example, pages/search-index.tsx now generates /search-index. Update existing links and redirects that use the old /search- path. #13490
v4.7.35
What's Changed
- feat(utoopack): integrate native Pack Analyzer behind ANALYZE by @Wu-kung in #13479
- fix(preset-umi): limit DevTool diagnostic responses by @fireairforce in #13482
- fix(preset-umi): constrain DevTool static file resolution by @fireairforce in #13481
- fix(utoopack): run only the native analyzer in Umi builds by @fireairforce in #13480
- feat(utoopack): export bundle analysis as JSONL by @fireairforce in #13484
- docs(utoopack): explain bundle analysis by @fireairforce in #13483
- feat(utoopack): accept a filename for JSONL export by @fireairforce in #13485
Full Changelog: v4.7.34...v4.7.35