Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates (particularly for spdx-correct and spdx-satisfies) #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Updates (particularly for spdx-correct and spdx-satisfies) #25

wants to merge 1 commit into from

Conversation

brettz9
Copy link

@brettz9 brettz9 commented Jan 7, 2020

  • Linting (ESLint): Apply per latest airbnb-base (import order, destructuring, no useless else, line breaks in destructured params, prefer spread)
  • Linting (ESLint): Add ignore file in conjunction with linting all by default (catches index.js)
  • npm: Update eslinting devDeps to latest major versions
  • npm: Update spdx-correct, and spdx-satisfies to latest major versions
  • npm: Update other deps. to latest minor version
  • Travis: Update per newest minimum (and add 10 and 12)

The main changes here are the major version bumps for spdx-correct and spdx-satisfies.

For spdx-correct, the major bump occurred with updates to:

  1. spdx-license-ids (which moved out some now deprecated licenses): jslicense/spdx-license-ids@b9f544d and changes to the IDS per a new build: https://github.com/shinnn/spdx-license-ids/pull/8/files . I think this is reasonable unless you wanted to allow checking against deprecated licenses.
  2. spdx-expression-parse which also updated its spdx-license-ids but used them to determine validity. I think the advantage of supporting any newer types outweighs and disadvantages of missing any older types. It also updated spdx-exceptions but this was a minor change and looking at the source, it doesn't appear it should affect anything.

As far as spdx-satisfies, it has incremented several major versions, updating its copy of spdx-correct. You'd have to go through the other changes if you want an exact picture, but the API of passing two arguments is still the same, and I expect it should be doing better than before at checking whether the expressions satisfy the license criteria.

The other updates just need assuming that the minor/patch versions are ok, and assuming you are ok with moving to Node 8.3 (I know Travis is 8, but the spread syntax recommended now by airbnb requires 8.3, and Node 8 just entered EOL anyways, so really should upgrade to 10), I think these changes should all be good. (Without existing tests, it is harder to know, but as per the above, I have tried to ascertain the safety of these changes. I am using my fork and it has fixed #21 for me with getLicenseType.)

…ucturing, no useless else, line breaks in destructured params, prefer spread)

- Linting (ESLint): Add ignore file in conjunction with linting all by default (catches index.js)
- npm: Update eslinting devDeps to latest major versions
- npm: Update spdx-correct, and spdx-satisfies to latest major versions
- npm: Update other deps. to latest minor version
- Travis: Update per newest minimum (and add 10 and 12)
@brettz9 brettz9 mentioned this pull request Jan 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Handling of "OR"
1 participant