fg-devkit 1.21.3 → 1.21.5

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.
@@ -11,10 +11,11 @@ body = """
11
11
  {% endif %}\
12
12
  {% for group, commits in commits | group_by(attribute="group") %}
13
13
  ### {{ group | striptags | trim | upper_first }}
14
- {% for commit in commits %}
15
- - {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.raw_message }}
16
- {% endfor %}
14
+ {% for commit in commits %}
15
+ - {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.raw_message | split(pat="\n") | first | trim }}\
17
16
  {% endfor %}
17
+ {% endfor %}
18
+
18
19
  """
19
20
  trim = true
20
21
  render_always = true
@@ -29,6 +30,7 @@ protect_breaking_commits = false
29
30
  commit_preprocessors = []
30
31
  commit_parsers = [
31
32
  { message = "^v\\d+\\.\\d+\\.\\d+$", skip = true },
33
+ { message = "^Merge (pull request|branch)", skip = true },
32
34
  { message = "^feat", group = "Added" },
33
35
  { message = "^fix\\(security\\)", group = "Security" },
34
36
  { message = "^fix", group = "Fixed" },
@@ -17,7 +17,7 @@
17
17
  "@lexical/rich-text": "0.52.0",
18
18
  "@lexical/link": "0.52.0",
19
19
  "@piwikpro/vue-piwik-pro": "2.0.0",
20
- "@sentry/vue": "11.4.0",
20
+ "@sentry/vue": "11.5.0",
21
21
  "@tanstack/vue-query": "5.104.1",
22
22
  "@types/leaflet": "1.9.22",
23
23
  "@unhead/vue": "2.0.5",
@@ -92,7 +92,7 @@
92
92
  "@tailwindcss/vite": "4.3.3",
93
93
  "@vitejs/plugin-vue": "6.0.9",
94
94
  "axios": "1.20.0",
95
- "dotenv": "18.0.5",
95
+ "dotenv": "18.0.6",
96
96
  "qrcode.vue": "3.11.0",
97
97
  "tailwindcss": "4.3.3",
98
98
  "vite": "8.3.3",
@@ -250,11 +250,20 @@ export default function createBaseConfig(options = {}) {
250
250
  ...additionalRules,
251
251
  },
252
252
  },
253
- // JS/CJS files config
253
+ // @typescript-eslint/no-unused-vars needs the TS parser + types; on plain JS it
254
+ // false-positives as "assigned a value but only used as a type".
254
255
  {
255
- files: ['**/*.js', '**/*.cjs'],
256
+ files: ['**/*.{js,cjs,mjs}'],
256
257
  rules: {
257
258
  '@typescript-eslint/no-var-requires': 'off',
259
+ '@typescript-eslint/no-unused-vars': 'off',
260
+ 'no-unused-vars': [
261
+ 'warn',
262
+ {
263
+ argsIgnorePattern: '^_',
264
+ varsIgnorePattern: '^_',
265
+ },
266
+ ],
258
267
  },
259
268
  },
260
269
  skipFormatting,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fg-devkit",
3
- "version": "1.21.3",
3
+ "version": "1.21.5",
4
4
  "description": "Shared configs, scripts, and DX tooling for Vue / TypeScript frontend repos",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -128,7 +128,7 @@
128
128
  "eslint": "10.12.0",
129
129
  "eslint-plugin-prettier": "5.5.6",
130
130
  "eslint-plugin-vue": "10.11.1",
131
- "fallow": "3.31.0",
131
+ "fallow": "3.32.0",
132
132
  "git-cliff": "2.14.2",
133
133
  "lefthook": "2.1.17",
134
134
  "npm-check-updates": "23.1.0",
@@ -20,7 +20,7 @@
20
20
  "axios": "1.20.0",
21
21
  "content-disposition-header": "0.6.0",
22
22
  "date-fns": "4.4.0",
23
- "dotenv": "18.0.5",
23
+ "dotenv": "18.0.6",
24
24
  "fds-vue-core": "8.10.0",
25
25
  "pinia": "4.0.3",
26
26
  "qrcode.vue": "3.11.0",
@@ -32,7 +32,7 @@
32
32
  "@intlify/unplugin-vue-i18n": "11.2.5",
33
33
  "@tanstack/vue-query-devtools": "6.3.1",
34
34
  "@types/node": "22.16.5",
35
- "fg-devkit": "1.21.3",
35
+ "fg-devkit": "1.21.5",
36
36
  "@vitejs/plugin-vue": "6.0.9",
37
37
  "tailwindcss": "4.3.3",
38
38
  "tsx": "4.23.15",
@@ -566,7 +566,7 @@ Commands:
566
566
  generate-release-notes [--tag=vX.Y.Z]
567
567
  Generate CHANGELOG.md and user changelog via git-cliff
568
568
  verify-release-notes Interactive review step before committing release notes
569
- sync-release-notes-config Copy cliff configs and generate:release-notes script when missing
569
+ sync-release-notes-config Add CHANGELOG.user.md and generate:release-notes script when missing
570
570
  commit [args...] czg/cz-git with fg-devkit bundled config
571
571
  commit-vuln Commit staged dependency bumps as vuln() (alias: vuln-commit)
572
572
  lint [eslint-args...] Run ESLint using fg-devkit bundled ESLint stack
@@ -1,7 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * Copy default cliff configs into a consumer repo when missing and ensure the
4
- * generate-release-notes npm script is present.
3
+ * Ensure CHANGELOG.user.md and the generate-release-notes npm script are present.
4
+ *
5
+ * cliff.toml / cliff.user.toml are not copied: generate-release-notes uses the configs
6
+ * bundled with fg-devkit, so config fixes reach every repo on the next fg-devkit bump.
7
+ * A repo only needs its own cliff config to override the bundled one.
5
8
  *
6
9
  * Usage:
7
10
  * node node_modules/fg-devkit/scripts/sync-release-notes-config.mjs
@@ -10,29 +13,10 @@
10
13
 
11
14
  import fs from 'node:fs'
12
15
  import path from 'node:path'
13
- import { fgRoot } from './release-notes-common.mjs'
14
16
 
15
17
  const REQUIRED_SCRIPT = 'generate:release-notes'
16
18
  const REQUIRED_SCRIPT_VALUE = 'pnpm exec fgd generate-release-notes'
17
19
 
18
- const CONFIG_FILES = ['cliff.toml', 'cliff.user.toml']
19
-
20
- function copyIfMissing(fileName, cwd) {
21
- const target = path.join(cwd, fileName)
22
- if (fs.existsSync(target)) {
23
- return null
24
- }
25
-
26
- const source = path.join(fgRoot, 'configs', fileName)
27
- if (!fs.existsSync(source)) {
28
- console.error(`[sync-release-notes-config] Missing template: ${source}`)
29
- process.exit(1)
30
- }
31
-
32
- fs.copyFileSync(source, target)
33
- return fileName
34
- }
35
-
36
20
  function ensureUserChangelog(cwd) {
37
21
  const target = path.join(cwd, 'CHANGELOG.user.md')
38
22
  if (fs.existsSync(target)) {
@@ -53,13 +37,6 @@ function main() {
53
37
  }
54
38
 
55
39
  const copied = []
56
- for (const fileName of CONFIG_FILES) {
57
- const result = copyIfMissing(fileName, cwd)
58
- if (result) {
59
- copied.push(result)
60
- }
61
- }
62
-
63
40
  const createdChangelog = ensureUserChangelog(cwd)
64
41
  if (createdChangelog) {
65
42
  copied.push(createdChangelog)