Skip to content
This repository has been archived by the owner on Jun 16, 2024. It is now read-only.

Commit

Permalink
feat: update dependencies and remove Node v8 (#27)
Browse files Browse the repository at this point in the history
* chore: update deps

* feat: remove Node 8 support

BREAKING CHANGE: Use Nodev10 minimum

* chore: fix linting
  • Loading branch information
juanpicado authored Jun 15, 2020
1 parent 6f3cffa commit 397e58e
Show file tree
Hide file tree
Showing 11 changed files with 1,223 additions and 812 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"@typescript-eslint/ban-ts-ignore": 0,
"@typescript-eslint/no-inferrable-types": 0,
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/ban-ts-comment": 0,
"@typescript-eslint/no-this-alias": 0,
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/array-type": 0,
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

strategy:
matrix:
node-version: [8.x, 10.x, 12.x, 13.x]
node-version: [10.x, 12.x, 13.x]

steps:
- uses: actions/checkout@v1
Expand Down
12 changes: 5 additions & 7 deletions generators/app/templates/javascript/auth/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,15 @@
"node": ">=10"
},
"dependencies": {
"@verdaccio/commons-api": "^8.5.0",
"express": "^4.17.1"
"@verdaccio/commons-api": "^9.6.1"
},
"devDependencies": {
"@verdaccio/babel-preset": "^8.5.0",
"@verdaccio/eslint-config": "^8.5.0",
"@verdaccio/types": "^8.5.0",
"@verdaccio/babel-preset": "^9.6.1",
"@verdaccio/eslint-config": "^9.3.2",
"eslint": "^6.6.0",
"jest": "^24.9.0",
"jest": "^26.0.1 ",
"prettier": "^1.19.1",
"standard-version": "^7.0.0"
"standard-version": "^8.0.0"
},
"keywords": "[<%= keywords %>]",
"license": "<%= license %>",
Expand Down
11 changes: 5 additions & 6 deletions generators/app/templates/javascript/middleware/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,16 @@
"node": ">=10"
},
"dependencies": {
"@verdaccio/commons-api": "^8.5.0",
"@verdaccio/commons-api": "^9.6.1",
"express": "^4.17.1"
},
"devDependencies": {
"@verdaccio/babel-preset": "^8.5.0",
"@verdaccio/eslint-config": "^8.5.0",
"@verdaccio/types": "^8.5.0",
"@verdaccio/babel-preset": "^9.6.1",
"@verdaccio/eslint-config": "^9.3.2",
"eslint": "^6.6.0",
"jest": "^24.9.0",
"jest": "^26.0.1 ",
"prettier": "^1.19.1",
"standard-version": "^7.0.0"
"standard-version": "^8.0.0"
},
"keywords": "[<%= keywords %>]",
"license": "<%= license %>",
Expand Down
11 changes: 5 additions & 6 deletions generators/app/templates/javascript/storage/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,15 @@
"node": ">=10"
},
"dependencies": {
"@verdaccio/commons-api": "^8.5.0",
"express": "^4.17.1"
"@verdaccio/commons-api": "^9.6.1"
},
"devDependencies": {
"@verdaccio/babel-preset": "^8.5.0",
"@verdaccio/eslint-config": "^8.5.0",
"@verdaccio/babel-preset": "^9.6.1",
"@verdaccio/eslint-config": "^9.3.2",
"eslint": "^6.6.0",
"jest": "^24.9.0",
"jest": "^26.0.1 ",
"prettier": "^1.19.1",
"standard-version": "^7.0.0"
"standard-version": "^8.0.0"
},
"keywords": "[<%= keywords %>]",
"license": "<%= license %>",
Expand Down
14 changes: 7 additions & 7 deletions generators/app/templates/typescript/auth/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@
"node": ">=10"
},
"dependencies": {
"@verdaccio/commons-api": "^8.5.0"
"@verdaccio/commons-api": "^9.6.1"
},
"devDependencies": {
"@types/jest": "^24.0.21",
"@types/node": "^12.12.5",
"@types/express": "^4.17.1",
"@typescript-eslint/eslint-plugin": "^2.12.0",
"@verdaccio/babel-preset": "^8.5.0",
"@verdaccio/eslint-config": "^8.5.0",
"@verdaccio/types": "^8.5.2",
"@verdaccio/babel-preset": "^9.6.1",
"@verdaccio/eslint-config": "^9.3.2",
"@verdaccio/types": "^9.5.0",
"eslint": "^6.6.0",
"jest": "^24.9.0",
"jest": "^26.0.1 ",
"prettier": "^1.19.1",
"standard-version": "^7.0.0",
"typescript": "^3.7.2"
"standard-version": "^8.0.0",
"typescript": "^3.9.5"
},
"keywords": ["<%= keywords %>]"],
"license": "<%= license %>",
Expand Down
10 changes: 5 additions & 5 deletions generators/app/templates/typescript/auth/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default class AuthCustomPlugin implements IPluginAuth<CustomConfig> {
public allow_access(user: RemoteUser, pkg: PackageAccess, cb: AuthAccessCallback): void {
/**
* This code is just an example for demostration purpose
if (user.name === this.foo && pkg.access.includes[user.name]) {
if (user.name === this.foo && pkg?.access?.includes[user.name]) {
this.logger.debug({name: user.name}, 'your package has been granted for @{name}');
cb(null, true)
} else {
Expand All @@ -66,9 +66,9 @@ export default class AuthCustomPlugin implements IPluginAuth<CustomConfig> {
public allow_publish(user: RemoteUser, pkg: PackageAccess, cb: AuthAccessCallback): void {
/**
* This code is just an example for demostration purpose
if (user.name === this.foo && pkg.access.includes[user.name]) {
if (user.name === this.foo && pkg?.access?.includes[user.name]) {
this.logger.debug({name: user.name}, '@{name} has been granted to publish');
cb(null, ['group-foo', 'another-group-foo'])
cb(null, true)
} else {
this.logger.error({name: user.name}, '@{name} is not allowed to publish this package');
cb('error, try again', false);
Expand All @@ -79,9 +79,9 @@ export default class AuthCustomPlugin implements IPluginAuth<CustomConfig> {
public allow_unpublish(user: RemoteUser, pkg: PackageAccess, cb: AuthAccessCallback): void {
/**
* This code is just an example for demostration purpose
if (user.name === this.foo && pkg.access.includes[user.name]) {
if (user.name === this.foo && pkg?.access?.includes[user.name]) {
this.logger.debug({name: user.name}, '@{name} has been granted to unpublish');
cb(null, ['group-foo', 'another-group-foo'])
cb(null, true)
} else {
this.logger.error({name: user.name}, '@{name} is not allowed to publish this package');
cb('error, try again', false);
Expand Down
14 changes: 7 additions & 7 deletions generators/app/templates/typescript/middleware/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@
"node": ">=10"
},
"dependencies": {
"@verdaccio/commons-api": "^8.5.0",
"@verdaccio/commons-api": "^9.6.1",
"express": "^4.17.1"
},
"devDependencies": {
"@types/jest": "^24.0.21",
"@types/node": "^12.12.5",
"@types/express": "^4.17.1",
"@typescript-eslint/eslint-plugin": "^2.12.0",
"@verdaccio/babel-preset": "^8.5.0",
"@verdaccio/eslint-config": "^8.5.0",
"@verdaccio/types": "^8.5.2",
"@verdaccio/babel-preset": "^9.6.1",
"@verdaccio/eslint-config": "^9.3.2",
"@verdaccio/types": "^9.5.0",
"eslint": "^6.6.0",
"jest": "^24.9.0",
"jest": "^26.0.1 ",
"prettier": "^1.19.1",
"standard-version": "^7.0.0",
"typescript": "^3.7.2"
"standard-version": "^8.0.0",
"typescript": "^3.9.5"
},
"keywords": ["<%= keywords %>"],
"license": "<%= license %>",
Expand Down
13 changes: 6 additions & 7 deletions generators/app/templates/typescript/storage/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,20 @@
},
"dependencies": {
"@verdaccio/commons-api": "^8.5.0",
"@verdaccio/streams": "^8.5.2"
"@verdaccio/streams": "^9.6.1"
},
"devDependencies": {
"@types/jest": "^24.0.21",
"@types/node": "^12.12.5",
"@types/express": "^4.17.1",
"@typescript-eslint/eslint-plugin": "^2.12.0",
"@verdaccio/babel-preset": "^8.5.0",
"@verdaccio/eslint-config": "^8.5.0",
"@verdaccio/types": "^8.5.2",
"@verdaccio/babel-preset": "^9.6.1",
"@verdaccio/eslint-config": "^9.3.2",
"@verdaccio/types": "^9.5.0",
"eslint": "^6.6.0",
"jest": "^24.9.0",
"jest": "^26.0.1 ",
"prettier": "^1.19.1",
"standard-version": "^7.0.0",
"typescript": "^3.7.2"
"standard-version": "^8.0.
},
"keywords": ["<%= keywords %>"],
"license": "<%= license %>",
Expand Down
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,25 @@
"yeoman-generator"
],
"dependencies": {
"chalk": "^3.0.0",
"chalk": "^4.1.0",
"lodash": "^4.17.15",
"yeoman-generator": "4.5.0",
"yeoman-generator": "4.10.1",
"yosay": "^2.0.2"
},
"devDependencies": {
"@octokit/rest": "^16.35.2",
"@types/chalk": "^2.2.0",
"@types/express": "^4.17.2",
"@types/lodash": "^4.14.149",
"@types/mocha": "^5.2.7",
"@types/node": "^12.12.7",
"@types/yeoman-environment": "^2.3.2",
"@types/express": "^4.17.6",
"@types/lodash": "^4.14.155",
"@types/mocha": "^7.0.2",
"@types/node": "^14.0.13",
"@types/yeoman-environment": "^2.3.3",
"@types/yeoman-generator": "^3.1.4",
"@types/yeoman-test": "^2.0.3",
"@typescript-eslint/eslint-plugin": "^2.12.0",
"@verdaccio/eslint-config": "^8.5.0",
"@types/yeoman-test": "^2.0.4",
"@typescript-eslint/eslint-plugin": "^3.2.0",
"@verdaccio/eslint-config": "^9.3.2",
"@verdaccio/types": "^8.5.2",
"eslint": "^6.7.2",
"eslint": "^7.2.0",
"express": "^4.17.1",
"get-stdin": "^7.0.0",
"gulp": "4.0.2",
Expand All @@ -44,11 +44,11 @@
"gulp-line-ending-corrector": "^1.0.1",
"mocha": "^6.2.2",
"prettier": "^1.19.1",
"semantic-release": "^15.13.31",
"standard-version": "^7.0.1",
"typescript": "^3.7.3",
"semantic-release": "^17.0.8",
"standard-version": "^8.0.0",
"typescript": "^3.9.5",
"yeoman-assert": "^3.0.0",
"yeoman-test": "^2.0.0"
"yeoman-test": "^2.6.0"
},
"repository": {
"type": "git",
Expand Down
Loading

0 comments on commit 397e58e

Please sign in to comment.