corejavascript/typeahead.js

Deduplication of common/utils

Open

#165 aberto em 10 de out. de 2017

Ver no GitHub
 (2 comments) (0 reactions) (0 assignees)JavaScript (232 forks)batch import
enhancementhelp wanted

Métricas do repositório

Stars
 (956 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

Up until version 0.10.x, common/utils was shared by Bloodhound & Typeahead.

From version 0.11.x onwards, Bloodhound & Typeahead are defined as UMD modules, and each module has its own copy of common/utils. This results in unnecessary redundancy / bloat.

There's several solutions for this. Personally, I lean towards one of these options :

  • Put common/utils into a third module that is used as a dependency by both Bloodhound & Typeahead
  • Replace common/utils by two distinct util classes that are no longer shared between Bloodhound & Typeahead

What do you guys think about this?

Guia do colaborador