Skip to content

Commit

Permalink
Merge pull request #53 from RSeidelsohn/feature/new_major_release_4
Browse files Browse the repository at this point in the history
New major release 4
  • Loading branch information
RSeidelsohn authored Jan 21, 2023
2 parents 4f429ea + 1f45e6b commit 430ae0d
Show file tree
Hide file tree
Showing 13 changed files with 6,928 additions and 90 deletions.
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# EditorConfig is awesome: https://EditorConfig.org
root = true

# Unix-style line endings
[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
artifacts
build
coverage
node_modules
tests
4 changes: 3 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"parserOptions": {
"ecmaVersion": 2020
},
"extends": "eslint:recommended",
"extends": ["eslint:recommended", "prettier"],
"plugins": ["prettier"],
"rules": {
"no-unused-vars": ["error", { "args": "after-used" }],
"semi": 2,
Expand All @@ -29,6 +30,7 @@
"arrow-body-style": [2, "as-needed"],
"array-bracket-spacing": [2, "never"],
"object-curly-spacing": [2, "always"],
"prettier/prettier": ["error"],
"key-spacing": ["error", { "beforeColon": false }]
},
"env": {
Expand Down
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm test
6 changes: 6 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"*.{js,ts}": [
"prettier --list-different --ignore-unknown --ignore-path './.prettierignore' --write",
"eslint --ignore-path './.eslintignore' --fix"
]
}
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v14
v18
7 changes: 6 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
*.min.js
node_modules/
package-lock.json
package.json
artifacts/
build/
coverage/
node_modules/
node_modules/
tests/
1 change: 0 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"singleQuote": true,
"trailingComma": "all",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"semi": true,
"requirePragma": false,
"proseWrap": "preserve",
Expand Down
28 changes: 27 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,33 @@ You could see something like this:

<a name="changes"/>

## Changes
## Changes (see a more detailed and always up-to-date list [here](https://github.com/RSeidelsohn/license-checker-rseidelsohn/releases))

### Version 4.0.0

Due to [end of service for NodeJS' security updates](https://endoflife.date/nodejs), I decided to from now on use a current LTS-version, which is NodeJS v18.

This of course doesn't necessarily mean that older Node versions will not be able to run this license-checker-rseidelsohn, but one day this will mosrt likely happen, I guess.

Should there be any need for security updates or new features supported by older NodeJS versions, [please tell me so] (mailto:rseidelsohn@gmail.com?subject=Support%20request%20for%20old%20license-checker-rseidelsohn%20-%20version). I can not promise that I will take the time to fulfill the request, but if you do not ask me, I certainly won't.

This being said, the only change with 4.0.0 is a switch in the `.ncmrc` file of the project (for developers working on this module only) from NodeJS v14 to NodeJS v18 - which again is a LTS version, a version with long tiome support - and some minor updates to the README file, adding stuff that was missing in the past due to a lack of regular maintenance from my side.

That then being said, I really want to invite you to add pull requests to this project. If you feel like, please ask me to give you higher-level access to this repo. I am not keen on mainaining it on my own - I just took it over in order to add my own feature request after the original author stopped finding the time to further support it. Now, I am not using this module for work any more (which might change in the future), but I see my responsibility to at least taking care of pull requests and releasing them, and from time to time working on feature requests as a kind of kata for me.

### Version 3.3.0

Allow combining the options `--excludePackages` and `--excludePackagesStartingWith`

### Version 3.2.1

Bugfix for `--excludePackagesStartingWith`


### Version 3.2.0

Add flag `--excludePackagesStartingWith [list]` and add detection of `Hippocratic License 2.1`


### Version 3.1.0

Expand Down
6 changes: 4 additions & 2 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@

## Supported Versions

Warning: Still draft mode!

Use this section to tell people about which versions of your project are
currently being supported with security updates.

| Version | Supported |
| ------- | ------------------ |
| 1.1.x | :white_check_mark: |
| 1.0.x | :x: |
| 3.3.x | :white_check_mark: |
| 4.0.x | :x: |

## Reporting a Vulnerability

Expand Down
2 changes: 1 addition & 1 deletion lib/getLicenseTitle.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ module.exports = function getLicenseTitle(str = 'undefined') {
if (ISC_LICENSE.test(str)) {
return 'ISC*';
}

if (HIPPOCRATIC_LICENSE.test(str)) {
return 'Hippocratic-2.1*';
}
Expand Down
Loading

0 comments on commit 430ae0d

Please sign in to comment.