@voxgig/apidef 8.2.0 → 8.2.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/model/apidef.aon +15 -10
  2. package/package.json +1 -1
package/model/apidef.aon CHANGED
@@ -128,17 +128,22 @@ main: kit: entity: &: {
128
128
  var?: string
129
129
  } ]
130
130
 
131
- # MIGRATION TOMBSTONE for the `parts` field segments replace.
131
+ # NO TOMBSTONE FOR `parts` HERE, and this is load-bearing.
132
132
  #
133
- # A point object is open, so a model file generated by apidef <= 8.1 —
134
- # one checked in under a project's `.sdk/model/` — would otherwise
135
- # unify cleanly, carry its `parts` along as an undeclared extra, and
136
- # take the empty default for `segments`. Every request would then go to
137
- # the API ROOT: a silently wrong URL, which is the exact failure ADR-003
138
- # exists to remove. `null` conflicts with any concrete value, so such a
139
- # model fails to unify and names `...points.N.parts` as the path.
140
- # Regenerate the model to fix it.
141
- parts?: null
133
+ # 8.2.0 declared `parts?: null` so that a model generated by apidef
134
+ # <= 8.1 would fail to unify rather than take the empty `segments`
135
+ # default and send every request to the API root. It caught exactly
136
+ # that, and it also BRICKED the upgrade: a project's checked-in
137
+ # `.sdk/model/entity/*.aon` IS the input to the tool that rewrites it,
138
+ # and voxgig-model unifies before it runs apidef's build. So the stale
139
+ # file blocked the regeneration that would have removed it, with no
140
+ # supported way out — `voxgig-apidef` is still a stub.
141
+ #
142
+ # A schema cannot police its own migration. The guard belongs where a
143
+ # stale point would actually do harm: sdkgen reads the path through one
144
+ # helper, and that helper refuses a point carrying `parts` and no
145
+ # `segments`. Same defect caught, at generation time, without
146
+ # deadlocking the regeneration.
142
147
 
143
148
  # GraphQL wire data: the precomputed operation document plus the
144
149
  # variable bindings and (for list ops) the pagination descriptor.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voxgig/apidef",
3
- "version": "8.2.0",
3
+ "version": "8.2.1",
4
4
  "main": "dist/apidef.js",
5
5
  "type": "commonjs",
6
6
  "types": "dist/apidef.d.ts",