Skip to content

Commit 60afd89

Browse files
committed
major refactor
1 parent 015cd37 commit 60afd89

File tree

159 files changed

+2072
-1232
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+2072
-1232
lines changed

automation/build/esbuild.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import builtins from 'builtin-modules';
22
import esbuild from 'esbuild';
33
import esbuildSvelte from 'esbuild-svelte';
44
import { getBuildBanner } from 'build/buildBanner';
5+
import manifest from '../../manifest.json' assert { type: 'json' };
56

67
const banner = getBuildBanner('Release Build', version => version);
78

@@ -37,6 +38,7 @@ const build = await esbuild.build({
3738
metafile: true,
3839
conditions: ['browser', 'production'],
3940
define: {
41+
MB_VERSION: `"${manifest.version}"`,
4042
MB_DEV_BUILD: 'false',
4143
MB_DEBUG: 'false',
4244
},

automation/build/esbuild.dev.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ const context = await esbuild.context({
3636
outbase: 'packages/obsidian/src',
3737
conditions: ['browser', 'development'],
3838
define: {
39+
MB_VERSION: `"${manifest.version}"`,
3940
MB_DEV_BUILD: 'false',
4041
MB_DEBUG: 'true',
4142
},

bun.lock

Lines changed: 781 additions & 0 deletions
Large diffs are not rendered by default.

bun.lockb

-142 KB
Binary file not shown.

package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"dev-publish": "bun run automation/build/esbuild.publish.dev.config.ts",
1010
"build-publish": "bun run tsc && node automation/build/esbuild.publish.config.ts",
1111
"tsc": "tsc -noEmit -skipLibCheck",
12-
"test": "LOG_TESTS=false bun test --conditions=browser",
13-
"test:log": "LOG_TESTS=true bun test --conditions=browser",
12+
"test": "LOG_TESTS=false bun test --conditions=browser --conditions=development",
13+
"test:log": "LOG_TESTS=true bun test --conditions=browser --conditions=development",
1414
"format": "prettier --write --plugin prettier-plugin-svelte .",
1515
"format:check": "prettier --check --plugin prettier-plugin-svelte .",
1616
"lint": "eslint --max-warnings=0 packages/** --no-warn-ignored",
@@ -30,38 +30,38 @@
3030
"license": "GPL-3.0",
3131
"devDependencies": {
3232
"@elysiajs/cors": "^1.2.0",
33-
"@happy-dom/global-registrator": "^14.12.3",
33+
"@happy-dom/global-registrator": "^17.0.0",
3434
"@tsconfig/svelte": "^5.0.4",
35-
"@types/bun": "^1.1.16",
36-
"builtin-modules": "^4.0.0",
37-
"elysia": "^1.2.10",
38-
"esbuild": "^0.24.2",
35+
"@types/bun": "^1.2.5",
36+
"builtin-modules": "^5.0.0",
37+
"elysia": "^1.2.25",
38+
"esbuild": "^0.25.1",
3939
"esbuild-plugin-copy-watch": "^2.3.1",
4040
"esbuild-svelte": "^0.8.2",
41-
"eslint": "^9.18.0",
41+
"eslint": "^9.22.0",
4242
"eslint-plugin-import": "^2.31.0",
4343
"eslint-plugin-isaacscript": "^4.0.0",
4444
"eslint-plugin-no-relative-import-paths": "^1.6.1",
4545
"eslint-plugin-only-warn": "^1.1.0",
46-
"eslint-plugin-svelte": "^2.46.1",
47-
"prettier": "^3.4.2",
46+
"eslint-plugin-svelte": "^3.1.0",
47+
"prettier": "^3.5.3",
4848
"prettier-plugin-svelte": "^3.3.3",
4949
"string-argv": "^0.3.2",
50-
"svelte-check": "^4.1.4",
50+
"svelte-check": "^4.1.5",
5151
"svelte-preprocess": "^6.0.3",
5252
"tslib": "^2.8.1",
53-
"typescript": "^5.7.3",
54-
"typescript-eslint": "^8.20.0",
53+
"typescript": "^5.8.2",
54+
"typescript-eslint": "^8.26.1",
5555
"yaml": "^2.7.0"
5656
},
5757
"dependencies": {
58-
"@codemirror/legacy-modes": "^6.4.2",
58+
"@codemirror/legacy-modes": "^6.4.3",
5959
"@lemons_dev/parsinom": "^0.0.12",
60-
"itertools-ts": "^1.29.0",
61-
"mathjs": "^14.0.1",
60+
"itertools-ts": "^2.2.0",
61+
"mathjs": "^14.3.1",
6262
"moment": "^2.30.1",
63-
"svelte": "^5.17.5",
64-
"zod": "^3.24.1",
63+
"svelte": "^5.23.0",
64+
"zod": "^3.24.2",
6565
"zod-validation-error": "^3.4.0"
6666
},
6767
"private": true,

packages/core/src/IPlugin.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

packages/core/src/Settings.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ export interface MetaBindPluginSettings {
6565
preferredDateFormat: string;
6666
firstWeekday: Weekday;
6767
syncInterval: number;
68-
maxSyncInterval: number;
69-
minSyncInterval: number;
7068
enableJs: boolean;
7169
viewFieldDisplayNullAsEmpty: boolean;
7270
enableSyntaxHighlighting: boolean;
@@ -88,8 +86,6 @@ export const DEFAULT_SETTINGS: MetaBindPluginSettings = {
8886
preferredDateFormat: 'YYYY-MM-DD',
8987
firstWeekday: weekdays[1],
9088
syncInterval: 200,
91-
minSyncInterval: 50,
92-
maxSyncInterval: 1000,
9389
enableJs: false,
9490
viewFieldDisplayNullAsEmpty: false,
9591
enableSyntaxHighlighting: true,
@@ -99,3 +95,6 @@ export const DEFAULT_SETTINGS: MetaBindPluginSettings = {
9995
buttonTemplates: [],
10096
excludedFolders: ['templates'],
10197
};
98+
99+
export const MIN_SYNC_INTERVAL = 50;
100+
export const MAX_SYNC_INTERVAL = 1000;

0 commit comments

Comments
 (0)