proteum 2.1.9-1 → 2.1.9-2

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "proteum",
3
3
  "description": "LLM-first Opinionated Typescript Framework for web applications.",
4
- "version": "2.1.9-1",
4
+ "version": "2.1.9-2",
5
5
  "author": "Gaetan Le Gac (https://github.com/gaetanlegac)",
6
6
  "repository": "git://github.com/gaetanlegac/proteum.git",
7
7
  "license": "MIT",
@@ -853,6 +853,9 @@ export default abstract class AuthService<
853
853
  return user as TUser;
854
854
  }
855
855
 
856
+ /**
857
+ * @deprecated Use `check(request, null, tracking)` to make the authenticated-user requirement explicit.
858
+ */
856
859
  public check(request: TRequest): TUser;
857
860
 
858
861
  public check(request: TRequest, conditions: null, tracking?: TAuthTrackingContext): TUser;
@@ -861,8 +864,14 @@ export default abstract class AuthService<
861
864
 
862
865
  public check(request: TRequest, conditions: false, tracking?: TAuthTrackingContext): null;
863
866
 
867
+ /**
868
+ * @deprecated Use `check(request, { role }, tracking)` or another explicit conditions object instead.
869
+ */
864
870
  public check(request: TRequest, role?: TUserRole | boolean): TUser | null;
865
871
 
872
+ /**
873
+ * @deprecated Use `check(request, { role, ...rules }, tracking)` with app-defined auth rules instead of legacy feature/action arguments.
874
+ */
866
875
  public check(request: TRequest, role: TUserRole | boolean, feature: FeatureKeys, action?: string): TUser | null;
867
876
 
868
877
  public check(