@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.
- package/dist/orm-request.js +11 -4
- package/package.json +1 -1
- package/src/orm-request.ts +11 -4
package/dist/orm-request.js
CHANGED
|
@@ -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
|
|
1343
|
-
//
|
|
1344
|
-
// the filter through `record.toJSON()`, which is where the
|
|
1345
|
-
// OPTION is applied.
|
|
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
package/src/orm-request.ts
CHANGED
|
@@ -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
|
|
1464
|
-
//
|
|
1465
|
-
// the filter through `record.toJSON()`, which is where the
|
|
1466
|
-
// OPTION is applied.
|
|
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.
|