@habityzer/nuxt-symfony-kinde-layer 2.4.4 → 2.4.12
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/.github/workflows/publish.yml +21 -7
- package/.husky/commit-msg +0 -3
- package/.husky/pre-commit +25 -4
- package/.releaserc.json +3 -4
- package/CHANGELOG.md +22 -0
- package/README.md +1 -1
- package/SETUP_NPM_PUBLISH.md +5 -14
- package/package.json +11 -15
- package/pnpm-workspace.yaml +7 -0
|
@@ -17,20 +17,20 @@ jobs:
|
|
|
17
17
|
|
|
18
18
|
steps:
|
|
19
19
|
- name: Checkout code
|
|
20
|
-
uses: actions/checkout@
|
|
20
|
+
uses: actions/checkout@v6
|
|
21
21
|
with:
|
|
22
22
|
fetch-depth: 0
|
|
23
23
|
persist-credentials: false
|
|
24
24
|
|
|
25
25
|
- name: Setup pnpm
|
|
26
|
-
uses: pnpm/action-setup@
|
|
26
|
+
uses: pnpm/action-setup@v5
|
|
27
27
|
with:
|
|
28
|
-
version:
|
|
28
|
+
version: 10
|
|
29
29
|
|
|
30
30
|
- name: Setup Node.js
|
|
31
|
-
uses: actions/setup-node@
|
|
31
|
+
uses: actions/setup-node@v6
|
|
32
32
|
with:
|
|
33
|
-
node-version: '
|
|
33
|
+
node-version: '24'
|
|
34
34
|
cache: 'pnpm'
|
|
35
35
|
registry-url: 'https://registry.npmjs.org'
|
|
36
36
|
|
|
@@ -56,11 +56,25 @@ jobs:
|
|
|
56
56
|
|
|
57
57
|
- name: Run linter
|
|
58
58
|
run: pnpm lint
|
|
59
|
-
|
|
59
|
+
|
|
60
|
+
- name: Configure git for semantic-release push
|
|
61
|
+
env:
|
|
62
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
63
|
+
run: git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
|
|
64
|
+
|
|
60
65
|
- name: Release
|
|
66
|
+
uses: cycjimmy/semantic-release-action@v6
|
|
67
|
+
with:
|
|
68
|
+
semantic_version: 25
|
|
69
|
+
extra_plugins: |
|
|
70
|
+
@semantic-release/commit-analyzer@^13.0.1
|
|
71
|
+
@semantic-release/release-notes-generator@^14.1.0
|
|
72
|
+
@semantic-release/changelog@^6.0.3
|
|
73
|
+
@semantic-release/npm@^13.0.0
|
|
74
|
+
@semantic-release/git@^10.0.1
|
|
75
|
+
conventional-changelog-conventionalcommits@^9.1.0
|
|
61
76
|
env:
|
|
62
77
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
63
78
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
64
79
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
65
|
-
run: pnpm release
|
|
66
80
|
|
package/.husky/commit-msg
CHANGED
package/.husky/pre-commit
CHANGED
|
@@ -5,9 +5,30 @@ set -e
|
|
|
5
5
|
|
|
6
6
|
echo "🔍 Running pre-commit checks..."
|
|
7
7
|
|
|
8
|
-
#
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
# Regenerate .nuxt when missing or when generated ESLint paths are stale (e.g. after pnpm install / ESLint major bump)
|
|
9
|
+
needs_nuxt_prepare() {
|
|
10
|
+
[ ! -d ".nuxt" ] && return 0
|
|
11
|
+
[ ! -f ".nuxt/eslint.config.mjs" ] && return 0
|
|
12
|
+
while IFS= read -r line; do
|
|
13
|
+
imp=$(echo "$line" | sed -n "s/.*from ['\"]\\([^'\"]*\\)['\"].*/\\1/p")
|
|
14
|
+
[ -z "$imp" ] && continue
|
|
15
|
+
case "$imp" in
|
|
16
|
+
../node_modules/*)
|
|
17
|
+
# Paths in .nuxt/eslint.config.mjs are relative to .nuxt/, not the repo root
|
|
18
|
+
target="${imp#../}"
|
|
19
|
+
if [ ! -f "$target" ]; then
|
|
20
|
+
return 0
|
|
21
|
+
fi
|
|
22
|
+
;;
|
|
23
|
+
esac
|
|
24
|
+
done <<EOF
|
|
25
|
+
$(grep -E "from ['\"].*node_modules/" .nuxt/eslint.config.mjs 2>/dev/null || true)
|
|
26
|
+
EOF
|
|
27
|
+
return 1
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
if needs_nuxt_prepare; then
|
|
31
|
+
echo "📦 Preparing Nuxt (.nuxt missing or stale)..."
|
|
11
32
|
export KINDE_AUTH_DOMAIN="https://placeholder.kinde.com"
|
|
12
33
|
export KINDE_CLIENT_ID="placeholder_client_id"
|
|
13
34
|
export KINDE_CLIENT_SECRET="placeholder_client_secret"
|
|
@@ -21,7 +42,7 @@ if [ ! -d ".nuxt" ]; then
|
|
|
21
42
|
export NUXT_PUBLIC_AUTH_ID_TOKEN_NAME="id_token"
|
|
22
43
|
export NUXT_PUBLIC_AUTH_ACCESS_TOKEN_NAME="access_token"
|
|
23
44
|
export NUXT_PUBLIC_AUTH_REFRESH_TOKEN_NAME="refresh_token"
|
|
24
|
-
|
|
45
|
+
|
|
25
46
|
pnpm nuxt prepare > /dev/null 2>&1
|
|
26
47
|
fi
|
|
27
48
|
|
package/.releaserc.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"branches": ["master"],
|
|
2
|
+
"branches": ["main", "master"],
|
|
3
3
|
"plugins": [
|
|
4
4
|
["@semantic-release/commit-analyzer", {
|
|
5
5
|
"preset": "conventionalcommits",
|
|
@@ -31,6 +31,5 @@
|
|
|
31
31
|
"gitArgs": ["--no-verify"]
|
|
32
32
|
}]
|
|
33
33
|
],
|
|
34
|
-
"dryRun": false
|
|
35
|
-
|
|
36
|
-
}
|
|
34
|
+
"dryRun": false
|
|
35
|
+
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
## [2.4.12](https://github.com/Habityzer/nuxt-symfony-kinde-layer/compare/v2.4.11...v2.4.12) (2026-03-25)
|
|
2
|
+
|
|
3
|
+
## [2.4.11](https://github.com/Habityzer/nuxt-symfony-kinde-layer/compare/v2.4.10...v2.4.11) (2026-03-21)
|
|
4
|
+
|
|
5
|
+
## [2.4.10](https://github.com/Habityzer/nuxt-symfony-kinde-layer/compare/v2.4.9...v2.4.10) (2026-03-21)
|
|
6
|
+
|
|
7
|
+
## [2.4.9](https://github.com/Habityzer/nuxt-symfony-kinde-layer/compare/v2.4.8...v2.4.9) (2026-03-21)
|
|
8
|
+
|
|
9
|
+
## [2.4.8](https://github.com/Habityzer/nuxt-symfony-kinde-layer/compare/v2.4.7...v2.4.8) (2026-03-20)
|
|
10
|
+
|
|
11
|
+
## [2.4.7](https://github.com/Habityzer/nuxt-symfony-kinde-layer/compare/v2.4.6...v2.4.7) (2026-03-20)
|
|
12
|
+
|
|
13
|
+
## [2.4.6](https://github.com/Habityzer/nuxt-symfony-kinde-layer/compare/v2.4.5...v2.4.6) (2026-03-20)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* **deps:** update dependency @vueuse/core to v14 ([dbf151d](https://github.com/Habityzer/nuxt-symfony-kinde-layer/commit/dbf151d2a25a54247798c3fe1dd55cf3ff49064c))
|
|
19
|
+
* **deps:** update dependency vue-router to v5 ([d648e54](https://github.com/Habityzer/nuxt-symfony-kinde-layer/commit/d648e54c6398002ba76715153a57d0cfad75fe88))
|
|
20
|
+
|
|
21
|
+
## [2.4.5](https://github.com/Habityzer/nuxt-symfony-kinde-layer/compare/v2.4.4...v2.4.5) (2026-03-20)
|
|
22
|
+
|
|
1
23
|
## [2.4.4](https://github.com/Habityzer/nuxt-symfony-kinde-layer/compare/v2.4.3...v2.4.4) (2026-03-20)
|
|
2
24
|
|
|
3
25
|
## [2.4.3](https://github.com/Habityzer/nuxt-symfony-kinde-layer/compare/v2.4.2...v2.4.3) (2026-03-20)
|
package/README.md
CHANGED
|
@@ -302,8 +302,8 @@ Add these scripts to your project's `package.json`:
|
|
|
302
302
|
pnpm build # Build the layer
|
|
303
303
|
pnpm lint # Check for linting issues
|
|
304
304
|
pnpm lint:fix # Auto-fix linting issues
|
|
305
|
-
pnpm release # Create semantic release (CI only)
|
|
306
305
|
```
|
|
306
|
+
Versioning and npm publish run in GitHub Actions on push to `main` or `master` (see `.github/workflows/publish.yml`).
|
|
307
307
|
|
|
308
308
|
3. **Git hooks (via Husky):**
|
|
309
309
|
- Pre-commit: Automatically runs `pnpm lint` before each commit
|
package/SETUP_NPM_PUBLISH.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Setting Up Automated NPM Publishing
|
|
2
2
|
|
|
3
|
-
This project uses GitHub Actions with semantic-release to automatically publish to npm when you push to
|
|
3
|
+
This project uses GitHub Actions with [semantic-release-action](https://github.com/cycjimmy/semantic-release-action) to automatically publish to npm when you push to `main` or `master`.
|
|
4
4
|
|
|
5
5
|
## Setup Instructions
|
|
6
6
|
|
|
@@ -50,7 +50,7 @@ When setting up your package on npmjs.com for automated publishing:
|
|
|
50
50
|
|
|
51
51
|
The workflow (`.github/workflows/publish.yml`) will:
|
|
52
52
|
|
|
53
|
-
1. **Trigger**: Automatically runs when you push to
|
|
53
|
+
1. **Trigger**: Automatically runs when you push to `main` or `master`
|
|
54
54
|
2. **Analyze**: Semantic-release reads your commit messages (following conventional commits)
|
|
55
55
|
3. **Version**: Automatically bumps the version based on your commits:
|
|
56
56
|
- `feat:` → minor version (1.0.0 → 1.1.0)
|
|
@@ -82,18 +82,9 @@ git commit -m "docs: update README"
|
|
|
82
82
|
git commit -m "chore: update dependencies"
|
|
83
83
|
```
|
|
84
84
|
|
|
85
|
-
### 6. Manual
|
|
85
|
+
### 6. Manual release
|
|
86
86
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
```bash
|
|
90
|
-
pnpm release
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
This runs semantic-release locally. Make sure you have:
|
|
94
|
-
- `NPM_TOKEN` environment variable set
|
|
95
|
-
- Committed all your changes
|
|
96
|
-
- Pushed to the master branch
|
|
87
|
+
Releases are executed in CI only (no `semantic-release` in this repo’s devDependencies). Push conventional commits to `main` or `master` and let the workflow publish. For a local dry-run you can use `npx semantic-release@25 --dry-run` from a throwaway clone with the same plugins installed, or rely on the workflow’s logs.
|
|
97
88
|
|
|
98
89
|
## Troubleshooting
|
|
99
90
|
|
|
@@ -119,7 +110,7 @@ This runs semantic-release locally. Make sure you have:
|
|
|
119
110
|
|
|
120
111
|
## Current Configuration
|
|
121
112
|
|
|
122
|
-
- **
|
|
113
|
+
- **Branches**: `main`, `master` (configured in `.releaserc.json`)
|
|
123
114
|
- **Package**: `@habityzer/nuxt-symfony-kinde-layer`
|
|
124
115
|
- **Workflow**: `.github/workflows/publish.yml`
|
|
125
116
|
- **NPM Publish**: Enabled (set in `.releaserc.json`)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@habityzer/nuxt-symfony-kinde-layer",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.12",
|
|
4
4
|
"description": "Shared Nuxt layer for Symfony + Kinde authentication integration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./nuxt.config.ts",
|
|
@@ -10,8 +10,7 @@
|
|
|
10
10
|
"lint": "eslint .",
|
|
11
11
|
"lint:fix": "eslint . --fix",
|
|
12
12
|
"prepare": "husky || true",
|
|
13
|
-
"prepare:ci": "pnpm install && KINDE_AUTH_DOMAIN=https://placeholder.kinde.com KINDE_CLIENT_ID=placeholder KINDE_CLIENT_SECRET=placeholder KINDE_REDIRECT_URL=http://localhost:3000/api/auth/callback KINDE_LOGOUT_REDIRECT_URL=http://localhost:3000 NUXT_PUBLIC_AUTH_COOKIE_PREFIX=auth_ NUXT_PUBLIC_AUTH_LOGIN_PATH=/login NUXT_PUBLIC_AUTH_CLOCK_SKEW_SECONDS=300 NUXT_PUBLIC_AUTH_APP_TOKEN_PREFIX=Bearer NUXT_PUBLIC_AUTH_E2E_TOKEN_COOKIE_NAME=e2e_token NUXT_PUBLIC_AUTH_ID_TOKEN_NAME=id_token NUXT_PUBLIC_AUTH_ACCESS_TOKEN_NAME=access_token NUXT_PUBLIC_AUTH_REFRESH_TOKEN_NAME=refresh_token pnpm nuxt prepare"
|
|
14
|
-
"release": "HUSKY=0 semantic-release"
|
|
13
|
+
"prepare:ci": "pnpm install && KINDE_AUTH_DOMAIN=https://placeholder.kinde.com KINDE_CLIENT_ID=placeholder KINDE_CLIENT_SECRET=placeholder KINDE_REDIRECT_URL=http://localhost:3000/api/auth/callback KINDE_LOGOUT_REDIRECT_URL=http://localhost:3000 NUXT_PUBLIC_AUTH_COOKIE_PREFIX=auth_ NUXT_PUBLIC_AUTH_LOGIN_PATH=/login NUXT_PUBLIC_AUTH_CLOCK_SKEW_SECONDS=300 NUXT_PUBLIC_AUTH_APP_TOKEN_PREFIX=Bearer NUXT_PUBLIC_AUTH_E2E_TOKEN_COOKIE_NAME=e2e_token NUXT_PUBLIC_AUTH_ID_TOKEN_NAME=id_token NUXT_PUBLIC_AUTH_ACCESS_TOKEN_NAME=access_token NUXT_PUBLIC_AUTH_REFRESH_TOKEN_NAME=refresh_token pnpm nuxt prepare"
|
|
15
14
|
},
|
|
16
15
|
"keywords": [
|
|
17
16
|
"nuxt",
|
|
@@ -22,31 +21,28 @@
|
|
|
22
21
|
],
|
|
23
22
|
"author": "Habityzer",
|
|
24
23
|
"license": "MIT",
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "https://github.com/Habityzer/nuxt-symfony-kinde-layer.git"
|
|
27
|
+
},
|
|
25
28
|
"dependencies": {
|
|
26
29
|
"@habityzer/nuxt-kinde-auth": "^1.2.2",
|
|
27
30
|
"@nuxt/eslint": "^1.9.0",
|
|
28
31
|
"@nuxt/ui": "^4.0.1",
|
|
29
32
|
"@pinia/nuxt": "^0.11.2",
|
|
30
|
-
"@vueuse/core": "^
|
|
33
|
+
"@vueuse/core": "^14.0.0",
|
|
31
34
|
"nuxt": "^4.1.3",
|
|
32
35
|
"vue": "^3.5.22",
|
|
33
|
-
"vue-router": "^
|
|
36
|
+
"vue-router": "^5.0.0"
|
|
34
37
|
},
|
|
35
38
|
"devDependencies": {
|
|
36
|
-
"@commitlint/config-conventional": "^
|
|
39
|
+
"@commitlint/config-conventional": "^20.0.0",
|
|
37
40
|
"@habityzer/nuxt-openapi-composables": "^1.1.0",
|
|
38
41
|
"@iconify-json/heroicons": "^1.2.3",
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"@semantic-release/git": "^10.0.1",
|
|
42
|
-
"@semantic-release/npm": "^12.0.1",
|
|
43
|
-
"@semantic-release/release-notes-generator": "^14.1.0",
|
|
44
|
-
"commitlint": "^19.8.1",
|
|
45
|
-
"conventional-changelog-conventionalcommits": "^9.1.0",
|
|
46
|
-
"eslint": "^9.37.0",
|
|
42
|
+
"commitlint": "^20.0.0",
|
|
43
|
+
"eslint": "^10.0.0",
|
|
47
44
|
"husky": "^9.0.0",
|
|
48
45
|
"openapi-typescript": "^7.10.0",
|
|
49
|
-
"semantic-release": "^24.2.9",
|
|
50
46
|
"typescript": "^5.9.3"
|
|
51
47
|
},
|
|
52
48
|
"peerDependencies": {
|