From 00967d9040ddd801dde1e515aa58d5e7cb488bc4 Mon Sep 17 00:00:00 2001 From: Lishid Date: Sun, 19 Jun 2022 20:50:11 -0400 Subject: [PATCH 1/5] Update esbuild.config.mjs --- esbuild.config.mjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/esbuild.config.mjs b/esbuild.config.mjs index f1fe201..feac5f8 100644 --- a/esbuild.config.mjs +++ b/esbuild.config.mjs @@ -41,6 +41,9 @@ esbuild.build({ '@codemirror/text', '@codemirror/tooltip', '@codemirror/view', + '@lezer/common', + '@lezer/highlight', + '@lezer/lr', ...builtins], format: 'cjs', watch: !prod, From 04432b2ebf316a3b14e167e7c4088516a362bbe7 Mon Sep 17 00:00:00 2001 From: lishid Date: Fri, 24 Jun 2022 15:40:37 -0400 Subject: [PATCH 2/5] Upgrade dependencies, add strictNullChecks. --- package.json | 12 ++++++------ tsconfig.json | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index fd44f15..778374e 100644 --- a/package.json +++ b/package.json @@ -13,12 +13,12 @@ "license": "MIT", "devDependencies": { "@types/node": "^16.11.6", - "@typescript-eslint/eslint-plugin": "^5.2.0", - "@typescript-eslint/parser": "^5.2.0", - "builtin-modules": "^3.2.0", - "esbuild": "0.13.12", + "@typescript-eslint/eslint-plugin": "5.29.0", + "@typescript-eslint/parser": "5.29.0", + "builtin-modules": "3.3.0", + "esbuild": "0.14.47", "obsidian": "latest", - "tslib": "2.3.1", - "typescript": "4.4.4" + "tslib": "2.4.0", + "typescript": "4.7.4" } } diff --git a/tsconfig.json b/tsconfig.json index 1383e2f..2d6fbdf 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,6 +10,7 @@ "moduleResolution": "node", "importHelpers": true, "isolatedModules": true, + "strictNullChecks": true, "lib": [ "DOM", "ES5", From b46f6c93228713d3dd98c9aa1ad2645c4bb916b0 Mon Sep 17 00:00:00 2001 From: lishid Date: Tue, 9 Aug 2022 13:38:50 -0400 Subject: [PATCH 3/5] Update for 0.15 --- esbuild.config.mjs | 13 ------------- manifest.json | 4 ++-- package.json | 2 +- versions.json | 3 +-- 4 files changed, 4 insertions(+), 18 deletions(-) diff --git a/esbuild.config.mjs b/esbuild.config.mjs index feac5f8..057fe9d 100644 --- a/esbuild.config.mjs +++ b/esbuild.config.mjs @@ -21,25 +21,12 @@ esbuild.build({ 'obsidian', 'electron', '@codemirror/autocomplete', - '@codemirror/closebrackets', '@codemirror/collab', '@codemirror/commands', - '@codemirror/comment', - '@codemirror/fold', - '@codemirror/gutter', - '@codemirror/highlight', - '@codemirror/history', '@codemirror/language', '@codemirror/lint', - '@codemirror/matchbrackets', - '@codemirror/panel', - '@codemirror/rangeset', - '@codemirror/rectangular-selection', '@codemirror/search', '@codemirror/state', - '@codemirror/stream-parser', - '@codemirror/text', - '@codemirror/tooltip', '@codemirror/view', '@lezer/common', '@lezer/highlight', diff --git a/manifest.json b/manifest.json index 60626c5..4990bc2 100644 --- a/manifest.json +++ b/manifest.json @@ -1,8 +1,8 @@ { "id": "obsidian-sample-plugin", "name": "Sample Plugin", - "version": "1.0.1", - "minAppVersion": "0.12.0", + "version": "1.0.0", + "minAppVersion": "0.15.0", "description": "This is a sample plugin for Obsidian. This plugin demonstrates some of the capabilities of the Obsidian API.", "author": "Obsidian", "authorUrl": "https://obsidian.md", diff --git a/package.json b/package.json index 778374e..3ada219 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-sample-plugin", - "version": "1.0.1", + "version": "1.0.0", "description": "This is a sample plugin for Obsidian (https://obsidian.md)", "main": "main.js", "scripts": { diff --git a/versions.json b/versions.json index 997bf32..26382a1 100644 --- a/versions.json +++ b/versions.json @@ -1,4 +1,3 @@ { - "1.0.0": "0.9.7", - "1.0.1": "0.12.0" + "1.0.0": "0.15.0" } From 64e86498772c97c6f49fd28698405547fd44dc60 Mon Sep 17 00:00:00 2001 From: lishid Date: Tue, 9 Aug 2022 13:39:02 -0400 Subject: [PATCH 4/5] Update sample css file. --- styles.css | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/styles.css b/styles.css index 586fdea..71cc60f 100644 --- a/styles.css +++ b/styles.css @@ -1,4 +1,8 @@ -/* Sets all the text color to red! */ -body { - color: red; -} +/* + +This CSS file will be included with your plugin, and +available in the app when your plugin is enabled. + +If your plugin does not need CSS, delete this file. + +*/ From 866d3b8f0daacd804f02f9854886c8fe7684f37b Mon Sep 17 00:00:00 2001 From: lishid Date: Sat, 20 Aug 2022 20:25:17 -0400 Subject: [PATCH 5/5] Build: Target ES2018. --- esbuild.config.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esbuild.config.mjs b/esbuild.config.mjs index 057fe9d..8e2dad0 100644 --- a/esbuild.config.mjs +++ b/esbuild.config.mjs @@ -34,7 +34,7 @@ esbuild.build({ ...builtins], format: 'cjs', watch: !prod, - target: 'es2016', + target: 'es2018', logLevel: "info", sourcemap: prod ? false : 'inline', treeShaking: true,