v2.0.0-beta.5
The fifth beta of Leaflet 2.0 adds ProjectedCRS, a core replacement for the Proj4Leaflet plugin for maps in national grids and other projected coordinate systems, along with over 20 bug fixes.
- Add
ProjectedCRSfor maps in national grids, WMTS tile matrix sets and other projected coordinate systems, replacing the unmaintained Proj4Leaflet plugin. Hooking up proj4 (or any other projection library) takes a few lines, zooming works smoothly past the defined zoom levels, and it adds nothing to your bundle unless imported (#10591)
- Make adding many layers to a collapsed layers control much faster (#10585 by @TheNetherWatcher, #10266)
- Allow clearing a
WMSTileLayerparam by setting it toundefinedornullwithsetParams(#10590 by @ogchicken, #3441) - Add
originalEventto markerdragstartandmovestartevents, so you can check the pointer type or modifier keys that started the drag (#10574 by @ogchicken, #6953) - Show distances under a meter (like
0.3 m) in the scale control instead of an oversized1 mbar (#10583 by @SwastikTripathi) - Accept arrays and plain objects in
Point#scaleByandPoint#unscaleBy(#10573 by @Kernel-Hunter)
- Mark the "Leaflet" and "OpenStreetMap" attribution links as English, so screen readers pronounce them correctly on non-English maps (#10580 by @nfreear, #10579)
- Stop tooltips from overwriting other descriptions in their source's
aria-describedby(#10596 by @xiaoyao-666-coder) - Stop closed tooltips from staying in their source's
aria-describedby(#10578 by @ogchicken)
- Fix CSS resets like Tailwind's shrinking video overlays and vector layers in custom panes (#10589 by @ogchicken, #4600)
- Fix canvas layers getting a
clickwhen the press started elsewhere on the map (#10588 by @b84330808, #7105) - Fix tooltips with a
Pointoffset jumping around on zoom when they open to the left, a regression in beta.4 (#10605 by @SudeepGowda55) - Fix rebinding a popup with
bindPopupleaving the old one open with no way to close it (#10606 by @SudeepGowda55) - Fix
LayerGroup#toGeoJSONmissing layers in plugins that extend layer groups, a regression in 2.0 - Fix
setMinZoom/setMaxZoomcalled during a zoom animation leaving the map outside the new limits (#10571 by @ogchicken, #9226) - Fix part of
maxBoundsbeing unreachable with some projections, such as conic ones (#10584 by @ogchicken, #7650) - Fix
GeoJSON#resetStylethrowing for layers added withaddLayer(#10598 by @Chen1098) - Fix dragging a marker with
autoPanthrowing whenautoPanPaddingis 0 on either axis (#10607 by @SudeepGowda55) - Fix the map not zooming out when a layer with
maxZoom: 0is added (#10572 by @ogchicken) - Fix disabling box zoom mid-drag leaving the box on the map and still zooming on release (#10587 by @ogchicken)
- Fix
FullscreenControlgetting stuck in fullscreen mode when the map is removed from the page while fullscreen - Fix
off()called from a listener not stopping the remaining listeners of that event (#10597 by @Chen1098) - Fix
map.remove()leaving built-in handlers likescrollWheelZoomenabled when a plugin handler re-enables them (#6474) - Fix canvas paths with
weight: '0'(as a string) still being drawn (#10581 by @ogchicken) - Fix
ZoomControl#enable/#disablethrowing when the control isn't on a map (#10582 by @ogchicken)
- Clarify that
LayersControl'sautoZIndexkeeps the order of tile layers and overlays, but not of markers and vectors (#10594 by @deepujain, #5201) - Complete the keyboard shortcuts table in the accessibility tutorial (#10575 by @ogchicken)
- Fix missing OpenTopoMap tiles past zoom 17 in the layers control tutorial (#10576 by @ogchicken)
- Fix the favicon on tutorial example pages (#10577 by @ogchicken)
- Fix debug pages broken by the v2 API changes (#10586 by @ogchicken)
- Add a test for the
LatLng#equalsdefault margin (#10608 by @ksir0601, #10603)
WMSTileLayerno longer sends params set toundefinedornull(previously sent as the strings"undefined"and"null")- A collapsed layers control updates its list only when it expands, so code reading the list's DOM while it's collapsed may see it out of date
v3.12.0
- feat(app-tools): simplify the default HTML meta tags to UTF-8 charset and
width=device-width, initial-scale=1viewport. Remove the default zoom restrictions,shrink-to-fit,viewport-fit,x-ua-compatible,renderer,layoutmode,imagemode,wap-font-scale, andformat-detectionsettings. Existing applications using these defaults will receive the new tags after upgrading and rebuilding. Configurehtml.metaexplicitly if the application needs any of the removed settings, such asviewport-fit=coverfor edge-to-edge layouts orformat-detection: telephone=noto disable phone number detection. by @zllkjc in https://github.com/web-infra-dev/modern.js/pull/9170 - feat: support a build-time
ssgParamsexport alongside a conventional page's data loader to generate static paths from route parameters. Combine generated paths with explicit SSG route lists, giving explicit options precedence for duplicate URLs. Global SSG settings apply to every entry unless an entry map is provided. by @zllkjc in https://github.com/web-infra-dev/modern.js/pull/9167 - feat(server-core): set
Cache-Controlfor static files served by the production server. Build assets with a content hash getpublic, max-age=31536000, immutable, other static files getno-cache. Static files also get anETagcomputed from their content and answerIf-None-Matchwith304. Configure or disable it withserver.staticCacheControl. by @ramazansancar in https://github.com/web-infra-dev/modern.js/pull/9100
- fix: upgrade
@modern-js/polyfill-libto removedifffrom its production dependencies. by @zllkjc in https://github.com/web-infra-dev/modern.js/pull/9184 - fix(app-tools): treat a build command followed only by
--helpor-h(for examplemodern build --helpormodern dev -h) as printing help, so it no longer empties the output directory or regeneratesnode_modules/.modern-js. The plugin lifecycle order is unchanged. by @byte-lyh in https://github.com/web-infra-dev/modern.js/pull/9180 - fix(app-tools, utils): centralize CLI plugin loading in
compatibleRequire. Fall back to ESM imports only whenrequirereports an incompatible ESM module, including modules with top-level await. Preserve other loading errors without retrying, avoiding misleading Windows URL scheme errors, and report the actual ESM execution error if the fallback fails. by @zllkjc in https://github.com/web-infra-dev/modern.js/pull/9168 - fix: normalize Windows paths in generated route component imports, including custom entry directories and paths containing non-ASCII characters. by @GiveMe-A-Name in https://github.com/web-infra-dev/modern.js/pull/9198
- Use an explicit callable signature for the isFunction type guard when enabling TypeScript project discovery in the repository linter. by @GiveMe-A-Name in https://github.com/web-infra-dev/modern.js/pull/9178
- Remove an obsolete ambient type reference to the unavailable module-tools package. by @GiveMe-A-Name in https://github.com/web-infra-dev/modern.js/pull/9179
- feat(app-tools):将默认 HTML meta 标签精简为 UTF-8 字符编码和
width=device-width, initial-scale=1视口配置。移除默认缩放限制、shrink-to-fit、viewport-fit、x-ua-compatible、renderer、layoutmode、imagemode、wap-font-scale和format-detection设置。使用默认配置的已有应用在升级并重新构建后也会采用这些新值。如需保留已移除的设置,请通过html.meta显式配置,例如使用viewport-fit=cover保持页面铺满屏幕,或使用format-detection: telephone=no关闭电话号码自动识别。 由 @zllkjc 实现, 详情可查看 https://github.com/web-infra-dev/modern.js/pull/9170 - feat: 支持在约定式路由的数据加载文件中导出构建期
ssgParams,由路由参数生成静态路径。合并生成路径与显式 SSG 路径列表,重复 URL 使用显式配置。未提供入口映射时,全局 SSG 配置适用于所有入口。 由 @zllkjc 实现, 详情可查看 https://github.com/web-infra-dev/modern.js/pull/9167 - feat(server-core):生产服务器为静态文件设置
Cache-Control。文件名包含内容哈希的构建产物使用public, max-age=31536000, immutable,其他静态文件使用no-cache。静态文件还会带上根据内容计算的ETag,并对If-None-Match返回304。可以通过server.staticCacheControl修改或关闭。 由 @ramazansancar 实现, 详情可查看 https://github.com/web-infra-dev/modern.js/pull/9100
- fix: 升级
@modern-js/polyfill-lib,移除其生产依赖中的diff。 由 @zllkjc 实现, 详情可查看 https://github.com/web-infra-dev/modern.js/pull/9184 - fix(app-tools):构建类命令后面只跟
--help或-h时(例如modern build --help、modern dev -h)视为打印帮助,不再清空产物目录,也不再重新生成node_modules/.modern-js。插件生命周期顺序不变。 由 @byte-lyh 实现, 详情可查看 https://github.com/web-infra-dev/modern.js/pull/9180 - fix(app-tools, utils):统一使用
compatibleRequire加载 CLI 插件,仅在require无法加载 ESM 模块时回退到 ESM 导入,支持包含顶层 await 的模块。其他加载错误直接抛出,避免被 Windows URL 协议错误覆盖。ESM 回退执行失败时,报告实际的 ESM 执行错误。 由 @zllkjc 实现, 详情可查看 https://github.com/web-infra-dev/modern.js/pull/9168 - fix: 修复生成的路由组件 import 未转换 Windows 路径的问题,支持自定义入口目录及包含非 ASCII 字符的路径。 由 @GiveMe-A-Name 实现, 详情可查看 https://github.com/web-infra-dev/modern.js/pull/9198
Release 2026-11-19 03:25
Release 2026-11-19 03:25
- solid-router: observe-tier attribution parity with @solidjs/router (solid-js rc.13) (#8574) (10152238ab) by @ryansolid
- solid-router: consume server-function response metadata (#8461) (bf7f924b60) by @ryansolid
- solid-router: declare navigations to Solid's observe tier (#8399) (9de3573f7f) by @ryansolid
- solid-router: native SSR match transfer, hydration-claiming boot, provider-owned dispatch (#8213) (b445b89281) by @ryansolid
- solid: named single-flight source + loadFlightTarget, the cache-agnostic trigger (#8192) (96f50d94a6) by @ryansolid
- solid-router: delegate lazyRouteComponent to Solid 2's lazy() (#8081) (252caa8534) by @brenelz
- solid-router: adopt Solid 2's useHead registry for head management (#8080) (b60b741a88) by @brenelz
- integrate solid v2 query (#6938) (69da50126a) by @brenelz
- upgrade outer-devtools-core to Solid 2.0 (868d2bfbc3) by @brenelz
- solid-router-devtools: follow router state and prop changes in the Solid 2 wrappers (#8960) (f7b54c48fa) by @brenelz
- e2e: type-check and run the new Solid streaming-ssr and dev-ssr-styles apps (8ce1f8be5a) by @brenelz
- solid: repair e2e and ssr benchmarks after the main merge (7852ef5dfc) by @brenelz
- react-start-rsc: bump RSC bundler deps for RSC (#8919) (e7358c36d8) by @DogPawHat
- start-plugin-core: restore the build of the Rsbuild virtual modules (#8907) (70bbd11025) by @Sheraff
- start-plugin-core: Rsbuild manifests list only a route's own chunks (#8876) (c156097786) by @Sheraff
- start-plugin-core: write Rsbuild virtual modules under the app's root, not the working directory (#8868) (df6ac30406) by @Sheraff
- start-plugin-core: refuse custom server-fn ids that never worked over HTTP, deprecate the rest outside the unreserved set (#8858) (2ebc0f3586) by @Sheraff
- start-plugin-core: find Start libraries from Vite's root, not the working directory (#8866) (3cc054c374) by @Sheraff
- solid-router: keep route-scoped accessors readable after navigation teardown (#7607) (81ee38eee5) by @brenelz
- solid-router: preserve caller roles on enabled links (#8109) (d46b8ee00b) by @Fnine59
- solid-router: don't install intent-preload listeners when preloading is off (#8179) (465d15a15d) by @russelgal
- solid-router: respect server flag during development SSR (#8254) (a09b50cac1) by @brenelz
- solid-router: remove router-owned Loading boundaries, ack startTransition at settlement (#8236) (cc25e82278) by @ryansolid
- examples: migrate remaining legacy createEffect calls to Solid 2.0 two-phase signature (#8223) (c753d0a222) by @ryansolid
- solid-start: single-flight (#8170) (a09f492463) by @birkskyum
- solid-router: make the global loading boundary opt-in and server/client-symmetric (#8027) (41cffa00f3) by @ryansolid
- solid-start: resolve SSR'd lazy() client assets via vite-plugin-solid's manifest (99756c0710) by @brenelz
- solid-router: keep Transitioner hydration ids in sync between server and client (e021c7a352) by @brenelz
- benchmarks: Solid v2 type fixes for new benchmark scenarios (2bb318bdcf) by @brenelz
- benchmarks: adapt new solid benchmarks from main to Solid v2 (26d94d93fc) by @brenelz
- lockfile: restore @rspack/binding@2.0.8 platform binaries (01dbb52d06) by @brenelz
- solid-router: resolve defaultNotFoundComponent at render time to avoid hydration desync (#7734) (f9b0e57ce0) by @brenelz
- update solid ssr benchmark types (3fe770ad17) by @brenelz
- solid-router-v2: use TSR_DEFERRED_PROMISE (#7532) (ff136aaea6) by @birkskyum
- solid-router: prevent HeadContent hydration warnings (#7510) (129d043f2d) by @brenelz
- move HydrationScript to HeadContent (#7296) (67b46d7546) by @birkskyum
- pin solid v2 beta.6 (#7171) (85eb16c6ad) by @birkskyum
- adjust pre-release ranges to use caret (#7130) (72ebb55236) by @birkskyum
- better rollupOptions/rolldownOptions handling (#6990) (56e28e47ce) by @birkskyum
- use solid v2 query pre-release (#6977) (da2b8d9e96) by @birkskyum
- vite 8 compat (dfd64e4a08)
- Upgrade to solid v2 beta.3 (#6943) (c3e19322e3) by @brenelz
- more tweaks (82e6d42fec) by @brenelz
- test (0dc0cd0b9a) by @brenelz
- down to one failure (faa3280b98) by @brenelz
- solid-start basic e2e (187cc84d51) by @brenelz
- e2e tests (d026877263) by @brenelz
- work on solid v2 upgrade (59017534d8) by @brenelz
- build (1021e6c7d8) by @brenelz
- start-plugin-core: count imported modules once in the Rsbuild manifest pass (#8926) (0b6d4f3f6b) by @Sheraff
- solid-router: proxy-free link props in the spread hot path (#7609) (51b4bd4f37) by @brenelz
- solid-router: move off sharedConfig onto Solid 2.0 public hydration APIs (solid-js rc.13) (#8569) (665e9d86a4) by @ryansolid
- solid: retire solid-router-ssr-query — native channels carry the Router + Query pairing (#8193) (5a6935f2d5) by @ryansolid
- solid: bump to solid-js 2.0.1 and @solidjs/vite-plugin 3.0.1 (#8946) (b81b95577d) by @brenelz
- deps: update vite to 8.3.8 for GHSA-p4f5-76q4-ffq7 (#8955) (11b3bcb36d) by @DogPawHat
- bump next to 16.4.6 for critical CVEs (2a5293f75b) by @brenelz
- drop changesets merged in from main (7826dfa406) by @brenelz
- solid: bump to solid-js 2.0.0-rc.21 and @solidjs/vite-plugin 3.0.0-next.57 (#8885) (04e5e4d9e2) by @brenelz
- pnpm: upgrade to pnpm 12 (#8912) (113b1a1f08) by @schiller-manuel
- solid: bump to solid-js 2.0.0-rc.20 and @solidjs/vite-plugin 3.0.0-next.54 (#8837) (887caaf00c) by @brenelz
- solid: bump to solid-js 2.0.0-rc.16 and @solidjs/vite-plugin 3.0.0-next.51 (#8751) (acd08ef685) by @brenelz
- solid: bump to solid-js 2.0.0-rc.9 and @solidjs/vite-plugin 3.0.0-next.44 (#8467) (0dc3a9e3a5) by @brenelz
- solid: bump @tanstack/solid-query to 6.0.0-rc.4 (#8465) (2946ffff52) by @brenelz
- solid: bump to solid-js 2.0.0-rc.8 and @solidjs/vite-plugin 3.0.0-next.43 (#8348) (8981eb7877) by @brenelz
- solid: bump to solid-js 2.0.0-rc.4 and @solidjs/vite-plugin 3.0.0-next.35 (#8189) (22fd367d81) by @brenelz
- solid: bump to solid-js 2.0.0-rc.2 and @solidjs/vite-plugin 3.0.0-next.32 (#8166) (eaa2e8d5ce) by @brenelz
- e2e: migrate selective-ssr pending-min route to Solid 2 onSettled (5c400bc32e) by @brenelz
- bump @tanstack/solid-query to 6.0.0-beta.5 (#7702) (e56bb22fc3) by @brenelz
- upgrade solid-js to 2.0.0-beta.15 (#7688) (259efbe530) by @brenelz
- remove unneeded changesets (144ddc748e) by @brenelz
- fix tests (545866dd47) by @brenelz
- sync main (440a0c9270)
- solid router v2 pre main sync (#7517) (0a7e958c80) by @brenelz
- bump to solid v2 beta 10 (#7284) (401272e306) by @brenelz
- solid v2 beta 8 (#7241) (b3fedfcd4e) by @brenelz
- upgrade Solid to v2 beta.7 (#7210) (2332fb26f9) by @brenelz
- sync main to pre-release branch (#7106) (bb6285d888) by @birkskyum
- merge main to solid v2 (#7105) (14d39cea3e) by @birkskyum
- bump solid-query and vite-plugin-solid (#7103) (15652a590d) by @birkskyum
- upgrade solid to 2.0.0-beta.5 (#7102) (bf15f69973) by @brenelz
- bump to solidjs/signals 0.13.8 (#7076) (5cdb8115df) by @brenelz
- bump solid-query to 6.0.0-alpha.2 (#7020) (e9e805b744) by @2wheeh
- bump solid-query to 6.0.0-alpha.1 (#7016) (0fb8dfa67b) by @birkskyum
- sync main branch with store refactor (#7001) (72323492af) by @brenelz
- use solid-query v6.0.0-alpha.0 (#6989) (f5023cac3d) by @birkskyum
- bump solid-refresh, fix deepEqual (#6910) (9ce7f97ef2) by @brenelz
- more fixes (32b9dfb25a) by @brenelz
- bundle packages with rolldown (#6931) (b95b1061d3) by @birkskyum
- @tanstack/solid-router@2.0.0-rc.11
- @tanstack/solid-router-devtools@2.0.0-rc.9
- @tanstack/solid-router-ssr-query@2.0.0-rc.9
- @tanstack/solid-start@2.0.0-rc.11
- @tanstack/solid-start-client@2.0.0-rc.11
- @tanstack/solid-start-server@2.0.0-rc.11
@tanstack/solid-router@2.0.0-rc.11
-
#8946
b81b955- Bump solid-js and @solidjs/web to ^2.0.1 and @solidjs/vite-plugin to ^3.0.1, @tanstack/solid-query and @tanstack/solid-query-devtools to ^6.0.0-rc.6 across the monorepo (with @solidjs/babel-plugin 2.0.1 for the webpack path and the@rsbuild/plugin-solidcompiler overrides), and raise the Solid packages' solid-js / @solidjs/web peer floors to 2.0.1. -
#8885
04e5e4d- Bump solid-js and @solidjs/web to ^2.0.0-rc.21 and @solidjs/vite-plugin to ^3.0.0-next.57 across the monorepo (with @solidjs/babel-plugin 2.0.0-rc.21 for the webpack path and the@rsbuild/plugin-solidcompiler overrides), and raise the Solid packages' solid-js / @solidjs/web peer floors to 2.0.0-rc.21.
@tanstack/solid-start@2.0.0-rc.11
-
#8946
b81b955- Bump solid-js and @solidjs/web to ^2.0.1 and @solidjs/vite-plugin to ^3.0.1, @tanstack/solid-query and @tanstack/solid-query-devtools to ^6.0.0-rc.6 across the monorepo (with @solidjs/babel-plugin 2.0.1 for the webpack path and the@rsbuild/plugin-solidcompiler overrides), and raise the Solid packages' solid-js / @solidjs/web peer floors to 2.0.1. -
#8885
04e5e4d- Bump solid-js and @solidjs/web to ^2.0.0-rc.21 and @solidjs/vite-plugin to ^3.0.0-next.57 across the monorepo (with @solidjs/babel-plugin 2.0.0-rc.21 for the webpack path and the@rsbuild/plugin-solidcompiler overrides), and raise the Solid packages' solid-js / @solidjs/web peer floors to 2.0.0-rc.21. -
Updated dependencies [
b81b955,04e5e4d]:- @tanstack/solid-router@2.0.0-rc.11
- @tanstack/solid-start-client@2.0.0-rc.11
- @tanstack/solid-start-server@2.0.0-rc.11
@tanstack/start-plugin-core@1.171.57
-
#8889
3f22686- fix: Rsbuild dev SSR now includes stylesheet links when the server environment runs outside the build process, such as in workerd withrsbuild-plugin-cloudflare. The dev manifest is written into the server's manifest module instead of being stored on the build process'sglobalThis. -
#8892
559c7de- fix: Rsbuild dev with React Server Components includes stylesheet links in SSR again. The client and server compile concurrently, so the server's manifest module is now rebuilt once the client build is available, as in production builds.
@tanstack/solid-start-client@2.0.0-rc.11
-
#8946
b81b955- Bump solid-js and @solidjs/web to ^2.0.1 and @solidjs/vite-plugin to ^3.0.1, @tanstack/solid-query and @tanstack/solid-query-devtools to ^6.0.0-rc.6 across the monorepo (with @solidjs/babel-plugin 2.0.1 for the webpack path and the@rsbuild/plugin-solidcompiler overrides), and raise the Solid packages' solid-js / @solidjs/web peer floors to 2.0.1. -
#8885
04e5e4d- Bump solid-js and @solidjs/web to ^2.0.0-rc.21 and @solidjs/vite-plugin to ^3.0.0-next.57 across the monorepo (with @solidjs/babel-plugin 2.0.0-rc.21 for the webpack path and the@rsbuild/plugin-solidcompiler overrides), and raise the Solid packages' solid-js / @solidjs/web peer floors to 2.0.0-rc.21. -
Updated dependencies [
b81b955,04e5e4d]:- @tanstack/solid-router@2.0.0-rc.11