Skip to content

Commit

Permalink
[MRG] Merges release '1.7.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
czottmann committed Jan 30, 2025
2 parents cdc4a0b + 611cb57 commit d0fb67a
Show file tree
Hide file tree
Showing 13 changed files with 510 additions and 559 deletions.
2 changes: 2 additions & 0 deletions .mise.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[tools]
deno = "latest"
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Release history

## 1.7.0, TODO-TO-DO

### Changes

- Adjusted [`/dataview/list-query`](https://zottmann.dev/obsidian-actions-uri/routes/dataview/#dataviewlist-query) to consistently return a two-dimensional array. <!-- ZCO-918 -->

### No longer broken

- Frontmatter containing a string with three or more hyphens in a row would break frontmatter parsing. This is now fixed. <!-- ZCO-976 -->




## 1.6.5, 2024-10-10

### No longer broken
Expand Down
6 changes: 3 additions & 3 deletions docs/routes/dataview.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ These parameters will be added to the callbacks used for [getting data back from

On success:

| Parameter | Description |
| ------------- | ----------------------------------------------------------------------- |
| `result-data` | An array containing strings (the list results), encoded as JSON string. |
| Parameter | Description |
| ------------- | ----------------------------------------------------------------------------------------------------------------- |
| `result-data` | An array containing strings (the list results), encoded as JSON string. Every result is returned as string array. |

On failure:

Expand Down
89 changes: 46 additions & 43 deletions esbuild.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,60 +13,63 @@ const isProduction = process.argv[2] === "production";
const rsyncPlugin = {
name: "rsyncPlugin",
setup(build) {
build.onEnd((result) => {
build.onEnd((_) => {
if (process.env.USER !== "czottmann" || isProduction) {
return;
}

exec(
"../bin/sync-current-plugins-to-workbench-vault.fish",
(error, stdout, stderr) => {
(error, _, stderr) => {
if (error) {
console.log(`exec error: ${error}`);
}
if (stderr) {
console.log(stderr);
} else
console.log(
"[watch] sync'd via `../bin/sync-current-plugins-to-workbench-vault.fish`"
);
}

console.log(
stderr
? stderr
: "[watch] sync'd via `../bin/sync-current-plugins-to-workbench-vault.fish`",
);
},
);
});
},
};

esbuild
.build({
banner: {
js: banner,
},
bundle: true,
entryPoints: ["src/main.ts"],
external: [
"obsidian",
"electron",
"@codemirror/autocomplete",
"@codemirror/collab",
"@codemirror/commands",
"@codemirror/language",
"@codemirror/lint",
"@codemirror/search",
"@codemirror/state",
"@codemirror/view",
"@lezer/common",
"@lezer/highlight",
"@lezer/lr",
...builtins,
],
format: "cjs",
logLevel: "info",
minify: isProduction,
outfile: "main.js",
plugins: [rsyncPlugin],
sourcemap: isProduction ? false : "inline",
target: "es2022",
treeShaking: true,
watch: !isProduction,
})
.catch(() => process.exit(1));
const config = {
banner: { js: banner },
bundle: true,
entryPoints: ["src/main.ts"],
external: [
"obsidian",
"electron",
"@codemirror/autocomplete",
"@codemirror/collab",
"@codemirror/commands",
"@codemirror/language",
"@codemirror/lint",
"@codemirror/search",
"@codemirror/state",
"@codemirror/view",
"@lezer/common",
"@lezer/highlight",
"@lezer/lr",
...builtins,
],
format: "cjs",
logLevel: "info",
minify: isProduction,
outfile: "main.js",
plugins: [rsyncPlugin],
sourcemap: isProduction ? false : "inline",
target: "es2022",
treeShaking: true,
};

if (isProduction) {
await esbuild.build(config);
} else {
const ctx = await esbuild.context(config);
ctx.watch();
await ctx.rebuild().catch(() => process.exit(1));
}
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "actions-uri",
"name": "Actions URI",
"version": "1.6.5",
"version": "1.7.0",
"minAppVersion": "1.5.11",
"description": "Adds additional `x-callback-url` endpoints to the app for common actions — it's a clean, super-charged addition to Obsidian URI.",
"author": "Carlo Zottmann",
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
"name": "obsidian-actions-uri",
"version": "1.6.5",
"version": "1.7.0",
"description": "This plugin for Obsidian (https://obsidian.md) adds additional `x-callback-url` endpoints to the app for common actions — it's a clean, super-charged addition to Obsidian URI.",
"main": "main.js",
"scripts": {
"dev": "node esbuild.config.mjs",
"dev": "node esbuild.config.mjs ",
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production"
},
"keywords": [],
"author": "Carlo Zottmann, https://github.com/czottmann/",
"license": "MIT",
"devDependencies": {
"@types/node": "^18.19.50",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"@types/node": "^18.19.67",
"@typescript-eslint/eslint-plugin": "^8.17.0",
"@typescript-eslint/parser": "^8.17.0",
"builtin-modules": "3.3.0",
"esbuild": "^0.16.17",
"esbuild": "^0.24.0",
"filter-obj": "^5.1.0",
"obsidian": "latest",
"obsidian-daily-notes-interface": "^0.9.4",
Expand Down
Loading

0 comments on commit d0fb67a

Please sign in to comment.