Update npm dependencies to latest#53
Merged
Merged
Conversation
…pings - Bump @types/node, esbuild, jiti, obsidian, typescript (6.0), and typescript-eslint to latest - Hold @eslint/js at 9.x: eslint-plugin-obsidianmd peer-pins ^9.30.1 - tsconfig: drop unused baseUrl and switch moduleResolution to bundler (both deprecated as errors in TS 6.0) - main.ts: declare settings to refine Plugin.settings (new in 1.13.0) - settings.ts: add override to display(); centralise the still-supported imperative re-render behind rerender() with one deprecation suppression - Keep setWarning() over setDestructive() to avoid raising minAppVersion from 1.8.7 to 1.13.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates all devDependencies to their latest versions, with one held back, and adapts the source to the two major bumps (TypeScript 6, Obsidian 1.13.0 typings).
Version changes
@types/nodeesbuildjitiobsidiantypescripttypescript-eslint@eslint/js@eslint/jsstays on 9.x becauseeslint-plugin-obsidianmd@0.3.0peer-pins@eslint/js: "^9.30.1"; moving to the ESLint 10 ecosystem would break that peer dependency.Source changes required by the major bumps
baseUrlandmoduleResolution: "node"(node10) into hard errors. Removed the unusedbaseUrl(all imports are relative) and switchedmoduleResolutionto"bundler", which matches the esbuild/ESNext setup.Plugin.settings?: unknownas a base member. Changedsettings!:todeclare settings:to refine the inherited type, per the typings' own guidance.PluginSettingTab.display()now requires anoverridemodifier. Internal re-renders route through a newrerender()helper holding a single justified@typescript-eslint/no-deprecatedsuppression; the imperative settings API remains fully supported and is retained intentionally.setWarning()(with a justified suppression) rather thansetDestructive(), which would require raisingminAppVersionfrom 1.8.7 to 1.13.0.minAppVersionis unchanged at 1.8.7.Verification
npm run build(tsc type-check + esbuild production) passesnpm run lintexits cleannpm installreports 0 vulnerabilities