Skip to content

Commit

Permalink
2.1.5 update
Browse files Browse the repository at this point in the history
  • Loading branch information
TfT Hacker committed Nov 6, 2024
1 parent 1c76aec commit 79db746
Show file tree
Hide file tree
Showing 35 changed files with 3,228 additions and 2,676 deletions.
24 changes: 0 additions & 24 deletions .eslintignore

This file was deleted.

20 changes: 0 additions & 20 deletions .eslintrc

This file was deleted.

9 changes: 0 additions & 9 deletions .prettierignore

This file was deleted.

6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 2.1.5

- Updating plugin to newest Obsidian recommendations https://docs.obsidian.md/oo24/plugin.
- Transition to Biome from EsLint and Prettier.
- Update to new DeferredView handling - Thank you to @baodrate for PR [151](https://github.com/TfTHacker/obsidian42-strange-new-worlds/pull/151)

# 2.1.4

- New: In Settings under Custom Display List, the display of references can be customized to show properties from referenced files. In Settings, provide a comma separated list of case-sensitive property names. If a file has any of these properties when displayed in the reference list, the properties will also be displayed.
Expand Down
30 changes: 30 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"vcs": {
"enabled": false,
"clientKind": "git",
"useIgnoreFile": false
},
"files": {
"ignoreUnknown": false,
"ignore": []
},
"formatter": {
"enabled": true,
"indentStyle": "tab"
},
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"javascript": {
"formatter": {
"quoteStyle": "double"
}
}
}
15 changes: 9 additions & 6 deletions esbuild.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,20 @@ import builtins from 'builtin-modules';
import fs from 'fs';
import console from 'console';

fs.copyFile('manifest.json', 'build/manifest.json', (err) => {
if (err) console.log(err);
});
fs.copyFile('styles.css', 'build/styles.css', (err) => {
if (err) console.log(err);
});


const prod = process.argv[2] === 'production';

const context = await esbuild.context({
entryPoints: ['src/main.ts'],
bundle: true,
minify: prod,
external: [
'obsidian',
'electron',
Expand Down Expand Up @@ -41,11 +50,5 @@ if (prod) {
await context.rebuild();
process.exit(0);
} else {
fs.copyFile('manifest.json', 'build/manifest.json', (err) => {
if (err) console.log(err);
});
fs.copyFile('styles.css', 'build/styles.css', (err) => {
if (err) console.log(err);
});
await context.watch();
}
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"id": "obsidian42-strange-new-worlds",
"name": "Strange New Worlds",
"version": "2.1.4",
"minAppVersion": "1.5.11",
"version": "2.1.5",
"minAppVersion": "1.7.2",
"description": "Help see how your vault is interconnected with visual indicators.",
"author": "TfTHacker",
"authorUrl": "https://twitter.com/TfTHacker",
Expand Down
86 changes: 31 additions & 55 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,57 +1,33 @@
{
"name": "obsidian42-strange-new-worlds",
"version": "2.1.4",
"description": "Revealing networked thought and the strange new worlds created by your vault",
"scripts": {
"dev": "node esbuild.config.mjs",
"build": "node esbuild.config.mjs production",
"version": "node version-bump.mjs",
"githubaction": "node version-github-action.mjs",
"lint:check": "eslint --ext .ts,.tsx .",
"lint:fix": "eslint --fix --ext .ts,.tsx .",
"format:check": "prettier --check .",
"format:fix": "prettier --write ."
},
"author": "TfTHacker",
"license": "MIT",
"devDependencies": {
"@codemirror/commands": "^6.6.0",
"@codemirror/language": "^6.10.2",
"@codemirror/search": "^6.5.6",
"@codemirror/state": "^6.4.1",
"@codemirror/view": "^6.27.0",
"@types/node": "^20.14.1",
"builtin-modules": "4.0.0",
"esbuild": "0.21.4",
"eslint": "^8.57.0",
"@html-eslint/eslint-plugin": "^0.24.1",
"@html-eslint/parser": "^0.24.1",
"obsidian-typings": "^2.3.0",
"@typescript-eslint/eslint-plugin": "^7.12.0",
"@typescript-eslint/parser": "^7.12.0",
"@typescript-eslint/utils": "^7.12.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-css": "^0.9.2",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsonc": "^2.16.0",
"eslint-plugin-mdx": "^3.1.5",
"eslint-plugin-only-warn": "^1.1.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-tsdoc": "^0.3.0",
"eslint-plugin-yml": "^1.14.0",
"prettier": "^3.3.0",
"remark-preset-lint-consistent": "^6.0.0",
"remark-preset-lint-markdown-style-guide": "^6.0.0",
"remark-preset-lint-recommended": "^7.0.0",
"remark-preset-prettier": "^2.0.1",
"tslib": "^2.6.2",
"typescript": "5.4.5",
"obsidian": "^1.7.2"
},
"dependencies": {
"preact": "^10.22.0",
"tippy.js": "^6.3.7"
}
"name": "obsidian42-strange-new-worlds",
"version": "2.1.5",
"description": "Revealing networked thought and the strange new worlds created by your vault",
"scripts": {
"dev": "node --no-warnings esbuild.config.mjs",
"build": "node --no-warnings esbuild.config.mjs production",
"lint": "biome check ./src",
"version": "node version-bump.mjs",
"githubaction": "node version-github-action.mjs"
},
"author": "TfTHacker",
"license": "MIT",
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@codemirror/commands": "^6.7.1",
"@codemirror/language": "^6.10.3",
"@codemirror/search": "^6.5.7",
"@codemirror/state": "^6.4.1",
"@codemirror/view": "^6.34.2",
"@types/node": "^22.9.0",
"builtin-modules": "4.0.0",
"esbuild": "0.24.0",
"obsidian": "^1.7.2",
"obsidian-typings": "^2.3.0",
"tslib": "^2.8.1",
"typescript": "5.6.3"
},
"dependencies": {
"preact": "^10.24.3",
"tippy.js": "^6.3.7"
}
}
39 changes: 0 additions & 39 deletions prettier.config.cjs

This file was deleted.

Loading

0 comments on commit 79db746

Please sign in to comment.