Skip to content

Conversation

@webdeveric
Copy link
Owner

  • Added get()
  • Updated dependencies

@webdeveric webdeveric requested a review from Copilot July 14, 2025 22:31
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces a new get() utility for retrieving nested values by dot/bracket path, enhances the type helpers to support key and path value extraction, updates tests around arrays and objects, adds pathParts() for parsing path segments, and bumps compiler settings and dependencies.

  • Added get() function and its accompanying tests.
  • Introduced/refined type helpers (ValidKeys, GetValueForKey, PathValue, IfArray/IfArrayLike, IfTuple).
  • Updated TS configs (tsconfig.mjs.json, tsconfig.base.json) and bumped dev dependencies in package.json.

Reviewed Changes

Copilot reviewed 13 out of 14 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tsconfig.mjs.json Removed explicit Node16 module settings
tsconfig.base.json Bumped lib to ES2023 and module target to NodeNext
test/types/arrays.test-d.ts Updated IfArray test case
test/types/objects.test-d.ts Added tests for new get()-related types
test/pathParts.test.ts New tests for pathParts() parser
test/get.test.ts Tests for the new get() function
src/types/tuples.ts Added IfTuple/IsTuple type helpers
src/types/objects.ts Refined ValidKeys, Path, and PathValue types
src/types/arrays.ts Refined IfArray/IfArrayLike and array helpers
src/pathParts.ts Implemented pathParts() generator
src/get.ts Implemented get() function with overloads
src/index.ts Exported get and pathParts
package.json Bumped packageManager and dev dependency versions

@webdeveric webdeveric merged commit 7abf979 into master Jul 18, 2025
4 checks passed
@webdeveric webdeveric deleted the dev branch July 18, 2025 13:07
@github-actions
Copy link

🎉 This PR is included in version 0.68.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants