@networkpro/web 1.14.1 → 1.14.2

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.
@@ -41,10 +41,15 @@ jobs:
41
41
  cache: npm
42
42
  cache-dependency-path: package-lock.json
43
43
 
44
+ - name: Show Node.js and npm versions
45
+ run: |
46
+ echo "Node.js version: $(node -v)"
47
+ echo "npm version: $(npm -v)"
48
+
44
49
  - name: Upgrade npm
45
50
  run: |
46
51
  corepack enable
47
- npm install -g npm@11.4.1
52
+ npm install -g npm@11.4.2
48
53
 
49
54
  - name: Install Node.js dependencies
50
55
  run: npm ci
@@ -58,7 +63,7 @@ jobs:
58
63
  run: |
59
64
  set -e
60
65
  output=$(npm run lint:jsdoc || true)
61
- echo "$output"
66
+ echo "$output" | tee jsdoc-lint-output.txt
62
67
 
63
68
  count=$(echo "$output" | wc -l)
64
69
  echo "jsdoc_count=$count" >> "$GITHUB_OUTPUT"
@@ -69,7 +74,10 @@ jobs:
69
74
 
70
75
  - name: ⚠️ JSDoc violations detected (non-blocking)
71
76
  if: steps.jsdoc_lint.outputs.jsdoc_count != '0'
72
- run: echo "⚠️ JSDoc lint check failed with ${{ steps.jsdoc_lint.outputs.jsdoc_count }} violations (non-blocking)"
77
+ run: |
78
+ echo "⚠️ JSDoc lint check failed with ${{ steps.jsdoc_lint.outputs.jsdoc_count }} violations (non-blocking)"
79
+ echo "--- JSDoc Violations ---"
80
+ cat jsdoc-lint-output.txt
73
81
 
74
82
  # Test to ensure the package is working
75
83
  - name: Build Node.js project
@@ -112,10 +120,15 @@ jobs:
112
120
  cache: npm
113
121
  cache-dependency-path: package-lock.json
114
122
 
123
+ - name: Show Node.js and npm versions
124
+ run: |
125
+ echo "Node.js version: $(node -v)"
126
+ echo "npm version: $(npm -v)"
127
+
115
128
  - name: Upgrade npm
116
129
  run: |
117
130
  corepack enable
118
- npm install -g npm@11.4.1
131
+ npm install -g npm@11.4.2
119
132
 
120
133
  - name: Install Node.js dependencies
121
134
  run: npm ci
@@ -168,10 +181,15 @@ jobs:
168
181
  cache: npm
169
182
  cache-dependency-path: package-lock.json
170
183
 
184
+ - name: Show Node.js and npm versions
185
+ run: |
186
+ echo "Node.js version: $(node -v)"
187
+ echo "npm version: $(npm -v)"
188
+
171
189
  - name: Upgrade npm
172
190
  run: |
173
191
  corepack enable
174
- npm install -g npm@11.4.1
192
+ npm install -g npm@11.4.2
175
193
 
176
194
  - name: Install Node.js dependencies
177
195
  run: npm ci
@@ -17,6 +17,8 @@ jobs:
17
17
  check:
18
18
  name: Check CodeQL Status
19
19
  runs-on: ubuntu-24.04
20
+ env:
21
+ ENV_MODE: ci
20
22
 
21
23
  steps:
22
24
  - name: Check CodeQL Workflow
@@ -19,7 +19,7 @@ jobs:
19
19
 
20
20
  - name: Check security.txt expiration
21
21
  run: |
22
- FILE=".well-known/security.txt"
22
+ FILE="static/.well-known/security.txt"
23
23
  if [ ! -f "$FILE" ]; then
24
24
  echo "::error ::security.txt file not found!"
25
25
  exit 1
@@ -44,15 +44,14 @@ jobs:
44
44
  - name: Setup Node.js
45
45
  uses: actions/setup-node@v4
46
46
  with:
