@carecard/auth-util 3.14.0 → 3.16.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.
@@ -7,6 +7,8 @@ Non-negotiable root-cause solution rule: Always identify and solve the verified
7
7
 
8
8
  # pkg Publish
9
9
 
10
+ Non-negotiable test order invariance rule: Every test must pass independently of which tests run before or after it, and the suite must pass in every execution order. Each test must establish the state it needs, isolate mutable state, and clean up state it owns; it must never rely on another test's setup, mutations, or cleanup. Default test, CI, and Husky commands must use the test framework's ordinary ordering and must not force randomized ordering. Random-order execution is an explicit diagnostic only, and every failure it exposes must be fixed at the root cause.
11
+
10
12
  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
13
 
12
14
  Non-negotiable repository isolation rule: Every repository must run its Husky hooks and tests using only files, code, fixtures, dependencies, and services contained within that repository. Tests and Husky scripts must not import, require, read, execute, or otherwise depend on sibling repositories or paths outside the repository root. app-e2e-tests is the only exception because cross-repository end-to-end testing is its explicit responsibility.
@@ -27,12 +29,15 @@ Do not run this skill for Markdown-only changes, including README-only or
27
29
 
28
30
  ## Version Rule
29
31
 
30
- 1. Check `package.json` in all four package repositories:
31
- `pkg-common-util`, `pkg-validate`, `pkg-auth-util`, and `pkg-jwt-read`.
32
- 2. Select one minor version higher than the highest current package version.
32
+ 1. Check `package.json` in all five package repositories:
33
+ `pkg-common-util`, `pkg-validate`, `pkg-auth-util`, `pkg-jwt-read`, and
34
+ `pkg-telemetry`.
35
+ 2. Select one minor version higher than the highest currently published package
36
+ version. An unpublished new package adopts that coordinated target version
37
+ and does not raise it again.
33
38
  If the highest version is `3.7.0`, the coordinated target version is
34
39
  `3.8.0`.
35
- 3. Use the same target version for all four packages.
40
+ 3. Use the same target version for all five packages.
36
41
  4. Update each package's `package.json` and `package-lock.json`, then commit the
37
42
  version change on a package release branch before publishing.
38
43
 
@@ -44,6 +49,7 @@ Always publish packages in this order, one repository at a time:
44
49
  2. `@carecard/validate`
45
50
  3. `@carecard/auth-util`
46
51
  4. `@carecard/jwt-read`
52
+ 5. `@carecard/telemetry`
47
53
 
48
54
  Publish by pushing the package release branch, creating or reusing a pull
49
55
  request into `development`, marking it ready, waiting for checks, squash-merging
@@ -83,7 +89,8 @@ continuing:
83
89
  `pkg-jwt-read` when declared.
84
90
  3. After publishing `@carecard/auth-util`, update it in `pkg-jwt-read` when
85
91
  declared.
86
- 4. `@carecard/jwt-read` is last, so no later package repository depends on it.
92
+ 4. `@carecard/jwt-read` has no later dependent CareCard package.
93
+ 5. `@carecard/telemetry` is last and has no `@carecard/*` package dependencies.
87
94
 
88
95
  Use exact installs so `package.json` and `package-lock.json` stay aligned:
89
96
 
@@ -93,7 +100,7 @@ npm install <package-name>@<target-version> --save-exact
93
100
 
94
101
  ## Service And Dashboard Consumers
95
102
 
96
- After all four packages are published, update all `ms-*` repositories and
103
+ After all five packages are published, update all `ms-*` repositories and
97
104
  `app-dashboard` that declare any `@carecard/*` package dependency. Install the
98
105
  latest exact target version for every declared CareCard package, run the
99
106
  repository's required validation, and commit the dependency updates locally.
@@ -113,6 +120,6 @@ For each changed repository:
113
120
  - For `app-dashboard`, run both `.husky/pre-commit` and `.husky/pre-push` when
114
121
  dependencies change.
115
122
 
116
- Finish by verifying that all four packages are published at the same target
123
+ Finish by verifying that all five packages are published at the same target
117
124
  version and every declared `@carecard/*` dependency in `pkg-*`, `ms-*`, and
118
125
  `app-dashboard` is pinned to that version.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carecard/auth-util",
3
- "version": "3.14.0",
3
+ "version": "3.16.0",
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.14.0",
46
- "@carecard/validate": "3.14.0",
45
+ "@carecard/common-util": "3.16.0",
46
+ "@carecard/validate": "3.16.0",
47
47
  "@types/express": "5.0.6"
48
48
  },
49
49
  "overrides": {