Compare commits

..
Author SHA1 Message Date
Emile Bangma 5a740b3ae0 Merge pull request #2717 from jackyzha0/changeset-release/v5
chore: release Quartz
2026-11-28 00:47:01 +01:00
github-actions[bot] 6f67702b3e chore: release Quartz 2026-11-27 22:58:40 +00:00
Emile Bangma 685a5c3461 Merge pull request #2721 from jackyzha0/dev-mode/release-notes-5-3-1
docs: changes you may notice in 5.3.1
2026-11-27 23:58:13 +01:00
Emile Bangma 114923ac6a Merge pull request #2720 from jackyzha0/dev-mode/locale-fallback
fix(i18n): a locale without a translation falls back instead of crashing the build
2026-11-27 23:58:07 +01:00
Emile Bangma a7d7389f57 Merge pull request #2719 from jackyzha0/dev-mode/update-disabled-plugin-failure
fix(cli): a disabled plugin that can't be updated warns instead of failing the update
2026-11-27 23:58:01 +01:00
Emile Bangma 699c668cba Merge pull request #2722 from jackyzha0/dev-mode/deps-5-3-1-fixes
chore(deps): plugin fixes for 5.3.1
2026-11-27 23:57:54 +01:00
saberzero1 9889d3fb04 chore(deps): folder-page 1.1.5, canvas-page 1.1.7, search 1.1.5, graph 1.0.10, stacked-pages 1.0.5, remark-obsidian 2.2.6 2026-11-27 23:47:25 +01:00
saberzero1 c68a4945ab docs: changes you may notice in 5.3.1 2026-11-27 23:23:44 +01:00
saberzero1 ce108c8c95 fix(i18n): a locale without a translation falls back instead of crashing the build 2026-11-27 23:22:20 +01:00
11 changed files with 139 additions and 69 deletions

No files matched your search

