@mano8/astro-auth-m8 2.7.0 → 2.7.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/package.json +3 -2
package/CHANGELOG.md CHANGED
@@ -8,6 +8,54 @@ this package's own surface: a backend contract repoint is always a major.
8
8
 
9
9
  ## [Unreleased]
10
10
 
11
+ ## 2.7.1
12
+
13
+ Tracks the published `@mano8/astro-ui-m8` `1.5.2` (`B39-astro-ui-changelog-release`,
14
+ finding `G38`): the shared UI package's first tarball to ship its changelog.
15
+ A patch, because the only shipped change is `package.json`'s dependency floor;
16
+ the supported backend contract stays `fa-auth-m8@2.0`, range
17
+ `>=2.0.0 <3.0.0`, and the tested service version stays `2.2.3`.
18
+
19
+ ### Added
20
+
21
+ - **A lock that does not pin every package fails the build**
22
+ (`B34-npm-lock-integrity-guard`, finding `G34`(b)).
23
+ `scripts/verify-lock-integrity.mjs` (`npm run verify:lock-integrity`)
24
+ refuses a `package-lock.json` below `lockfileVersion` 3, or one with any
25
+ entry that lacks `integrity` or `resolved`, carries a non-`sha512` hash,
26
+ resolves outside `https://registry.npmjs.org/`, or is a link or `file:`
27
+ source, and names every offending key. `npm ci` installs an entry with no
28
+ `integrity` without checking a hash and says nothing, which is how `G33`
29
+ went unseen. CI runs it before `npm ci` in every job that installs.
30
+ `tests/lock-integrity.test.ts` proves each refusal against a fixture lock
31
+ and asserts this repository's own lock passes. The script is
32
+ dependency-free and byte-identical in the fleet's six npm repositories.
33
+ This lock already passed; the fixtures prove the red path. Only
34
+ `package.json`'s `scripts` gains an entry, so no release is owed.
35
+
36
+ ### Changed
37
+
38
+ - `@mano8/astro-ui-m8` floor `^1.5.1` → `^1.5.2` in `dependencies`, the
39
+ newest published release (§0.5's explicit-pin rule). The lock moves that
40
+ one entry, with its registry `resolved` and `sha512` `integrity`.
41
+
42
+ ### Security
43
+
44
+ - **`devalue` moves past the moderate advisory GHSA-9rgm-9g3h-6x36**
45
+ (`B35-astro-auth-devalue`, finding `G35`). The lock resolved `devalue`
46
+ `5.8.1`, a dev-only transitive of `astro` and `@astrojs/react`, where the
47
+ sibling plugins already had `5.9.x`. `npm audit fix --package-lock-only`
48
+ moved exactly that one entry to `5.9.4`, with its `resolved` and `sha512`
49
+ `integrity`. Nothing else in the lock changed, `package.json` did not
50
+ change, and `npm audit` now reads 0 at every severity. The lock does not
51
+ ship in the tarball, so no release is owed.
52
+ - **The publish job verifies the lock before it installs**
53
+ (`B37-publish-lock-guard`, finding `G36`). `B34` guarded every `CI.yaml`
54
+ job but not the one that holds `id-token: write` and builds the tarball,
55
+ and the environment's `tag:v*` rule matches a tag by name, not by where it
56
+ points. `npm-publish.yml` now runs `npm run verify:lock-integrity` before
57
+ `npm ci`, and `tests/publish-workflow.test.ts` holds the order.
58
+
11
59
  ## 2.7.0
12
60
 
13
61
  Tracks the published `fa-auth-m8` `2.2.3` issuer release. The supported backend
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mano8/astro-auth-m8",
3
- "version": "2.7.0",
3
+ "version": "2.7.1",
4
4
  "description": "Astro integration and headless client for fa-auth-m8.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -58,6 +58,7 @@
58
58
  "preview:dev": "vite --config fixtures/preview/vite.config.ts",
59
59
  "preview:build": "tsc -p fixtures/preview/tsconfig.json --noEmit && vite build --config fixtures/preview/vite.config.ts",
60
60
  "verify:fleet-gates": "node scripts/verify-fleet-gates.mjs",
61
+ "verify:lock-integrity": "node scripts/verify-lock-integrity.mjs",
61
62
  "verify:registry-consumer": "node scripts/verify-registry-consumer.mjs",
62
63
  "verify:registry-drift": "node scripts/verify-registry-drift.mjs",
63
64
  "verify:starter-routes": "node scripts/verify-starter-routes.mjs",
@@ -68,7 +69,7 @@
68
69
  "test:unit": "vitest run"
69
70
  },
70
71
  "dependencies": {
71
- "@mano8/astro-ui-m8": "^1.5.1"
72
+ "@mano8/astro-ui-m8": "^1.5.2"
72
73
  },
73
74
  "peerDependencies": {
74
75
  "@astrojs/react": "^6.0.1",