Skip to content

Commit

Permalink
build: upgrade deps
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianWoelki committed Oct 18, 2024
1 parent d981c5e commit 6e65c46
Show file tree
Hide file tree
Showing 9 changed files with 545 additions and 863 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@
"@commitlint/config-conventional": "^17.8.1",
"@rollup/plugin-alias": "^5.1.1",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.8",
"@rollup/plugin-commonjs": "^28.0.1",
"@rollup/plugin-node-resolve": "^15.3.0",
"@rollup/plugin-typescript": "^11.1.6",
"@rollup/plugin-typescript": "^12.1.1",
"@twemoji/api": "^15.1.0",
"@types/node": "^20.16.11",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"@vitest/coverage-istanbul": "^1.6.0",
"@vitest/coverage-istanbul": "^2.1.3",
"eslint": "^8.57.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
Expand All @@ -58,11 +58,11 @@
"monkey-around": "^2.3.0",
"obsidian": "^1.7.2",
"prettier": "^3.3.3",
"rollup": "^2.79.2",
"rollup": "^4.24.0",
"tslib": "^2.7.0",
"typescript": "^5.6.3",
"vitepress": "1.2.3",
"vitest": "^1.6.0"
"vitest": "^2.1.3"
},
"dependencies": {
"jszip": "^3.10.1"
Expand Down
1,364 changes: 523 additions & 841 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import typescript from '@rollup/plugin-typescript';
import { nodeResolve } from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import alias from '@rollup/plugin-alias';
import copyFile from './copy-file';
import { obsidianExportPath } from './env';
import copyFile from './copy-file.js';
import { obsidianExportPath } from './env.js';

const isProd = process.env.BUILD === 'production';

Expand Down
4 changes: 2 additions & 2 deletions src/editor/icons-suggestion.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
Mock,
SpyInstance,
MockInstance,
beforeEach,
describe,
expect,
Expand Down Expand Up @@ -134,7 +134,7 @@ describe('renderSuggestion', () => {
});

describe('getSuggestions', () => {
let getAllLoadedIconNamesSpy: SpyInstance;
let getAllLoadedIconNamesSpy: MockInstance;
beforeEach(() => {
vi.restoreAllMocks();
getAllLoadedIconNamesSpy = vi.spyOn(
Expand Down
6 changes: 3 additions & 3 deletions src/lib/custom-rule.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { vi, it, describe, beforeEach, expect, SpyInstance } from 'vitest';
import { vi, it, describe, beforeEach, expect, MockInstance } from 'vitest';
import { Plugin, TAbstractFile } from 'obsidian';
import dom from './util/dom';
import { CustomRule } from '../settings/data';
Expand Down Expand Up @@ -93,7 +93,7 @@ describe('isApplicable', () => {
});

describe('removeFromAllFiles', () => {
let removeIconInNode: SpyInstance;
let removeIconInNode: MockInstance;
let plugin: any;
let rule: CustomRule;

Expand Down Expand Up @@ -206,7 +206,7 @@ describe('getSortedRules', () => {
});

describe('add', () => {
let createIconNode: SpyInstance;
let createIconNode: MockInstance;
let plugin: any;
let rule: CustomRule;
let file: any;
Expand Down
4 changes: 2 additions & 2 deletions src/lib/icon-tabs.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { it, describe, beforeEach, expect, vi, SpyInstance } from 'vitest';
import { it, describe, beforeEach, expect, vi, MockInstance } from 'vitest';
import { DEFAULT_FILE_ICON } from '@app/util';
import iconTabs from './icon-tabs';
import dom from './util/dom';
Expand Down Expand Up @@ -59,7 +59,7 @@ describe('getTabLeavesOfFilePath', () => {
});

describe('add', () => {
let setIconForNode: SpyInstance;
let setIconForNode: MockInstance;
let plugin: any;
let file: any;
beforeEach(() => {
Expand Down
6 changes: 3 additions & 3 deletions src/lib/util/dom.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { beforeEach, it, expect, describe, vi, SpyInstance } from 'vitest';
import { beforeEach, it, expect, describe, vi, MockInstance } from 'vitest';
import * as iconPackManager from '../../icon-pack-manager';
import dom from './dom';
import svg from './svg';
Expand Down Expand Up @@ -85,7 +85,7 @@ describe('getIconFromElement', () => {
});

describe('setIconForNode', () => {
let getSvgFromLoadedIcon: SpyInstance;
let getSvgFromLoadedIcon: MockInstance;
let plugin: any;
beforeEach(() => {
vi.restoreAllMocks();
Expand Down Expand Up @@ -166,7 +166,7 @@ describe('setIconForNode', () => {
});

describe('createIconNode', () => {
let getSvgFromLoadedIcon: SpyInstance;
let getSvgFromLoadedIcon: MockInstance;
let plugin: any;
beforeEach(() => {
document.body.innerHTML = '';
Expand Down
4 changes: 2 additions & 2 deletions src/lib/util/style.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
Mock,
SpyInstance,
MockInstance,
beforeEach,
describe,
expect,
Expand Down Expand Up @@ -82,7 +82,7 @@ describe('applyAll', () => {

describe('refreshIconNodes', () => {
let applyStyles: Mock;
let getFileItemTitleElSpy: SpyInstance;
let getFileItemTitleElSpy: MockInstance;
let plugin: any;
let titleEl: HTMLElement;
let iconNode: HTMLElement;
Expand Down
6 changes: 3 additions & 3 deletions src/util.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SpyInstance, beforeEach, describe, expect, it, vi } from 'vitest';
import { MockInstance, beforeEach, describe, expect, it, vi } from 'vitest';
import * as iconPackManager from './icon-pack-manager';
import {
getAllOpenedFiles,
Expand Down Expand Up @@ -53,7 +53,7 @@ describe('getAllOpenedFiles', () => {
});

describe('saveIconToIconPack', () => {
let extractIconToIconPack: SpyInstance;
let extractIconToIconPack: MockInstance;

beforeEach(() => {
vi.restoreAllMocks();
Expand Down Expand Up @@ -93,7 +93,7 @@ describe('saveIconToIconPack', () => {

describe('removeIconFromIconPack', () => {
let plugin: any;
let removeIconFromIconPackDirectory: SpyInstance;
let removeIconFromIconPackDirectory: MockInstance;
beforeEach(() => {
vi.restoreAllMocks();
plugin = {
Expand Down

0 comments on commit 6e65c46

Please sign in to comment.