mapbox / mapbox/mapbox-gl-draw

Replace hat module to another implementation.

Open
#1,139 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

refactor
Dominant language
JavaScript
Stars
1.1k
Forks
612
Avg merge
8d 9h
Merged PRs (30d)
5

Description

Hi,
The mapbox-gl-draw depends on hat 0.0.3. The hat module is licensed MIT/X11 shown in [www.npmjs.com/package/hat.](https://www.npmjs.com/package/hat)

MIT/X11 license must comply with the following statement,
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

However, at this moment,

1. The upstream of hat [(github.com/substack/node-hat)](https://github.com/substack/node-hat) is gone.
2. The installed module of the hat by npm doesn't include any copyright notice or permission notice.

Then currently, no one can comply with the license of the hat module anymore. Therefore, the mapbox-gl-draw shouldn't depend on the hat module or replace another implementation with the appropriate license.

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

Start by locating the hat dependency in the package metadata and searching the codebase for its usages. Check the existing test setup before changing the dependency, and consider the work complete when hat is no longer required, its behavior remains covered by tests, and the replacement has an appropriate license.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 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.