Skip to content

Commit 6e747c4

Browse files
committed
config: fix json overrides (#77)
- doc(README): fix hjson link (#78)
1 parent 4178b8d commit 6e747c4

File tree

7 files changed

+14
-6
lines changed

7 files changed

+14
-6
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ jobs:
2222
uses: haraka/.github/.github/workflows/windows.yml@master
2323

2424
macos:
25-
uses: haraka/.github/.github/workflows/macos.yml@master
25+
uses: haraka/.github/.github/workflows/macos.yml@master

.release

Submodule .release updated 1 file

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
44

55
### Unreleased
66

7+
### [1.4.0] - 2024-05-12
8+
9+
- doc(README): fix hjson link (#78)
10+
- config: fix json overrides (#77)
11+
712
### [1.3.0] - 2024-05-02
813

914
- feat: getDir is now recursive
@@ -137,5 +142,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
137142
[1.2.0]: https://github.com/haraka/haraka-config/releases/tag/v1.2.0
138143
[1.2.1]: https://github.com/haraka/haraka-config/releases/tag/v1.2.1
139144
[1.2.2]: https://github.com/haraka/haraka-config/releases/tag/v1.2.2
145+
[1.2.3]: https://github.com/haraka/haraka-config/releases/tag/v1.2.3
140146
[1.2.4]: https://github.com/haraka/haraka-config/releases/tag/v1.2.4
141147
[1.3.0]: https://github.com/haraka/haraka-config/releases/tag/v1.3.0
148+
[1.4.0]: https://github.com/haraka/haraka-config/releases/tag/v1.4.0

CONTRIBUTORS.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This handcrafted artisinal software is brought to you by:
44

5-
| <img height="80" src="https://avatars.githubusercontent.com/u/261635?v=4"><br><a href="https://github.com/msimerson">msimerson</a> (<a href="https://github.com/haraka/haraka-config/commits?author=msimerson">57</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/42121756?v=4"><br><a href="https://github.com/PSSGCSim">PSSGCSim</a> (<a href="https://github.com/haraka/haraka-config/commits?author=PSSGCSim">7</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/662371?v=4"><br><a href="https://github.com/baudehlo">baudehlo</a> (<a href="https://github.com/haraka/haraka-config/commits?author=baudehlo">1</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/651048?v=4"><br><a href="https://github.com/Wesitos">Wesitos</a> (<a href="https://github.com/haraka/haraka-config/commits?author=Wesitos">1</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/2270015?v=4"><br><a href="https://github.com/oreoluwa">oreoluwa</a> (<a href="https://github.com/haraka/haraka-config/commits?author=oreoluwa">1</a>) |
6-
| :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
5+
| <img height="80" src="https://avatars.githubusercontent.com/u/261635?v=4"><br><a href="https://github.com/msimerson">msimerson</a> (<a href="https://github.com/haraka/haraka-config/commits?author=msimerson">58</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/42121756?v=4"><br><a href="https://github.com/PSSGCSim">PSSGCSim</a> (<a href="https://github.com/haraka/haraka-config/commits?author=PSSGCSim">7</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/1346804?v=4"><br><a href="https://github.com/louis-lau">louis-lau</a> (<a href="https://github.com/haraka/haraka-config/commits?author=louis-lau">2</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/662371?v=4"><br><a href="https://github.com/baudehlo">baudehlo</a> (<a href="https://github.com/haraka/haraka-config/commits?author=baudehlo">1</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/651048?v=4"><br><a href="https://github.com/Wesitos">Wesitos</a> (<a href="https://github.com/haraka/haraka-config/commits?author=Wesitos">1</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/2270015?v=4"><br><a href="https://github.com/oreoluwa">oreoluwa</a> (<a href="https://github.com/haraka/haraka-config/commits?author=oreoluwa">1</a>) |
6+
| :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
77

88
<sub>this file is maintained by [.release](https://github.com/msimerson/.release)</sub>

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ These are as you would expect, and returns an object as given in the file.
245245
If a requested .json or .hjson file does not exist then the same file will be checked for with a .yaml extension and that will be loaded instead. This is done because YAML files are far easier for a human to write.
246246

247247
### <a name="json-overrides">JSON Overrides</a>
248+
248249
You can use JSON, HJSON or YAML files to override any other file by prefixing the outer variable name with a `!` e.g.
249250

250251
```js

config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,4 +159,4 @@ function merge_struct(defaults, overrides) {
159159
}
160160

161161
// JSON overrides needs smtp.(json|yaml) loaded early
162-
module.exports.get('smtp.json');
162+
module.exports.get('smtp.json')

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "haraka-config",
44
"license": "MIT",
55
"description": "Haraka's config file loader",
6-
"version": "1.3.0",
6+
"version": "1.4.0",
77
"homepage": "http://haraka.github.io",
88
"repository": {
99
"type": "git",

0 commit comments

Comments
 (0)