Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

min-dash

bpmn-io699.4kMIT4.2.3TypeScript support: included

Minimum utility toolbelt

lodash, utility, tool, belt

readme

min-dash

CI

Minimal utility tool belt to be used with bpmn.io related libraries.

Features

  • fine selection of powerful utilities on board
  • ES2015 compatible
  • complete bundle < 2 kB minified and gzipped
  • utilities optimized for speed (i.e. sorting and union only by key)

How to use

import {
  find,
  sortBy,
  assign
} from 'min-dash';

Your favourite module bundler should apply tree-shaking to only include the components your application requires. If you're using CommonJS modules give common-shake a try.

  • 1-liners - a slightly more opinionated collection of useful utilities
  • min-dom - minimal DOM utility toolbelt
  • tiny-svg - tiny SVG utility toolbelt

License

MIT

changelog

Changelog

All notable changes to min-dash are documented here. We use semantic versioning for releases.

Unreleased

_Note: Yet to be released changes appear here._

4.2.3

  • FIX: correct flatten type definitions (#38)

4.2.2

  • FIX: gracefully handle undefined target in has
  • FIX: correct findIndex type definitions (#36)

4.2.1

  • FIX: correct isNil and isArray type definitions (#35)

4.2.0

  • FEAT: add ESM package exports (#29)
  • FIX: correct various type definitions (#33)
  • FIX: allow type definitions to be consumed in ESM setups (#31)

4.1.1

  • FIX: correct pick and omit type definitions (#26)

4.1.0

  • FIX: various type definition fixes (#25)

4.0.0

  • FEAT: use ES2018

Breaking changes

  • The library exposes now ES2018 code. You have to transpile it yourself to support older (ES5) syntax.

3.8.1

  • FIX: prevent prototype pollution via set (#21)

3.8.0

  • FEAT: provide lodash-style cancel and flush on debounced function

3.7.0

  • FEAT: add get utility (#19)

3.6.1

  • FIX: correct set handling of 0 keys (#18)
  • FIX: correct set scaffolding on null values (#18)

3.6.0

  • FEAT: add set utility (#16)

3.5.2

  • FIX: prevent prototype pollution via merge

3.5.1

  • FIX: make every always return boolean value (#14)

3.5.0

  • FIX: make isFunction detect async functions and generators
  • FIX: correct bind TypeScript definitions
  • FIX: match forEach implementation with documentation
  • CHORE: bump to babel@7

3.4.0

  • CHORE: make debounce work without clearTimeout (#7)

3.3.0

  • FEAT: add throttle(fn, interval) util

3.2.0

  • FEAT: add isNil utility that checks for undefined || null
  • FIX: correct isDefined behavior
  • FIX: make isUndefined behavior

3.1.0

  • FEAT: add TypeScript definitions

3.0.0

Breaking Changes

  • FIX: remove browser field again; it confuses modern module bundlers. This partially reverts v2.4.0

2.4.0

  • CHORE: add browser field

2.3.0

  • FEAT: add omit(obj, properties) util

2.2.0

  • FEAT: add flatten(array) util

2.1.0

  • FEAT: add merge(target, ...sources) util
  • FEAT: add size(obj) util
  • FEAT: add has(obj, property) util
  • DOCS: improve utils documentation

2.0.0

Breaking Changes

  • FEAT: expose utilities via main export only (cb6ab757)

Other Improvements

  • CHORE: generate ES, CJS and UMD bundles using rollup
  • CHORE: babelify results and don't require Object.assign polyfill

...

Check git log for earlier history.