Skip to content

Commit 5b2b57f

Browse files
authored
1.8.1 (#73)
- Fixed caching to be vault-specific. - Updated documentation.
1 parent 01693d6 commit 5b2b57f

File tree

8 files changed

+23
-9
lines changed

8 files changed

+23
-9
lines changed

docs/Changelog.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Roadmap and Changelog
33
description: Changelog and feature roadmap for Quartz Syncer.
44
created: 2025-05-16T12:59:31Z+0200
5-
modified: 2025-06-16T22:38:07Z+0200
5+
modified: 2025-06-18T13:34:53Z+0200
66
publish: true
77
---
88

@@ -23,6 +23,11 @@ publish: true
2323

2424
## Released
2525

26+
### Version 1.8.1
27+
28+
- Fixed caching to be vault-specific.
29+
- Updated documentation.
30+
2631
### Version 1.8.0
2732

2833
- Significant performance improvements.

docs/Settings/Performance/index.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,23 @@
22
title: Performance
33
description: Quartz Syncer settings related to performance.
44
created: 2025-06-12T22:41:01Z+0200
5-
modified: 2025-06-15T00:36:13Z+0200
5+
modified: 2025-06-16T23:49:13Z+0200
66
publish: true
77
tags: [settings, settings/performance]
88
---
99

1010
```datacorejsx
1111
return function View() {
1212
const pages = dc.useQuery("@page").filter(page => page.$path.startsWith("Settings/Performance") && page.$name !== "index")
13+
14+
const sortedPages = dc.useArray(pages, array => array.sort(page => page.$name));
1315
1416
const COLUMNS = [
1517
{id: "Category", value: page => page.$link},
1618
{id: "Description", value: page => page.$frontmatter["description"].value},
1719
{id: "Default value", value: page => page.$frontmatter["default_value"].value}
1820
];
1921
20-
return <dc.Table rows={pages} columns={COLUMNS} />;
22+
return <dc.Table rows={sortedPages} columns={COLUMNS} />;
2123
}
2224
```

main.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,11 @@ export default class QuartzSyncer extends Plugin {
131131
this.settings.pluginVersion = this.appVersion;
132132
}
133133

134-
this.datastore = new DataStore(this.manifest.id, this.appVersion);
134+
this.datastore = new DataStore(
135+
this.app.vault.getName(),
136+
this.manifest.id,
137+
this.appVersion,
138+
);
135139

136140
if (this.settings.useCache && this.settings.syncCache) {
137141
let timestamp = await this.datastore.persister.getItem("data.json");

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "quartz-syncer",
33
"name": "Quartz Syncer",
4-
"version": "1.8.0",
4+
"version": "1.8.1",
55
"minAppVersion": "1.8.10",
66
"description": "Manage and publish your notes to Quartz, the fast, batteries-included static-site generator.",
77
"author": "Emile Bangma",

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "quartz-syncer",
3-
"version": "1.8.0",
3+
"version": "1.8.1",
44
"description": "A plugin used for publishing notes to Quartz",
55
"main": "main.js",
66
"scripts": {

src/publishFile/DataStore.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,17 @@ export class DataStore {
3131
/**
3232
* Create a new DataStore instance for caching metadata about files and sections.
3333
*
34+
* @param vaultName - The name of the vault to use for the cache instance.
3435
* @param appId - The application ID to use for the cache instance.
3536
* @param version - The version of the application to use for the cache instance.
3637
*/
3738
public constructor(
39+
public vaultName: string,
3840
public appId: string,
3941
public version: string,
4042
) {
4143
this.persister = localforage.createInstance({
42-
name: `quartz-syncer/cache/${appId}/${version}`,
44+
name: `quartz-syncer/cache/${vaultName}/${appId}/${version}`,
4345
driver: [localforage.INDEXEDDB],
4446
description:
4547
"Cache metadata about files and sections in the quartz syncer index.",

versions.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"1.8.1": "1.8.10",
23
"1.8.0": "1.8.10",
34
"1.7.1": "1.8.10",
45
"1.7.0": "1.8.10",

0 commit comments

Comments
 (0)