diff --git a/esbuild.config.mjs b/esbuild.config.mjs index b149e80..a3bd444 100644 --- a/esbuild.config.mjs +++ b/esbuild.config.mjs @@ -1,6 +1,6 @@ import esbuild from "esbuild"; import process from "process"; -import builtins from "builtin-modules"; +import { builtinModules as builtins } from "module"; const prod = process.argv[2] === "production"; diff --git a/eslint.config.mjs b/eslint.config.mjs index 1f92ab7..75cee5e 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -12,7 +12,9 @@ export default [ rules: { "no-prototype-builtins": "off", "no-case-declarations": "off", - "@typescript-eslint/no-unsafe-assignment": "off" + "@typescript-eslint/no-unsafe-assignment": "off", + "@typescript-eslint/no-unsafe-member-access": "off", + "@typescript-eslint/no-explicit-any": "off" }, }, ]; diff --git a/package-lock.json b/package-lock.json index 704a710..d154f33 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,19 +1,18 @@ { "name": "contact-note", - "version": "1.1.2", + "version": "2.1.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "contact-note", - "version": "1.1.2", + "version": "2.1.1", "license": "GNU AGPLv3", "devDependencies": { "@types/node": "^22.0.0", - "builtin-modules": "3.3.0", "esbuild": "0.21.5", "eslint": "^10.2.1", - "eslint-plugin-obsidianmd": "^0.2.9", + "eslint-plugin-obsidianmd": "^0.3.0", "obsidian": "latest", "tslib": "2.6.3", "typescript": "5.5.4" @@ -1061,19 +1060,6 @@ "balanced-match": "^1.0.0" } }, - "node_modules/builtin-modules": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.3.0.tgz", - "integrity": "sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/call-bind": { "version": "1.0.9", "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.9.tgz", @@ -1862,9 +1848,9 @@ } }, "node_modules/eslint-plugin-obsidianmd": { - "version": "0.2.9", - "resolved": "https://registry.npmjs.org/eslint-plugin-obsidianmd/-/eslint-plugin-obsidianmd-0.2.9.tgz", - "integrity": "sha512-+dF5Zz5T6/j0QYGu+wHbY3UZb45Kh+QFkFdfvkVk05o4YIIVqHMlrTFrlRVhuBd6Htu8QxcFOwzeMTN4aysVTA==", + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-obsidianmd/-/eslint-plugin-obsidianmd-0.3.0.tgz", + "integrity": "sha512-QvGDI6B2nxJBrsZKGTg31da2A/fEJNlnwN+fRZkaoPIu1QL3fYXUdpP7ThyMdr/0iTYQxifb9lt2X9cpydQx1w==", "dev": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index f84454f..47476b9 100644 --- a/package.json +++ b/package.json @@ -13,10 +13,9 @@ "license": "GNU AGPLv3", "devDependencies": { "@types/node": "^22.0.0", - "builtin-modules": "3.3.0", "esbuild": "0.21.5", "eslint": "^10.2.1", - "eslint-plugin-obsidianmd": "^0.2.9", + "eslint-plugin-obsidianmd": "^0.3.0", "obsidian": "latest", "tslib": "2.6.3", "typescript": "5.5.4" diff --git a/src/ConfigurationSchemaMigration.ts b/src/ConfigurationSchemaMigration.ts index 1294a54..86bb312 100644 --- a/src/ConfigurationSchemaMigration.ts +++ b/src/ConfigurationSchemaMigration.ts @@ -1,5 +1,3 @@ -/* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access -- This module reads untyped JSON of unknown shape from prior plugin versions. Strict typing here would only obscure the runtime guards that actually protect against malformed input. */ - import { ContactNoteConfiguration, CURRENT_SCHEMA_VERSION } from "./main"; //#region Constants @@ -50,7 +48,7 @@ export function migrate(raw: unknown): MigrationResult { //#region Migration Step Functions -/* This is a per-version migration steps. Append new functions below for each schema change +/* This is a per-version migration steps. Append new functions below for each schema change and add it to MIGRATIONS. Never edit existing steps. */ //#endregion