Skip to content

Commit 61e0f40

Browse files
committed
bump dependencies, version and fix small issue
1 parent 528f07b commit 61e0f40

File tree

7 files changed

+903
-17
lines changed

7 files changed

+903
-17
lines changed

bun.lock

Lines changed: 883 additions & 0 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,29 @@
11
{
22
"name": "tosdr_browser_extension",
33
"version": "5.0.0",
4+
"type": "module",
45
"description": "\"I have read and agree to the Terms\" is the biggest lie on the web. We aim to fix that. \"Terms of Service; Didn't Read\" is a user rights initiative to rate and label website terms & privacy policies, from very good (class A) to very bad (class E).",
56
"author": "ToS;DR Team",
67
"license": "AGPL-3.0-or-later",
78
"devDependencies": {
8-
"@types/chrome": "^0.0.251",
9-
"@types/node": "^20.10.0",
9+
"@types/chrome": "^0.1.0",
10+
"@types/node": "^24.0.14",
1011
"@typescript-eslint/eslint-plugin": "^8.37.0",
1112
"@typescript-eslint/parser": "^8.37.0",
12-
"eslint": "^8.53.0",
13-
"prettier": "3.0.3",
14-
"rimraf": "^5.0.5",
15-
"typescript": "^5.2.2",
16-
"vite": "^5.0.0",
17-
"vite-plugin-web-extension": "^4.1.0"
13+
"eslint": "^9.31.0",
14+
"prettier": "^3.6.2",
15+
"rimraf": "^6.0.1",
16+
"typescript": "^5.8.3",
17+
"vite": "^7.0.4",
18+
"vite-plugin-web-extension": "^4.4.4"
1819
},
1920
"scripts": {
2021
"dev": "vite build --watch --mode development --config vite.chrome.config.ts",
2122
"dev:firefox": "vite build --watch --mode development --config vite.firefox.config.ts",
2223
"build": "node scripts/build.js",
2324
"build:chrome": "vite build --mode production --config vite.chrome.config.ts",
2425
"build:firefox": "vite build --mode production --config vite.firefox.config.ts",
25-
"clean": "powershell -Command \"Remove-Item -Recurse -Force -ErrorAction SilentlyContinue dist, build, tsc\"",
26+
"clean": "rimraf dist build tsc",
2627
"type-check": "tsc --noEmit",
2728
"lint": "eslint src scripts --ext .js,.ts",
2829
"lint:fix": "eslint src scripts --ext .js,.ts --fix"

scripts/build.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env node
22

3-
const { execSync } = require('child_process');
4-
const { existsSync, rmSync } = require('fs');
3+
import { execSync } from 'child_process';
4+
import { existsSync, rmSync } from 'fs';
55

66
console.log('🚀 Building browser extensions...\n');
77

src/manifest-ff.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 3,
33
"name": "__MSG_extensionName__",
44
"description": "__MSG_extensionDescription__",
5-
"version": "5.1.1",
5+
"version": "6.0.0",
66
"homepage_url": "https://tosdr.org",
77
"permissions": ["tabs", "storage"],
88
"background": {

src/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 3,
33
"name": "__MSG_extensionName__",
44
"description": "__MSG_extensionDescription__",
5-
"version": "5.1.1",
5+
"version": "6.0.0",
66
"homepage_url": "https://tosdr.org",
77
"permissions": ["tabs", "storage"],
88
"background": {

src/scripts/background.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,12 @@ chrome.action.setBadgeText({ text: '' });
186186
async function checkDonationReminder() {
187187
// Retrieve the value from storage and ensure it's a boolean
188188
const data = await chrome.storage.local.get('displayDonationReminder');
189-
const dDR = Boolean(data["displayDonationReminder"]?.active);
189+
const displayDonationReminder = data["displayDonationReminder"];
190+
const dDR = Boolean(displayDonationReminder?.active);
191+
190192
if (
191193
dDR !== true &&
192-
data["displayDonationReminder"].allowedPlattform === true
194+
displayDonationReminder?.allowedPlattform === true
193195
) {
194196
const currentDate = new Date();
195197
const currentYear = currentDate.getFullYear();
@@ -211,7 +213,7 @@ async function checkDonationReminder() {
211213
displayDonationReminder: {
212214
active: true,
213215
allowedPlattform:
214-
data["displayDonationReminder"].allowedPlattform,
216+
displayDonationReminder?.allowedPlattform,
215217
},
216218
});
217219
}

src/views/popup.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ <h3 style="display: none">
107107
<a>
108108
<button id="toggleButton">Toggle Darkmode</button> -
109109
<button id="settingsButton">Settings</button> -
110-
<button id="sourceButton">Source Code</button> - v5.1.1
110+
<button id="sourceButton">Source Code</button> - v6.0.0
111111
</a>
112112
</body>
113113
<script src="../scripts/views/popup.js"></script>

0 commit comments

Comments
 (0)