47
- node-version: lts/*
48
- check-latest: true
47
+ node-version: 24
49
48
  cache: npm
50
49
  cache-dependency-path: package-lock.json
51
50
 
52
51
  - name: Upgrade npm
53
52
  run: |
54
53
  corepack enable
55
- npm install -g npm@11.4.1
54
+ npm install -g npm@11.4.2
56
55
 
57
56
  - name: Clean previous Lighthouse reports
58
57
  run: |
@@ -34,15 +34,14 @@ jobs:
34
34
  - name: Set up Node.js
35
35
  uses: actions/setup-node@v4
36
36
  with:
37
- node-version: lts/*
38
- check-latest: true
37
+ node-version: 24
39
38
  cache: npm
40
39
  cache-dependency-path: package-lock.json
41
40
 
42
41
  - name: Upgrade npm
43
42
  run: |
44
43
  corepack enable
45
- npm install -g npm@11.4.1
44
+ npm install -g npm@11.4.2
46
45
 
47
46
  - name: Install Node.js dependencies
48
47
  run: npm ci
@@ -47,7 +47,7 @@ jobs:
47
47
  - name: Upgrade npm
48
48
  run: |
49
49
  corepack enable
50
- npm install -g npm@11.4.1
50
+ npm install -g npm@11.4.2
51
51
 
52
52
  - name: Install Node.js dependencies
53
53
  run: npm ci
@@ -61,7 +61,7 @@ jobs:
61
61
  run: |
62
62
  set -e
63
63
  output=$(npm run lint:jsdoc || true)
64
- echo "$output"
64
+ echo "$output" | tee jsdoc-lint-output.txt
65
65
 
66
66
  count=$(echo "$output" | wc -l)
67
67
  echo "jsdoc_count=$count" >> "$GITHUB_OUTPUT"
@@ -72,7 +72,10 @@ jobs:
72
72
 
73
73
  - name: ⚠️ JSDoc violations detected (non-blocking)
74
74
  if: steps.jsdoc_lint.outputs.jsdoc_count != '0'
75
- run: echo "⚠️ JSDoc lint check failed with ${{ steps.jsdoc_lint.outputs.jsdoc_count }} violations (non-blocking)"
75
+ run: |
76
+ echo "⚠️ JSDoc lint check failed with ${{ steps.jsdoc_lint.outputs.jsdoc_count }} violations (non-blocking)"
77
+ echo "--- JSDoc Violations ---"
78
+ cat jsdoc-lint-output.txt
76
79
 
77
80
  # Test to ensure the package is working
78
81
  - name: Build Node.js project
@@ -123,7 +126,7 @@ jobs:
123
126
  - name: Upgrade npm
124
127
  run: |
125
128
  corepack enable
126
- npm install -g npm@11.4.1
129
+ npm install -g npm@11.4.2
127
130
 
128
131
  - name: Install Node.js dependencies
129
132
  run: npm ci
@@ -184,7 +187,7 @@ jobs:
184
187
  - name: Upgrade npm
185
188
  run: |
186
189
  corepack enable
187
- npm install -g npm@11.4.1
190
+ npm install -g npm@11.4.2
188
191
 
189
192
  - name: Install Node.js dependencies
190
193
  run: npm ci
@@ -0,0 +1,228 @@
1
+ # .github/workflows/build-and-publish.yml
2
+ #
3
+ # Reusable GitHub Actions workflow to build and publish a package to npmjs and
4
+ # GPR.
5
+ #
6
+ # Version: v1.0.0
7
+ # Maintainer: Scott Lopez <support@neteng.pro>
8
+ # Usage: Copy to `.github/workflows/publish.yml` in your repo or reference
9
+ # directly if shared centrally.
10
+ #
11
+ # Copyright © 2025 Network Pro Strategies (Network Pro™)
12
+ # SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
13
+ # This file is part of Network Pro
14
+
15
+ name: Build and Publish to Registries
16
+
17
+ on:
18
+ # release:
19
+ # types: [created]
20
+ workflow_dispatch:
21
+
22
+ # Allow one concurrent deployment
23
+ concurrency:
24
+ group: 'build-and-publish'
25
+ cancel-in-progress: true
26
+
27
+ permissions:
28
+ actions: read
29
+ contents: read
30
+
31
+ jobs:
32
+ check-codeql:
33
+ uses: ./.github/workflows/check-codeql.yml
34
+
35
+ build:
36
+ needs: check-codeql
37
+ runs-on: ubuntu-24.04
38
+ env:
39
+ ENV_MODE: ci
40
+
41
+ steps:
42
+ - name: Checkout repository
43
+ uses: actions/checkout@v4
44
+
45
+ - name: Set up Node.js
46
+ uses: actions/setup-node@v4
47
+ with:
48
+ node-version: 24
49
+ cache: npm
50
+ cache-dependency-path: package-lock.json
51
+
52
+ - name: Show Node.js and npm versions
53
+ run: |
54
+ echo "Node.js version: $(node -v)"
55
+ echo "npm version: $(npm -v)"
56
+
57
+ - name: Upgrade npm
58
+ run: |
59
+ corepack enable
60
+ npm install -g npm@11.4.2
61
+
62
+ - name: Install Node.js dependencies
63
+ run: npm ci
64
+
65
+ - name: Install jq
66
+ run: sudo apt-get install -y jq
67
+
68
+ - name: Run JSDoc lint check
69
+ id: jsdoc_lint
70
+ continue-on-error: true
71
+ run: |
72
+ set -e
73
+ output=$(npm run lint:jsdoc || true)
74
+ echo "$output" | tee jsdoc-lint-output.txt
75
+
76
+ count=$(echo "$output" | wc -l)
77
+ echo "jsdoc_count=$count" >> "$GITHUB_OUTPUT"
78
+
79
+ - name: ✅ Pass
80
+ if: steps.jsdoc_lint.outputs.jsdoc_count == '0'
81
+ run: echo "JSDoc lint passed successfully!"
82
+
83
+ - name: ⚠️ JSDoc violations detected (non-blocking)
84
+ if: steps.jsdoc_lint.outputs.jsdoc_count != '0'
85
+ run: |
86
+ echo "⚠️ JSDoc lint check failed with ${{ steps.jsdoc_lint.outputs.jsdoc_count }} violations (non-blocking)"
87
+ echo "--- JSDoc Violations ---"
88
+ cat jsdoc-lint-output.txt
89
+
90
+ # Test to ensure the package is working
91
+ - name: Build Node.js project
92
+ run: npm run build
93
+
94
+ # Create Git archive of version-controlled files
95
+ - name: Create clean source archive
96
+ run: git archive --format=tar.gz --output=clean-source.tar.gz HEAD
97
+
98
+ - name: Upload source archive
99
+ uses: actions/upload-artifact@v4
100
+ with:
101
+ name: clean-source
102
+ path: clean-source.tar.gz
103
+
104
+ publish-npmjs:
105
+ needs: build
106
+ runs-on: ubuntu-24.04
107
+ env:
108
+ ENV_MODE: ci
109
+
110
+ steps:
111
+ - name: Download clean source archive
112
+ uses: actions/download-artifact@v4
113
+ with:
114
+ name: clean-source
115
+ path: ./
116
+
117
+ - name: Extract source archive
118
+ run: tar -xzf clean-source.tar.gz
119
+
120
+ - name: Remove extracted source archive
121
+ run: rm clean-source.tar.gz
122
+
123
+ - name: Set up Node.js for npmjs
124
+ uses: actions/setup-node@v4
125
+ with:
126
+ node-version: 24
127
+ registry-url: https://registry.npmjs.org/
128
+ cache: npm
129
+ cache-dependency-path: package-lock.json
130
+
131
+ - name: Show Node.js and npm versions
132
+ run: |
133
+ echo "Node.js version: $(node -v)"
134
+ echo "npm version: $(npm -v)"
135
+
136
+ - name: Upgrade npm
137
+ run: |
138
+ corepack enable
139
+ npm install -g npm@11.4.2
140
+
141
+ - name: Install Node.js dependencies
142
+ run: npm ci
143
+
144
+ - name: Set up Git user
145
+ run: |
146
+ git config --global user.email "github@sl.neteng.cc"
147
+ git config --global user.name "SunDevil311"
148
+
149
+ - name: Verify version not already published
150
+ run: |
151
+ PACKAGE_NAME=$(node -p "require('./package.json').name")
152
+ PACKAGE_VERSION=$(node -p "require('./package.json').version")
153
+ echo "Checking if $PACKAGE_NAME@$PACKAGE_VERSION is already published..."
154
+
155
+ npm view $PACKAGE_NAME@$PACKAGE_VERSION > /dev/null && {
156
+ echo "❌ Version $PACKAGE_VERSION already exists on npm. Exiting..."
157
+ exit 1
158
+ } || echo "✅ Version is new. Proceeding with publish."
159
+
160
+ - name: Publish package to npmjs
161
+ run: npm publish --access public
162
+ env:
163
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_NETPRO }}
164
+
165
+ publish-gpr:
166
+ needs: build
167
+ runs-on: ubuntu-24.04
168
+ env:
169
+ ENV_MODE: ci
170
+
171
+ steps:
172
+ - name: Download clean source archive
173
+ uses: actions/download-artifact@v4
174
+ with:
175
+ name: clean-source
176
+ path: ./
177
+
178
+ - name: Extract source archive
179
+ run: tar -xzf clean-source.tar.gz
180
+
181
+ - name: Remove extracted source archive
182
+ run: rm clean-source.tar.gz
183
+
184
+ - name: Set up Node.js for GPR
185
+ uses: actions/setup-node@v4
186
+ with:
187
+ node-version: 24
188
+ registry-url: https://npm.pkg.github.com/
189
+ cache: npm
190
+ cache-dependency-path: package-lock.json
191
+
192
+ - name: Show Node.js and npm versions
193
+ run: |
194
+ echo "Node.js version: $(node -v)"
195
+ echo "npm version: $(npm -v)"
196
+
197
+ - name: Upgrade npm
198
+ run: |
199
+ corepack enable
200
+ npm install -g npm@11.4.2
201
+
202
+ - name: Install Node.js dependencies
203
+ run: npm ci
204
+
205
+ - name: Set up Git user
206
+ run: |
207
+ git config --global user.email "github@sl.neteng.cc"
208
+ git config --global user.name "SunDevil311"
209
+
210
+ - name: Update package name for GPR
211
+ run: |
212
+ sed -i 's/"name": ".*"/"name": "@netwk-pro\/web"/' package.json
213
+
214
+ - name: Verify version not already published
215
+ run: |
216
+ PACKAGE_NAME=$(node -p "require('./package.json').name")
217
+ PACKAGE_VERSION=$(node -p "require('./package.json').version")
218
+ echo "Checking if $PACKAGE_NAME@$PACKAGE_VERSION is already published..."
219
+
220
+ npm view $PACKAGE_NAME@$PACKAGE_VERSION > /dev/null && {
221
+ echo "❌ Version $PACKAGE_VERSION already exists on npm. Exiting..."
222
+ exit 1
223
+ } || echo "✅ Version is new. Proceeding with publish."
224
+
225
+ - name: Publish package to GPR
226
+ run: npm publish
227
+ env:
228
+ NODE_AUTH_TOKEN: ${{ secrets.NWPRO_GPR }}
package/.node-version CHANGED
@@ -1 +1 @@
1
- 24.2.0
1
+ 24.3.0
package/.nvmrc CHANGED
@@ -1 +1 @@
1
- 24.2.0
1
+ 24.3.0
package/CHANGELOG.md CHANGED
@@ -22,6 +22,46 @@ This project attempts to follow [Keep a Changelog](https://keepachangelog.com/en
22
22
 
23
23
  ---
24
24
 
25
+ ## [1.14.2] - 2025-06-30
26
+
27
+ ### Added
28
+
29
+ - Added Node.js and npm environment checks to `build-and-publish.yml`.
30
+ - Added `.github/workflows/templates/publish.template.yml` for reuse in other org repos.
31
+ - JSDoc linting now outputs violation details for better visibility during CI checks
32
+
33
+ ### Changed
34
+
35
+ - Version bumped to **v1.14.2**
36
+ - Corrected naming of `check-security-txt-expiry.yml`
37
+ - Updated Node version reference in `.node-version` and `.nvmrc` to `24.3.0`
38
+ - Aligned environment context (`ENV_MODE: ci`) in `check-codeql` workflow to match `build-and-publish.yml` standardization
39
+ - Updated Node to `24` and npm to `11.4.2` across multiple workflows (`build-and-publish.yml`, `lighthouse.yml`, `playwright.yml`, and `publish-test.yml`) for version alignment
40
+ - Upgraded dependencies:
41
+ - `@eslint/compat` ^1.3.0 → ^1.3.1
42
+ - `@eslint/js` ^9.29.0 → ^9.30.0
43
+ - `@lhci/cli` ^0.15.0 → ^0.15.1
44
+ - `@playwright/test` ^1.53.0 → ^1.53.2
45
+ - `@sveltejs/kit` 2.21.5 → 2.22.2
46
+ - `@vitest/coverage-v8` ^3.2.3 → ^3.2.4
47
+ - `browserslist` ^4.25.0 → ^4.25.1
48
+ - `eslint` ^9.29.0 → ^9.30.0
49
+ - `eslint-plugin-jsdoc` ^51.0.1 → ^51.3.1
50
+ - `eslint-plugin-svelte` ^3.9.2 → ^3.10.1
51
+ - `playwright` ^1.53.0 → ^1.53.2
52
+ - `posthog-js` ^1.253.4 → ^1.256.0
53
+ - `prettier` ^3.5.3 → ^3.6.2
54
+ - `stylelint` ^16.20.0 → ^16.21.0
55
+ - `svelte` 5.34.3 → 5.34.9
56
+ - `svelte-check` ^4.2.1 → ^4.2.2
57
+ - `vitest` ^3.2.3 → ^3.2.4
58
+
59
+ ### Fixed
60
+
61
+ - Updated `check-security-txt-expiry.yml` to use correct path for `security.txt` (now looks in `static/.well-known/`)
62
+
63
+ ---
64
+
25
65
  ## [1.14.1] - 2025-06-16
26
66
 
27
67
  ### Changed
@@ -499,7 +539,8 @@ This project attempts to follow [Keep a Changelog](https://keepachangelog.com/en
499
539
 
500
540
  <!-- Link references -->
501
541
 
502
- [Unreleased]: https://github.com/netwk-pro/netwk-pro.github.io/compare/v1.14.1...HEAD
542
+ [Unreleased]: https://github.com/netwk-pro/netwk-pro.github.io/compare/v1.14.2...HEAD
543
+ [1.14.2]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.14.2
503
544
  [1.14.1]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.14.1
504
545
  [1.14.0]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.14.0
505
546
  [1.13.8]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.13.8
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@networkpro/web",
3
3
  "private": false,
4
- "version": "1.14.1",
4
+ "version": "1.14.2",
5
5
  "description": "Locking Down Networks, Unlocking Confidence™ | Security, Networking, Privacy — Network Pro Strategies",
6
6
  "keywords": [
7
7
  "advisory",
@@ -80,49 +80,49 @@
80
80
  },
81
81
  "dependencies": {
82
82
  "dompurify": "^3.2.6",
83
- "posthog-js": "^1.253.4",
83
+ "posthog-js": "^1.256.0",
84
84
  "semver": "^7.7.2",
85
- "svelte": "5.34.3"
85
+ "svelte": "5.34.9"
86
86
  },
87
87
  "devDependencies": {
88
- "@eslint/compat": "^1.3.0",
89
- "@eslint/js": "^9.29.0",
90
- "@lhci/cli": "^0.15.0",
91
- "@playwright/test": "^1.53.0",
88
+ "@eslint/compat": "^1.3.1",
89
+ "@eslint/js": "^9.30.0",
90
+ "@lhci/cli": "^0.15.1",
91
+ "@playwright/test": "^1.53.2",
92
92
  "@sveltejs/adapter-netlify": "^5.0.2",
93
- "@sveltejs/kit": "2.21.5",
93
+ "@sveltejs/kit": "2.22.2",
94
94
  "@sveltejs/vite-plugin-svelte": "5.1.0",
95
95
  "@testing-library/jest-dom": "^6.6.3",
96
96
  "@testing-library/svelte": "^5.2.8",
97
- "@vitest/coverage-v8": "^3.2.3",
97
+ "@vitest/coverage-v8": "^3.2.4",
98
98
  "autoprefixer": "^10.4.21",
99
- "browserslist": "^4.25.0",
100
- "eslint": "^9.29.0",
99
+ "browserslist": "^4.25.1",
100
+ "eslint": "^9.30.0",
101
101
  "eslint-config-prettier": "^10.1.5",
102
- "eslint-plugin-jsdoc": "^51.0.1",
103
- "eslint-plugin-svelte": "^3.9.2",
102
+ "eslint-plugin-jsdoc": "^51.3.1",
103
+ "eslint-plugin-svelte": "^3.10.1",
104
104
  "globals": "^16.2.0",
105
105
  "jsdom": "^26.1.0",
106
106
  "lightningcss": "^1.30.1",
107
107
  "markdownlint": "^0.38.0",
108
108
  "markdownlint-cli2": "^0.18.1",
109
109
  "mdsvex": "^0.12.6",
110
- "playwright": "^1.53.0",
110
+ "playwright": "^1.53.2",
111
111
  "postcss": "^8.5.6",
112
- "prettier": "^3.5.3",
112
+ "prettier": "^3.6.2",
113
113
  "prettier-plugin-svelte": "^3.4.0",
114
- "stylelint": "^16.20.0",
114
+ "stylelint": "^16.21.0",
115
115
  "stylelint-config-html": "^1.1.0",
116
116
  "stylelint-config-recommended": "^16.0.0",
117
117
  "stylelint-order": "^7.0.0",
118
- "svelte-check": "^4.2.1",
118
+ "svelte-check": "^4.2.2",
119
119
  "svelte-eslint-parser": "^1.2.0",
120
120
  "svelte-preprocess": "^6.0.3",
121
121
  "typescript": "^5.8.3",
122
- "vite": "^6.3.5",
122
+ "vite": "6.3.5",
123
123
  "vite-plugin-lightningcss": "^0.0.5",
124
124
  "vite-tsconfig-paths": "^5.1.4",
125
- "vitest": "^3.2.3"
125
+ "vitest": "^3.2.4"
126
126
  },
127
127
  "overrides": {
128
128
  "@sveltejs/kit": {