@carecard/auth-util 3.3.0 → 3.6.1
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/.agents/skills/carecard-workspace-standards/SKILL.md +4 -0
- package/.agents/skills/github-pr-create-update/SKILL.md +4 -0
- package/.agents/skills/github-pr-merge-cleanup/SKILL.md +4 -0
- package/.agents/skills/npm-package-flow/SKILL.md +4 -0
- package/.agents/skills/pkg-auth-util-auth-crypto-library/SKILL.md +4 -0
- package/.agents/skills/software-design-patterns-and-clean-code/SKILL.md +4 -0
- package/package.json +3 -3
- package/readme.md +6 -0
|
@@ -5,6 +5,10 @@ description: 'Follow the shared SO_CareCardCa/CareCard workspace coding, testing
|
|
|
5
5
|
|
|
6
6
|
# CareCard Workspace Standards
|
|
7
7
|
|
|
8
|
+
Non-negotiable TDD rule: Always write the failing test first, run it to confirm it fails for the intended reason, then implement the code and rerun the test until it passes. Test Driven Development is required for all coding work and must not be skipped. For documentation- or skill-only edits, add or update the relevant validation check before changing the prose.
|
|
9
|
+
|
|
10
|
+
Non-negotiable code organization rule: Functions with the same or equivalent behavior must use the same or clearly corresponding descriptive names across CareCard repositories, and equivalent functionality must live in files with the same names within each repository's established architecture. No backward compatibility names, aliases, or duplicate locations are allowed.
|
|
11
|
+
|
|
8
12
|
## Purpose
|
|
9
13
|
|
|
10
14
|
Use before modifying, testing, reviewing, or debugging any CareCard workspace repository or cross-repository contract.
|
|
@@ -5,6 +5,10 @@ description: 'Use only when the user explicitly asks for remote Git or GitHub PR
|
|
|
5
5
|
|
|
6
6
|
# Pull Request Create
|
|
7
7
|
|
|
8
|
+
Non-negotiable TDD rule: Always write the failing test first, run it to confirm it fails for the intended reason, then implement the code and rerun the test until it passes. Test Driven Development is required for all coding work and must not be skipped. For documentation- or skill-only edits, add or update the relevant validation check before changing the prose.
|
|
9
|
+
|
|
10
|
+
Non-negotiable code organization rule: Functions with the same or equivalent behavior must use the same or clearly corresponding descriptive names across CareCard repositories, and equivalent functionality must live in files with the same names within each repository's established architecture. No backward compatibility names, aliases, or duplicate locations are allowed.
|
|
11
|
+
|
|
8
12
|
## Purpose
|
|
9
13
|
|
|
10
14
|
After the user explicitly asks for remote Git or GitHub PR work, create,
|
|
@@ -5,6 +5,10 @@ description: 'Use only when the user explicitly asks for remote Git or GitHub PR
|
|
|
5
5
|
|
|
6
6
|
# Pull Request Merge Close
|
|
7
7
|
|
|
8
|
+
Non-negotiable TDD rule: Always write the failing test first, run it to confirm it fails for the intended reason, then implement the code and rerun the test until it passes. Test Driven Development is required for all coding work and must not be skipped. For documentation- or skill-only edits, add or update the relevant validation check before changing the prose.
|
|
9
|
+
|
|
10
|
+
Non-negotiable code organization rule: Functions with the same or equivalent behavior must use the same or clearly corresponding descriptive names across CareCard repositories, and equivalent functionality must live in files with the same names within each repository's established architecture. No backward compatibility names, aliases, or duplicate locations are allowed.
|
|
11
|
+
|
|
8
12
|
## Purpose
|
|
9
13
|
|
|
10
14
|
After the user explicitly asks for remote Git or GitHub PR work, push the
|
|
@@ -5,6 +5,10 @@ description: 'Use in pkg-* repositories when publishable package code changes re
|
|
|
5
5
|
|
|
6
6
|
# npm Package Flow
|
|
7
7
|
|
|
8
|
+
Non-negotiable TDD rule: Always write the failing test first, run it to confirm it fails for the intended reason, then implement the code and rerun the test until it passes. Test Driven Development is required for all coding work and must not be skipped. For documentation- or skill-only edits, add or update the relevant validation check before changing the prose.
|
|
9
|
+
|
|
10
|
+
Non-negotiable code organization rule: Functions with the same or equivalent behavior must use the same or clearly corresponding descriptive names across CareCard repositories, and equivalent functionality must live in files with the same names within each repository's established architecture. No backward compatibility names, aliases, or duplicate locations are allowed.
|
|
11
|
+
|
|
8
12
|
## Purpose
|
|
9
13
|
|
|
10
14
|
Use this skill in a `pkg-*` repository when package code changes need to be
|
|
@@ -5,6 +5,10 @@ description: 'Use when changing pkg-auth-util auth, password, JWT, crypto, key,
|
|
|
5
5
|
|
|
6
6
|
# Package Auth Util
|
|
7
7
|
|
|
8
|
+
Non-negotiable TDD rule: Always write the failing test first, run it to confirm it fails for the intended reason, then implement the code and rerun the test until it passes. Test Driven Development is required for all coding work and must not be skipped. For documentation- or skill-only edits, add or update the relevant validation check before changing the prose.
|
|
9
|
+
|
|
10
|
+
Non-negotiable code organization rule: Functions with the same or equivalent behavior must use the same or clearly corresponding descriptive names across CareCard repositories, and equivalent functionality must live in files with the same names within each repository's established architecture. No backward compatibility names, aliases, or duplicate locations are allowed.
|
|
11
|
+
|
|
8
12
|
## Purpose
|
|
9
13
|
|
|
10
14
|
CareCard auth utility package for JWT creation/verification primitives, password hashing, crypto helpers, key generation, and tests.
|
|
@@ -5,6 +5,10 @@ description: 'Use every time before coding, refactoring, debugging, or reviewing
|
|
|
5
5
|
|
|
6
6
|
# Software Design Patterns And Clean Code
|
|
7
7
|
|
|
8
|
+
Non-negotiable TDD rule: Always write the failing test first, run it to confirm it fails for the intended reason, then implement the code and rerun the test until it passes. Test Driven Development is required for all coding work and must not be skipped. For documentation- or skill-only edits, add or update the relevant validation check before changing the prose.
|
|
9
|
+
|
|
10
|
+
Non-negotiable code organization rule: Functions with the same or equivalent behavior must use the same or clearly corresponding descriptive names across CareCard repositories, and equivalent functionality must live in files with the same names within each repository's established architecture. No backward compatibility names, aliases, or duplicate locations are allowed.
|
|
11
|
+
|
|
8
12
|
## Purpose
|
|
9
13
|
|
|
10
14
|
Use this skill with every coding, refactoring, debugging, or review task in
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carecard/auth-util",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.1",
|
|
4
4
|
"repository": "https://github.com/CareCard-ca/pkg-auth-util.git",
|
|
5
5
|
"description": "Auth utility functions",
|
|
6
6
|
"main": "index.js",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"typescript": "6.0.3"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@carecard/common-util": "3.
|
|
46
|
-
"@carecard/validate": "3.
|
|
45
|
+
"@carecard/common-util": "3.6.1",
|
|
46
|
+
"@carecard/validate": "3.6.1"
|
|
47
47
|
},
|
|
48
48
|
"overrides": {
|
|
49
49
|
"diff": "8.0.4",
|
package/readme.md
CHANGED
|
@@ -5,6 +5,12 @@
|
|
|
5
5
|
|
|
6
6
|
Utility package for authentication and authorization in the CareCard ecosystem.
|
|
7
7
|
|
|
8
|
+
## Development Rule
|
|
9
|
+
|
|
10
|
+
Non-negotiable TDD rule: Always write the failing test first, run it to confirm it fails for the intended reason, then implement the code and rerun the test until it passes. Test Driven Development is required for all coding work and must not be skipped. For documentation- or skill-only edits, add or update the relevant validation check before changing the prose.
|
|
11
|
+
|
|
12
|
+
Non-negotiable code organization rule: Functions with the same or equivalent behavior must use the same or clearly corresponding descriptive names across CareCard repositories, and equivalent functionality must live in files with the same names within each repository's established architecture. No backward compatibility names, aliases, or duplicate locations are allowed.
|
|
13
|
+
|
|
8
14
|
## Features
|
|
9
15
|
|
|
10
16
|
- **JWT Utilities**: Create, verify, and parse JSON Web Tokens with support for EdDSA (Ed25519) and RSA.
|