@networkpro/web 1.15.4 → 1.17.0

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.
@@ -49,7 +49,7 @@ jobs:
49
49
  - name: Upgrade npm
50
50
  run: |
51
51
  corepack enable
52
- npm install -g npm@11.4.2
52
+ npm install -g npm@11.6.0
53
53
 
54
54
  - name: Install Node.js dependencies
55
55
  run: npm ci
@@ -61,25 +61,32 @@ jobs:
61
61
  id: jsdoc_lint
62
62
  continue-on-error: true
63
63
  run: |
64
- set -e
65
64
  output=$(npm run lint:jsdoc || true)
66
65
  echo "$output" | tee jsdoc-lint-output.txt
67
66
 
68
- count=$(echo "$output" | wc -l)
67
+ count=$(echo "$output" | grep -cve '^\s*$')
69
68
  echo "jsdoc_count=$count" >> "$GITHUB_OUTPUT"
70
69
 
71
- - name: ✅ Pass
72
- if: steps.jsdoc_lint.outputs.jsdoc_count == '0'
73
- run: echo "JSDoc lint passed successfully!"
70
+ - name: PASS
71
+ if: ${{ steps.jsdoc_lint.outputs.jsdoc_count == 0 }}
72
+ run: echo "JSDoc lint passed successfully!"
74
73
 
75
- - name: ⚠️ JSDoc violations detected (non-blocking)
76
- if: steps.jsdoc_lint.outputs.jsdoc_count != '0'
74
+ - name: JSDoc violations detected (non-blocking)
75
+ if: ${{ steps.jsdoc_lint.outputs.jsdoc_count != 0 }}
77
76
  run: |
78
77
  echo "⚠️ JSDoc lint check failed with ${{ steps.jsdoc_lint.outputs.jsdoc_count }} violations (non-blocking)"
79
78
  echo "--- JSDoc Violations ---"
80
79
  cat jsdoc-lint-output.txt
81
80
 
82
- # Test to ensure the package is working
81
+ - name: Upload JSDoc results
82
+ if: ${{ steps.jsdoc_lint.outputs.jsdoc_count != 0 }}
83
+ uses: actions/upload-artifact@v4
84
+ with:
85
+ name: jsdoc-lint-results
86
+ path: jsdoc-lint-output.txt
87
+ if-no-files-found: error
88
+
89
+ # Build to ensure the package is functional
83
90
  - name: Build Node.js project
84
91
  run: npm run build
85
92
 
@@ -128,7 +135,7 @@ jobs:
128
135
  - name: Upgrade npm
129
136
  run: |
130
137
  corepack enable
131
- npm install -g npm@11.4.2
138
+ npm install -g npm@11.6.0
132
139
 
133
140
  - name: Install Node.js dependencies
134
141
  run: npm ci
@@ -189,7 +196,7 @@ jobs:
189
196
  - name: Upgrade npm
190
197
  run: |
191
198
  corepack enable
192
- npm install -g npm@11.4.2
199
+ npm install -g npm@11.6.0
193
200
 
194
201
  - name: Install Node.js dependencies
195
202
  run: npm ci
@@ -201,7 +208,7 @@ jobs:
201
208
 
202
209
  - name: Update package name for GPR
203
210
  run: |
204
- sed -i 's/"name": ".*"/"name": "@netwk-pro\/web"/' package.json
211
+ sed -i 's/"name": "[^"]*"/"name": "@netwk-pro\/web"/' package.json
205
212
 
206
213
  - name: Verify version not already published
207
214
  run: |
@@ -51,7 +51,7 @@ jobs:
51
51
  - name: Upgrade npm
52
52
  run: |
53
53
  corepack enable
54
- npm install -g npm@11.4.2
54
+ npm install -g npm@11.6.0
55
55
 
56
56
  - name: Clean previous Lighthouse reports
57
57
  run: |
@@ -0,0 +1,34 @@
1
+ # .github/workflows/meta-check.yml
2
+ #
3
+ # Copyright © 2025 Network Pro Strategies (Network Pro™)
4
+ # SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
+ # This file is part of Network Pro
6
+
7
+ name: Metadata Check
8
+
9
+ on:
10
+ push:
11
+ branches: [master]
12
+ pull_request:
13
+ workflow_dispatch:
14
+
15
+ permissions:
16
+ contents: read
17
+
18
+ jobs:
19
+ meta:
20
+ runs-on: ubuntu-latest
21
+ steps:
22
+ - name: Checkout repo
23
+ uses: actions/checkout@v5
24
+
25
+ - name: Set up Node.js
26
+ uses: actions/setup-node@v5
27
+ with:
28
+ node-version: 24
29
+
30
+ - name: Install dependencies
31
+ run: npm ci
32
+
33
+ - name: Run meta tests
34
+ run: npx vitest run tests/meta/meta.test.js --reporter=verbose
@@ -12,9 +12,9 @@ on:
12
12
  branches: [master]
