@stonyx/orm 0.3.2-alpha.78 → 0.3.2-alpha.79

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.
@@ -1339,10 +1339,17 @@ export default class OrmRequest extends Request {
1339
1339
  // are reading this after #247 landed, the filtering below is #232's and
1340
1340
  // this note records why it was never #235's to add.
1341
1341
  //
1342
- // The three sites #235 does own (`buildResponse`'s `included`, the
1343
- // related-resource branch above, and the two write handlers) all reach
1344
- // the filter through `record.toJSON()`, which is where the `linkage`
1345
- // OPTION is applied. This branch builds its `{ type, id }` objects BY
1342
+ // The three sites #235 does own -- `buildResponse`'s `included`, and the
1343
+ // two write handlers, `POST /:models` and `PATCH /:models/:id` -- all
1344
+ // reach the filter through `record.toJSON()`, which is where the
1345
+ // `linkage` OPTION is applied.
1346
+ //
1347
+ // The related-resource branch above ALSO passes a `linkage` filter, and
1348
+ // it is NOT one of those three: it is abofs/stonyx-orm#234's code and
1349
+ // predates this change. `git diff 8dda5d6..HEAD -- src/orm-request.ts`
1350
+ // leaves that branch byte-unchanged.
1351
+ //
1352
+ // This branch builds its `{ type, id }` objects BY
1346
1353
  // HAND and never calls `toJSON` at all, so the `linkage` option cannot
1347
1354
  // reach it -- whatever this route filters, it has to filter itself, which
1348
1355
  // is precisely why doing so is a separate change with a separate owner.
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "stonyx-async",
5
5
  "stonyx-module"
6
6
  ],
7
- "version": "0.3.2-alpha.78",
7
+ "version": "0.3.2-alpha.79",
8
8
  "description": "",
9
9
  "main": "dist/index.js",
10
10
  "type": "module",
@@ -1460,10 +1460,17 @@ export default class OrmRequest extends Request {
1460
1460
  // are reading this after #247 landed, the filtering below is #232's and
1461
1461
  // this note records why it was never #235's to add.
1462
1462
  //
1463
- // The three sites #235 does own (`buildResponse`'s `included`, the
1464
- // related-resource branch above, and the two write handlers) all reach
1465
- // the filter through `record.toJSON()`, which is where the `linkage`
1466
- // OPTION is applied. This branch builds its `{ type, id }` objects BY
1463
+ // The three sites #235 does own -- `buildResponse`'s `included`, and the
1464
+ // two write handlers, `POST /:models` and `PATCH /:models/:id` -- all
1465
+ // reach the filter through `record.toJSON()`, which is where the
1466
+ // `linkage` OPTION is applied.
1467
+ //
1468
+ // The related-resource branch above ALSO passes a `linkage` filter, and
1469
+ // it is NOT one of those three: it is abofs/stonyx-orm#234's code and
1470
+ // predates this change. `git diff 8dda5d6..HEAD -- src/orm-request.ts`
1471
+ // leaves that branch byte-unchanged.
1472
+ //
1473
+ // This branch builds its `{ type, id }` objects BY
1467
1474
  // HAND and never calls `toJSON` at all, so the `linkage` option cannot
1468
1475
  // reach it -- whatever this route filters, it has to filter itself, which
1469
1476
  // is precisely why doing so is a separate change with a separate owner.