@anzar-auth/anzar 0.4.9 → 0.9.19

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 ADDED
@@ -0,0 +1,33 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented here.
4
+
5
+ ## [Unreleased]
6
+
7
+ ### Added
8
+ - migrate to a multi-crate project (monorepo)
9
+ - add retired_at, expires_at to SigningKey model
10
+ - add keys command with subcommands (list, rotate, prune, revoke)
11
+ ### Fixed
12
+ - update SigninKey attribute active -> status: active, retired, revoked
13
+
14
+ ## [0.8.6] - 2026-05-28
15
+ ### Added
16
+ - Key rotation by introducing versions
17
+ - Asymmetric JWT algorithms
18
+ - Only allow Asymmetric algorithms, deprecate HS256
19
+ - add `inherits: [user]` for RBAC system to inherits permissions
20
+ ### Fixed
21
+ - push auth.password.security.max_failed_attempts to security.auth.max_failed_attempts under Secutiry Configuraion
22
+ - Remove the algorithm choice from the user-facing config entirely
23
+
24
+ ## [0.8.5] - 2026-05-24
25
+ ### Added
26
+ - Support for RateLimits using three type: default, ip and strict.
27
+ - RateLimit can be enabled or disabled.
28
+ - Read secret values from .env file instead of saving them in anzar.yml.
29
+ - Introduce tests for sesison authentication method.
30
+ - Add rate limits testings
31
+ ### Fixed
32
+ - Search for token in Database using atomic operation with consume method.
33
+ - /email/verify has been changed form GET to POST because it introduce a side effect.
@@ -23,7 +23,7 @@
23
23
  "hasInstallScript": true,
24
24
  "license": "GPL-3.0",
25
25
  "name": "@anzar-auth/anzar",
26
- "version": "0.4.9"
26
+ "version": "0.9.19"
27
27
  },
28
28
  "node_modules/@isaacs/cliui": {
29
29
  "engines": {
@@ -542,5 +542,5 @@
542
542
  }
543
543
  },
544
544
  "requires": true,
545
- "version": "0.4.9"
545
+ "version": "0.9.19"
546
546
  }
package/package.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "artifactDownloadUrls": [
3
- "https://github.com/anzar-software/anzar-cli/releases/download/v0.4.9"
3
+ "https://github.com/anzar_software/api/releases/download/v0.9.19"
4
4
  ],
5
- "author": "Hakou Guelfen <hakoudev@gmail.com>",
6
5
  "bin": {
7
6
  "anzar": "run-anzar.js"
8
7
  },
@@ -25,21 +24,10 @@
25
24
  "major": 2,
26
25
  "series": 35
27
26
  },
28
- "homepage": "https://anzar_software.gitlab.io/docs",
29
- "keywords": [
30
- "authentication",
31
- "web-programming",
32
- "network-programming",
33
- "command-line-utilities",
34
- "Authentication",
35
- "Authorization",
36
- "MicroService",
37
- "cli"
38
- ],
39
27
  "license": "GPL-3.0",
40
28
  "name": "@anzar-auth/anzar",
41
29
  "preferUnplugged": true,
42
- "repository": "https://github.com/anzar-software/anzar-cli",
30
+ "repository": "https://github.com/anzar_software/api",
43
31
  "scripts": {
44
32
  "fmt": "prettier --write **/*.js",
45
33
  "fmt:check": "prettier --check **/*.js",
@@ -47,77 +35,70 @@
47
35
  },
48
36
  "supportedPlatforms": {
49
37
  "aarch64-apple-darwin": {
50
- "artifactName": "anzar-aarch64-apple-darwin.tar.xz",
38
+ "artifactName": "anzar-cli-aarch64-apple-darwin.tar.xz",
51
39
  "bins": {
52
40
  "anzar": "anzar"
53
41
  },
54
42
  "zipExt": ".tar.xz"
55
43
  },
56
- "aarch64-pc-windows-gnu": {
57
- "artifactName": "anzar-aarch64-pc-windows-msvc.zip",
58
- "bins": {
59
- "anzar": "anzar.exe"
60
- },
61
- "zipExt": ".zip"
62
- },
63
44
  "aarch64-pc-windows-msvc": {
64
- "artifactName": "anzar-aarch64-pc-windows-msvc.zip",
45
+ "artifactName": "anzar-cli-x86_64-pc-windows-msvc.zip",
65
46
  "bins": {
66
47
  "anzar": "anzar.exe"
67
48
  },
68
49
  "zipExt": ".zip"
69
50
  },
70
51
  "aarch64-unknown-linux-gnu": {
71
- "artifactName": "anzar-aarch64-unknown-linux-gnu.tar.xz",
52
+ "artifactName": "anzar-cli-aarch64-unknown-linux-gnu.tar.xz",
72
53
  "bins": {
73
54
  "anzar": "anzar"
74
55
  },
75
56
  "zipExt": ".tar.xz"
76
57
  },
77
58
  "x86_64-apple-darwin": {
78
- "artifactName": "anzar-x86_64-apple-darwin.tar.xz",
59
+ "artifactName": "anzar-cli-x86_64-apple-darwin.tar.xz",
79
60
  "bins": {
80
61
  "anzar": "anzar"
81
62
  },
82
63
  "zipExt": ".tar.xz"
83
64
  },
84
65
  "x86_64-pc-windows-gnu": {
85
- "artifactName": "anzar-x86_64-pc-windows-msvc.zip",
66
+ "artifactName": "anzar-cli-x86_64-pc-windows-msvc.zip",
86
67
  "bins": {
87
68
  "anzar": "anzar.exe"
88
69
  },
89
70
  "zipExt": ".zip"
90
71
  },
91
72
  "x86_64-pc-windows-msvc": {
92
- "artifactName": "anzar-x86_64-pc-windows-msvc.zip",
73
+ "artifactName": "anzar-cli-x86_64-pc-windows-msvc.zip",
93
74
  "bins": {
94
75
  "anzar": "anzar.exe"
95
76
  },
96
77
  "zipExt": ".zip"
97
78
  },
98
79
  "x86_64-unknown-linux-gnu": {
99
- "artifactName": "anzar-x86_64-unknown-linux-gnu.tar.xz",
80
+ "artifactName": "anzar-cli-x86_64-unknown-linux-gnu.tar.xz",
100
81
  "bins": {
101
82
  "anzar": "anzar"
102
83
  },
103
84
  "zipExt": ".tar.xz"
104
85
  },
105
86
  "x86_64-unknown-linux-musl-dynamic": {
106
- "artifactName": "anzar-x86_64-unknown-linux-musl.tar.xz",
87
+ "artifactName": "anzar-cli-x86_64-unknown-linux-musl.tar.xz",
107
88
  "bins": {
108
89
  "anzar": "anzar"
109
90
  },
110
91
  "zipExt": ".tar.xz"
111
92
  },
112
93
  "x86_64-unknown-linux-musl-static": {
113
- "artifactName": "anzar-x86_64-unknown-linux-musl.tar.xz",
94
+ "artifactName": "anzar-cli-x86_64-unknown-linux-musl.tar.xz",
114
95
  "bins": {
115
96
  "anzar": "anzar"
116
97
  },
117
98
  "zipExt": ".tar.xz"
118
99
  }
119
100
  },
120
- "version": "0.4.9",
101
+ "version": "0.9.19",
121
102
  "volta": {
122
103
  "node": "18.14.1",
123
104
  "npm": "9.5.0"