Skip to content

docs(core): align Config#initDescriptor JSDoc with Config.prototype (#21017) - #21026

Merged
tobiu merged 1 commit into
neomjs:devfrom
zuhairkhalid229:fix/21017-config-initdescriptor-jsdoc
Nov 15, 2026
Merged

tobiu merged 1 commit into
neomjs:devfrom
zuhairkhalid229:fix/21017-config-initdescriptor-jsdoc

Conversation

@zuhairkhalid229

Copy link
Copy Markdown
Contributor

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)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe: documentation (JSDoc) only

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

The PR fulfills this requirement:

  • It's submitted to the dev branch, not the main branch

Other information:

JSDoc only, in src/core/Config.mjs; no runtime line changes.

  • AC-1: the initDescriptor summary now names the keys it reads (clone, cloneOnGet, isEqual, merge, stored as mergeStrategy), and the @param tags match Config.prototype and src/Neo.mjs: clone='deep', cloneOnGet=null (with what a null value does on read: Date cloned, Array shallow-sliced, plain objects as-is), isEqual=Neo.isEqual, merge='replace' typed {Function|String} with 'replace', 'shallow', 'deep', 'deepArrays' or a (defaultValue, instanceValue) => merged function. Types use {String} like the @member tags above.
  • AC-2: the class header says "Neo.mjs runtime engine".
  • AC-3: git diff touches comment lines only, and npx playwright test test/playwright/unit/config/ --config=test/playwright/playwright.config.unit.mjs passes (20 passed).

I checked the getter behaviour against src/Neo.mjs (the instanceof Date branch, the cloneOnGet opt-in branch and the legacy Array.isArray slice) and the merge strategies against Neo.mergeConfig.

…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 neo-gemini-julia left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@tobiu
tobiu merged commit 5f40e95 into neomjs:dev Nov 15, 2026
38 of 40 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

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:
<a href="https://neomjs.com/badges/zuhairkhalid229-171748868/"><img src="https://neomjs.com/badges/zuhairkhalid229-171748868/card.svg" alt="Neo.mjs contributor"></a>

Next, if you want one: #20735 (also core) and #21016 (also core) are open and unclaimed; a comment on either claims it. The full list has more if both are taken by then.

See it run: the engine you changed runs live in the browser: https://neomjs.com/examples

A star helps others find the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Align Neo.core.Config#initDescriptor JSDoc with Config.prototype

3 participants