@ultimat3/manifest 31.47.1 → 31.49.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.
Files changed (2) hide show
  1. package/package.json +8 -8
  2. package/src/build.ts +6 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultimat3/manifest",
3
- "version": "31.47.1",
3
+ "version": "31.49.0",
4
4
  "description": "x.manifest.json: deterministic generated facts, contract diff, AGENTS.md budget",
5
5
  "keywords": [
6
6
  "ultimate",
@@ -43,12 +43,12 @@
43
43
  "test": "bun test"
44
44
  },
45
45
  "dependencies": {
46
- "@ultimat3/action": "31.47.1",
47
- "@ultimat3/core": "31.47.1",
48
- "@ultimat3/entity": "31.47.1",
49
- "@ultimat3/jobs": "31.47.1",
50
- "@ultimat3/query": "31.47.1",
51
- "@ultimat3/realtime": "31.47.1",
52
- "@ultimat3/schema": "31.47.1"
46
+ "@ultimat3/action": "31.49.0",
47
+ "@ultimat3/core": "31.49.0",
48
+ "@ultimat3/entity": "31.49.0",
49
+ "@ultimat3/jobs": "31.49.0",
50
+ "@ultimat3/query": "31.49.0",
51
+ "@ultimat3/realtime": "31.49.0",
52
+ "@ultimat3/schema": "31.49.0"
53
53
  }
54
54
  }
package/src/build.ts CHANGED
@@ -101,7 +101,7 @@ export function buildManifest(sources: ManifestSources): Manifest {
101
101
  ...channels.flatMap((c) => c.permissions),
102
102
  ]);
103
103
 
104
- const body = {
104
+ const declared = {
105
105
  manifestVersion: MANIFEST_VERSION,
106
106
  app: sources.app,
107
107
  routes,
@@ -125,7 +125,11 @@ export function buildManifest(sources: ManifestSources): Manifest {
125
125
  };
126
126
 
127
127
  // Before the hash: a fact the written file cannot hold must never get a buildId at all.
128
- assertFiniteFacts(body, '');
128
+ assertFiniteFacts(declared, '');
129
+ // What the FILE will hold, and so what is hashed: a schema default reaches a fact verbatim, and
130
+ // `JSON.stringify` writes a `Date` as a string, a sparse slot as `null` and drops an `undefined`
131
+ // member — hashed as declared, a freshly written manifest failed its own buildId on read-back.
132
+ const body: typeof declared = JSON.parse(JSON.stringify(declared));
129
133
  // The build id is `@ultimat3/core`'s `fingerprint` of the body — SHA-256/16 over the same
130
134
  // INJECTIVE `canonicalJson` the diff compares on, so a fact that changed cannot hash the same as
131
135
  // the fact it replaced — and deliberately excludes `buildId` itself. A HASH, never the published