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

chore: Update dependencies #2374

Merged
merged 5 commits into from
Oct 31, 2020

Conversation

dhruvjain99
Copy link
Contributor

@dhruvjain99 dhruvjain99 commented Oct 30, 2020

Checklist

Short description of what this resolves:

Update all the outdated dependencies referring to https://david-dm.org/fossasia/open-event-wsgen. The update resulted in some breaking changes which required the codebase to change.

Changes proposed in this pull request:

  • Update the following dependencies:
    • del v6.0.0
    • folder-hash v4.0.0
    • fs-extra v9.0.1
    • github v14.0.0
    • gulp-babel v8.0.0
  • Latest version of fs-extra sets err variable as undefined instead of null so removed redundant if condition checks of err with null
  • Add and set preset @babel/preset-env
  • gulp-babel has a peer dependency on babel/core v7.0.0
  • ftp-deploy has peer dependency on promise-ftp-common v1.1.5
  • github v14.0.0 has been renamed to octokit/rest v14.0.0
  • Change the module "github" to "@octokit/rest" in deploy.js while importing

Fixes #2168

- del v6.0.0
- folder-hash v4.0.0
- fs-extra v9.0.1
- github v14.0.0
- gulp-babel v8.0.0

Fixes fossasia#2168
@dhruvjain99
Copy link
Contributor Author

@iamareebjamal this won't run the travis ci build as I have changed only the package.json. I have checked there is no build corresponding to this PR as well.

@iamareebjamal
Copy link
Member

You need to update yarn.lock as well and travis build should still work

@dhruvjain99
Copy link
Contributor Author

@iamareebjamal Doesn't yarn also look up to package.json like npm does for installation of dependencies of a specific version? Don't you think yarn.lock must be in gitignore like package-lock.json? Please do let me know if I am missing something.

@iamareebjamal
Copy link
Member

No. There is no point of yarn.lock if it is not committed to the repository. Please read more about it. It is a security and dependency pinning feature

…stv14.0.0

- gulp-babel has a peer dependency on babel/core v7.0.0
- ftp-deploy has peer dependency on promise-ftp-common v1.1.5
- github v14.0.0 has been renamed to octokit/rest v14.0.0
- Change the module "github" to "@octokit/rest" in deploy.js while importing
…onal check with null for copyerr as fs-extra new version returns undefined instead of null
- Latest version of fs-extra sets err as undefined instead of null
@@ -3,7 +3,7 @@

const distHelper = require('./dist.js');
const fs = require('fs');
const Github = require('github');
const Github = require('@octokit/rest');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing else needed to be changed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No

@iamareebjamal iamareebjamal changed the title Fix: Update dependencies chore: Update dependencies Oct 31, 2020
@auto-label auto-label bot added the chore label Oct 31, 2020
@iamareebjamal iamareebjamal merged commit eb4211b into fossasia:development Oct 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update outdated dependencies
2 participants