Skip to content

Commit

Permalink
Release v1.2.0 (#71)
Browse files Browse the repository at this point in the history
- feat: getDir can parse different types of files in a dir
- feat: all file readers now have load and loadPromise, so a feature
like getDir can safely use the promise API
- chore: require syntax, prefix node builtins with `node:`
- moved configfile -> lib/reader
- moved readers/  -> lib/readers
- refactored regex lib to lib/regex
- refactored watch functions into lib/watch
- es6
  - add several uses of `...` (spread operator / param collection)
  - replace `for i` with `for ... of`
  - consolidate all cases of type detection into configfile.getType
  - replace `new Promise` with async/await
  - use shortened array function syntax
- ci: update to shared haraka/.github
- dep: eslint-plugin-haraka -> @haraka/eslint-config
- lint: remove duplicate / stale rules from .eslintrc
- package.json: populate [files]
- deps: version bumps
  • Loading branch information
msimerson authored Apr 24, 2024
1 parent eb3cd48 commit aad4576
Show file tree
Hide file tree
Showing 50 changed files with 2,092 additions and 2,175 deletions.
8 changes: 4 additions & 4 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
engines:
eslint:
enabled: true
channel: "eslint-6"
channel: 'eslint-6'
config:
config: ".eslintrc.yaml"
config: '.eslintrc.yaml'

ratings:
paths:
- "**.js"
paths:
- '**.js'
13 changes: 2 additions & 11 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,6 @@ env:
node: true
es6: true
mocha: true
es2022: true

plugins:
- haraka

extends: [ "eslint:recommended", "plugin:haraka/recommended" ]

root: true

rules:
indent: [2, 4, {"SwitchCase": 1}]
no-console: 0
no-unused-vars: 1
extends: ['@haraka']
6 changes: 3 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
- package-ecosystem: 'npm' # See documentation for possible values
directory: '/' # Location of package manifests
schedule:
interval: "daily"
interval: 'daily'
31 changes: 7 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: CI

on:
push:
pull_request:

env:
CI: true
Expand All @@ -14,28 +15,10 @@ jobs:
uses: haraka/.github/.github/workflows/coverage.yml@master
secrets: inherit

test:
needs: lint
runs-on: ${{ matrix.os }}
# services:
# redis:
# image: redis
# ports:
# - 6379:6379
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
node-version: [ 14, 16, 18 ]
fail-fast: false
ubuntu:
needs: [lint]
uses: haraka/.github/.github/workflows/ubuntu.yml@master

steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
name: Node ${{ matrix.node-version }} on ${{ matrix.os }}
with:
node-version: ${{ matrix.node-version }}

- run: npm install

- run: npm test
windows:
needs: [lint]
uses: haraka/.github/.github/workflows/windows.yml@master
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: CodeQL

on:
push:
branches: [ master ]
branches: [master]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
branches: [master]
schedule:
- cron: '18 7 * * 4'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ env:
jobs:
publish:
uses: haraka/.github/.github/workflows/publish.yml@master
secrets: inherit
secrets: inherit
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule ".release"]
path = .release
url = [email protected]:msimerson/.release.git
2 changes: 2 additions & 0 deletions .prettierrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
singleQuote: true
semi: false
1 change: 1 addition & 0 deletions .release
Submodule .release added at 36bb27
52 changes: 29 additions & 23 deletions Changes.md → CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,37 @@

## NEXT - 202Y-MM-DD


### 1.1.0 - 2022-05-27
### Unreleased

### [1.2.0] - 2024-04-14

- feat: getDir can parse different types of files in a dir
- feat: all file readers now have load and loadPromise, so that
a feature like getDir can safely use the nicer promise API
- chore: require syntax, prefix node builtins with `node:`
- moved configfile -> lib/reader
- moved readers/ -> lib/readers
- refactored regex lib to lib/regex
- refactored watch functions into lib/watch
- es6
- add several uses of `...` (spread operator / param collection)
- replace `for i` with `for ... of`
- consolidate all cases of type detection into configfile.getType
- replace `new Promise` with async/await
- use shortened array function syntax
- ci: update to shared haraka/.github
- dep: eslint-plugin-haraka -> @haraka/eslint-config
- lint: remove duplicate / stale rules from .eslintrc
- package.json: populate [files]
- deps: version bumps

### [1.1.0] - 2022-05-27

- chore(ci): depend on shared GHA workflows
- chore(dep): eslint 6 -> 8
- chore(dep): mocha 8 -> 9


### 1.0.20 - 2021-09-01

- chore(dep): update YAML 3.13 -> 4.1 (#65)


### 1.0.19 - 2021-06-10

- configfile: disable watch dir when platform not mac or win
Expand All @@ -22,12 +40,10 @@
- configfile: use simpler es6 `for..in` and `for..of`
- getDir tests, use os.EOL for comparison


### 1.0.18 - 2019-10-11

- add support for loading `.js` configurations


### 1.0.17 - 2018-12-19

- refactor ./config.js as an es6 class
Expand All @@ -36,13 +52,11 @@
- watch: recursive=true
- permit retrieval of fully qualified path


### 1.0.16 - 2018-11-02

- remove trailing ; from function declarations
- add config.getInt(filename, default_value)


### 1.0.15 - 2017-09-21

- additional test for 'missing json loads yaml'
Expand All @@ -51,35 +65,29 @@
- configs w/o .ext or declared type default to flat
- add test for json/yaml !filename overloads


### 1.0.14 - 2017-09-19

- add __dirname/../../config to config_dir_candidates for haraka/Haraka/tests/*
- add \_\_dirname/../../config to config_dir_candidates for haraka/Haraka/tests/\*
- sync process.env.HARAKA_TEST_DIR from haraka/Haraka/config
- eslint no-var updates #25


### 1.0.13 - 2017-06-16

- lint updates for eslint 4


### 1.0.12 - 2017-05-21

- unref() the setInterval so that Haraka can gracefully exit


### 1.0.11 - 2017-03-04

- add config.getDir, loads all files in a directory


### 1.0.10 - 2017-02-05

- log error vs throw on bad YAML
- fix appveyor badge URL


### 1.0.9 - 2017-01-27

- config cache fix (see haraka/Haraka#1738)
Expand All @@ -89,29 +97,27 @@
- use haraka-eslint plugin (vs local copy of .eslintrc)
- lint updates


### 1.0.8 - 2017-01-02

- version bump, lint updates & sync
- lint fixes


### 1.0.7 - 2016-11-17

- update tests for appveyor (Windows) compatibility #9


### 1.0.6 - 2016-11-10

- handle invalid .ini lines properly (skip them)


### 1.0.5 - 2016-10-25

- do not leave behind a `*` section in config (due to wildcard boolean)


### 1.0.3

- added wildcard boolean support
- reduce node required 4.3 -> 0.10.43

[1.1.0]: https://github.com/haraka/haraka-config/releases/tag/1.1.0
[1.2.0]: https://github.com/haraka/haraka-config/releases/tag/v1.2.0
8 changes: 8 additions & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Contributors

This handcrafted artisinal software is brought to you by:

| <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">52</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>) |
| :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |

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

0 comments on commit aad4576

Please sign in to comment.