Skip to content

Commit

Permalink
new patch version
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Mar 20, 2021
1 parent 89360be commit 90bebba
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this
project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]
## [0.16.2] - 2021-03-20
### Added
- New plugin `image` to resize images automatically.
- New (experimental and unstable) plugin `image` to resize images automatically.

### Fixed
- On merge options, arrays are converted to objects.

## [0.16.1] - 2021-03-14
### Fixed
Expand Down
2 changes: 1 addition & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import * as build from "./cli/build.js";
import * as run from "./cli/run.js";
import { error as printError } from "./utils.js";

export const version = "v0.16.1";
export const version = "v0.16.2";

const HELP = `
Docs: https://lumeland.github.io/
Expand Down
5 changes: 4 additions & 1 deletion utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ export function merge(defaults, user) {
}

for (const [key, value] of Object.entries(user)) {
if (typeof merged[key] === "object" && typeof value === "object" && !Array.isArray(merged[key])) {
if (
typeof merged[key] === "object" && typeof value === "object" &&
!Array.isArray(merged[key])
) {
merged[key] = merge(merged[key], value);
continue;
}
Expand Down

0 comments on commit 90bebba

Please sign in to comment.