mirror of
https://github.com/mattmarotta/obsidian-url-enricher.git
synced 2026-07-22 06:42:44 +00:00
chore: Bump version to 1.3.1
This commit is contained in:
parent
9f6aa71f57
commit
98a074e21c
9 changed files with 57 additions and 20 deletions
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
This plugin adds rich, non-destructive link previews to Obsidian. URLs remain as plain text in your notes. The plugin enhances them with live inline previews or cards showing metadata (title, description, favicon) in editor view only.
|
||||
|
||||
- **Current version**: 1.3.0
|
||||
- **Current version**: 1.3.1
|
||||
- **Plugin ID**: `url-enricher` (renamed from `obsidian-inline-link-preview` in 0.9.0)
|
||||
- **Entry point**: [src/main.ts](../../src/main.ts) → compiled to `main.js`
|
||||
- **Release artifacts**: `main.js`, `manifest.json`, `styles.css`
|
||||
|
|
|
|||
14
CHANGELOG.md
14
CHANGELOG.md
|
|
@ -13,6 +13,20 @@ All notable changes to URL Enricher will be documented in this file.
|
|||
### Fixed
|
||||
-
|
||||
|
||||
## [1.3.1] - 2025-11-11
|
||||
|
||||
### Added
|
||||
-
|
||||
|
||||
### Changed
|
||||
-
|
||||
|
||||
### Fixed
|
||||
- Fixed ESLint configuration: added missing @eslint-community/eslint-comments plugin
|
||||
- Added @typescript-eslint/no-deprecated rule to catch deprecated API usage
|
||||
- Added descriptions to all ESLint disable directives for code documentation
|
||||
- Created separate ESLint config block for config files to allow deprecated APIs
|
||||
|
||||
## [1.3.0] - 2025-11-11
|
||||
|
||||
### Added
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
import eslint from "@eslint/js";
|
||||
import tseslint from "typescript-eslint";
|
||||
import obsidianmd from "eslint-plugin-obsidianmd";
|
||||
import eslintComments from "@eslint-community/eslint-plugin-eslint-comments";
|
||||
|
||||
export default tseslint.config(
|
||||
// Base ESLint recommended rules
|
||||
|
|
@ -16,6 +17,7 @@ export default tseslint.config(
|
|||
{
|
||||
plugins: {
|
||||
obsidianmd,
|
||||
"@eslint-community/eslint-comments": eslintComments,
|
||||
},
|
||||
languageOptions: {
|
||||
parserOptions: {
|
||||
|
|
@ -43,6 +45,10 @@ export default tseslint.config(
|
|||
"@typescript-eslint/no-floating-promises": "error",
|
||||
"@typescript-eslint/no-unnecessary-type-assertion": "error",
|
||||
"@typescript-eslint/require-await": "error",
|
||||
"@typescript-eslint/no-deprecated": "error",
|
||||
|
||||
// ESLint comments rules
|
||||
"@eslint-community/eslint-comments/require-description": "error",
|
||||
|
||||
// Base ESLint rules
|
||||
"no-prototype-builtins": "off",
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "url-enricher",
|
||||
"name": "URL Enricher",
|
||||
"version": "1.3.0",
|
||||
"version": "1.3.1",
|
||||
"minAppVersion": "0.15.0",
|
||||
"description": "Non-destructive link preview and enrichment. Automatically displays rich metadata previews for URLs - shows page titles, descriptions, and favicons inline without modifying your markdown source.",
|
||||
"author": "Matt Marotta",
|
||||
|
|
|
|||
43
package-lock.json
generated
43
package-lock.json
generated
|
|
@ -1,15 +1,21 @@
|
|||
{
|
||||
"name": "obsidian-url-enricher",
|
||||
"version": "1.3.0",
|
||||
"version": "1.3.1",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "obsidian-url-enricher",
|
||||
"version": "1.3.0",
|
||||
"version": "1.3.1",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"dependencies": {
|
||||
"@codemirror/language": "^6.11.3",
|
||||
"@codemirror/state": "^6.5.0",
|
||||
"@codemirror/view": "^6.38.1",
|
||||
"@eslint/js": "^9.39.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
||||
"@types/node": "^20.19.23",
|
||||
"@typescript-eslint/eslint-plugin": "^8.46.3",
|
||||
"@typescript-eslint/parser": "^8.46.3",
|
||||
|
|
@ -105,7 +111,6 @@
|
|||
"version": "6.11.3",
|
||||
"resolved": "https://registry.npmjs.org/@codemirror/language/-/language-6.11.3.tgz",
|
||||
"integrity": "sha512-9HBM2XnwDj7fnu0551HkGdrUrrqmYq/WC5iv6nbY2WdicXdGbhR/gfbZOH73Aqj4351alY1+aoG9rCNfiwS1RA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@codemirror/state": "^6.0.0",
|
||||
|
|
@ -118,7 +123,6 @@
|
|||
},
|
||||
"node_modules/@codemirror/state": {
|
||||
"version": "6.5.0",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@marijn/find-cluster-break": "^1.0.0"
|
||||
|
|
@ -126,7 +130,6 @@
|
|||
},
|
||||
"node_modules/@codemirror/view": {
|
||||
"version": "6.38.1",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@codemirror/state": "^6.5.0",
|
||||
|
|
@ -575,6 +578,26 @@
|
|||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/@eslint-community/eslint-plugin-eslint-comments": {
|
||||
"version": "4.5.0",
|
||||
"resolved": "https://registry.npmjs.org/@eslint-community/eslint-plugin-eslint-comments/-/eslint-plugin-eslint-comments-4.5.0.tgz",
|
||||
"integrity": "sha512-MAhuTKlr4y/CE3WYX26raZjy+I/kS2PLKSzvfmDCGrBLTFHOYwqROZdr4XwPgXwX3K9rjzMr4pSmUWGnzsUyMg==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"escape-string-regexp": "^4.0.0",
|
||||
"ignore": "^5.2.4"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/eslint"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"eslint": "^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@eslint-community/eslint-utils": {
|
||||
"version": "4.9.0",
|
||||
"dev": true,
|
||||
|
|
@ -700,7 +723,6 @@
|
|||
"version": "9.39.1",
|
||||
"resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.1.tgz",
|
||||
"integrity": "sha512-S26Stp4zCy88tH94QbBv3XCuzRQiZ9yXofEILmglYTh/Ug/a9/umqvgFtYBAo3Lp0nsI/5/qH1CCrbdK3AP1Tw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
||||
|
|
@ -883,14 +905,12 @@
|
|||
"version": "1.2.3",
|
||||
"resolved": "https://registry.npmjs.org/@lezer/common/-/common-1.2.3.tgz",
|
||||
"integrity": "sha512-w7ojc8ejBqr2REPsWxJjrMFsA/ysDCFICn8zEOR9mrqzOu2amhITYuLD8ag6XZf0CFXDrhKqw7+tW8cX66NaDA==",
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@lezer/highlight": {
|
||||
"version": "1.2.1",
|
||||
"resolved": "https://registry.npmjs.org/@lezer/highlight/-/highlight-1.2.1.tgz",
|
||||
"integrity": "sha512-Z5duk4RN/3zuVO7Jq0pGLJ3qynpxUVsh7IbUbGj88+uV2ApSAn6kWg2au3iJb+0Zi7kKtqffIESgNcRXWZWmSA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@lezer/common": "^1.0.0"
|
||||
|
|
@ -900,7 +920,6 @@
|
|||
"version": "1.4.2",
|
||||
"resolved": "https://registry.npmjs.org/@lezer/lr/-/lr-1.4.2.tgz",
|
||||
"integrity": "sha512-pu0K1jCIdnQ12aWNaAVU5bzi7Bd1w54J3ECgANPmYLtQKP0HBj2cE/5coBD66MT10xbtIuUr7tg0Shbsvk0mDA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@lezer/common": "^1.0.0"
|
||||
|
|
@ -908,7 +927,6 @@
|
|||
},
|
||||
"node_modules/@marijn/find-cluster-break": {
|
||||
"version": "1.0.2",
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@microsoft/eslint-plugin-sdl": {
|
||||
|
|
@ -2277,7 +2295,6 @@
|
|||
},
|
||||
"node_modules/crelt": {
|
||||
"version": "1.0.6",
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/cross-spawn": {
|
||||
|
|
@ -6198,7 +6215,6 @@
|
|||
},
|
||||
"node_modules/style-mod": {
|
||||
"version": "4.1.2",
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/supports-color": {
|
||||
|
|
@ -6966,7 +6982,6 @@
|
|||
},
|
||||
"node_modules/w3c-keyname": {
|
||||
"version": "2.2.8",
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/whatwg-mimetype": {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "obsidian-url-enricher",
|
||||
"version": "1.3.0",
|
||||
"version": "1.3.1",
|
||||
"description": "Automatically replace bare URLs with inline previews that show the page title and description.",
|
||||
"type": "module",
|
||||
"main": "main.js",
|
||||
|
|
@ -27,6 +27,7 @@
|
|||
"@eslint/js": "^9.39.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
||||
"@types/node": "^20.19.23",
|
||||
"@typescript-eslint/eslint-plugin": "^8.46.3",
|
||||
"@typescript-eslint/parser": "^8.46.3",
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ export class GoogleSearchMetadataHandler implements MetadataHandler {
|
|||
return segments.includes("google");
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/require-await
|
||||
// eslint-disable-next-line @typescript-eslint/require-await -- Method must be async to match MetadataHandler interface
|
||||
async enrich({ url, metadata }: MetadataHandlerContext): Promise<void> {
|
||||
const query = this.extractQuery(url);
|
||||
if (!query) {
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ export class LinkedInMetadataHandler implements MetadataHandler {
|
|||
return /(^|\.)linkedin\.com$/i.test(url.hostname);
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/require-await
|
||||
// eslint-disable-next-line @typescript-eslint/require-await -- Method must be async to match MetadataHandler interface
|
||||
async enrich(context: MetadataHandlerContext): Promise<void> {
|
||||
const { metadata } = context;
|
||||
|
||||
|
|
|
|||
|
|
@ -15,5 +15,6 @@
|
|||
"1.1.0": "0.15.0",
|
||||
"1.1.1": "0.15.0",
|
||||
"1.2.0": "0.15.0",
|
||||
"1.3.0": "0.15.0"
|
||||
"1.3.0": "0.15.0",
|
||||
"1.3.1": "0.15.0"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue