Socket
Socket
Sign inDemoInstall

defu

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

defu - npm Package Versions

23

6.1.4

Diff

Changelog

Source

v6.1.4

compare changes

🩹 Fixes

  • Merge objects with Module type (#121)

💅 Refactors

  • Move isPlainObject to _utils to allow testing (e922a16)
  • Make isPlainObject logic more readable (e458b63)

📖 Documentation

🏡 Chore

✅ Tests

  • Improve tests for isPlainObject (b24a213)

❤️ Contributors

pi0
published 6.1.3 •

Changelog

Source

v6.1.3

compare changes

🩹 Fixes

  • Only merge plain objects (#111)

📖 Documentation

  • Update badges (581dd92)
  • Fix typo (#96)
  • Fix the result of the array merging (#99)
  • Fix typo (#107)

📦 Build

  • Backward compatible cjs entry (#110)

🏡 Chore

🎨 Styles

❤️ Contributors

pi0
published 6.1.2 •

Changelog

Source

v6.1.2

compare changes

🩹 Fixes

  • Add node16 compatible type declaration (#73)

🏡 Chore

  • Fix renovate config (#56)
  • Use changelogen to release (5e24124)

🎨 Styles

❤️ Contributors

pi0
published 6.1.1 •

Changelog

Source

6.1.1 (2022-11-14)

pi0
published 6.1.0 •

Changelog

Source

6.1.0 (2022-08-16)

Features

Bug Fixes

  • types: constrain inferred types of Defu (3d3ea3e)
pi0
published 6.0.1 •

Changelog

Source

6.0.1 (2022-08-16)

Bug Fixes

  • add typing to allow for non-objects input args (#42) (1f3a701)
  • merge object strings of many types (#44) (c7226f9)
pi0
published 6.0.0 •

Changelog

Source

6.0.0 (2022-03-21)

⚠ BREAKING CHANGES

  • Use named exports:
  • import defu from 'defu' => import { defu } from 'defu'
  • defu.fn => import { defuFn }
  • defu.arrayFn => import { defuArrayFn }
  • When merging input value with defaults with an array, order is reversed

Features

  • concat array defaults to the last (f6df314)
  • use named exports (4a8fc52)

Bug Fixes

pi0
published 5.0.2-alpha •

pi0
published 5.0.1 •

Changelog

Source

5.0.1 (2022-01-13)

pi0
published 5.0.0 •

Changelog

Source

5.0.0 (2021-05-12)

⚠ BREAKING CHANGES

  • undefined values will be bypassed and not consistent behavior with defaults-deep anymore.

Features

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc