Skip to content

Commit df1ae02

Browse files
committed
refactor(objectql): move the find and findOne bodies into the find facet
codemod-split-engine --members find,findOne on main 5f00374, proved by its byte-exact undo; the two facade-delegation exception rows go with them. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017ihL2fL8RrJDkowuFhXUPG
1 parent 5f00374 commit df1ae02

4 files changed

Lines changed: 490 additions & 431 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
'@objectstack/objectql': patch
3+
---
4+
5+
refactor(objectql): the `ObjectQL#find` and `ObjectQL#findOne` bodies move into the find facet
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
- The bodies of `find` and `findOne` move out of `engine.ts` into `engine-find.ts`, the facet that already holds their read helpers. Each method stays on the class as a one-call stub with its signature and its docblock. Where a body handed the engine itself on (`ql: this` in the before/after hook context), it reads the same engine through the host's `facade` entry.
11+
- No behaviour changes and nothing to do on upgrade. The built declaration files keep every member and every docblock; the source maps move.

0 commit comments

Comments
 (0)