13
13
  workflow_dispatch:
14
14
 
15
- # Least-privilege access
15
+ # Required for actions/checkout
16
16
  permissions:
17
- contents: read # Required for actions/checkout
17
+ contents: read
18
18
 
19
19
  jobs:
20
20
  test:
@@ -41,7 +41,7 @@ jobs:
41
41
  - name: Upgrade npm
42
42
  run: |
43
43
  corepack enable
44
- npm install -g npm@11.4.2
44
+ npm install -g npm@11.6.0
45
45
 
46
46
  - name: Install Node.js dependencies
47
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.2
50
+ npm install -g npm@11.6.0
51
51
 
52
52
  - name: Install Node.js dependencies
53
53
  run: npm ci
@@ -126,7 +126,7 @@ jobs:
126
126
  - name: Upgrade npm
127
127
  run: |
128
128
  corepack enable
129
- npm install -g npm@11.4.2
129
+ npm install -g npm@11.6.0
130
130
 
131
131
  - name: Install Node.js dependencies
132
132
  run: npm ci
@@ -187,7 +187,7 @@ jobs:
187
187
  - name: Upgrade npm
188
188
  run: |
189
189
  corepack enable
190
- npm install -g npm@11.4.2
190
+ npm install -g npm@11.6.0
191
191
 
192
192
  - name: Install Node.js dependencies
193
193
  run: npm ci
@@ -57,7 +57,7 @@ jobs:
57
57
  - name: Upgrade npm
58
58
  run: |
59
59
  corepack enable
60
- npm install -g npm@11.4.2
60
+ npm install -g npm@11.6.0
61
61
 
62
62
  - name: Install Node.js dependencies
63
63
  run: npm ci
@@ -136,7 +136,7 @@ jobs:
136
136
  - name: Upgrade npm
137
137
  run: |
138
138
  corepack enable
139
- npm install -g npm@11.4.2
139
+ npm install -g npm@11.6.0
140
140
 
141
141
  - name: Install Node.js dependencies
142
142
  run: npm ci
@@ -197,7 +197,7 @@ jobs:
197
197
  - name: Upgrade npm
198
198
  run: |
199
199
  corepack enable
200
- npm install -g npm@11.4.2
200
+ npm install -g npm@11.6.0
201
201
 
202
202
  - name: Install Node.js dependencies
203
203
  run: npm ci
package/.node-version CHANGED
@@ -1 +1 @@
1
- 24.4.1
1
+ 24.8.0
package/.nvmrc CHANGED
@@ -1 +1 @@
1
- 24.4.1
1
+ 24.8.0
@@ -6,6 +6,9 @@
6
6
  ],
7
7
  "$lib/*": [
8
8
  "../src/lib/*"
9
+ ],
10
+ "$app/types": [
11
+ "./types/index.d.ts"
9
12
  ]
10
13
  },
