@mano8/astro-auth-m8 2.7.0 → 2.7.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +96 -0
  2. package/package.json +16 -13
package/CHANGELOG.md CHANGED
@@ -8,6 +8,102 @@ this package's own surface: a backend contract repoint is always a major.
8
8
 
9
9
  ## [Unreleased]
10
10
 
11
+ ## 2.7.2
12
+
13
+ Admits `@astrojs/react` 7 and Starlight 0.42 as peers, tracks the published
14
+ `@mano8/astro-ui-m8` `1.5.3`, and adds the fleet's dependency compatibility
15
+ gate. A patch: peer ranges only widen, with both old lines still accepted,
16
+ and the one floor that rises is to a published release. The supported
17
+ backend contract stays `fa-auth-m8@2.0` (range `>=2.0.0 <3.0.0`), and the
18
+ tested service version stays `2.2.3`.
19
+
20
+ ### Changed
21
+
22
+ - **`@mano8/astro-ui-m8` floor `^1.5.2` → `^1.5.3`** in `dependencies`: the
23
+ newest published release, read back as npm `latest`, with tag `v1.5.3` =
24
+ `main` `6ec692b`. 1.5.3 is the release whose `lucide-react` peer accepts
25
+ `^1.28.0` rather than exactly `1.28.0`, so a host on a newer `1.x` no
26
+ longer breaks it. The lock moves that one entry; its `integrity` equals the
27
+ registry's `dist.integrity`.
28
+ - **Peer `@astrojs/react` `^6.0.1` → `^6.0.1 || ^7.0.0`.** A host on
29
+ `@astrojs/react` 7 (Dependabot's `fa-ui-m8` #40) failed this peer. The
30
+ package imports nothing from `@astrojs/react`. 7.0.0 keeps the same React
31
+ peer ranges and adds only an optional `oxc-transform-react` peer.
32
+ - **Peer `@astrojs/starlight` `^0.41.3` → `^0.41.3 || ^0.42.0`.** Starlight
33
+ 0.42 is the line built for `astro` 7.3. Under 0.41, `@astrojs/mdx` 7 pins
34
+ `@astrojs/markdown-remark` 7.2.x, which is outside the `^7.3.0` optional
35
+ peer that `astro` 7.3 declares. The 0.42 breaking changes (mobile-menu
36
+ markup, the `tagline` option, `astro` ≥ 7.2.10) touch nothing this package
37
+ overrides or configures.
38
+ - Dev dependencies now test the new lines: `@astrojs/react` `^7.0.0`,
39
+ `@astrojs/starlight` `^0.42.4`, `astro` `^7.3.4`, `react` / `react-dom` /
40
+ `@types/react` `^19.3.0`, `@typescript-eslint/*` `^8.70.1` and `globals`
41
+ `^17.12.0`, all matching `fa-ui-m8`. `@types/react-dom` `^19.3.0` is now
42
+ declared: it is a required peer of `@astrojs/react`, which npm used to
43
+ install on its own.
44
+
45
+ ### Added
46
+
47
+ - **A tree that breaks a declared range fails the build.**
48
+ `scripts/verify-dependency-compat.mjs` (`npm run verify:dependency-compat`)
49
+ and `tests/dependency-compat.test.ts`, byte-identical across the fleet's
50
+ six npm repositories and first shipped in `@mano8/astro-ui-m8` `1.5.3`.
51
+ The gate reads `npm ls --all --json --long` with peer edges forced on. It
52
+ names every installed package outside a range declared on it, and every
53
+ missing required dependency or peer outside an optional platform binary.
54
+ CI runs it after `npm ci`.
55
+ - **`.npmrc` with `legacy-peer-deps=true`**, byte-identical fleet-wide. npm
56
+ and Dependabot never refuse to resolve on a peer conflict, and the gate
57
+ above enforces the ranges instead.
58
+
59
+ ## 2.7.1
60
+
61
+ Tracks the published `@mano8/astro-ui-m8` `1.5.2` (`B39-astro-ui-changelog-release`,
62
+ finding `G38`): the shared UI package's first tarball to ship its changelog.
63
+ A patch, because the only shipped change is `package.json`'s dependency floor;
64
+ the supported backend contract stays `fa-auth-m8@2.0`, range
65
+ `>=2.0.0 <3.0.0`, and the tested service version stays `2.2.3`.
66
+
67
+ ### Added
68
+
69
+ - **A lock that does not pin every package fails the build**
70
+ (`B34-npm-lock-integrity-guard`, finding `G34`(b)).
71
+ `scripts/verify-lock-integrity.mjs` (`npm run verify:lock-integrity`)
72
+ refuses a `package-lock.json` below `lockfileVersion` 3, or one with any
73
+ entry that lacks `integrity` or `resolved`, carries a non-`sha512` hash,
74
+ resolves outside `https://registry.npmjs.org/`, or is a link or `file:`
75
+ source, and names every offending key. `npm ci` installs an entry with no
76
+ `integrity` without checking a hash and says nothing, which is how `G33`
77
+ went unseen. CI runs it before `npm ci` in every job that installs.
78
+ `tests/lock-integrity.test.ts` proves each refusal against a fixture lock
79
+ and asserts this repository's own lock passes. The script is
80
+ dependency-free and byte-identical in the fleet's six npm repositories.
81
+ This lock already passed; the fixtures prove the red path. Only
82
+ `package.json`'s `scripts` gains an entry, so no release is owed.
83
+
84
+ ### Changed
85
+
86
+ - `@mano8/astro-ui-m8` floor `^1.5.1` → `^1.5.2` in `dependencies`, the
87
+ newest published release (§0.5's explicit-pin rule). The lock moves that
88
+ one entry, with its registry `resolved` and `sha512` `integrity`.
89
+
90
+ ### Security
91
+
92
+ - **`devalue` moves past the moderate advisory GHSA-9rgm-9g3h-6x36**
93
+ (`B35-astro-auth-devalue`, finding `G35`). The lock resolved `devalue`
94
+ `5.8.1`, a dev-only transitive of `astro` and `@astrojs/react`, where the
95
+ sibling plugins already had `5.9.x`. `npm audit fix --package-lock-only`
96
+ moved exactly that one entry to `5.9.4`, with its `resolved` and `sha512`
97
+ `integrity`. Nothing else in the lock changed, `package.json` did not
98
+ change, and `npm audit` now reads 0 at every severity. The lock does not
99
+ ship in the tarball, so no release is owed.
100
+ - **The publish job verifies the lock before it installs**
101
+ (`B37-publish-lock-guard`, finding `G36`). `B34` guarded every `CI.yaml`
102
+ job but not the one that holds `id-token: write` and builds the tarball,
103
+ and the environment's `tag:v*` rule matches a tag by name, not by where it
104
+ points. `npm-publish.yml` now runs `npm run verify:lock-integrity` before
105
+ `npm ci`, and `tests/publish-workflow.test.ts` holds the order.
106
+
11
107
  ## 2.7.0
12
108
 
13
109
  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.2",
4
4
  "description": "Astro integration and headless client for fa-auth-m8.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -57,7 +57,9 @@
57
57
  "build:registry": "node scripts/build-registry.mjs",
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
+ "verify:dependency-compat": "node scripts/verify-dependency-compat.mjs",
60
61
  "verify:fleet-gates": "node scripts/verify-fleet-gates.mjs",
62
+ "verify:lock-integrity": "node scripts/verify-lock-integrity.mjs",
61
63
  "verify:registry-consumer": "node scripts/verify-registry-consumer.mjs",
62
64
  "verify:registry-drift": "node scripts/verify-registry-drift.mjs",
63
65
  "verify:starter-routes": "node scripts/verify-starter-routes.mjs",
@@ -68,11 +70,11 @@
68
70
  "test:unit": "vitest run"
69
71
  },
70
72
  "dependencies": {
71
- "@mano8/astro-ui-m8": "^1.5.1"
73
+ "@mano8/astro-ui-m8": "^1.5.3"
72
74
  },
73
75
  "peerDependencies": {
74
- "@astrojs/react": "^6.0.1",
75
- "@astrojs/starlight": "^0.41.3",
76
+ "@astrojs/react": "^6.0.1 || ^7.0.0",
77
+ "@astrojs/starlight": "^0.41.3 || ^0.42.0",
76
78
  "@tanstack/react-query": "^5.102.8",
77
79
  "astro": "^7.0.9",
78
80
  "react": "^18.0.0 || ^19.0.0",
@@ -80,24 +82,25 @@
80
82
  "zod": "^4.0.0"
81
83
  },
82
84
  "devDependencies": {
83
- "@astrojs/react": "^6.0.4",
84
- "@astrojs/starlight": "^0.41.10",
85
+ "@astrojs/react": "^7.0.0",
86
+ "@astrojs/starlight": "^0.42.4",
85
87
  "@eslint-react/eslint-plugin": "^5.18.6",
86
88
  "@eslint/js": "^10.0.1",
87
89
  "@tanstack/react-query": "^5.102.8",
88
90
  "@tanstack/react-table": "^8.21.3",
89
91
  "@types/node": "^26.4.0",
90
- "@types/react": "^19.2.18",
91
- "@typescript-eslint/eslint-plugin": "^8.68.0",
92
- "@typescript-eslint/parser": "^8.68.0",
92
+ "@types/react": "^19.3.0",
93
+ "@types/react-dom": "^19.3.0",
94
+ "@typescript-eslint/eslint-plugin": "^8.70.1",
95
+ "@typescript-eslint/parser": "^8.70.1",
93
96
  "@vitest/coverage-v8": "^4.1.11",
94
- "astro": "^7.2.9",
97
+ "astro": "^7.3.4",
95
98
  "eslint": "^10.9.1",
96
99
  "eslint-plugin-security": "^4.0.1",
97
- "globals": "^17.11.0",
100
+ "globals": "^17.12.0",
98
101
  "jsdom": "^30.0.1",
99
- "react": "^19.2.8",
100
- "react-dom": "^19.2.8",
102
+ "react": "^19.3.0",
103
+ "react-dom": "^19.3.0",
101
104
  "typescript": "^5.9.3",
102
105
  "vitest": "^4.1.11"
103
106
  },