Repository navigation
docs(core): align Config#initDescriptor JSDoc with Config.prototype (#21017) - #21026
Conversation
…eomjs#21017) The initDescriptor @PARAM block still described the old descriptor defaults: cloneOnGet derived from clone and merge='deep'. At runtime Config.prototype sets cloneOnGet=null and mergeStrategy='replace', and merge also accepts a function. List the keys initDescriptor reads (clone, cloneOnGet, isEqual, merge stored as mergeStrategy) with their real types and defaults, describe what a null cloneOnGet does on read, and say runtime engine in the class header. JSDoc only.
neo-gemini-julia
left a comment
There was a problem hiding this comment.
PR Micro-Review
Opening: Thank you, @zuhairkhalid229 — specifically for verifying the generated getter branches in src/Neo.mjs (Date, cloneOnGet, and fallback Array.isArray) and matching the existing {String} / {Function|String} @member type style cleanly across comment-only changes. What Neo is; your change sits in Neo.core.Config; run it; next, a help-wanted issue. Your agent needs neither our Knowledge Base nor Memory Core — neo-agent-skills is on npm.
Class: micro — JSDoc alignment in src/core/Config.mjs (+7/-7, comment lines only) introducing no new architecture or runtime behavior.
Verdict: Approved
Glance: Claim is that #initDescriptor and class header JSDoc in src/core/Config.mjs align with Config.prototype and runtime getter/merge behavior without touching runtime code (Resolves #21017). Verified at head d80d4453912b2929a39ed8e40dd37b1416314390 against Config.prototype (clone: 'deep', cloneOnGet: null, isEqual: Neo.isEqual, mergeStrategy: 'replace'), src/Neo.mjs lines 387–409 & 713–738, and all 33 successful PR checks (including Engine Tests/unit and Engine Tests/components 1–3 after rerun 43724991545). Looked for any runtime edits, mismatched @member conventions, or missed stale defaults in Config#initDescriptor; found none.
Findings: None.
- Origin Session ID: 1f283c86-c55b-4aa5-a291-0cbb3786c302
- PR body attribution:
Authored by …is the only attribution; no harness-appended session backlink.
🏛️ Julia, Gemini, Antigravity
|
Merged. Thank you: this is your first merged pull request in Neo.mjs. Standing: Contributor (1 merged). 4 more reach Returning Contributor. Your badge, if you would like to show it, is written by a scheduled run that has not counted this merge yet. From then on it is at https://neomjs.com/badges/zuhairkhalid229-171748868/ in three forms to choose from, and the card's line shows it: Next, if you want one: #20735 (also See it run: the engine you changed runs live in the browser: https://neomjs.com/examples A star helps others find the project. |
Please make sure to read the Contributing Guidelines:
https://github.com/neomjs/neo/blob/dev/CONTRIBUTING.md
Does this PR resolve an issue? (Required)
Resolves #21017
What kind of change does this PR introduce? (check at least one)
Does this PR introduce a breaking change? (check one)
The PR fulfills this requirement:
devbranch, not themainbranchOther information:
JSDoc only, in
src/core/Config.mjs; no runtime line changes.initDescriptorsummary now names the keys it reads (clone,cloneOnGet,isEqual,merge, stored asmergeStrategy), and the@paramtags matchConfig.prototypeandsrc/Neo.mjs:clone='deep',cloneOnGet=null(with what a null value does on read:Datecloned,Arrayshallow-sliced, plain objects as-is),isEqual=Neo.isEqual,merge='replace'typed{Function|String}with'replace','shallow','deep','deepArrays'or a(defaultValue, instanceValue) => mergedfunction. Types use{String}like the@membertags above.git difftouches comment lines only, andnpx playwright test test/playwright/unit/config/ --config=test/playwright/playwright.config.unit.mjspasses (20 passed).I checked the getter behaviour against
src/Neo.mjs(theinstanceof Datebranch, thecloneOnGetopt-in branch and the legacyArray.isArrayslice) and the merge strategies againstNeo.mergeConfig.