pob 33.4.0 → 34.0.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,26 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [34.0.0](https://github.com/christophehurpeau/pob/compare/pob@33.4.0...pob@34.0.0) (2026-04-05)
7
+
8
+ ### ⚠ BREAKING CHANGES
9
+
10
+ * node 24
11
+
12
+ ### Features
13
+
14
+ * change default test runner to "node" in CommonTestingGenerator and add test runner selection in PobMonorepoGenerator
15
+ * node 24
16
+
17
+ ### Bug Fixes
18
+
19
+ * add optional chaining for script checks in CoreYarnGenerator
20
+ * update minimum Node.js version to 24.14.1 in CommonTranspilerGenerator
21
+
22
+ Version bump for dependency: pob-dependencies
23
+ Version bump for dependency: @pob/root
24
+
25
+
6
26
  ## [33.4.0](https://github.com/christophehurpeau/pob/compare/pob@33.3.0...pob@33.4.0) (2026-04-05)
7
27
 
8
28
  Version bump for dependency: pob-dependencies
@@ -52,7 +52,6 @@ jobs:
52
52
  - uses: actions/setup-node@v6
53
53
  with:
54
54
  node-version: <%= nodeLatestMajorVersion %>
55
- check-latest: true
56
55
  registry-url: "https://registry.npmjs.org"
57
56
 
58
57
  - name: Check git tags
@@ -28,7 +28,7 @@ export default class CommonTestingGenerator extends Generator {
28
28
 
29
29
  this.option("runner", {
30
30
  type: String,
31
- default: "jest",
31
+ default: "node",
32
32
  description: "test runner (jest or node)",
33
33
  });
34
34
 
@@ -663,7 +663,16 @@ export default class CommonTranspilerGenerator extends Generator {
663
663
  }
664
664
  break;
665
665
  case "24":
666
- pkg.engines.node = ">=24.0.0";
666
+ if (
667
+ envs ||
668
+ !pkg.engines.node ||
669
+ !pkg.engines.node.startsWith(">=26")
670
+ ) {
671
+ pkg.engines.node = ">=24.14.1";
672
+ }
673
+ break;
674
+ case "26":
675
+ pkg.engines.node = ">=26.0.0";
667
676
  break;
668
677
  default:
669
678
  throw new Error(`Invalid min node version: ${minNodeVersion}`);
@@ -687,7 +696,7 @@ export default class CommonTranspilerGenerator extends Generator {
687
696
  packageUtils.removeDevDependencies(pkg, ["@types/node"]);
688
697
 
689
698
  // Supports oldest current or active LTS version of node
690
- const minVersion = this.options.onlyLatestLTS ? "22.18.0" : "22.18.0";
699
+ const minVersion = this.options.onlyLatestLTS ? "24.14.1" : "22.18.0";
691
700
 
692
701
  if (
693
702
  !pkg.engines.node ||
@@ -24,7 +24,6 @@ jobs:
24
24
  - uses: actions/setup-node@v6
25
25
  with:
26
26
  node-version: <%= nodeLatestMajorVersion %>
27
- check-latest: true
28
27
 
29
28
  <% if (packageManager === 'yarn') { -%>
30
29
  - name: Install Dependencies
@@ -17,7 +17,6 @@ jobs:
17
17
  - uses: actions/setup-node@v6
18
18
  with:
19
19
  node-version: <%= nodeLatestMajorVersion %>
20
- check-latest: true
21
20
 
22
21
  - name: Install Dependencies
23
22
  <% if (packageManager === 'yarn') { -%>
@@ -47,7 +46,6 @@ jobs:
47
46
  - uses: actions/setup-node@v6
48
47
  with:
49
48
  node-version: <%= nodeLatestMajorVersion %>
50
- check-latest: true
51
49
 
52
50
  - name: Install Dependencies
53
51
  <% if (packageManager === 'yarn') { -%>
@@ -79,7 +77,6 @@ jobs:
79
77
  - uses: actions/setup-node@v6
80
78
  with:
81
79
  node-version: <%= nodeLatestMajorVersion %>
82
- check-latest: true
83
80
 
84
81
  - name: Install Dependencies
85
82
  <% if (disableYarnGitCache) { -%>
@@ -124,7 +121,6 @@ jobs:
124
121
  - uses: actions/setup-node@v6
125
122
  with:
126
123
  node-version: ${{ matrix.node-version }}
127
- check-latest: true
128
124
 
129
125
  <% if (packageManager === 'yarn') { -%>
130
126
  - name: Install Dependencies
@@ -179,7 +175,6 @@ jobs:
179
175
  - uses: actions/setup-node@v6
180
176
  with:
181
177
  node-version: ${{ matrix.node-version }}
182
- check-latest: true
183
178
 
184
179
  - name: Install Dependencies
185
180
  <% if (disableYarnGitCache) { -%>
@@ -203,7 +198,6 @@ jobs:
203
198
  - uses: actions/setup-node@v6
204
199
  with:
205
200
  node-version: <%= nodeLatestMajorVersion %>
206
- check-latest: true
207
201
 
208
202
  - uses: GoogleCloudPlatform/release-please-action@v3
209
203
  if: ${{ github.ref == 'refs/heads/main' }}
@@ -29,7 +29,6 @@ jobs:
29
29
  uses: actions/setup-node@v6
30
30
  with:
31
31
  node-version: ${{ matrix.node-version }}
32
- check-latest: true
33
32
  registry-url: 'https://registry.npmjs.org'
34
33
 
35
34
  <% if (packageManager === 'yarn') { -%>
@@ -69,10 +69,10 @@ export default class CoreYarnGenerator extends Generator {
69
69
  });
70
70
  } else {
71
71
  packageUtils.removeDevDependencies(pkg, ["pinst"]);
72
- if (pkg.scripts.prepack === "pinst --disable") {
72
+ if (pkg.scripts?.prepack === "pinst --disable") {
73
73
  delete pkg.scripts.prepack;
74
74
  }
75
- if (pkg.scripts.postpack === "pinst --enable") {
75
+ if (pkg.scripts?.postpack === "pinst --enable") {
76
76
  delete pkg.scripts.postpack;
77
77
  }
78
78
  }
@@ -176,6 +176,14 @@ export default class PobMonorepoGenerator extends Generator {
176
176
  when: (answers) => answers.ci,
177
177
  default: config ? config.testing : true,
178
178
  },
179
+ {
180
+ type: "list",
181
+ name: "testRunner",
182
+ message: "What testing runner would you like ?",
183
+ when: (answers) => answers.testing,
184
+ default: config ? config.testRunner : "node",
185
+ choices: ["node", "vitest"],
186
+ },
179
187
  {
180
188
  type: "confirm",
181
189
  name: "e2eTesting",
@@ -237,7 +245,7 @@ export default class PobMonorepoGenerator extends Generator {
237
245
  this.composeWith("pob:common:testing", {
238
246
  monorepo: true,
239
247
  enable: this.pobLernaConfig.testing,
240
- runner: this.pobLernaConfig.testRunner || "jest",
248
+ runner: this.pobLernaConfig.testRunner,
241
249
  disableYarnGitCache: this.options.disableYarnGitCache,
242
250
  testing: this.pobLernaConfig.testing,
243
251
  e2eTesting: this.pobLernaConfig.e2eTesting,
@@ -1,2 +1,2 @@
1
- export const latestLTS = "22";
1
+ export const latestLTS = "24";
2
2
  export const maintenanceLTS = "22";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pob",
3
- "version": "33.4.0",
3
+ "version": "34.0.0",
4
4
  "description": "Pile of bones, library generator with git/babel/typescript/typedoc/readme/jest",
5
5
  "keywords": [
6
6
  "skeleton"
@@ -63,7 +63,7 @@
63
63
  "mem-fs-editor": "11.1.4",
64
64
  "minimist": "1.2.8",
65
65
  "parse-author": "2.0.0",
66
- "pob-dependencies": "22.2.2",
66
+ "pob-dependencies": "23.0.0",
67
67
  "prettier": "3.8.1",
68
68
  "semver": "7.7.4",
69
69
  "typescript": "5.9.3",
@@ -72,7 +72,7 @@
72
72
  "yeoman-generator": "7.5.1"
73
73
  },
74
74
  "devDependencies": {
75
- "@pob/root": "22.4.0",
76
- "@types/node": "22.19.15"
75
+ "@pob/root": "23.0.0",
76
+ "@types/node": "24.12.0"
77
77
  }
78
78
  }