Commit bccdf6c
committed
refactor(metadata): drop the dead @objectstack/platform-objects dependency
The retired `adr-0030-notification-event` migration runner was the only consumer.
Nothing under `packages/metadata/src` carries a `@objectstack/platform-objects`
specifier any more, so the manifest declared an edge the package no longer has.
Removed together, because all three exist only to serve that one dead edge:
- `package.json` — the `dependencies` entry
- `vitest.config.ts` — the `@objectstack/platform-objects/system` alias, whose
own comment cited the retired migration's receipt cases as its reason
- `tsconfig.json` — the matching `paths` mapping
`pnpm-lock.yaml` travels in this commit, regenerated with `pnpm install
--lockfile-only` rather than hand-edited. Its entire diff is the three lines of
the one removed edge under the `packages/metadata` importer; a manifest edit
without it fails `ERR_PNPM_OUTDATED_LOCKFILE` at every job's install step.
Dropping a published package's dependency is a public-surface change, so it was
established rather than assumed that nothing resolves it through this package:
- `@objectstack/metadata`'s built `dist/` (30 files, 10 declaration files)
contains ZERO occurrences of `platform-objects`, against a positive control
in which all nine other declared dependencies appear in 4-12 dist files
each. No runtime import and no type reference reaches it.
- Of the 23 workspace packages carrying a real `@objectstack/platform-objects`
module specifier, all 23 declare it themselves; zero resolve it
transitively. `check:undeclared-dep-imports` is the standing gate that keeps
that true for non-test `src/**`.
- Zero example apps reference it at all.
`@objectstack/platform-objects` publishes on its own, so a consumer that wants
it declares it directly — the supported spelling, unchanged.
Claude-Session: https://claude.ai/code/session_01DvvamiacK328idtBYJBxV3
Co-authored-by: Claude <noreply@anthropic.com>1 parent 797caf0 commit bccdf6c
5 files changed
Lines changed: 40 additions & 20 deletions
File tree
- .changeset
- packages/metadata
Lines changed: 39 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 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 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | 86 | | |
88 | 87 | | |
89 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 16 | + | |
20 | 17 | | |
21 | 18 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | 46 | | |
59 | 47 | | |
60 | 48 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments