@networkpro/web 1.26.14 → 1.26.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -45,7 +45,7 @@ jobs:
45
45
  - name: Upgrade npm
46
46
  run: |
47
47
  corepack enable
48
- npm install -g npm@11.11.0
48
+ npm install -g npm@11.12.0
49
49
 
50
50
  - name: Install Node.js dependencies
51
51
  run: npm ci
@@ -130,7 +130,7 @@ jobs:
130
130
  - name: Upgrade npm
131
131
  run: |
132
132
  corepack enable
133
- npm install -g npm@11.11.0
133
+ npm install -g npm@11.12.0
134
134
 
135
135
  - name: Install Node.js dependencies
136
136
  run: npm ci
@@ -186,7 +186,7 @@ jobs:
186
186
  - name: Upgrade npm
187
187
  run: |
188
188
  corepack enable
189
- npm install -g npm@11.11.0
189
+ npm install -g npm@11.12.0
190
190
 
191
191
  - name: Install Node.js dependencies
192
192
  run: npm ci
@@ -49,7 +49,7 @@ jobs:
49
49
  - name: Upgrade npm
50
50
  run: |
51
51
  corepack enable
52
- npm install -g npm@11.11.0
52
+ npm install -g npm@11.12.0
53
53
 
54
54
  - name: Clean previous Lighthouse reports
55
55
  run: |
@@ -41,7 +41,7 @@ jobs:
41
41
  - name: Upgrade npm
42
42
  run: |
43
43
  corepack enable
44
- npm install -g npm@11.11.0
44
+ npm install -g npm@11.12.0
45
45
 
46
46
  - name: Install Node.js dependencies
47
47
  run: npm ci
@@ -48,7 +48,7 @@ jobs:
48
48
  - name: Upgrade npm
49
49
  run: |
50
50
  corepack enable
51
- npm install -g npm@11.11.0
51
+ npm install -g npm@11.12.0
52
52
 
53
53
  - name: Install Node.js dependencies
54
54
  run: npm ci
@@ -134,7 +134,7 @@ jobs:
134
134
  - name: Upgrade npm
135
135
  run: |
136
136
  corepack enable
137
- npm install -g npm@11.11.0
137
+ npm install -g npm@11.12.0
138
138
 
139
139
  - name: Install Node.js dependencies
140
140
  run: npm ci
@@ -195,7 +195,7 @@ jobs:
195
195
  - name: Upgrade npm
196
196
  run: |
197
197
  corepack enable
198
- npm install -g npm@11.11.0
198
+ npm install -g npm@11.12.0
199
199
 
200
200
  - name: Install Node.js dependencies
201
201
  run: npm ci
@@ -53,7 +53,7 @@ jobs:
53
53
  - name: Upgrade npm
54
54
  run: |
55
55
  corepack enable
56
- npm install -g npm@11.11.0
56
+ npm install -g npm@11.12.0
57
57
 
58
58
  - name: Install Node.js dependencies
59
59
  run: npm ci
@@ -134,7 +134,7 @@ jobs:
134
134
  - name: Upgrade npm
135
135
  run: |
136
136
  corepack enable
137
- npm install -g npm@11.11.0
137
+ npm install -g npm@11.12.0
138
138
 
139
139
  - name: Install Node.js dependencies
140
140
  run: npm ci
@@ -190,7 +190,7 @@ jobs:
190
190
  - name: Upgrade npm
191
191
  run: |
192
192
  corepack enable
193
- npm install -g npm@11.11.0
193
+ npm install -g npm@11.12.0
194
194
 
195
195
  - name: Install Node.js dependencies
196
196
  run: npm ci
package/.ncurc.cjs CHANGED
@@ -31,7 +31,7 @@ This file is part of Network Pro.
31
31
  /** @type {import('npm-check-updates').RunOptions} */