11
14
  "rootDirs": [
package/CHANGELOG.md CHANGED
@@ -22,6 +22,123 @@ This project attempts to follow [Keep a Changelog](https://keepachangelog.com/en
22
22
 
23
23
  ---
24
24
 
25
+ ## [1.17.0] - 2025-09-16
26
+
27
+ ### Security
28
+
29
+ - Updated dependencies to address known vulnerabilities (notably `@sveltejs/kit`, `vite`, and related plugins).
30
+
31
+ ### Documentation
32
+
33
+ - Clarified CSP reporting setup in `README.md`:
34
+ - Explained relationship with external CSP reporting endpoint (`csp-endpoint` repo).
35
+ - Documented use of both `report-uri` (legacy) and `report-to` (modern, recommended).
36
+ - Added example headers including `Report-To` definition.
37
+
38
+ ### Added
39
+
40
+ - New `meta-check.yml` GitHub Actions workflow to validate `<title>` and `<meta>` descriptions using Vitest.
41
+ - Runs separately from Playwright to avoid hydration timing issues.
42
+ - Ensures SEO metadata is tested in CI without blocking other jobs.
43
+ - New `meta.test.js` file in `tests/unit/meta` for testing in CI.
44
+ - New `meta.test.js` file in `tests/unit/server` for local testing.
45
+
46
+ ### Changed
47
+
48
+ - Cleaned up Playwright E2E tests:
49
+ - Removed brittle `toHaveTitle` assertions causing CI failures.
50
+ - Standardized footer checks to use helper function.
51
+ - Improved test readability and consistency in `app.spec.js` and `mobile.spec.js`.
52
+ - Updated generator metadata in `app.html` to reflect `SvelteKit 2.42.1`.
53
+ - Updated Node.js version in `.node-version` and `.nvmrc` to `24.8.0`.
54
+ - Updated CSP endpoint section and footer in `README.md`.
55
+ - Updated JSDoc linting step and `sed` syntax in `build-and-publish.yml` workflow.
56
+ - Updated `npm` version to `11.6.0` in GitHub Actions workflow files:
57
+ - `build-and-publish.yml`
58
+ - `lighthouse.yml`
59
+ - `playwright.yml`
60
+ - `publish-test.yml`
61
+ - `templates/publish.template.yml`
62
+ - Upgraded dependencies:
63
+ - `@eslint/compat` `^1.3.1` → `^1.3.2`
64
+ - `@eslint/js` `^9.32.0` → `^9.35.0`
65
+ - `@playwright/test` `^1.54.1` → `^1.55.0`
66
+ - `@sveltejs/adapter-netlify` `^5.1.0` → `^5.2.3`
67
+ - `@sveltejs/kit` `2.27.0` → `2.42.1`
68
+ - `@sveltejs/vite-plugin-svelte` `^6.1.0` → `^6.2.0`
69
+ - `@testing-library/jest-dom` `^6.6.4` → `^6.8.0`
70
+ - `browserslist` `^4.25.1` → `^4.26.2`
71
+ - `dompurify` `^3.2.6` → `^3.2.7`
72
+ - `eslint` `^9.32.0` → `^9.35.0`
73
+ - `eslint-plugin-jsdoc` `^52.0.2` → `^58.1.1`
74
+ - `eslint-plugin-svelte` `^3.11.0` → `^3.12.3`
75
+ - `globals` `^16.3.0` → `^16.4.0`
76
+ - `playwright` `^1.54.1` → `^1.55.0`
77
+ - `posthog-js` `^1.258.4` → `^1.266.0`
78
+ - `stylelint` `^16.23.0` → `^16.24.0`
79
+ - `svelte` `5.37.2` → `5.39.1`
80
+ - `svelte-check` `^4.3.0` → `^4.3.1`
81
+ - `svelte-eslint-parser` `^1.3.0` → `^1.3.2`
82
+ - `vite` `^7.0.6` → `^7.1.5`
83
+
84
+ ### Removed
85
+
86
+ - Deleted `src/routes/example.svx`, which was unused and unneeded.
87
+ - Removed `mdsvex` from package.json, as it is unlikely to be used.
88
+
89
+ ### Notes
90
+
91
+ - Pinned `jsdom` to `26.1.0` due to build incompatibility in `27.x` (`cssstyle` parsing error with Vite/Rollup).
92
+
93
+ ---
94
+
95
+ ## [1.16.0] - 2025-07-31
96
+
97
+ ### Added
98
+
99
+ - Added `CODE_OF_CONDUCT.md` and `CONTRIBUTING.md` to project root to provide instructions for contributing.
100
+
101
+ ### Changed
102
+
103
+ - Bumped version to `v1.16.0`.
104
+ - Updated generator metadata in `app.html` to reflect `SvelteKit 2.27.0`.
105
+ - Added `vercel.json` to `.gitignore`.
106
+ - Added additional rule overrides to `stylelint.config.js` to suppress unnecessarily strict linting errors
107
+ - The errors were corrected and the rule overrides are currently commented out
108
+ - Updated `npm` to `11.5.2` in the following files in `.github/workflows`
109
+ - `build-and-publish.yml`
110
+ - `lighthouse.yml`
111
+ - `playwright.yml`
112
+ - `publish-test.ml`
113
+ - `templates/publish.template.yml`
114
+ - Upgraded dependencies:
115
+ - `@eslint/js` `^9.31.0` → `^9.32.0`
116
+ - `@sveltejs/kit` `2.25.1` → `2.27.0`
117
+ - `@testing-library/jest-dom` `^6.6.3` → `^6.6.4`
118
+ - `eslint` `^9.31.0` → `^9.32.0`
119
+ - `eslint-plugin-jsdoc` `^51.4.1` → `^52.0.2`
120
+ - `posthog-js` `^1.257.0` → `^1.258.4`
121
+ - `stylelint` `^16.22.0` → `^16.23.0`
122
+ - `stylelint-config-recommended` `^16.0.0` → `^17.0.0`
123
+ - `svelte` `5.36.12` → `5.37.2`
124
+ - `typescript` `^5.8.3` → `^5.9.2`
125
+ - `vite` `^7.0.5` → `^7.0.6`
126
+
127
+ ### Fixed
128
+
129
+ - Corrected deprecated CSS usage throughout the project in the following files:
130
+ - `src/lib/components/Badges.svelte`
131
+ - `src/lib/components/Logo.svelte`
132
+ - `src/lib/components/layout/Footer.svelte`
133
+ - `src/lib/pages/LicenseContent.svelte`
134
+ - `src/lib/styles/css/default.css`
135
+ - `src/lib/styles/css/styles.css`
136
+ - `src/routes/consultation/+page.svelte`
137
+ - Generated new `global.min.css` stylesheet with LightningCSS.
138
+ - Resolved `svelte-check` type error in `PGP key download endpoint` by replacing Node.js `Buffer` with a standards-compliant `Uint8Array` in the `Response()` constructor.
139
+
140
+ ---
141
+
25
142
  ## [1.15.4] - 2025-07-20
26
143
 
27
144
  ### Changed
@@ -705,7 +822,9 @@ This project attempts to follow [Keep a Changelog](https://keepachangelog.com/en
705
822
 
706
823
  <!-- Link references -->
707
824
 
708
- [Unreleased]: https://github.com/netwk-pro/netwk-pro.github.io/compare/v1.15.4...HEAD
825
+ [Unreleased]: https://github.com/netwk-pro/netwk-pro.github.io/compare/v1.17.0...HEAD
826
+ [1.17.0]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.17.0
827
+ [1.16.0]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.16.0
709
828
  [1.15.4]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.15.4
710
829
  [1.15.3]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.15.3
711
830
  [1.15.2]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.15.2
@@ -0,0 +1,173 @@
1
+ <!-- =========================================================================
2
+ CODE_OF_CONDUCT.md
3
+
4
+ Copyright © 2025 Network Pro Strategies (Network Pro™)
5
+ SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
6
+ This file is part of Network Pro.
7
+ ========================================================================== -->
8
+
9
+ <a name="top"></a>
10
+
11
+ [SPDX-License-Identifier](https://spdx.dev/learn/handling-license-info/):
12
+ `CC-BY-4.0 OR GPL-3.0-or-later`
13
+
14
+ # Contributor Covenant Code of Conduct
15
+
16
+ **Network Pro Strategies**
17
+ **Effective Date:** March 21, 2025
18
+
19
+ &nbsp;
20
+
21
+ ## Contents
22
+
23
+ - [Our Pledge](#pledge)
24
+ - [Our Standards](#standards)
25
+ - [Responsibilities](#response)
26
+ - [Scope](#scope)
27
+ - [Enforcement](#enforce)
28
+ - [Attribution](#attribute)
29
+
30
+ ---
31
+
32
+ <section id="pledge">
33
+
34
+ ## Our Pledge
35
+
36
+ We as members, contributors, and leaders pledge to make participation in our
37
+ community a harassment-free experience for everyone, regardless of age, body
38
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
39
+ identity and expression, level of experience, education, socio-economic status,
40
+ nationality, personal appearance, race, caste, color, religion, or sexual
41
+ identity and orientation.
42
+
43
+ We pledge to act and interact in ways that contribute to an open, welcoming,
44
+ diverse, inclusive, and healthy community.
45
+
46
+ </section>
47
+
48
+ <section id="standards">
49
+
50
+ ## Our Standards
51
+
52
+ Examples of behavior that contributes to a positive environment for our
53
+ community include:
54
+
55
+ - Demonstrating empathy and kindness toward other people
56
+ - Being respectful of differing opinions, viewpoints, and experiences
57
+ - Giving and gracefully accepting constructive feedback
58
+ - Accepting responsibility and apologizing to those affected by our mistakes,
59
+ and learning from the experience
60
+ - Focusing on what is best not just for us as individuals, but for the overall
61
+ community
62
+
63
+ Examples of unacceptable behavior include:
64
+
65
+ - The use of sexualized language or imagery, and sexual attention or advances of
66
+ any kind
67
+ - Trolling, insulting or derogatory comments, and personal or political attacks
68
+ - Public or private harassment
69
+ - Publishing others' private information, such as a physical or email address,
70
+ without their explicit permission
71
+ - Other conduct which could reasonably be considered inappropriate in a
72
+ professional setting
73
+
74
+ <sub>[Back to top](#top)</sub>
75
+
76
+ </section>
77
+
78
+ <section id="response">
79
+
80
+ ## Responsibilities
81
+
82
+ Company and community leaders are responsible for clarifying and enforcing our standards of
83
+ acceptable behavior and will take appropriate and fair corrective action in
84
+ response to any behavior that they deem inappropriate, threatening, offensive,
85
+ or harmful.
86
+
87
+ Company and community leaders have the right and responsibility to remove, edit, or reject
88
+ comments, commits, code, wiki edits, issues, and other contributions that are
89
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
90
+ decisions when appropriate.
91
+
92
+ Network Pro Strategies reserves the right, at its sole discretion, to remove, edit, or reject any contributions that are contrary to or detrimental to its business interests.
93
+
94
+ <sub>[Back to top](#top)</sub>
95
+
96
+ </section>
97
+
98
+ <section id="scope">
99
+
100
+ ## Scope
101
+
102
+ This Code of Conduct applies within all community spaces, and also applies when
103
+ an individual is officially representing the company or community in public spaces.
104
+ Examples of representing our company or community include using an official email address,
105
+ posting via an official social media account, or acting as an appointed
106
+ representative at an online or offline event.
107
+
108
+ <sub>[Back to top](#top)</sub>
109
+
110
+ </section>
111
+
112
+ <section id="enforce">
113
+
114
+ ## Enforcement
115
+
116
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the abuse team at [abuse@neteng.pro](mailto:abuse@neteng.pro). All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances.
117
+
118
+ The abuse team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
119
+
120
+ Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project’s leadership.
121
+
122
+ <sub>[Back to top](#top)</sub>
123
+
124
+ </section>
125
+
126
+ <section id="attribute">
127
+
128
+ ## Attribution
129
+
130
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
131
+ version 2.1, available at
132
+ [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
133
+
134
+ The **Enforcement** section is adapted from the
135
+ [Contributor Covenant][homepage],
136
+ version 1.4, available at
137
+ [https://www.contributor-covenant.org/version/1/4/code-of-conduct/][v1.4].
138
+
139
+ For answers to common questions about this code of conduct, see the FAQ at
140
+ [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
141
+ [https://www.contributor-covenant.org/translations][translations].
142
+
143
+ [homepage]: https://www.contributor-covenant.org
144
+ [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
145
+ [v1.4]: https://www.contributor-covenant.org/version/1/4/code-of-conduct/
146
+ [FAQ]: https://www.contributor-covenant.org/faq
147
+ [translations]: https://www.contributor-covenant.org/translations
148
+
149
+ <sub>[Back to top](#top)</sub>
150
+
151
+ </section>
152
+
153
+ ---
154
+
155
+ <div style="font-size: 12px; font-weight: bold; text-align: center;">
156
+
157
+ [Home](https://netwk.pro) &nbsp; | &nbsp; [Terms of Use](https://netwk.pro/terms-of-use)
158
+ [Privacy Policy](https://netwk.pro/privacy) &nbsp; | &nbsp; [Legal](https://netwk.pro/license)
159
+
160
+ </div>
161
+
162
+ &nbsp;
163
+
164
+ <span style="font-size: 12px; text-align: center;">
165
+
166
+ Copyright &copy; 2025
167
+ **[Network Pro Strategies](https://netwk.pro/)** (Network Pro&trade;)
168
+
169
+ Network Pro&trade;, the shield logo, and the "Locking Down Networks...&trade;" slogan are [trademarks](https://netwk.pro/license#trademark) of Network Pro Strategies.
170
+
171
+ Licensed under **[CC BY 4.0](https://netwk.pro/license#cc-by)** and the **[GNU GPL](https://netwk.pro/license#gnu-gpl)**, as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
172
+
173
+ </span>