Skip to content

Modernize params serialization#1612

Draft
ottenhoff wants to merge 1 commit into
jcputney:masterfrom
ottenhoff:codex/modernize-param-serialization
Draft

Modernize params serialization#1612
ottenhoff wants to merge 1 commit into
jcputney:masterfrom
ottenhoff:codex/modernize-param-serialization

Conversation

@ottenhoff

@ottenhoff ottenhoff commented Jul 3, 2026

Copy link
Copy Markdown

What changed

Replaced the older for...in plus hasOwnProperty.call loops used for dataCommitFormat: "params" with Object.entries(...).map(...) in both SCORM 1.2 and SCORM 2004 commit serialization.

Also reuses the already-computed flattened SCORM 2004 commit object instead of calling flatten a second time.

Why

Remove older defensive iteration code from a small serialization path.

@ottenhoff ottenhoff changed the title [codex] Modernize params serialization Modernize params serialization Jul 3, 2026
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.

1 participant