Dev - #17
Merged
Merged
Conversation
merge()/clone()/omit*() silently dropped or corrupted data when the source value was itself an array, since it was unpacked as a list of multiple sources (or copied as a plain array-like object) instead of being treated as the array to clone. Also hardens isIterable/ isAsyncIterable to return false instead of throwing on non-object input, and fixes a mismatched validation error message in merge().
Both relied on `&&` short-circuiting, so isObject(null) returned null and isConstructor(arrowFn) returned undefined instead of false, even though their signatures declare a boolean/type-predicate return. Also adds missing test coverage for isObject/isPlainObject.
Adds docs/api.md as a single, verified reference covering every exported function, option, and edge case (with the docs-baseline block pinned to the current commit). Documents the new top-level array support in clone/omit*, corrects an inaccurate claim about updateErrorMessage using Error.captureStackTrace, and rewrites the top of the README with a features list, a runnable quick-start, and a link to the full reference.
…ainst The isObject/isConstructor strict-boolean fix landed after the docs were written but before they were committed, so the baseline should reference that commit rather than the one before it.
Adds project instructions for querying/updating the graphify graph, a "graph" npm script to refresh it, and ignores its output plus *.tsbuildinfo/.claude locally.
None of the public API (merge, clone/deepClone, omit*, the type guards) had doc comments, so consumers got no hover/IntelliSense help despite declaration+comments being emitted to the published .d.ts files. Adds full @param/@returns/@throws/@example coverage, plus docs for merge's namespace types (CallbackFn, CallbackContext, Options), and fixes two inaccuracies found along the way: a typo in updateErrorMessage's doc and a stray reference to a non-existent `NodeCallback` type in Options.deep. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.