1.12.1
Navbar: 新增placeholder属性,默认值为false;新增zIndex属性,默认值为1@anlyyao (#4116)TabBar: 新增placeholder属性,默认值为false;新增zIndex属性,默认值为1@anlyyao (#4116)Badge: @anlyyao (#4137)shape属性新增ribbon-right/ribbon-left/triangle-right/triangle-left可选项,其中ribbon与ribbon-right等效- 优化
ribbon实现,改用background: linear-gradient(),移除伪元素相关样式
Popover: 新增fixedAPI,适用于触发元素为fixed场景。⚠️ 当触发元素为fixed时,除了需要显示指定fixed属性为true,还需在触发元素层添加t-popover-wrapper--fixed类,用于定位触发元素。@Wesley-0808 (#4114)Search: @anlyyao (#4150)- 确保点击清空按钮后,组件内容清空但保持聚焦
- 新增
cursor-color属性
ChatContent: 修复角色为system时文本颜色错误 @anlyyao (#4112)Toast: 修复Toast嵌套调用时close回调陷入循环的问题 @anlyyao (#4110)Attachments: 修复删除按钮在华为pure70机型上显示不完整的问题 @waiterxiaoyy (#4124)DateTimePicker: 修复插槽名重复导致的控制台告警 @anlyyao (#4126)Picker:ColorPicker: 补充styleIsolation配置项,解决外部样式无法覆盖组件样式问题 @anlyyao (#4138)SwipeCell: 消除IntersectionObserver is using slowest path警告 @anlyyao (#4139)Tabs: 消除IntersectionObserver is using slowest path警告 @anlyyao (#4139)Progress: @anlyyao (#4153)- 修复深色模式下环形进度条内部背景色错误
- 修复环形进度条内部文本间距错误
- @waiterxiaoyy made their first contribution in https://github.com/Tencent/tdesign-miniprogram/pull/4124
- @Copilot made their first contribution in https://github.com/Tencent/tdesign-miniprogram/pull/4114
Full Changelog: https://github.com/Tencent/tdesign-miniprogram/compare/1.12.0...1.12.1
v1.7.0
🎉 See Announcing Rspack 1.7 for more details.
- perf(rstest): minor performance optimization by @fi3ework in https://github.com/web-infra-dev/rspack/pull/12469
- perf: update module graph overlay map by @hardfist in https://github.com/web-infra-dev/rspack/pull/12560
- feat: stabilize lazy compilation middleware by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12429
- feat: add support for type: 'text' in asset modules by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12457
- feat: enable lazy compilation for imports by defaults by @stormslowly in https://github.com/web-infra-dev/rspack/pull/12419
- feat(deps)!: bump
swc_corefrom 46.0.3 to 50.2.3 andswc_experimentalby @CPunisher in https://github.com/web-infra-dev/rspack/pull/12445 - feat: implement UniversalCompileAsyncWasmPlugin for universal chunk loading by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12471
- feat: stabilize inline exports by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/12475
- feat: stabilize SubresourceIntegrityPlugin by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12483
- feat: improve deprecation warning messages by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12524
- feat: add rspack_tools to compare .cache from different os by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/12499
- feat: improve warning messages for mocked node values by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12549
- feat: add bytes support for asset modules by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12548
- feat: mangle exports of css modules by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12563
- feat: default lazy compilation from cli and for web app only by @stormslowly in https://github.com/web-infra-dev/rspack/pull/12580
- fix: relative-resource-path should handle output.filename by @SyMind in https://github.com/web-infra-dev/rspack/pull/12398
- fix: improve RuntimeGlobals type definition accuracy by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12403
- fix: handle empty resource path in context module by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12407
- fix: align webpack behavior of removing empty entry chunk by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12414
- fix: make splitChunks more stable by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12410
- fix: should use exported name of the imported module by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12423
- fix: strip ANSI codes from ignoreWarnings messages by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12435
- fix: concatenate module should use importer's 'strict' for interop by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12446
- fix: wasm plugin panic when use persistent cache by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/12455
- fix: add Set methods to compilation dependencies by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12459
- fix(diagnostic): avoid emitting dim-only indent lines by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12461
- fix: handle symlinks correctly in rmrf function by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12456
- fix: add case-sensitive check for emit assets by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12462
- fix: use RspackHash for HTML plugin content hash calculation by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12465
- fix: re-validate HttpUriPlugin redirects against allowedUris and enforce http(s) and max redirects by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12463
- fix: extra runtime global bits are lost after js hook by @nilptr in https://github.com/web-infra-dev/rspack/pull/12275
- fix: set lazyCompilation default to web only by @stormslowly in https://github.com/web-infra-dev/rspack/pull/12473
- fix: handle ignored asset modules with proper data URL export by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12468
- fix: reexports in arrow-only environments without const by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12484
- fix: respect matchResource when generate nameForCondition by @Austaras in https://github.com/web-infra-dev/rspack/pull/12449
- fix: exclude hidden dir from snapshot managedPaths default value by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/12486
- fix: relative resource path in source maps on Windows by @SyMind in https://github.com/web-infra-dev/rspack/pull/12493
- fix: parsing arrow function IIFE by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12490
- fix: compile-time evaluation of optional chaining by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12494
- fix: SRI plugin runtime module check for Module Federation by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12519
- fix: use default runtime to export default interop and keep empty import for externals by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12530
- fix: optimize CSS runtime requirements logic by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12529
- fix: include import attributes in context module identifier by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12551
- fix: remove allowAsyncCycles option and detect all dependencies of modules by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12552
- fix: generate CSS file for universal target by @inottn in https://github.com/web-infra-dev/rspack/pull/12570
- fix: compilation js object memory leak by @SyMind in https://github.com/web-infra-dev/rspack/pull/12579
- fix(esm_lib_plugin): should set original module for get_binding by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12584
- fix(cli): apply default lazy compilation value based on user config by @stormslowly in https://github.com/web-infra-dev/rspack/pull/12583
- fix: shebang should always in entry chunk by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12585
- fix: remove error log while lazy compilation can't find module to invildate by @stormslowly in https://github.com/web-infra-dev/rspack/pull/12566
- refactor: use atomic_refcell for async_module_artifact by @hardfist in https://github.com/web-infra-dev/rspack/pull/12408
- refactor: use swc_experimental on concatenated module by @CPunisher in https://github.com/web-infra-dev/rspack/pull/12369
- refactor: change dependencies_diagnostics_artifact to use atomic_refcell by @hardfist in https://github.com/web-infra-dev/rspack/pull/12415
- refactor: replace
SourceFilewith&strand replaceArc<SourceMap>withRopein rspack_plugin_javascript by @CPunisher in https://github.com/web-infra-dev/rspack/pull/12404 - refactor: extract common utility functions to rspack_util by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12447
- refactor: remove linked_hash_set dependency by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12451
- refactor(esm-lib-plugin): manually resolve exports that re star-exported, and improve NodeTargetPlugin for module output by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12476
- refactor: extract case-sensitive check to plugin by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12532
- refactor: check neutral platform by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12534
- refactor: move collectTypescriptInfo out of rspackExperiments by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/12535
- refactor: refactor module graph by @hardfist in https://github.com/web-infra-dev/rspack/pull/12474
- refactor: merge rspack_cacheable SerializeError and DeserializeError by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/12556
- refactor: remove option for modules by @hardfist in https://github.com/web-infra-dev/rspack/pull/12567
- refactor: remove all option in ModuleGraphData by @hardfist in https://github.com/web-infra-dev/rspack/pull/12568
- refactor: remove get_make_module_graph_mut api by @hardfist in https://github.com/web-infra-dev/rspack/pull/12575
- refactor: refine exports info for CJS and ESM interop by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12577
- refactor: remove redirect_to in exports info by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12581
- refactor: use defer_options for build_module_artifact by @hardfist in https://github.com/web-infra-dev/rspack/pull/12578
- refactor: DerefOpiton default to Some(T) when T impl Default trait by @stormslowly in https://github.com/web-infra-dev/rspack/pull/12406
- refactor: make &compilation for optimization_dependencies by @hardfist in https://github.com/web-infra-dev/rspack/pull/12576
- refactor: make compilation readonly for optimize_modules phase by @hardfist in https://github.com/web-infra-dev/rspack/pull/12586
- refactor: improve exports info by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12587
- docs: add docs about env to control working threads limit by @hardfist in https://github.com/web-infra-dev/rspack/pull/12383
- docs: improve AGENTS.md and add comprehensive development documentation by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12420
- docs: upgrade rspress@2.0.0-rc.2 by @SoonIter in https://github.com/web-infra-dev/rspack/pull/12426
- docs: update FAQ to clarify Rspack's support for Wasm and RSC by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12432
- docs: enhance
ignoreWarningsoption with detailed examples by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12436 - docs: add deprecated options documentation by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12448
- docs: refactor
module.rulesoptions into a dedicated page by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12452 - docs: improve
resolve.byDependencydescription and examples by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12458 - docs: fix rules[].use example by @henryqdineen in https://github.com/web-infra-dev/rspack/pull/12466
- docs: add descriptions for built-in plugins by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12485
- docs: add test/include/exclude options for eval source map devtool by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12495
- docs: use Rspress's default table styles by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12496
- docs: remove unused code, correct the usage of Link and Table. by @SoonIter in https://github.com/web-infra-dev/rspack/pull/12498
- docs: enhance
output.asyncChunksdocumentation and examples by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12500 - docs: stablize inline exports configurations by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/12504
- docs: format markdown files by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12507
- docs: mention browserslist limitations in target configuration by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12515
- docs: correct markdown link in infrastructure logging by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12525
- docs: remove obsolete comments from config examples by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12526
- docs: add redirect config for
CaseSensitivePluginby @Timeless0911 in https://github.com/web-infra-dev/rspack/pull/12550 - docs: improve node configurations by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12547
- docs: correct optimization.realContentHash type by @vsn4ik in https://github.com/web-infra-dev/rspack/pull/12562
- docs: fix childAssets typo in ChunkGroup object by @henryqdineen in https://github.com/web-infra-dev/rspack/pull/12565
- test: remove webpack consistency check filters from statsOutputCases by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12394
- test: enable previously filtered test cases and update expected outputs by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12396
- chore(ci): run Mac CI test on github hosted runner by @stormslowly in https://github.com/web-infra-dev/rspack/pull/12397
- test: update stats snapshot by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12401
- test: enable passing normalCases tests and document failures by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12409
- test: enable passing configCases tests and document failures by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12412
- test: try to fix flaky test cases by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12402
- chore(ci): fix artifact discovery logic in Rsdoctor action by @yifancong in https://github.com/web-infra-dev/rspack/pull/12405
- chore: bump
swc_experimentalto fix parsing utf8 in template by @CPunisher in https://github.com/web-infra-dev/rspack/pull/12431 - chore(ci): skip diff action for doc-only changes by @yifancong in https://github.com/web-infra-dev/rspack/pull/12437
- chore(deps): update dependency cspell to ^9.4.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12439
- chore(deps): update dependency memfs to v4.51.1 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12440
- chore(deps): update dependency tsx to ^4.21.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12442
- chore(deps): update dependency prettier to v3.7.4 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12441
- chore: skip diff CI for doc-only changes by @yifancong in https://github.com/web-infra-dev/rspack/pull/12438
- chore: enable noUnusedParameters option in tsconfig by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12464
- chore(deps): update SWC to v48.0.1 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12479
- chore(deps): update dependency @shikijs/transformers to ^3.20.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12480
- chore(ci): support collapsing the CI comment by @yifancong in https://github.com/web-infra-dev/rspack/pull/12472
- chore(deps): update github-actions by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12477
- chore: release v1.7.0-beta.0 by @CPunisher in https://github.com/web-infra-dev/rspack/pull/12487
- chore(ci): update windows zstd version by @stormslowly in https://github.com/web-infra-dev/rspack/pull/12489
- chore(deps): update patch npm dependencies by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12478
- chore(deps): bump Rslib v0.18.5 by @Timeless0911 in https://github.com/web-infra-dev/rspack/pull/12502
- chore(ci): collapse the diff action detail comments by @yifancong in https://github.com/web-infra-dev/rspack/pull/12503
- chore(deps): update dependency commander to v14 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12510
- chore(deps): update pnpm to v10.26.1 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12509
- chore(deps): update dependency @swc/plugin-remove-console to ^12.1.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12508
- chore(deps): update dependency jest-diff to v30 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12512
- chore(deps): update dependency pretty-format to v30 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12514
- ci: check formats for doc-only changes by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12511
- chore(deps): update patch crates by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12152
- test: add retry configuration for CI to reduce flakes by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12517
- test: enable previously skipped stats output tests by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12520
- chore: bump swc_core from 50.2.3 to 52.0.0 and swc_experimental from 0.3.3 to 0.3.5 by @CPunisher in https://github.com/web-infra-dev/rspack/pull/12518
- chore: restructure examples and add basic React example by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12522
- chore: remove logic of parallelCodeSplitting by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12424
- test: cleanup obsolete test cases and update test configurations by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12523
- chore: allow prettier to format test tools and e2e files by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12528
- chore: release v1.7.0 beta.1 by @SyMind in https://github.com/web-infra-dev/rspack/pull/12533
- chore(deps): update dependency @module-federation/runtime-tools to v0.22.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12536
- chore(deps): update dependency markdown-to-jsx to v9 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12540
- chore(deps): update github-actions by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12541
- chore(deps): update pnpm to v10.26.2 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12544
- chore(deps): update patch npm dependencies by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12543
- chore(deps): update patch crates by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12542
- chore(deps): update dependency @rslib/core to v0.18.6 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12553
- chore: unify prettier config format by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12557
- chore: ignore style changes in git blame by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/12561
- test: cleanup diff comments by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/12564
- chore(vscode): set defaultFormatter to prettier by @Timeless0911 in https://github.com/web-infra-dev/rspack/pull/12574
- chore(deps): bump Rslib v0.19.0 by @Timeless0911 in https://github.com/web-infra-dev/rspack/pull/12573
- chore: bump swc_core from 52.0.0 to 54.0.0 and swc_experimental from 0.3.5 to 0.4.0 by @CPunisher in https://github.com/web-infra-dev/rspack/pull/12582
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.6.8...v1.7.0
3.1.0
- 🐛 Bugfix: Fix
onResizeStopreporting stale size data due to React's batched state updates. The callback now uses the stored size from the lastonResizecall. #250 - ➕ Feature: React 18 support.
- ✏ Chore: Migrate test suite from Enzyme to React Testing Library. #249
- ✏ Chore: Update
react-draggableto ^4.5.0. - ✏ Chore: Update
react-test-rendererto ^18.
v10.3.0
- Added support for
filterAnnotationsprop inPagecomponent (#1991). - Made the code more resilient to promise cancellations (#974).
- Tests are no longer shipped to npm. This helped reducing publish size from 416 kB to 303 kB.
- Updated Next.js samples.
- Fixed incorrectly calculated dimensions of rotated pages in Page onLoadSuccess handler (#2027). Thanks, @wkirby!
@tanstack/vue-virtual@3.13.14
- Updated dependencies [
6d9274c]:- @tanstack/virtual-core@3.13.14
@tanstack/virtual-core@3.13.14
-
Fix: Correct lane assignments when lane count changes dynamically (#1095)
Fixed a critical bug where changing the number of lanes dynamically would cause layout breakage with incorrect lane assignments. When the lane count changed (e.g., from 3 to 2 columns in a responsive masonry layout), some virtual items would retain their old lane numbers, causing out-of-bounds errors and broken layouts.
Root Cause: After clearing measurements cache on lane change, the virtualizer was incorrectly restoring data from
initialMeasurementsCache, which contained stale lane assignments from the previous lane count.Fix: Skip
initialMeasurementsCacherestoration during lane transitions by checking thelanesSettlingflag. This ensures all measurements are recalculated with correct lane assignments for the new lane count.Before:
// With lanes = 2 virtualItems.forEach((item) => { columns[item.lane].push(item) // ❌ Error: item.lane could be 3 })
After:
// With lanes = 2 virtualItems.forEach((item) => { columns[item.lane].push(item) // ✅ item.lane is always 0 or 1 })
This fix is essential for responsive masonry layouts where column count changes based on viewport width. No performance impact as it only affects the lane change transition path.