Commit 85d21f6
authored
deprecate uni-require, and fix its stale repository metadata (#14)
The repo was renamed `uni-require` → `esm-plus`, but
`packages/uni-require/package.json` still names the old path in
`homepage`, `bugs` and `repository`.
**This blocks the next publish.** npm verifies the sigstore provenance
bundle against `repository.url`, and the trusted publisher for
`uni-require` was re-registered against `cyberuni/esm-plus` on
2026-09-03. The banked `1.0.1` would have failed with:
```
E422 Unprocessable Entity - Error verifying sigstore provenance bundle:
Failed to validate repository information
```
Same fault that blocked `jest-watch-suspend` earlier today, reached by a
**rename** rather than a transfer. It hides the same way: GitHub
redirects the old repo path indefinitely, so the value looks valid in a
browser, in `gh`, and in `npm view` — it is only ever checked at
publish, against the OIDC claim.
`CHANGELOG.md` is deliberately untouched: historical release records
whose links still resolve through the redirect.
## Not in this PR
A separate, more serious bug exists in this package and needs a design
decision — `createRequire(import.meta.url)` in `index.js` and `const
uniRequire = require` in `index.cjs` are both bound to **uni-require's
own module scope**, not the caller's, so `uniRequire.resolve()` resolves
from the wrong place. That is the feature the README names as the
package's main benefit. Raised separately.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01ETjy9oQGyETyFmDBdR9Egz2 files changed
Lines changed: 36 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
3 | 36 | | |
4 | 37 | | |
5 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
0 commit comments