32
32
  module.exports = {
33
33
  // Ignore specific dependencies (prevent upgrades)
34
- reject: ['eslint', '@eslint/js'],
34
+ reject: [],
35
35
 
36
36
  // Always upgrade devDependencies as well
37
37
  dep: 'prod,dev',
package/CHANGELOG.md CHANGED
@@ -24,6 +24,66 @@ version increments reflecting both user-visible and operational impact.
24
24
 
25
25
  ---
26
26
 
27
+ ## [1.26.16] - 2026-03-20
28
+
29
+ ### Changed
30
+
31
+ - Updated size of **[Keep Android Open](https://keepandroidopen.org/)** banner in `src/app.html`.
32
+ - Updated `svelte.config.js` to utilize the `nodejs24.x` runtime for `@sveltejs/adapter-vercel`.
33
+ - Updated all **GitHub Actions** workflows to utilize **npm** `11.12.0`.
34
+ - Updated generator metadata in `src/app.html` to reflect **SvelteKit 2.55.0**.
35
+ - Bumped project version to `v1.26.16`.
36
+ - Updated dependencies:
37
+ - `vite` `^8.0.0` → `^8.0.1`
38
+ - `@sveltejs/kit` `2.54.0` → `2.55.0`
39
+ - `eslint` `10.0.3` → `10.1.0`
40
+ - `posthog-js` `^1.360.1` → `^1.363.1`
41
+ - `stylelint` `^17.4.0` → `^17.5.0`
42
+ - `stylelint-order` `^8.0.0` → `^8.1.1`
43
+ - `svelte` `5.53.11` → `5.54.0`
44
+ - `jsdom` `28.1.0` → `29.0.1`
45
+
46
+ ---
47
+
48
+ ## [1.26.15] - 2026-03-12
49
+
50
+ ### Changed
51
+
52
+ - Updated `vite.config.js` to resolve tsconfig paths.
53
+ - Updated generator metadata in `src/app.html` to reflect **SvelteKit 2.54.0**.
54
+ - Updated all GitHub Actions workflows to utilize **npm** `11.11.1`.
55
+ - Removed `@eslint/js` and `eslint` from `.ncurc.cjs` "reject" list.
56
+ - Modified `vite.config.js` to comment out `vite-plugin-devtools-json` related entries until package is updated.
57
+ - Updated `scripts/checkEnv.js` to satisfy newer ESLint rules by removing an unnecessary placeholder assignment and preserving existing validation behavior.
58
+ - Updated `src/service-worker.js` to satisfy newer ESLint rules by preserving caught error context during precache failures and removing an unnecessary reassignment in the install handler.
59
+ - Bumped project version to `v1.26.15`.
60
+ - Updated dependencies:
61
+ - `dompurify` `^3.3.2` → `^3.3.3`
62
+ - `eslint-plugin-svelte` `^3.15.0` → `^3.15.2`
63
+ - `svelte` `5.53.7` → `5.53.11`
64
+ - `@sveltejs/kit` `2.53.4` → `2.54.0`
65
+ - `@vitest/coverage-v8` `4.0.18` → `4.1.0`
66
+ - `eslint-plugin-jsdoc` `^62.7.1` → `^62.8.0`
67
+ - `lightningcss` `^1.31.1` → `^1.32.0`
68
+ - `posthog-js` `^1.359.1` → `^1.360.1`
69
+ - `vitest` `4.0.18` → `4.1.0`
70
+ - `@sveltejs/vite-plugin-svelte` `^6.2.4` → `^7.0.0`
71
+ - `stylelint-order` `^7.0.1` → `^8.0.0`
72
+ - `vite` `^7.3.1` → `^8.0.0`
73
+ - `@eslint/js` `9.32.2` → `10.0.1`
74
+ - `eslint` `9.39.2` → `10.0.3`
75
+
76
+ ### Removed
77
+
78
+ - Removed `vite-plugin-devtools-json`, as it is not compatible with Vite 8.
79
+ - Removed `vite-tsconfig-paths`, as it is now included natively in Vite.
80
+
81
+ ### Security
82
+
83
+ - Pinned transitive dependency `tar` to `^7.5.11` to mitigate CVE-2026-31802.
84
+
85
+ ---
86
+
27
87
  ## [1.26.14] - 2026-03-07
28
88
 
29
89
  ### Changed
@@ -2515,7 +2575,9 @@ This enables analytics filtering and CSP hardening for the audit environment.
2515
2575
 
2516
2576
  <!-- Link references -->
2517
2577
 
2518
- [Unreleased]: https://github.com/netwk-pro/netwk-pro.github.io/compare/v1.26.14...HEAD
2578
+ [Unreleased]: https://github.com/netwk-pro/netwk-pro.github.io/compare/v1.26.16...HEAD
2579
+ [1.26.16]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.26.16
2580
+ [1.26.15]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.26.15
2519
2581
  [1.26.14]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.26.14
2520
2582
  [1.26.13]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.26.13
2521
2583
  [1.26.12]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.26.12
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@networkpro/web",
3
3
  "private": false,
4
- "version": "1.26.14",
4
+ "version": "1.26.16",
5
5
  "description": "Locking Down Networks, Unlocking Confidence™ | Security, Networking, Privacy — Network Pro Strategies",
6
6
  "keywords": [
7
7
  "advocacy",
@@ -89,33 +89,33 @@
89
89
  "pre-push": "bash scripts/hooks/pre-push.sh"
90
90
  },
91
91
  "dependencies": {
92
- "dompurify": "^3.3.2",
93
- "posthog-js": "^1.359.1",
92
+ "dompurify": "^3.3.3",
93
+ "posthog-js": "^1.363.1",
94
94
  "semver": "^7.7.4",
95
- "svelte": "5.53.7"
95
+ "svelte": "5.54.0"
96
96
  },
97
97
  "devDependencies": {
98
98
  "@eslint/compat": "^2.0.3",
99
- "@eslint/js": "9.39.2",
99
+ "@eslint/js": "10.0.1",
100
100
  "@lhci/cli": "^0.15.1",
101
101
  "@playwright/test": "^1.58.2",
102
102
  "@sveltejs/adapter-netlify": "^6.0.4",
103
103
  "@sveltejs/adapter-vercel": "^6.3.3",
104
- "@sveltejs/kit": "2.53.4",
105
- "@sveltejs/vite-plugin-svelte": "^6.2.4",
104
+ "@sveltejs/kit": "2.55.0",
105
+ "@sveltejs/vite-plugin-svelte": "^7.0.0",
106
106
  "@testing-library/jest-dom": "^6.9.1",
107
107
  "@testing-library/svelte": "^5.3.1",
108
- "@vitest/coverage-v8": "4.0.18",
108
+ "@vitest/coverage-v8": "4.1.0",
109
109
  "autoprefixer": "^10.4.27",
110
110
  "browserslist": "^4.28.1",
111
- "eslint": "9.39.2",
111
+ "eslint": "10.1.0",
112
112
  "eslint-config-prettier": "^10.1.8",
113
- "eslint-plugin-jsdoc": "^62.7.1",
114
- "eslint-plugin-svelte": "^3.15.0",
113
+ "eslint-plugin-jsdoc": "^62.8.0",
114
+ "eslint-plugin-svelte": "^3.15.2",
115
115
  "globals": "^17.4.0",
116
116
  "globby": "^16.1.1",
117
- "jsdom": "28.1.0",
118
- "lightningcss": "^1.31.1",
117
+ "jsdom": "29.0.1",
118
+ "lightningcss": "^1.32.0",
119
119
  "markdownlint": "^0.40.0",
120
120
  "markdownlint-cli2": "0.21.0",
121
121
  "npm-run-all": "^4.1.5",
@@ -124,19 +124,17 @@
124
124
  "prettier": "3.8.1",
125
125
  "prettier-plugin-svelte": "^3.5.1",
126
126
  "simple-git-hooks": "^2.13.1",
127
- "stylelint": "^17.4.0",
127
+ "stylelint": "^17.5.0",
128
128
  "stylelint-config-html": "^1.1.0",
129
129
  "stylelint-config-recommended": "^18.0.0",
130
- "stylelint-order": "^7.0.1",
130
+ "stylelint-order": "^8.1.1",
131
131
  "svelte-check": "^4.4.5",
132
132
  "svelte-eslint-parser": "^1.6.0",
133
133
  "svelte-preprocess": "^6.0.3",
134
134
  "typescript": "^5.9.3",
135
- "vite": "^7.3.1",
136
- "vite-plugin-devtools-json": "^1.0.0",
135
+ "vite": "^8.0.1",
137
136
  "vite-plugin-lightningcss": "^0.0.5",
138
- "vite-tsconfig-paths": "^6.1.1",
139
- "vitest": "4.0.18"
137
+ "vitest": "4.1.0"
140
138
  },
141
139
  "overrides": {
142
140
  "basic-ftp": "^5.2.0",
@@ -146,7 +144,7 @@
146
144
  "lodash": "^4.17.23",
147
145
  "minimatch": ">=10.2.1",
148
146
  "qs": "^6.14.1",
149
- "tar": "^7.5.9",
147
+ "tar": "^7.5.11",
150
148
  "tmp": "^0.2.4"
151
149
  }
152
150
  }
@@ -12,10 +12,9 @@ This file is part of Network Pro.
12
12
  *
13
13
  * @module scripts/
14
14
  * @author Scott Lopez
15
- * @updated 2025-05-21
15
+ * @updated 2026-03-12
16
16
  */
17
17
 
18
- import { basename } from 'path';
19
18
  import { fileURLToPath } from 'url';
20
19
 
21
20
  const validEnvs = new Set(['dev', 'test', 'ci', 'prod', 'preview']);
@@ -30,9 +29,7 @@ const validEnvs = new Set(['dev', 'test', 'ci', 'prod', 'preview']);
30
29
  * }}
