A tiny (~500B) JavaScript library that allows you to set default values for nested objects
MIT License
Bot releases are visible (Hide)
Now mergeArrays configuration option also merges the objects inside the arrays.
{ someArray: [ {a: 1} , { c: 2 }] }
{ someArray: [ {b: 3} ] }
{ someArray: [ {a: 1, b: 3}, {c: 2} ] }
Full Changelog: https://github.com/aralroca/default-composer/compare/0.5.4...0.6.0
Published by aralroca 11 months ago
Full Changelog: https://github.com/aralroca/default-composer/compare/0.5.3...0.5.4
Published by aralroca 11 months ago
Published by aralroca 11 months ago
Full Changelog: https://github.com/aralroca/default-composer/compare/0.5.1...0.5.2
Published by aralroca over 1 year ago
Full Changelog: https://github.com/aralroca/default-composer/compare/0.5.0...0.5.1
Published by aralroca over 1 year ago
Full Changelog: https://github.com/aralroca/default-composer/compare/0.4.1...0.5.0
Published by aralroca over 1 year ago
Full Changelog: https://github.com/aralroca/default-composer/compare/0.4.0...0.4.1
Published by aralroca over 1 year ago
Full Changelog: https://github.com/aralroca/default-composer/compare/0.3.1...0.4.0
Published by aralroca over 1 year ago
Full Changelog: https://github.com/aralroca/default-composer/compare/0.3.0...0.3.1
Published by aralroca over 1 year ago
Change setConfig({ emptyChecker })
to setConfig({ isDefaultableValue })
Full Changelog: https://github.com/aralroca/default-composer/compare/0.2.0...0.3.0
Published by aralroca over 1 year ago
Instead of:
import defaultComposer from "default-composer";
You can do:
import { defaultComposer, setConfig } from "default-composer";
Full Changelog: https://github.com/aralroca/default-composer/compare/0.1.3...0.2.0
Published by aralroca over 1 year ago
Published by aralroca over 1 year ago
Full Changelog: https://github.com/aralroca/default-composer/compare/0.1.1...0.1.2
Published by aralroca over 1 year ago
Full Changelog: https://github.com/aralroca/default-composer/compare/0.1.0...0.1.1
Published by aralroca over 1 year ago
Full Changelog: https://github.com/aralroca/default-composer/commits/0.1.0