quasar-v2.35.6
- fix(format): humanStorageSize unit near a boundary -> the unit was picked from the raw value while the output shows the rounded one, so a size just below a boundary rounded up to 1024 of the smaller unit:
1048575gave1024.0KBand1023.5with 0 decimals gave1024B. These now read1.0MBand1KB(#18604) - fix(format): humanStorageSize with negative values -> a negative size never left the
Bunit (-2048gave-2048.0B). The unit is now picked from the magnitude, so it reads-2.0KB(#18604) - fix(format): humanStorageSize input handling -> a numeric string is now accepted whatever its size (
'500'used to throw while'2048'worked), and the types allownumber | string. Any other value throws aTypeErrorwith a clear message. Behavior change:NaNused to returnNaNBand now throws too (#18604)
Quasar Framework is an open-source MIT-licensed project made possible due to the generous contributions by sponsors and backers. If Quasar is useful in your workflow and you want to support ongoing maintenance, please consider the following:
quasar-v2.35.5
- fix(lang): Uzbek language packs (uz-Latn, uz-Cyrl) -> corrected mistranslated and misspelled labels. The uz-Cyrl pack also no longer shows stray
ъcharacters around the default expand/collapse labels (#18597) - fix(lang): day and month spelling in eo, sq and ms (#18596)
- fix(Ripple): API docs link -> the docs URL in the Ripple directive API definition pointed at a page that does not exist, so the link shown by IDE tooling led to a 404. It now points at the Material Ripples page (#18601)
Quasar Framework is an open-source MIT-licensed project made possible due to the generous contributions by sponsors and backers. If Quasar is useful in your workflow and you want to support ongoing maintenance, please consider the following:
@quasar/icongenie-v7.0.1
- fix(icongenie): profile files ->
icongenie generate --profilecould write a file one level above the project folder: acapacitor-androidlauncher asset placed directly in the project folder ("folder": ".") had its Android adaptive icon XML written to../mipmap-anydpi-v26/. Only that fixed location and the fixed adaptive icon XML content were reachable, and only when running a profile file that you did not write yourself. Such an asset is now rejected when the profile is parsed, before anything is generated, and every file written while mounting Capacitor assets (the adaptive icon XML, the iOSContents.json) goes through the same project folder check as the assets themselves, symbolic links included - fix(icongenie): profile files -> an asset path that is a dangling symbolic link pointing outside of the project folder is no longer followed (it would have created the link's target)
- perf(icongenie): avoid uselessly recreating some inner functions
- chore(icongenie): upgrade deps (
sharp,joi,fs-extra)
Quasar Framework is an open-source MIT-licensed project made possible due to the generous contributions by sponsors and backers. If Quasar is useful in your workflow and you want to support ongoing maintenance, please consider the following:
quasar-v2.35.4
- fix(Body): SSR brand colors could inject HTML or CSS -> on SSR, the
config.brandcolors are written into a<style>tag in the page head, and their names and values went in as-is. A value containing</style>closed the tag and whatever followed became page markup (a<script>included), while one containing}or;could add CSS rules of its own. A brand color whose name or value contains<,{,}or;is now left out of the server-rendered page, as no CSS color needs these characters. Only apps passing untrusted data as brand colors on the server were exposed; a brand set in thequasar.configfile is not attacker-controlled - fix(Lang): SSR language pack isoName could inject HTML -> on SSR, the
isoNameof the active language pack is written as thelangattribute of the<html>tag, unquoted and unescaped, so a name containing a space or>could add attributes to the tag or close it and inject markup. Thelangattribute is now set only whenisoNameis a language tag (hyphen-separated groups of letters and digits, likeen-US); otherwise onlydiris. The client follows the same rule and removes thelangattribute for such a pack. Only apps building the language pack object from untrusted data were exposed; the packs shipped with Quasar are not affected, even when picked based on a request header or cookie. Behavior change: a custom pack whoseisoNameis not a language tag (en_US, or a missing one, which used to renderlang=undefined) no longer gets alangattribute
- fix(QTable/QTree/QField/QPopupEdit): memory leak in Chrome -> the first instance of these components to render a scoped slot was kept in memory for the lifetime of the page after being unmounted, along with its rows, vnodes and detached DOM. Chrome 153+ never releases the first getter defined on such a slot scope object, and that getter held on to the component instance. The props of the slot scopes (
expand,selected,value,expanded,ticked,indeterminate,field) work as before (#18577)
- perf(Meta): SSR escaping -> the script and noscript content written by the Meta plugin on SSR no longer builds a regular expression on each call
Quasar Framework is an open-source MIT-licensed project made possible due to the generous contributions by sponsors and backers. If Quasar is useful in your workflow and you want to support ongoing maintenance, please consider the following:
quasar-v2.35.3
- fix(Platform): DOM clobbering of the native bridge globals -> an element with an
idornameattribute (and a named iframe) is also reachable as awindowproperty, so markup rendered before Quasar boots (SSR/SSG output of user-provided HTML) could pass for a native wrapper. A<div id="Capacitor">setPlatform.is.capacitorand the app then failed to boot; elements named aftercordova,InAppBrowserorStatusBarmadeopenURL()andAddressbarColor.set()throw; a cross-origin iframe named after a bridge threw aSecurityError. Capacitor, Cordova,StatusBarandSafariViewControllerare now picked up only when the global is not an element, a collection of elements or a window, and each bridge method is checked to be a function before it gets called. A bridge global set tonullis no longer detected as a native wrapper. This completes theSafariViewControllerhardening of v2.32.2
- feat(format): getDecimalsCount() -> new util on the
formatobject, telling how many decimals a number (or a numeric string) needs when written in fixed notation, which is whattoFixed()asks for when rounding a float back to the precision of its operands. Unlike splittingString(value)on the dot, it also handles the numbers JS prints in exponent notation (getDecimalsCount(1e-7)is7); a string keeps its trailing zeros ('1.50'counts two decimals)
- fix(QSlider/QRange): fractional min -> the values stay aligned to a
min(orinner-min) that has decimals. Withmin0.5 andstep1 the valid values are 0.5, 1.5, 2.5 and so on, yet the pointer and the keyboard alike were rounding 1.5 to 2 (#18578) - fix(QSlider/QRange/QKnob): step written in exponent notation -> a
stepbelow 1e-6 (which JS prints as1e-7) counted as having no decimals, so every new value was rounded to a whole number: a slider from 0 to 1e-6 with a step of 1e-7 could never leave 0 - fix(QKnob): step grid starts at inner-min -> the pointer and the keyboard now land on the same values, as QSlider and QRange do. Before, the pointer snapped to multiples of the step counted from zero while the keyboard added the step to the current value (
min5 withstep10 gave 10, 20... with the pointer and 15, 25... with the keyboard), and withmin0.5 andstep1 the right arrow jumped from 0.5 to 2. Behavior change: whenminis not a multiple of the step, a pointer adjustment now lands onmin + n * stepinstead ofn * step. Knobs with the defaultminof 0 are not affected - fix(QTooltip): repeated hover/focus events -> pointer and keyboard events overlapping on the target while the tooltip was opening or closing no longer cancel the end of its transition. The tooltip could stay visible without ever emitting
show, or never finish hiding, and afocus()requested meanwhile stayed queued until the pointer left the target (#18582, #18583) - fix(QTooltip): focus requests while a tooltip opens -> a
focus()going through QInput, QField, QForm, QEditor or a dialog/menu autofocus is no longer held back until the tooltip transition ends. A button with a tooltip that focuses an input on click now does so right away, inside the click - fix(QTree): children removed and restored on an expanded node -> a node whose children got emptied and then restored within the slide duration no longer ends up with them hidden while still expanded. Removing and restoring children neither slides nor emits
after-show/after-hideanymore, as before v2.32. Regression from v2.32.0 (#18584) - fix(lang): Turkish (tr) -> corrected mistranslated labels: the table filter and pagination, the tree expand/collapse, the color picker alpha, the uploader "remove queued" and several QEditor ones (italic, lists, subscript, superscript, justify, formatting, fullscreen) (#18581)
- perf(ui): fewer inner functions recreated -> QDate, QTime, QForm, QSlider/QRange and the Loading and LoadingBar plugins no longer rebuild some of their helper functions each time they run
Quasar Framework is an open-source MIT-licensed project made possible due to the generous contributions by sponsors and backers. If Quasar is useful in your workflow and you want to support ongoing maintenance, please consider the following:
@quasar/app-vite-v3.10.4
-
fix(app-vite): SSR with Hono -> the default SSR webserver template was sending
Cache-Control: public, max-age=2592000000on every GET response that went through it in production: server-rendered pages (logged-in ones included), redirects, 404/500 pages and the GET routes of your SSR middlewares, not only on static files. Browsers, CDNs and reverse proxies were therefore allowed to store those responses and hand them to other visitors, and returning visitors kept the old HTML after a deploy. The value was also expressed in milliseconds whilemax-agecounts seconds, so the intended 30 days became about 82 years. The header is now set only when a static file is actually served, with the correct 30 days value; everything else is left to your own cache policy. Dev mode and the Express, Fastify and Koa templates were not affected (GHSA-j5fg-jh38-f8q6) -
This only fixes newly generated SSR projects. Adding the SSR mode copies the template into your project, so upgrading
@quasar/app-vitedoes not touch an existing/src-ssr/server.js(orserver.ts). If you use Hono, please edit that file by hand and replace this block inserveStaticContent:if (cacheAge > 0) { app.get(routePath, async (c, next) => { c.header('Cache-Control', `public, max-age=${cacheAge}`) await next() }) }
with:
if (cacheAge > 0) { const { onFound } = serveOpts const cacheControlValue = `public, max-age=${Math.floor(cacheAge / 1000)}` serveOpts.onFound = async (path, c) => { c.header('Cache-Control', cacheControlValue) await onFound?.(path, c) } }
In the TypeScript template the options object is named
staticOpts: move itsconst staticOpts = { ...serveOpts }declaration above this block and use it instead ofserveOpts. After deploying, purge the HTML cached by your CDN or reverse proxy. Browsers that already stored a page keep it until they evict it; sendingClear-Site-Data: "cache"on a response that still reaches your server (the logout one, for example) clears it for browsers supporting that header
- fix(app-vite): TypeScript ->
.vuefiles are now covered by the generated.quasar/tsconfig.json. Itsincluderelied on a bare wildcard, which Rolldown (liketsc) matches against TS/JS files only, so<script lang="ts">blocks were compiled without yourcompilerOptions(experimentalDecorators,useDefineForClassFields,verbatimModuleSyntaxand the like were ignored) whilevue-tsctype-checking looked fine. In a monorepo with a root solution tsconfig, the build could even abort withTSCONFIG_ERROR ... Tsconfig not found. The file is regenerated on the nextquasar dev,quasar buildorquasar prepare(#18589, #18590) - fix(app-vite): SSG ->
quasar build -m ssgno longer fails on Windows withERR_UNSUPPORTED_ESM_URL_SCHEMEwhen it starts rendering the pages (#17840)
- chore(app-vite): upgraded deps ->
vite~8.3.6 androlldown~1.2.16 (both now held to their minor version),@vitejs/plugin-vue^6.0.10,sass-embedded^1.108.1,@types/chrome^0.3.7,confbox^0.3.2,fs-extra^11.4.1,semver^7.8.6 andserialize-javascript^7.1.4
Quasar Framework is an open-source MIT-licensed project made possible due to the generous contributions by sponsors and backers. If Quasar is useful in your workflow and you want to support ongoing maintenance, please consider the following:
@quasar/cli-v5.0.10
This is the optional globally-installed part of the Quasar CLI
- fix(cli): serve ->
quasar serve --proxy <file>no longer dies withERR_UNSUPPORTED_ESM_URL_SCHEMEon Windows. The absolute path of the proxy file was handed toimport()as is, and Node reads a Windows drive letter as a URL scheme, so the command failed for every proxy file there. On any platform, a#or?in the path was parsed as a URL fragment or query and the file was not found. The file is now loaded through a file URL (#18594) - chore(cli): upgraded deps ->
hono^4.13.17 and@hono/node-server^2.1.6 (the web server behindquasar serve),fs-extra^11.4.1
Quasar Framework is an open-source MIT-licensed project made possible due to the generous contributions by sponsors and backers. If Quasar is useful in your workflow and you want to support ongoing maintenance, please consider the following:
quasar-v2.35.2
- fix(QMenu/QTooltip): anchor inside a shadow root -> a popup whose target lives inside a web component (a shadow tree) is positioned next to it again instead of landing at the end of the page. The native CSS anchor positioning cannot see across a shadow boundary, so such popups now use the JS positioning; everything else keeps the native engine (#18576)
- fix(iOS scroll lock): route change while a dialog or menu is open -> on iOS, closing a popup after navigating to another route no longer scrolls the page back to the previous route's position. Hash router mode (
#/route) used to be treated as the same route every time, and in history mode a path-shaped anchor (/a#/x->/b#/x) was compared without its pathname (#18573, #18574) - fix(date utils): extractDate() with a day-of-year token -> a mask carrying
DDD,DDDoorDDDDtogether with a year now resolves to that day, soformatDate()output round-trips (YYYY-DDDDused to give January 1st). A day of the year outside the year (000, or366in a 365-day year) is anInvalid Date; a full calendar date in the same mask still wins (#18575)
Quasar Framework is an open-source MIT-licensed project made possible due to the generous contributions by sponsors and backers. If Quasar is useful in your workflow and you want to support ongoing maintenance, please consider the following:
@quasar/app-vite-v3.10.3
- fix(app-vite): dev server -> the first visit to a lazy route no longer triggers a full page reload (Vite's "optimized dependencies changed. reloading", hidden at the default
logLevel: 'warn'), which was dropping app state and the navigation itself, and making e2e specs fail at random. Vite's dependency scanner was readingindex.htmlfrom disk, where Quasar's entry script is not yet injected, so it never found anything to pre-bundle; it now starts from the generated client entry too. Withbuild.filenameBasedRoutingthe page components are scanned directly as well, since the scanner cannot see through the virtualvue-router/auto-routesmodule (#18572) - fix(app-vite): dev server with
build.vueJsx-> Vite's dependency scanner now compiles.jsx/.tsxfiles against Vue's JSX runtime as well; before, it would have failed the whole scan with "could not resolve react/jsx-dev-runtime" once it reached a JSX component (#18572)
Quasar Framework is an open-source MIT-licensed project made possible due to the generous contributions by sponsors and backers. If Quasar is useful in your workflow and you want to support ongoing maintenance, please consider the following:
quasar-v2.35.1
- fix(QMenu/QTooltip):
targetas a CSS selector for an element rendered later -> a popup whose anchor shows up after it mounted (av-ifthat flips later, an async component sibling) no longer stays without an anchor for good. It used to ignore hover, click and focus on that element, refuseshow()and render unanchored on a model write. The element now gets picked on the first interaction with it, onshow()or when the model turns on. For a valid selector with no match yet, the console message is now a warning stating the deferral; an invalid selector still logs an error (#18566) - fix(QBadge): printing -> a solid badge keeps its background color on paper instead of leaving white text on a white page (browsers drop backgrounds when printing by default); the same treatment QCheckbox, QRadio and QToggle already have (#18569)
- fix(lang): Romanian (ro) -> corrected mistranslations and grammar: the QEditor labels (undo, subscript, superscript, indent, outdent, the untranslated "Big" font size), the QTable selected-rows label ("Nicio", plus "de" from 20 rows up), the QTree "no nodes" label and the expand label (#18570)
Quasar Framework is an open-source MIT-licensed project made possible due to the generous contributions by sponsors and backers. If Quasar is useful in your workflow and you want to support ongoing maintenance, please consider the following: