@fitzzero/quickdraw-lint 5.1.1 → 5.1.2
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/package.json
CHANGED
|
@@ -116,7 +116,7 @@ export default {
|
|
|
116
116
|
keylessInput:
|
|
117
117
|
"`todoSchema()` is a placeholder left by the 4.x migration: it validates nothing, so any value passes as its type. " +
|
|
118
118
|
"Without `keys`, it also hides this input's keys from defineService's id-reach (rowless) check, " +
|
|
119
|
-
"which refuses an `id` input under an access form that
|
|
119
|
+
"which refuses an `id` input under an access form that asks the policy nothing about the row it names; give it keys " +
|
|
120
120
|
'(`todoSchema<T>({ keys: ["id", ...] })`) until a real schema (Zod 4.2 or later) replaces it.',
|
|
121
121
|
},
|
|
122
122
|
schema: [],
|
|
@@ -17,7 +17,7 @@ const MCP = "@fitzzero/quickdraw-core/server/mcp";
|
|
|
17
17
|
const METHODS =
|
|
18
18
|
"Declare methods in a contract (`defineContract(name, { methods: { name: query({ input, output }) } })`), type them with `InputOf<C, M>` and `OutputOf<C, M>`, and implement them as `{ access, handler({ input, ctx, db }) }`.";
|
|
19
19
|
const CHANNELS =
|
|
20
|
-
"Declare channels in the contract (`channels: { name: { payload } }`), handle them in `qd.defineService(contract, { channels })`, and send with `qd.<service>.<channel>.useChannel()`.";
|
|
20
|
+
"Declare channels in the contract (`channels: { name: { payload, requires } }`, where `requires` names what the sender must hold, such as `{ room }`), handle them in `qd.defineService(contract, { channels })`, and send with `qd.<service>.<channel>.useChannel()`.";
|
|
21
21
|
const EVENTS =
|
|
22
22
|
"Declare room events in the contract (`events: { name: { payload } }`), send them with `ctx.rooms.emit(room, contract, event, payload)`, and listen with `qd.<service>.<event>.useEvent(handler)`.";
|
|
23
23
|
const ADMIN_TYPES =
|