nuxt-users 1.47.0 → 1.48.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/dist/module.json +1 -1
- package/dist/module.mjs +5 -0
- package/package.json +8 -8
- package/scripts/release-preflight.sh +22 -0
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -195,6 +195,11 @@ const module$1 = defineNuxtModule({
|
|
|
195
195
|
method: "post",
|
|
196
196
|
handler: resolver.resolve("./runtime/server/api/nuxt-users/index.post")
|
|
197
197
|
});
|
|
198
|
+
addServerHandler({
|
|
199
|
+
route: `${base}/inactive`,
|
|
200
|
+
method: "get",
|
|
201
|
+
handler: resolver.resolve("./runtime/server/api/nuxt-users/inactive.get")
|
|
202
|
+
});
|
|
198
203
|
addServerHandler({
|
|
199
204
|
route: `${base}/:id`,
|
|
200
205
|
method: "get",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-users",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.48.0",
|
|
4
4
|
"description": "A comprehensive user management module for Nuxt 3 and Nuxt 4 applications with authentication, authorization, database support, and CLI tools",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nuxt",
|
|
@@ -34,9 +34,6 @@
|
|
|
34
34
|
},
|
|
35
35
|
"license": "MIT",
|
|
36
36
|
"type": "module",
|
|
37
|
-
"resolutions": {
|
|
38
|
-
"@nuxt/kit": "4.3.1"
|
|
39
|
-
},
|
|
40
37
|
"exports": {
|
|
41
38
|
".": {
|
|
42
39
|
"types": "./dist/types.d.mts",
|
|
@@ -68,8 +65,11 @@
|
|
|
68
65
|
"check:translations": "tsx scripts/check-translations.ts",
|
|
69
66
|
"check:locale-consistency": "tsx scripts/check-locale-consistency.ts",
|
|
70
67
|
"check:npm_token": "dotenv -- sh -c 'if [ -z \"$NPM_TOKEN\" ]; then echo \"❌ NPM_TOKEN environment variable is not set in .env file. Please set it to your npm token.\"; exit 1; fi'",
|
|
68
|
+
"check:npm_auth": "dotenv -- sh -c 'npm whoami --registry https://registry.npmjs.org/ --//registry.npmjs.org/:_authToken=$NPM_TOKEN'",
|
|
69
|
+
"release:publish:dry": "dotenv -- sh -c 'npm publish --dry-run --ignore-scripts --registry https://registry.npmjs.org/ --//registry.npmjs.org/:_authToken=$NPM_TOKEN'",
|
|
70
|
+
"release:preflight": "yarn prerelease && yarn check:npm_token && yarn check:npm_auth && sh scripts/release-preflight.sh",
|
|
71
71
|
"prerelease": "node -v | grep -q 'v22' || (echo 'Please use Node.js v22 for deployment' && exit 1)",
|
|
72
|
-
"release": "yarn
|
|
72
|
+
"release": "yarn release:preflight && yarn lint && yarn check:translations && yarn check:locale-consistency && yarn test && yarn prepack && yarn release:publish:dry && dotenv -- changelogen --release && dotenv -- sh -c 'npm publish --//registry.npmjs.org/:_authToken=$NPM_TOKEN --registry https://registry.npmjs.org/' && git push --follow-tags",
|
|
73
73
|
"lint": "eslint .",
|
|
74
74
|
"lint:fix": "eslint . --fix",
|
|
75
75
|
"pretest": "node -v | grep -q 'v22' || (echo 'Please use Node.js v22 for testing' && exit 1)",
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"@nuxt/kit": "^3.17.6 || ^4.0.0",
|
|
115
115
|
"bcrypt": "^6.0.0",
|
|
116
116
|
"nodemailer": "^7.0.5",
|
|
117
|
-
"nuxt-api-shield": "^
|
|
117
|
+
"nuxt-api-shield": "^1.0.0"
|
|
118
118
|
},
|
|
119
119
|
"peerDependenciesMeta": {
|
|
120
120
|
"nuxt-api-shield": {
|
|
@@ -132,12 +132,12 @@
|
|
|
132
132
|
"@nuxt/vite-builder": "^4.2.0",
|
|
133
133
|
"@types/bcrypt": "^6.0.0",
|
|
134
134
|
"@types/node": "^25.0.3",
|
|
135
|
-
"@types/nodemailer": "^
|
|
135
|
+
"@types/nodemailer": "^8.0.0",
|
|
136
136
|
"@types/pg": "^8.15.4",
|
|
137
137
|
"changelogen": "^0.6.2",
|
|
138
138
|
"dotenv-cli": "^11.0.0",
|
|
139
139
|
"eslint": "^9.30.1",
|
|
140
|
-
"nuxt": "
|
|
140
|
+
"nuxt": "^3.17.6",
|
|
141
141
|
"tsx": "^4.20.3",
|
|
142
142
|
"typescript": "~5.9.0",
|
|
143
143
|
"unbuild": "^3.0.0",
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
#!/usr/bin/env sh
|
|
2
|
+
set -e
|
|
3
|
+
|
|
4
|
+
if [ "$(git branch --show-current)" != "main" ]; then
|
|
5
|
+
echo "❌ Release must run on branch main (current: $(git branch --show-current))"
|
|
6
|
+
exit 1
|
|
7
|
+
fi
|
|
8
|
+
|
|
9
|
+
if [ -n "$(git status --porcelain)" ]; then
|
|
10
|
+
echo "❌ Working tree is not clean. Commit or stash before release."
|
|
11
|
+
exit 1
|
|
12
|
+
fi
|
|
13
|
+
|
|
14
|
+
git fetch origin
|
|
15
|
+
|
|
16
|
+
behind="$(git rev-list HEAD..origin/main --count 2>/dev/null || echo 0)"
|
|
17
|
+
if [ "$behind" -ne 0 ]; then
|
|
18
|
+
echo "❌ main is $behind commit(s) behind origin/main. Run: git pull --rebase origin main"
|
|
19
|
+
exit 1
|
|
20
|
+
fi
|
|
21
|
+
|
|
22
|
+
echo "✓ Git: branch main, clean, synced with origin/main"
|