Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Conversation

@jjeffryes
Copy link
Contributor

@jjeffryes jjeffryes commented Jun 25, 2019

This updates a variety of dependencies for release 2.3.5 or later. This is primarily a precaution, so we don't end up too far behind on our libraries.

The major changes here are Babel and Electron.

Babel's syntax is different, I used https://github.com/babel/babel-upgrade to auto-generate the new dependencies.

Electron has been updated to v5.0.5, it now defaults to nodeIntegration: false, which required it to be set to true when the browser window is created.

Note: after updating Node to 10.16.0, I had to delete my node_modules file and reinstall everything with npm install to get around a too many files open issue when browser sync started watching the sass files.

Also, one of the currency tests started to fail, and required a small tweak to get it working right. The PLN currency test has a space between the PLN and the amount now.

Closes #1654
Closes #1771
Closes #1774

@jjeffryes jjeffryes self-assigned this Jun 25, 2019
@jjeffryes jjeffryes closed this Jun 25, 2019
@jjeffryes jjeffryes reopened this Jun 25, 2019
@jjeffryes jjeffryes requested a review from rmisio June 25, 2019 17:19
@jjeffryes jjeffryes changed the title Update Dependencies for 2.3.5 or Later [DO NOT MERGE UNTIL 2.3.5] Update Dependencies for 2.3.5 Jul 18, 2019
expect(cur.convertAndFormatCurrency(500, 'USD', 'PLN', { locale: 'en-US' }))
.to
.equal('PLN2,097.31');
.satisfy(val => ['PLN2,097.31', 'PLN 2,097.31'].includes(val));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a little ugly, but on my desktop it adds the space, and on Travis it doesn't, so this is the only way I've been able to get it to pass tests on both.

"development": {
"presets": ["env", "stage-1"]
},
"presets": [
Copy link
Contributor

Choose a reason for hiding this comment

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

At some point I think we could pare these down because I know we don't use a lot of these things (e.g. decorators). Just don't think we want to needlessly increase the file size of the bundled app or the amount of deps that have to come down the wire.

@rmisio rmisio merged commit 4945467 into master Aug 9, 2019
@rmisio rmisio deleted the updateDependencies235 branch August 9, 2019 15:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update Old Dependencies Check Dependency Compatibility with the Latest Node Version Evaluate and Update all Dependencies

3 participants