31
30
  */
32
31
  export function checkEnv() {
33
- const current = process.env.ENV_MODE;
34
- let mode = current;
35
- let valid = false;
32
+ let mode = process.env.ENV_MODE;
36
33
  let wasDefaulted = false;
37
34
 
38
35
  if (!mode) {
@@ -42,14 +39,16 @@ export function checkEnv() {
42
39
  console.warn("⚠️ ENV_MODE not set. Defaulting to 'dev'.");
43
40
  }
44
41
 
45
- valid = validEnvs.has(mode);
42
+ const allowed = [...validEnvs].sort();
43
+ const valid = validEnvs.has(mode);
46
44
 
47
45
  if (valid) {
48
- const tag = wasDefaulted ? '[info]' : '[ok]';
49
- console.log(`${tag} ENV_MODE is set to: "${mode}"`);
46
+ console.log(
47
+ `${wasDefaulted ? '[info]' : '[ok]'} ENV_MODE is set to: "${mode}"`,
48
+ );
50
49
  } else {
51
50
  console.error(
52
- `❌ Invalid ENV_MODE "${mode}". Must be one of: ${[...validEnvs].join(', ')}`,
51
+ `❌ Invalid ENV_MODE "${mode}". Must be one of: ${allowed.join(', ')}`,
53
52
  );
54
53
  }
55
54
 
@@ -57,11 +56,12 @@ export function checkEnv() {
57
56
  mode,
58
57
  valid,
59
58
  wasDefaulted,
60
- allowed: [...validEnvs].sort(),
59
+ allowed,
61
60
  };
62
61
  }
63
62
 
64
- // Run only if called directly via CLI
65
- if (basename(fileURLToPath(import.meta.url)) === basename(process.argv[1])) {
63
+ const thisFile = fileURLToPath(import.meta.url);
64
+
65
+ if (process.argv[1] && thisFile === process.argv[1]) {
66
66
  checkEnv();
67
67
  }
package/src/app.html CHANGED
@@ -53,10 +53,12 @@
53
53
  content="bx4ham0zkpvzztzu213bhpt76m9siq" />
54
54
  <!-- cspell:enable -->
55
55
 
56
- <meta name="generator" content="SvelteKit 2.53.4" />
56
+ <meta name="generator" content="SvelteKit 2.55.0" />
57
57
 
58
58
  <!-- Temporary banner -->
59
- <script src="https://keepandroidopen.org/banner.js" defer></script>
59
+ <script
60
+ src="https://keepandroidopen.org/banner.js?size=mini"
61
+ defer></script>
60
62
 
61
63
  <script src="/disableSw.js"></script>
62
64
 
@@ -46,6 +46,7 @@ const IGNORE_PATHS = new Set([
46
46
  '/webfonts/fa-brands-400.ttf',
47
47
  '/webfonts/fa-solid-900.ttf',
48
48
  '/7cbb39ce-750b-43da-83b8-8980e5554d4d.txt',
49
+ '/b173de6c44c144c1b186841b88d51c67.txt',
49
50
  '/robots.txt',
50
51
  '/sitemap.xml',
51
52
  '/CNAME',
@@ -73,7 +74,7 @@ const ASSETS = [
73
74
  if (isDev)
74
75
  console.warn('[SW] URL parse failed, skipping path:', path, err);
75
76
  excludedAssets.push(path);
76
- return true;
77
+ return false;
77
78
  }
78
79
  }),
79
80
  ),
@@ -135,7 +136,9 @@ async function cacheAssetsSafely(cache, assets, required = []) {
135
136
  : `[SW] Failed to cache ${asset}: Unknown error`;
136
137
 
137
138
  if (isDev) {
138
- throw new Error(msg);
139
+ throw err instanceof Error
140
+ ? new Error(msg, { cause: err })
141
+ : new Error(msg);
139
142
  } else {
140
143
  console.warn(msg);
141
144
  }
@@ -163,10 +166,13 @@ sw.addEventListener('install', (event) => {
163
166
  event.waitUntil(
164
167
  (async () => {
165
168
  const cache = await caches.open(CACHE);
166
- let cachedPaths = [];
167
169
 
168
170
  try {
169
- cachedPaths = await cacheAssetsSafely(cache, ASSETS, REQUIRED_ASSETS);
171
+ const cachedPaths = await cacheAssetsSafely(
172
+ cache,
173
+ ASSETS,
174
+ REQUIRED_ASSETS,
175
+ );
170
176
  if (isDev) console.log('[SW] Cached assets:', cachedPaths);
171
177
  } catch (err) {
172
178
  if (isDev) throw err;
package/svelte.config.js CHANGED
@@ -17,7 +17,7 @@ const config = {
17
17
  kit: {
18
18
  // Vercel adapter configuration
19
19
  adapter: adapter({
20
- runtime: 'nodejs22.x',
20
+ runtime: 'nodejs24.x',
21
21
  }),
22
22
 
23
23
  // Paths configuration for deployment
package/vite.config.js CHANGED
@@ -7,15 +7,14 @@ This file is part of Network Pro.
7
7
  ========================================================================= */
8
8
 
9
9
  import { sveltekit } from '@sveltejs/kit/vite';
10
- import { resolve } from 'node:path';
11
- import { fileURLToPath } from 'node:url';
10
+ //import { resolve } from 'node:path';
11
+ //import { fileURLToPath } from 'node:url';
12
12
  import { defineConfig } from 'vite';
13
- import devtoolsJson from 'vite-plugin-devtools-json';
13
+ //import devtoolsJson from 'vite-plugin-devtools-json';
14
14
  import lightningcssPlugin from 'vite-plugin-lightningcss';
15
- import tsconfigPaths from 'vite-tsconfig-paths'; // tsconfig/jsconfig alias support
16
15
 
17
16
  // Compute absolute project root
18
- const projectRoot = fileURLToPath(new URL('.', import.meta.url));
17
+ //const projectRoot = fileURLToPath(new URL('.', import.meta.url));
19
18
 
20
19
  export default defineConfig(({ mode }) => {
21
20
  // --- 🧩 Log Build Environment Info -------------------------------------
@@ -49,13 +48,15 @@ export default defineConfig(({ mode }) => {
49
48
 
50
49
  return {
51
50
  envPrefix: ['PUBLIC_'],
51
+ resolve: {
52
+ tsconfigPaths: true,
53
+ },
52
54
  plugins: [
53
- tsconfigPaths(),
54
- devtoolsJson({
55
- projectRoot: resolve(projectRoot),
56
- normalizeForWindowsContainer: true,
57
- uuid: 'ad0db4f4-6172-4c1e-ae17-26b1bee53764',
58
- }),
55
+ //devtoolsJson({
56
+ //projectRoot: resolve(projectRoot),
57
+ //normalizeForWindowsContainer: true,
58
+ //uuid: 'ad0db4f4-6172-4c1e-ae17-26b1bee53764',
59
+ //}),
59
60
  sveltekit(),
60
61
  lightningcssPlugin({
61
62
  minify: ['production', 'audit'].includes(mode),