Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Upgrade all major deps #40

Merged
merged 2 commits into from
Oct 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified bun.lockb
Binary file not shown.
20 changes: 9 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,19 @@
"dependencies": {
"@aklinker1/check": "^1.4.5",
"@tanstack/vue-query": "^5.59.13",
"@vueuse/core": "^9.13.0",
"@webext-core/messaging": "^1.4.0",
"@webext-core/messaging": "^1.0.0",
"@webext-core/proxy-service": "^1.2.0",
"async-mutex": "^0.4.1",
"daisyui": "^3.9.4",
"async-mutex": "^0.5.0",
"daisyui": "^4.12.13",
"fast-deep-equal": "^3.1.3",
"minimatch": "^9.0.5",
"minimatch": "^10.0.1",
"ofetch": "^1.4.1"
},
"devDependencies": {
"@aklinker1/generate-changelog": "^1.1.2",
"@iconify/json": "^2.2.261",
"@types/bun": "^1.1.11",
"@types/chrome": "^0.0.269",
"@types/chrome": "^0.0.278",
"@types/jsdom": "^21.1.7",
"@vitest/coverage-v8": "^2.1.3",
"@wxt-dev/auto-icons": "^1.0.2",
Expand All @@ -42,12 +41,11 @@
"autoprefixer": "^10.4.20",
"env-cmd": "^10.1.0",
"fast-glob": "^3.3.2",
"jsdom": "^22.1.0",
"lint-staged": "^14.0.1",
"jsdom": "^25.0.1",
"lint-staged": "^15.2.10",
"postcss": "^8.4.47",
"prettier": "^3.3.3",
"pretty-quick": "^3.3.1",
"publish-browser-extension": "^1.4.1",
"publish-browser-extension": "^2.2.2",
"simple-git-hooks": "^2.11.1",
"tailwindcss": "^3.4.14",
"typescript": "^5.6.3",
Expand All @@ -61,6 +59,6 @@
"pre-commit": "bun lint-staged"
},
"lint-staged": {
"*": "prettier --write"
"*": "prettier --ignore-unknown --write"
}
}
9 changes: 1 addition & 8 deletions src/components/CustomListsPref.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,8 @@ import { computed } from "vue";
import type { CustomLists } from "@/utils/storage";
import CustomListItem from "./CustomListItem.vue";

const props = defineProps<{
customLists: CustomLists;
}>();
const customLists = defineModel<CustomLists>("customLists", { required: true });

const emits = defineEmits<{
(event: "update:customLists", newValue: CustomLists): void;
}>();

const customLists = useVModel(props, "customLists", emits);
const all = computed({
get() {
return customLists.value.all;
Expand Down
12 changes: 3 additions & 9 deletions src/components/ShowGeneratedCountPref.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
<script lang="ts" setup>
const props = defineProps<{
hideGeneratedLineCount: boolean;
}>();

const emits = defineEmits<{
(event: "update:hideGeneratedLineCount", newHide: boolean): void;
}>();

const hideLineCount = useVModel(props, "hideGeneratedLineCount", emits);
const hideLineCount = defineModel<boolean>("hideGeneratedLineCount", {
required: true,
});

function toggle() {
hideLineCount.value = !hideLineCount.value;
Expand Down
14 changes: 4 additions & 10 deletions src/components/TokenPref.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,9 @@
import IMdiEye from "~icons/mdi/eye";
import IMdiEyeOffOutline from "~icons/mdi/eye-off-outline";

const props = defineProps<{
githubPat: string;
}>();

const emits = defineEmits<{
(event: "update:githubPat", newToken: string): void;
}>();

const token = useVModel(props, "githubPat", emits);
const token = defineModel<string>("githubPat", {
required: true,
});

const { data: user, error, isLoading } = useGithubUserQuery(token);

Expand Down Expand Up @@ -67,7 +61,7 @@ const { t } = i18n;
{{ t("options.privateRepos.checking") }}
</p>
<p v-else>
<span class="badge badge-success">{{
<span class="badge badge-primary">{{
t("options.privateRepos.validToken")
}}</span>
{{ " " }}
Expand Down
4 changes: 1 addition & 3 deletions wxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import type { UserManifest } from "wxt";
import { defineConfig } from "wxt";
import Vue from "@vitejs/plugin-vue";
import Icons from "unplugin-icons/vite";

export default defineConfig({
Expand All @@ -15,7 +13,7 @@ export default defineConfig({
"@wxt-dev/auto-icons",
],
imports: {
presets: ["vue-router", "@vueuse/core"],
presets: ["vue-router"],
imports: [
{ from: "@tanstack/vue-query", name: "useQuery" },
{ from: "@tanstack/vue-query", name: "useMutation" },
Expand Down
Loading