documentcloud / documentcloud/underscore-contrib

Make string path shorthands consistent and opt-in

Open
#233 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

after modules docs enhancement
Dominant language
JavaScript
Stars
622
Forks
114
PR merge metrics
No merged PRs in 30d

Description

Following up on #231, https://github.com/jashkenas/underscore/pull/2877 and #220 (stage 4):

  • Turn the internal keysFromPath function into a public function that can optionally be used to override the new _.toPath function in the upcoming core Underscore 1.12.
  • In all functions that work with paths, use the new _.get from core Underscore 1.12.
  • Update the documentation to reflect that path behavior is configurable from a single point of truth.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read the context in #231, pull request #2877, and #220 before tracing the internal keysFromPath function and the path-handling functions. Check how the upcoming core Underscore 1.12 _.toPath and _.get APIs are expected to integrate. Done means an optional public path override, consistent use of _.get, and documentation describing one configurable source of truth.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.