Skip to content

Commit a0993bd

Browse files
authored
Feature/node and module (#141)
* chore: release prep for v1.22.2 * docs: corrected CHANGELOG.md * docs: added changes to .node-version and .nvmrc
1 parent 657ddb0 commit a0993bd

18 files changed

+340
-570
lines changed

.github/workflows/build-and-publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
uses: actions/checkout@v5
3737

3838
- name: Set up Node.js
39-
uses: actions/setup-node@v5
39+
uses: actions/setup-node@v6
4040
with:
4141
node-version: 22
4242
cache: npm
@@ -96,7 +96,7 @@ jobs:
9696
run: git archive --format=tar.gz --output=clean-source.tar.gz HEAD
9797

9898
- name: Upload source archive
99-
uses: actions/upload-artifact@v4
99+
uses: actions/upload-artifact@v5
100100
with:
101101
name: clean-source
102102
path: clean-source.tar.gz
@@ -121,7 +121,7 @@ jobs:
121121
run: rm clean-source.tar.gz
122122

123123
- name: Set up Node.js for npmjs
124-
uses: actions/setup-node@v5
124+
uses: actions/setup-node@v6
125125
with:
126126
node-version: 22
127127
registry-url: https://registry.npmjs.org/
@@ -182,7 +182,7 @@ jobs:
182182
run: rm clean-source.tar.gz
183183

184184
- name: Set up Node.js for GPR
185-
uses: actions/setup-node@v5
185+
uses: actions/setup-node@v6
186186
with:
187187
node-version: 22
188188
registry-url: https://npm.pkg.github.com/

.github/workflows/lighthouse.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
run: 'echo "ENV_MODE is set to: $ENV_MODE"'
4343

4444
- name: Setup Node.js
45-
uses: actions/setup-node@v5
45+
uses: actions/setup-node@v6
4646
with:
4747
node-version: 22
4848
cache: npm

.github/workflows/meta-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
uses: actions/checkout@v5
2424

2525
- name: Set up Node.js
26-
uses: actions/setup-node@v5
26+
uses: actions/setup-node@v6
2727
with:
2828
node-version: 22
2929

.github/workflows/playwright.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
run: 'echo "ENV_MODE is set to: $ENV_MODE"'
3333

3434
- name: Set up Node.js
35-
uses: actions/setup-node@v5
35+
uses: actions/setup-node@v6
3636
with:
3737
node-version: 22
3838
cache: npm

.github/workflows/publish-test.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@ jobs:
3434
uses: actions/checkout@v5
3535

3636
- name: Set up Node.js
37-
uses: actions/setup-node@v5
37+
uses: actions/setup-node@v6
3838
with:
3939
node-version: 22
4040
cache: npm
4141
cache-dependency-path: package-lock.json
4242

43-
- name: Show Node.js and npm versions
44-
run: |
45-
echo "Node.js version: $(node -v)"
46-
echo "npm version: $(npm -v)"
43+
#- name: Show Node.js and npm versions
44+
# run: |
45+
# echo "Node.js version: $(node -v)"
46+
# echo "npm version: $(npm -v)"
4747

4848
- name: Upgrade npm
4949
run: |
@@ -94,7 +94,7 @@ jobs:
9494
run: git archive --format=tar.gz --output=clean-source.tar.gz HEAD
9595

9696
- name: Upload source archive
97-
uses: actions/upload-artifact@v4
97+
uses: actions/upload-artifact@v5
9898
with:
9999
name: clean-source
100100
path: clean-source.tar.gz
@@ -119,17 +119,17 @@ jobs:
119119
run: rm clean-source.tar.gz
120120

121121
- name: Set up Node.js for npmjs
122-
uses: actions/setup-node@v5
122+
uses: actions/setup-node@v6
123123
with:
124124
node-version: 22
125125
registry-url: https://registry.npmjs.org/
126126
cache: npm
127127
cache-dependency-path: package-lock.json
128128

129-
- name: Show Node.js and npm versions
130-
run: |
131-
echo "Node.js version: $(node -v)"
132-
echo "npm version: $(npm -v)"
129+
#- name: Show Node.js and npm versions
130+
# run: |
131+
# echo "Node.js version: $(node -v)"
132+
# echo "npm version: $(npm -v)"
133133

134134
- name: Upgrade npm
135135
run: |
@@ -180,17 +180,17 @@ jobs:
180180
run: rm clean-source.tar.gz
181181

182182
- name: Set up Node.js for GPR
183-
uses: actions/setup-node@v5
183+
uses: actions/setup-node@v6
184184
with:
185185
node-version: 22
186186
registry-url: https://npm.pkg.github.com/
187187
cache: npm
188188
cache-dependency-path: package-lock.json
189189

190-
- name: Show Node.js and npm versions
191-
run: |
192-
echo "Node.js version: $(node -v)"
193-
echo "npm version: $(npm -v)"
190+
#- name: Show Node.js and npm versions
191+
# run: |
192+
# echo "Node.js version: $(node -v)"
193+
# echo "npm version: $(npm -v)"
194194

195195
- name: Upgrade npm
196196
run: |

.github/workflows/templates/publish.template.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
uses: actions/checkout@v5
4545

4646
- name: Set up Node.js
47-
uses: actions/setup-node@v5
47+
uses: actions/setup-node@v6
4848
with:
4949
node-version: 22
5050
cache: npm
@@ -104,7 +104,7 @@ jobs:
104104
run: git archive --format=tar.gz --output=clean-source.tar.gz HEAD
105105

106106
- name: Upload source archive
107-
uses: actions/upload-artifact@v4
107+
uses: actions/upload-artifact@v5
108108
with:
109109
name: clean-source
110110
path: clean-source.tar.gz
@@ -129,7 +129,7 @@ jobs:
129129
run: rm clean-source.tar.gz
130130

131131
- name: Set up Node.js for npmjs
132-
uses: actions/setup-node@v5
132+
uses: actions/setup-node@v6
133133
with:
134134
node-version: 22
135135
registry-url: https://registry.npmjs.org/
@@ -190,7 +190,7 @@ jobs:
190190
run: rm clean-source.tar.gz
191191

192192
- name: Set up Node.js for GPR
193-
uses: actions/setup-node@v5
193+
uses: actions/setup-node@v6
194194
with:
195195
node-version: 22
196196
registry-url: https://npm.pkg.github.com/

.ncurc.cjs

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
/* ==========================================================================
2+
.ncurc.cjs
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+
/**
10+
* ==========================================================
11+
* npm-check-updates Configuration
12+
* ----------------------------------------------------------
13+
* This file defines upgrade behavior for project dependencies.
14+
* It ensures consistent updates while protecting pinned tools
15+
* that are known to break between major versions.
16+
*
17+
* 🔧 Usage:
18+
* - Run `npm run check:updates` to preview safe upgrades
19+
* - Run `npm run upgrade` to apply upgrades (respects these rules)
20+
*
21+
* 📜 Notes for Contributors:
22+
* - Do NOT remove entries from "reject" unless a maintainer
23+
* confirms the dependency has been tested and verified.
24+
* - This config is automatically used by npm-check-updates (NCU)
25+
* and requires no command-line flags.
26+
*
27+
* 💡 See CONTRIBUTING.md → "Dependency Management" for details.
28+
* ==========================================================
29+
*/
30+
31+
/** @type {import('npm-check-updates').RunOptions} */
32+
module.exports = {
33+
// Ignore specific dependencies (prevent upgrades)
34+
reject: ['vitest', '@vitest/coverage-v8', 'prettier', 'jsdom'],
35+
36+
// Always upgrade devDependencies as well
37+
dep: 'prod,dev',
38+
39+
// Show a summary table
40+
format: ['group', 'table'],
41+
42+
// Don’t automatically install — just update package.json
43+
upgrade: true,
44+
45+
// Display upgraded dependencies as JSON (optional for automation)
46+
jsonUpgraded: false,
47+
48+
// Enable readable colors when supported
49+
color: true, // harmless, but CLI-only
50+
};

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
22.20.0
1+
22.21.0

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
22.20.0
1+
22.21.0

CHANGELOG.md

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,49 @@ This project attempts to follow [Keep a Changelog](https://keepachangelog.com/en
2222

2323
---
2424

25+
## [1.22.2] - 2025-10-29
26+
27+
### Documentation
28+
29+
- Rewrote `CONTRIBUTING.md` to accurately describe the modern SvelteKit contribution workflow.
30+
- Updated guidelines for branch naming, code style, and pull request submission.
31+
- Removed outdated references to Webpack and `build/` artifacts.
32+
- Moved `CONTRIBUTING.md` and `CODE_OF_CONDUCT.md` to the organization’s `.github` repository to centralize contribution and conduct policies across all projects.
33+
34+
### Added
35+
36+
- Introduced `vite-plugin-devtools-json` as a new `devDependency` to improve DevTools and JSON inspection support.
37+
- Added plugin configuration in `vite.config.js`.
38+
- Added `.ncurc.json` configuration to define rules for `npm-check-updates`, preventing automatic upgrades of version-linked packages such as `vitest` and `@vitest/coverage-v8`.
39+
- Added the term `ncurc` to `cspell.json` to prevent false-positive spell-check warnings.
40+
41+
### Changed
42+
43+
- Updated GitHub workflows to utilize `actions/upload-artifact@v5` and `actions/setup-node@v6`:
44+
- `templates/publish.template.yml`
45+
- `build-and-publish.yml`
46+
- `lighthouse.yml`
47+
- `meta-check.yml`
48+
- `playwright.yml`
49+
- `publish-test.yml`
50+
- Improved **Svelte 5** / Rune compatibility in `vitest.config.client.js`:
51+
- Added `optimizeDeps.include` configuration to ensure `.svelte` files are properly transformed during testing, and to align with **Vitest 4.x** and future **Vite 6** compatibility.
52+
- Prevents `rune_outside_svelte` errors and prepares for future **Vitest 4.x** updates.
53+
- Updated generator metadata in `src/app.html` to reflect **SvelteKit 2.48.3**.
54+
- Modified `.node-version` and `.nvmrc` to reflect **Node.js** version `22.21.0` (LTS).
55+
- Bumped project version to `v1.22.2`.
56+
- Updated dependencies:
57+
- `@eslint/compat` `^1.4.0``^1.4.1`
58+
- `@sveltejs/adapter-vercel` `^6.0.0``^6.1.1`
59+
- `@sveltejs/kit` `2.47.2``2.48.3`
60+
- `browserslist` `^4.26.3``^4.27.0`
61+
- `eslint-plugin-jsdoc` `^61.1.5``^61.1.11`
62+
- `posthog-js` `^1.278.0``^1.282.0`
63+
- `svelte` `5.41.1``5.43.0`
64+
- `vite` `^7.1.11``^7.1.12`
65+
66+
---
67+
2568
## [1.22.1] - 2025-10-21
2669

2770
### Documentation
@@ -36,7 +79,7 @@ This project attempts to follow [Keep a Changelog](https://keepachangelog.com/en
3679
- Updated the text of `ServicesContent.svelte`.
3780
- Increased default Playwright test timeouts for navigation-sensitive suites (Desktop and Mobile) to improve stability under CI latency conditions.
3881
- Implemented `Promise.all()` pattern for combined click and navigation waits, reducing flakiness in route transition tests.
39-
- Updated the `'about' link'\*\* navigation tests in both Desktop and Mobile scenarios to include:
82+
- Updated the `'about' link` navigation tests in both Desktop and Mobile scenarios to include:
4083
- Explicit `page.waitForLoadState('domcontentloaded')` calls before assertions.
4184
- Extended per-suite timeouts (`90s`) using `test.setTimeout(90000)` for reliability on slower environments.
4285
- Added fallback `waitForURL('\*\*/about', { timeout: 60000 })` to ensure deterministic routing checks.
@@ -1267,7 +1310,8 @@ This project attempts to follow [Keep a Changelog](https://keepachangelog.com/en
12671310

12681311
<!-- Link references -->
12691312

1270-
[Unreleased]: https://github.com/netwk-pro/netwk-pro.github.io/compare/v1.22.1...HEAD
1313+
[Unreleased]: https://github.com/netwk-pro/netwk-pro.github.io/compare/v1.22.2...HEAD
1314+
[1.22.2]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.22.2
12711315
[1.22.1]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.22.1
12721316
[1.22.0]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.22.0
12731317
[1.21.1]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.21.1

0 commit comments

Comments
 (0)