Skip to content
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
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ updates:
schedule:
interval: monthly
open-pull-requests-limit: 2
ignore:
# typescript-eslint 8.73 supports TypeScript below 6.1 only; drop this once it accepts 7.
- dependency-name: typescript
update-types: ['version-update:semver-major']
groups:
npm-monthly:
applies-to: version-updates
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ All notable changes to MeterX are documented here. The format follows [Keep a Ch

### Changed
- Upload streams resize each body from how long the last one took, aiming at about 1 s per request, so a test makes far fewer server requests and the free quota covers several times more tests
- Development tools updated: ESLint 10, @eslint/css 2, Vitest 5, esbuild 0.28, @types/chrome 0.3 and others. TypeScript stays on 5.x until typescript-eslint supports TypeScript 7 (#101)

### Fixed
- Tests run from a private or incognito window are no longer saved to history; the result still shows (#97)
Expand Down
2 changes: 1 addition & 1 deletion apps/extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"test": "npx vitest run"
},
"devDependencies": {
"@types/chrome": "^0.0.287"
"@types/chrome": "^0.3.7"
},
"dependencies": {
"@meterx/reports": "*",
Expand Down
6 changes: 3 additions & 3 deletions apps/extension/src/pages/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ document.addEventListener('DOMContentLoaded', async () => {
ispUp.value = String(plan.uploadMbps);
ispProvider.value = plan.providerName ?? '';
}
const scheduleMinutes: number = stored[SCHEDULE_KEY] ?? 0;
const scheduleMinutes: number = (stored[SCHEDULE_KEY] as number | undefined) ?? 0;
scheduleRadios.forEach(r => { r.checked = Number(r.value) === scheduleMinutes || (r.value === 'off' && scheduleMinutes === 0); });
if (notifyCheckbox) notifyCheckbox.checked = !!stored[NOTIFY_KEY];
const theme: Theme = stored[THEME_KEY] ?? 'system';
const theme: Theme = (stored[THEME_KEY] as Theme | undefined) ?? 'system';
themeRadios.forEach(r => { r.checked = r.value === theme; });

if (ispClearBtn) {
Expand All @@ -79,7 +79,7 @@ document.addEventListener('DOMContentLoaded', async () => {

// Load current setting
const result = await chrome.storage.sync.get('serverUrl');
const currentUrl = result.serverUrl || '';
const currentUrl = (result.serverUrl as string | undefined) || '';
const isCustom = currentUrl && currentUrl !== DEFAULT_URL;

if (isCustom) {
Expand Down
10 changes: 9 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ export default defineConfig([
files: ["apps/extension/**/*.css"],
plugins: { css },
language: "css/css",
extends: ["css/recommended"]
extends: ["css/recommended"],
rules: {
// Custom properties live in a separate stylesheet, which this rule cannot see.
"css/no-invalid-properties": ["error", { allowUnknownVariables: true }],
// The two uses are deliberate: [hidden] must win, and reduced motion must override every animation.
"css/no-important": "off",
// Extension pages run in current Chrome, Edge, Opera and Firefox only.
"css/use-baseline": ["error", { available: "newly", allowProperties: ["accent-color"] }]
}
}
]);
Loading
Loading