-5
View File
@@ -1,5 +0,0 @@
---
"@jackyzha0/quartz": patch
---
A plugin that depends on a plugin of another pipeline stage (an emitter or component on a transformer) no longer fails the build because of their `order`: order is checked only between plugins of the same stage.
-17
View File
@@ -1,17 +0,0 @@
---
"@jackyzha0/quartz": patch
---
Plugin updates with the fixes from a test audit:
- note-properties: an empty `tags:` or `aliases:` no longer fails the build.
- bases-page: sorting, filters, formulas and group headings work as in Obsidian.
- encrypted-pages: a numeric `password` encrypts the page, and a custom `outputPath` works.
- darkmode, reader-mode, syntax-highlighting and comments: no double handlers after a page is unlocked.
- stacked-pages: links work under a base path.
- breadcrumbs: `resolveFrontmatterTitle` is honoured.
- canvas-page: a `#View` link selects that view.
- search: fields left out of `fieldPriority` are searched, and excerpts keep their last word.
- explorer: a note next to a folder of the same name stays listed, and folder options apply.
- folder-page, og-image, description, table-of-contents, graph, obsidian-flavored-markdown and utils: smaller fixes.
- latex: `customMacros` work with MathJax. ox-hugo: figure parameters in backticks.
-5
View File
@@ -1,5 +0,0 @@
---
"@jackyzha0/quartz": patch
---
Relative links and embeds keep their query string after SPA navigation and in popovers (`./viewer.html?file=a.pdf` no longer loses `?file=a.pdf`).
-5
View File
@@ -1,5 +0,0 @@
---
"@jackyzha0/quartz": patch
---
`npx quartz plugin install --latest` (and `plugin update`) no longer fails because a disabled plugin can't be updated, for example an old `quartz-themes` entry whose repository moved its plugin. The build doesn't load disabled plugins, so this is now a warning that says how to remove the entry. A failing enabled plugin still fails the command.
-5
View File
@@ -1,5 +0,0 @@
---
"@jackyzha0/quartz": patch
---
utils 1.3.4: inline `#tag` links from notes two or more folders deep stay under the site's base path. They went to `/tags/…` instead of `/<base>/tags/…`, a 404 on sites served under a sub-path such as GitHub Pages project sites.
+26
View File
@@ -1,5 +1,31 @@
# @jackyzha0/quartz
## 5.3.1
### Patch Changes
- f285e12: A plugin that depends on a plugin of another pipeline stage (an emitter or component on a transformer) no longer fails the build because of their `order`: order is checked only between plugins of the same stage.
- ce108c8: A `locale` that Quartz has no translation for (such as `sv-SE`, `da-DK` or `es-MX`) no longer crashes the build. Quartz uses a translation of the same language (`es-MX` uses `es-ES`), else English, and prints one warning; dates still use the configured locale.
- 9889d3f: Plugin updates: folder-page 1.1.5 (a folder's unlisted `index.md` is no longer replaced by a generated folder page), canvas-page 1.1.7 (edges drawn as in Obsidian), search 1.1.5 (Escape with tag suggestions open closes only the suggestions), graph 1.0.10 (the local graph is drawn once per page), stacked-pages 1.0.5 (unused template exports removed) and remark-obsidian 2.2.6.
- 37a61cf: Plugin updates with the fixes from a test audit:
- note-properties: an empty `tags:` or `aliases:` no longer fails the build.
- bases-page: sorting, filters, formulas and group headings work as in Obsidian.
- encrypted-pages: a numeric `password` encrypts the page, and a custom `outputPath` works.
- darkmode, reader-mode, syntax-highlighting and comments: no double handlers after a page is unlocked.
- stacked-pages: links work under a base path.
- breadcrumbs: `resolveFrontmatterTitle` is honoured.
- canvas-page: a `#View` link selects that view.
- search: fields left out of `fieldPriority` are searched, and excerpts keep their last word.
- explorer: a note next to a folder of the same name stays listed, and folder options apply.
- folder-page, og-image, description, table-of-contents, graph, obsidian-flavored-markdown and utils: smaller fixes.
- latex: `customMacros` work with MathJax. ox-hugo: figure parameters in backticks.
- 6729a1e: Relative links and embeds keep their query string after SPA navigation and in popovers (`./viewer.html?file=a.pdf` no longer loses `?file=a.pdf`).
- c68a494: Some fixes in this release change how existing pages look, mostly to match Obsidian: Bases sorting (natural text order, empty values last, mixed types), Bases `not:` filters and `== null`, Bases group headings, canvas edges, and folders with an unlisted `index.md`. See [Upgrading from 5.3.0 to 5.3.1](https://quartz.jzhao.xyz/getting-started/upgrading#upgrading-from-530-to-531).
- 57b3b5d: `npx quartz plugin install --latest` (and `plugin update`) no longer fails because a disabled plugin can't be updated, for example an old `quartz-themes` entry whose repository moved its plugin. The build doesn't load disabled plugins, so this is now a warning that says how to remove the entry. A failing enabled plugin still fails the command.
- 1e1a356: utils 1.3.4: inline `#tag` links from notes two or more folders deep stay under the site's base path. They went to `/tags/…` instead of `/<base>/tags/…`, a 404 on sites served under a sub-path such as GitHub Pages project sites.
## 5.3.0
### Minor Changes
+26
View File
@@ -28,6 +28,32 @@ npx quartz plugin install --latest
See the [[upgrade|CLI reference for upgrade]] for more details on available flags.
## Upgrading from 5.3.0 to 5.3.1
5.3.1 is a patch release: fixes from a test audit of Quartz and its plugins, many checked against Obsidian. Upgrade as usual:
```bash
npx quartz upgrade
npx quartz plugin install --latest
```
### Changes you may notice
Most of these make a page look the way Obsidian shows it, so an existing site can look different after the upgrade.
- **[[Bases]] sorting**: text sorts naturally ("Chapter 2" before "Chapter 10") and ignores case, also for the default order by file name. Empty values come last in both directions, including descending sorts. A column that mixes types sorts numbers, dates and durations by value and everything else as text. Group order follows the same rules.
- **[[Bases]] filters and formulas**, as in Obsidian:
- `not:` leaves out a note that matches _any_ of its conditions (it left out only notes matching all of them).
- `status == null` matches notes without `status`, and `status != null` no longer keeps them.
- `"5" == 5` and `1 == true` are true, two strings compare as text (`"10" > "9"` is false), and an empty list counts as false.
- A formula can use a formula defined after it. `x / 0` shows ∞. `sum()`, `mean()`, `min()` and `max()` skip text and booleans, and are empty without numbers. `number("abc")` is an error.
- **[[Bases]] group headings** show their value as a cell does: dates in the local format (not an ISO timestamp, sometimes of the previous day), durations as "4 days", links as the note's name, booleans as a checkbox.
- **[[CanvasPage|Canvas]] edges** leave and enter each card through the side they name, with Obsidian's curve, and the arrow points into that side. An edge without sides joins the sides that face each other (it joined the cards' centres).
- **Folder pages**: a folder whose own `index.md` is unlisted shows that note, with the folder listing below it. A generated folder page used to replace it.
- **Tag links under a base path**: inline `#tag` links from notes two or more folders deep stay on the site. On a site served under a sub-path, such as a GitHub Pages project site, they went to `/tags/…` and returned 404.
- **Locales without a translation** (such as `sv-SE`) no longer crash the build: Quartz uses a translation of the same language, else English, and prints a warning. Dates still use your locale.
- **`npx quartz plugin install --latest`** no longer fails because a _disabled_ plugin can't be updated (for example an old `quartz-themes` entry). It prints a warning with the command to remove the entry.
## Upgrading from 5.2 to 5.3
Quartz 5.3 needs **Node.js 22.22 or later**. Then upgrade as usual:
+25 -25
View File
@@ -1,12 +1,12 @@
{
"name": "@jackyzha0/quartz",
"version": "5.3.0",
"version": "5.3.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@jackyzha0/quartz",
"version": "5.3.0",
"version": "5.3.1",
"license": "MIT",
"dependencies": {
"@clack/prompts": "^1.8.0",
@@ -18,7 +18,7 @@
"@quartz-community/backlinks": "^1.0.4",
"@quartz-community/bases-page": "^1.5.6",
"@quartz-community/breadcrumbs": "^1.0.6",
"@quartz-community/canvas-page": "^1.1.6",
"@quartz-community/canvas-page": "^1.1.7",
"@quartz-community/citations": "^1.0.1",
"@quartz-community/cname": "^1.0.1",
"@quartz-community/comments": "^1.0.3",
@@ -31,10 +31,10 @@
"@quartz-community/explicit-publish": "^1.2.0",
"@quartz-community/explorer": "^1.2.5",
"@quartz-community/favicon": "^1.0.1",
"@quartz-community/folder-page": "^1.1.4",
"@quartz-community/folder-page": "^1.1.5",
"@quartz-community/footer": "^1.1.2",
"@quartz-community/github-flavored-markdown": "^2.2.2",
"@quartz-community/graph": "^1.0.9",
"@quartz-community/graph": "^1.0.10",
"@quartz-community/hard-line-breaks": "^1.1.0",
"@quartz-community/latex": "^1.1.3",
"@quartz-community/note-properties": "^1.2.4",
@@ -45,9 +45,9 @@
"@quartz-community/reader-mode": "^1.0.3",
"@quartz-community/recent-notes": "^1.0.3",
"@quartz-community/roam": "^1.1.0",
"@quartz-community/search": "^1.1.4",
"@quartz-community/search": "^1.1.5",
"@quartz-community/spacer": "^1.0.2",
"@quartz-community/stacked-pages": "^1.0.4",
"@quartz-community/stacked-pages": "^1.0.5",
"@quartz-community/syntax-highlighting": "^1.0.5",
"@quartz-community/table-of-contents": "^1.0.6",
"@quartz-community/tag-list": "^1.0.3",
@@ -2383,9 +2383,9 @@
}
},
"node_modules/@quartz-community/canvas-page": {
"version": "1.1.6",
"resolved": "https://registry.npmjs.org/@quartz-community/canvas-page/-/canvas-page-1.1.6.tgz",
"integrity": "sha512-Cuu3xxC1PCKM5+ixO58cnNmK0So9RHnE1bxVLPW619b0tCL2ZyuN4QQK4yCN7ia8N6uiLyI+jqAALMS1+tl9fA==",
"version": "1.1.7",
"resolved": "https://registry.npmjs.org/@quartz-community/canvas-page/-/canvas-page-1.1.7.tgz",
"integrity": "sha512-I2I5JqqJ6PGnnwq57KI27Z643o/yUrxl654uwV8m+hFPmaN1iG8OQD7597JDHYXrwWCKWnNi23Wy3HXFu0yPUg==",
"license": "MIT",
"dependencies": {
"@quartz-community/types": "^1.0.0",
@@ -2664,9 +2664,9 @@
}
},
"node_modules/@quartz-community/folder-page": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/@quartz-community/folder-page/-/folder-page-1.1.4.tgz",
"integrity": "sha512-aEaXi5qJdWPMMvtBakaVw/wDU/iVf5ujW1hMnBxDJyCDXF9FRdk1njeFi+Op299y5SWnF7+ruLjhraqeaYLnCA==",
"version": "1.1.5",
"resolved": "https://registry.npmjs.org/@quartz-community/folder-page/-/folder-page-1.1.5.tgz",
"integrity": "sha512-Uxlno9jMCDzlKbF5HkrvUDzg0zxqabUhIfANsfC1RlfSq6cNmuXUYwe45vhkEp/KDOM8bBcfuHKARO3OqABzGA==",
"license": "MIT",
"dependencies": {
"@quartz-community/types": "^1.0.0",
@@ -2734,9 +2734,9 @@
}
},
"node_modules/@quartz-community/graph": {
"version": "1.0.9",
"resolved": "https://registry.npmjs.org/@quartz-community/graph/-/graph-1.0.9.tgz",
"integrity": "sha512-7t6v0i9dPr8JIWRQEalszHk25pmhapns/mD18zyt0P1EwbZrU8Kbc5l6nXFM7jSq/pfigDvo9GmcNFFtTMYK1Q==",
"version": "1.0.10",
"resolved": "https://registry.npmjs.org/@quartz-community/graph/-/graph-1.0.10.tgz",
"integrity": "sha512-UkqWEI48wmxLQPS+HNW4Pm0GnuUpcn7IfZ3ufcg1S4/lVqrdrofj7SioXDm7djuwr/wsLPDsdC1YBCwct/Eu5w==",
"license": "MIT",
"dependencies": {
"@quartz-community/types": "^1.0.0",
@@ -2979,9 +2979,9 @@
}
},
"node_modules/@quartz-community/remark-obsidian": {
"version": "2.2.5",
"resolved": "https://registry.npmjs.org/@quartz-community/remark-obsidian/-/remark-obsidian-2.2.5.tgz",
"integrity": "sha512-xlJX+6XIWEBCPnJ4Mg8Xnrxeh2+pq0XAKUWXGOEY0kHNf2uDsiM5VRTd15/4jR1J2FN2KmOAB7jV+8J0xSlnqg==",
"version": "2.2.6",
"resolved": "https://registry.npmjs.org/@quartz-community/remark-obsidian/-/remark-obsidian-2.2.6.tgz",
"integrity": "sha512-hDxyFiA5SYIcsO1i3vnlMQEryoev2RtFy9UZ9MGNfANxiWypxCG/uWUjA+uiISMJgHSRk/CpWcn7lTGGvMVT3A==",
"license": "MIT",
"dependencies": {
"@types/mdast": "^4.0.0",
@@ -3019,9 +3019,9 @@
}
},
"node_modules/@quartz-community/search": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/@quartz-community/search/-/search-1.1.4.tgz",
"integrity": "sha512-s02rNbjLkg4rVNdA0Pr2LHlGK1zn0PcS2+mBoyWqhZ4vZraGKgLpbAUiDgXD740GU630vcpEwmtT0FNWbgzl9g==",
"version": "1.1.5",
"resolved": "https://registry.npmjs.org/@quartz-community/search/-/search-1.1.5.tgz",
"integrity": "sha512-9qgJsfOlqBPP41ICDOmmHOYiJbjlIMYm6EduvjS4t32YWglRJpO5l0Dle6A8VYmt7PW6qrAkh2EU7TvwCUU2Aw==",
"license": "MIT",
"dependencies": {
"@quartz-community/types": "^1.0.0",
@@ -3062,9 +3062,9 @@
}
},
"node_modules/@quartz-community/stacked-pages": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/@quartz-community/stacked-pages/-/stacked-pages-1.0.4.tgz",
"integrity": "sha512-XQsi9CwReWxr7c6e1uWHpYYegQfpaL+sPPASkM+RVX0pw21V9aYpMy0HRFWpbyJnpIM847rVPfZ6W3IH3Db/mw==",
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/@quartz-community/stacked-pages/-/stacked-pages-1.0.5.tgz",
"integrity": "sha512-sUDlcgREgWyttDg4A6Xp6i3s0jjLzO0g/pvP2a5KSYfNtsN9djbvwaPaewV9e/dn92VyTWrKsXd7K05yTCcFQw==",
"license": "MIT",
"dependencies": {
"@quartz-community/types": "^1.0.0",
+6 -6
View File
@@ -2,7 +2,7 @@
"name": "@jackyzha0/quartz",
"description": "🌱 publish your digital garden and notes as a website",
"private": true,
"version": "5.3.0",
"version": "5.3.1",
"type": "module",
"author": "jackyzha0 <j.zhao2k19@gmail.com>",
"license": "MIT",
@@ -48,7 +48,7 @@
"@quartz-community/backlinks": "^1.0.4",
"@quartz-community/bases-page": "^1.5.6",
"@quartz-community/breadcrumbs": "^1.0.6",
"@quartz-community/canvas-page": "^1.1.6",
"@quartz-community/canvas-page": "^1.1.7",
"@quartz-community/citations": "^1.0.1",
"@quartz-community/cname": "^1.0.1",
"@quartz-community/comments": "^1.0.3",
@@ -61,10 +61,10 @@
"@quartz-community/explicit-publish": "^1.2.0",
"@quartz-community/explorer": "^1.2.5",
"@quartz-community/favicon": "^1.0.1",
"@quartz-community/folder-page": "^1.1.4",
"@quartz-community/folder-page": "^1.1.5",
"@quartz-community/footer": "^1.1.2",
"@quartz-community/github-flavored-markdown": "^2.2.2",
"@quartz-community/graph": "^1.0.9",
"@quartz-community/graph": "^1.0.10",
"@quartz-community/hard-line-breaks": "^1.1.0",
"@quartz-community/latex": "^1.1.3",
"@quartz-community/note-properties": "^1.2.4",
@@ -75,9 +75,9 @@
"@quartz-community/reader-mode": "^1.0.3",
"@quartz-community/recent-notes": "^1.0.3",
"@quartz-community/roam": "^1.1.0",
"@quartz-community/search": "^1.1.4",
"@quartz-community/search": "^1.1.5",
"@quartz-community/spacer": "^1.0.2",
"@quartz-community/stacked-pages": "^1.0.4",
"@quartz-community/stacked-pages": "^1.0.5",
"@quartz-community/syntax-highlighting": "^1.0.5",
"@quartz-community/table-of-contents": "^1.0.6",
"@quartz-community/tag-list": "^1.0.3",
+28
View File
@@ -0,0 +1,28 @@
import test, { describe } from "node:test"
import assert from "node:assert"
import { i18n, resolveTranslationLocale } from "./index"
describe("i18n locale fallback", () => {
test("a locale with a translation uses it, whatever its case", (t) => {
t.mock.method(console, "warn", () => {})
assert.strictEqual(resolveTranslationLocale("de-DE"), "de-DE")
assert.strictEqual(resolveTranslationLocale("de-de"), "de-DE")
assert.strictEqual(resolveTranslationLocale(undefined), "en-US")
})
test("a locale without one uses the same language, else English, and warns once", (t) => {
const warn = t.mock.method(console, "warn", () => {})
assert.strictEqual(resolveTranslationLocale("es-MX"), "es-ES")
assert.strictEqual(resolveTranslationLocale("es-MX"), "es-ES")
assert.strictEqual(resolveTranslationLocale("sv-SE"), "en-US")
assert.strictEqual(resolveTranslationLocale("nb"), "nb-NO")
assert.strictEqual(warn.mock.callCount(), 3)
assert.match(String(warn.mock.calls[0]!.arguments[0]), /no translation for locale "es-MX"/)
})
// used to throw: TRANSLATIONS["sv-SE"] was undefined
test("i18n() of a locale without a translation returns one", (t) => {
t.mock.method(console, "warn", () => {})
assert.strictEqual(i18n("da-DK").pages.error.title, i18n("en-US").pages.error.title)
})
})
+28 -1
View File
@@ -85,6 +85,33 @@ export const TRANSLATIONS = {
} as const
export const defaultTranslation = "en-US"
export const i18n = (locale: ValidLocale): Translation => TRANSLATIONS[locale ?? defaultTranslation]
const warnedLocales = new Set<string>()
/**
* The translation to use for `locale`: its own, else one of the same language (`es-MX` uses
* `es-ES`), else English. A locale without a translation used to crash the build
* (`TRANSLATIONS[locale]` is undefined); dates and numbers still use the configured locale.
*/
export function resolveTranslationLocale(locale: string | undefined): ValidLocale {
if (!locale) return defaultTranslation
const keys = Object.keys(TRANSLATIONS) as ValidLocale[]
const exact = keys.find((key) => key.toLowerCase() === locale.toLowerCase())
if (exact) return exact
const language = locale.split("-")[0]!.toLowerCase()
const chosen =
keys.find((key) => key.split("-")[0]!.toLowerCase() === language) ?? defaultTranslation
if (!warnedLocales.has(locale)) {
warnedLocales.add(locale)
console.warn(
`Quartz has no translation for locale "${locale}"; its text uses ${chosen}. ` +
`Dates still use ${locale}. Translations: https://quartz.jzhao.xyz/features/i18n`,
)
}
return chosen
}
export const i18n = (locale: ValidLocale | string | undefined): Translation =>
TRANSLATIONS[resolveTranslationLocale(locale)]
export type ValidLocale = keyof typeof TRANSLATIONS
export type ValidCallout = keyof CalloutTranslation