From 71e36c25c46a4fa554963f33839492259bf10b3f Mon Sep 17 00:00:00 2001 From: Dusk Date: Wed, 13 May 2026 20:42:25 +0800 Subject: [PATCH] chore(release): prepare 1.0.4 scorecard fixes - replace builtin-modules with Node builtinModules in the build config - avoid column-gap warnings in release CSS --- esbuild.config.mjs | 3 ++- manifest.json | 2 +- package-lock.json | 16 ++-------------- package.json | 3 +-- styles.css | 8 +++----- versions.json | 3 ++- 6 files changed, 11 insertions(+), 24 deletions(-) diff --git a/esbuild.config.mjs b/esbuild.config.mjs index c870ac9..03720f3 100644 --- a/esbuild.config.mjs +++ b/esbuild.config.mjs @@ -1,12 +1,13 @@ import esbuild from "esbuild"; import process from "node:process"; -import builtins from "builtin-modules"; +import { builtinModules } from "node:module"; import { copyFile } from "node:fs/promises"; const banner = `/*\nTHIS IS A GENERATED/BUNDLED FILE BY ESBUILD\n*/`; const production = process.argv[2] === "production"; const outfile = "dist/plugin/main.js"; +const builtins = [...new Set(builtinModules.flatMap((name) => [name, `node:${name}`]))]; const context = await esbuild.context({ banner: { js: banner }, diff --git a/manifest.json b/manifest.json index cdb6974..3f3b548 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "anki-heading-sync", "name": "Anki Heading Sync", - "version": "1.0.3", + "version": "1.0.4", "minAppVersion": "1.8.7", "description": "Focused heading-based Markdown to Anki sync plugin.", "author": "Dusk", diff --git a/package-lock.json b/package-lock.json index bc15255..24a24f1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "obsidian-anki-heading-sync", - "version": "1.0.3", + "version": "1.0.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "obsidian-anki-heading-sync", - "version": "1.0.3", + "version": "1.0.4", "license": "MIT", "dependencies": { "markdown-it": "^14.1.0" @@ -17,7 +17,6 @@ "@types/node": "^22.15.3", "@typescript-eslint/eslint-plugin": "^8.46.1", "@typescript-eslint/parser": "^8.46.1", - "builtin-modules": "^4.0.0", "esbuild": "^0.25.3", "eslint": "^9.39.1", "eslint-plugin-obsidianmd": "^0.2.9", @@ -1052,17 +1051,6 @@ "node": "18 || 20 || >=22" } }, - "node_modules/builtin-modules": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18.20" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/cac": { "version": "6.7.14", "dev": true, diff --git a/package.json b/package.json index e0f2163..c45e499 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-anki-heading-sync", - "version": "1.0.3", + "version": "1.0.4", "description": "Focused heading-based Markdown to Anki sync plugin.", "author": "Dusk", "main": "dist/plugin/main.js", @@ -26,7 +26,6 @@ "@types/node": "^22.15.3", "@typescript-eslint/eslint-plugin": "^8.46.1", "@typescript-eslint/parser": "^8.46.1", - "builtin-modules": "^4.0.0", "esbuild": "^0.25.3", "eslint": "^9.39.1", "eslint-plugin-obsidianmd": "^0.2.9", diff --git a/styles.css b/styles.css index c3e10f7..68e3e0b 100644 --- a/styles.css +++ b/styles.css @@ -118,8 +118,7 @@ display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.75fr) minmax(220px, 0.95fr); align-items: center; - column-gap: 16px; - row-gap: 8px; + gap: 8px 16px; overflow: visible; width: 100%; } @@ -129,8 +128,7 @@ grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) max-content; align-items: center; - column-gap: 16px; - row-gap: 8px; + gap: 8px 16px; width: 100%; } @@ -202,7 +200,7 @@ display: grid; grid-template-columns: 24px 24px minmax(0, 1fr); align-items: center; - column-gap: 0; + gap: 0; width: 100%; min-height: 28px; box-sizing: border-box; diff --git a/versions.json b/versions.json index e97cdc9..8544939 100644 --- a/versions.json +++ b/versions.json @@ -2,5 +2,6 @@ "1.0.0": "1.8.7", "1.0.1": "1.8.7", "1.0.2": "1.8.7", - "1.0.3": "1.8.7" + "1.0.3": "1.8.7", + "1.0.4": "1.8.7" }