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

Dependency updates (UPLOAD-1330) #1666

Merged
merged 33 commits into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
acc2fcb
dependency updates up to but not including electron
gniezen Nov 12, 2024
36d6864
bump electron to v33.2.0 and node.js to v20.18.0
gniezen Nov 18, 2024
eaf7dbf
finish rest of updates
gniezen Nov 18, 2024
65cdafa
v2.60.0-deps-update.1
gniezen Nov 18, 2024
5aa609d
remove cdc-acm user-space driver, as MacOS now has a built-in CDC-ACM…
gniezen Nov 22, 2024
a077bb0
remove the usb-cdc-acm package too
gniezen Nov 22, 2024
fb00e16
electron-log v5 not compatible with webpack v4
gniezen Nov 22, 2024
bba164d
bump some more dependencies
gniezen Nov 25, 2024
ad43097
remove fbjs-scripts, roll back i18next-fs-backend
gniezen Nov 25, 2024
b5ad424
bump electron and node to latest version; use default node-gyp again
gniezen Dec 16, 2024
3c65b5d
v2.60.0-deps-update.2
gniezen Dec 16, 2024
0ef7db2
put node-gyp install back
gniezen Dec 16, 2024
f965857
remove symlink that can cause MacOS security check to fail
gniezen Dec 17, 2024
5c02882
remove the whole directory
gniezen Dec 17, 2024
8a2f9bf
install python via homebrew
gniezen Dec 17, 2024
8d7e3d9
try to use older version of node-gyp
gniezen Dec 19, 2024
db546ba
v2.60.0-deps-update.3
gniezen Dec 19, 2024
9379d31
remove stuff that didn't work; unpack direct-io instead
gniezen Dec 19, 2024
4727569
try old version of node-gyp again
gniezen Dec 19, 2024
616fd35
see if it still works with new version of fsevents
gniezen Dec 19, 2024
dcb3608
v2.60.0-deps-update.4
gniezen Dec 19, 2024
5e08b17
revert usb back to 2.13.0
gniezen Jan 7, 2025
7eb0dd0
v2.60.0-deps-update.5
gniezen Jan 7, 2025
04fb2da
newer electron versions break layout on Windows
gniezen Jan 9, 2025
22fa207
use electron v31.7.6 and node 20.14.0 instead, as 20.15.0 breaks veri…
gniezen Jan 9, 2025
be680c1
v2.60.0-deps-update.6
gniezen Jan 9, 2025
837d8df
use electron v31 with node 20.14.0, as 20.15.0+ breaks verio support
gniezen Jan 9, 2025
b6a0316
use electron 31.1.0 as that actually has node 2.14.0
gniezen Jan 9, 2025
1ffe1b8
v2.60.0-deps-update.7
gniezen Jan 9, 2025
860b02d
most recent dependency updates
gniezen Jan 13, 2025
2775410
Merge branch 'master' into deps-update
gniezen Jan 13, 2025
0895fc4
use tandem driver main
gniezen Jan 13, 2025
9f07ab3
v2.60.0-deps-update.8
gniezen Jan 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
nvm install v18.17.1
nvm alias default v18.17.1
nvm install v20.14.0
nvm alias default v20.14.0
- run: node -v
- run: npm install --global npm node-gyp
- run: npm install --global node-gyp
- run: echo $SHELL
- run: npm -v
- run: node-gyp -v
Expand Down Expand Up @@ -111,7 +111,7 @@ jobs:
BASH_ENV: ".circleci/bash_env.sh"
DISPLAY: ":99"
docker:
- image: cimg/node:18.17.1-browsers
- image: cimg/node:20.14.0-browsers
steps:
- setup_remote_docker:
version: docker23
Expand Down Expand Up @@ -152,8 +152,8 @@ jobs:
key: dependency-cache-{{ checksum "package.json" }}
- run: python -m pip install packaging
- run: pip install setuptools
- run: nvm install v18.17.1
- run: nvm use v18.17.1
- run: nvm install v20.14.0
- run: nvm use v20.14.0
- run: node -v
- run: npm install --global npm@8 node-gyp
- run: npm -v
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.17.1
20.14.0
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18.17.1-alpine as base
FROM node:20.14.0-alpine as base
WORKDIR /app
RUN mkdir -p dist node_modules .yarn-cache && chown -R node:node .

Expand Down
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,10 @@ apm install editorconfig es6-javascript javascript-snippets linter linter-eslint
- Linux: <kbd>Ctrl</kbd> <kbd>Shift</kbd> <kbd>I</kbd> or <kbd>F12</kbd>
- Windows: <kbd>Ctrl</kbd> <kbd>Shift</kbd> <kbd>I</kbd> or <kbd>F12</kbd>

*See [electron-debug](https://github.com/sindresorhus/electron-debug) for more information.*

#### DevTools extension

This project includes the following DevTools extensions:

* [Devtron](https://github.com/electron/devtron) - Install via [electron-debug](https://github.com/sindresorhus/electron-debug).
* [React Developer Tools](https://github.com/facebook/react-devtools) - Install via [electron-devtools-installer](https://github.com/GPMDP/electron-devtools-installer).
* [Redux DevTools](https://github.com/zalmoxisus/redux-devtools-extension) - Install via [electron-devtools-installer](https://github.com/GPMDP/electron-devtools-installer).

Expand Down
2 changes: 1 addition & 1 deletion app/main.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ if (process.env.NODE_ENV === 'production') {
}

if (process.env.NODE_ENV === 'development') {
require('electron-debug')(); // eslint-disable-line global-require
const p = path.join(__dirname, '..', 'app', 'node_modules'); // eslint-disable-line
require('module').globalPaths.push(p); // eslint-disable-line
process.env.APPIMAGE = path.join(__dirname, 'release');
Expand Down Expand Up @@ -157,6 +156,7 @@ function createWindow() {
},
acceptFirstMouse: true,
});
mainWindow.setContentSize(663, 741); // newer electron versions break layout on Windows if this is not set

protocol.handle(PROTOCOL_PREFIX, (request) => {
return handleIncomingUrl(request.url);
Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tidepool-uploader",
"productName": "tidepool-uploader",
"version": "2.60.0-selection-naming.1",
"version": "2.60.0-deps-update.8",
"description": "Tidepool Project Universal Uploader",
"main": "./main.prod.js",
"author": {
Expand Down
40 changes: 20 additions & 20 deletions app/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ chownr@^1.1.1:
integrity sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==

debug@^4.3.4:
version "4.3.6"
resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.6.tgz#2ab2c38fbaffebf8aa95fdfe6d88438c7a13c52b"
integrity sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==
version "4.3.7"
resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.7.tgz#87945b4151a011d76d95a198d7111c865c360a52"
integrity sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==
dependencies:
ms "2.1.2"
ms "^2.1.3"

decompress-response@^6.0.0:
version "6.0.0"
Expand Down Expand Up @@ -152,20 +152,20 @@ mkdirp-classic@^0.5.2, mkdirp-classic@^0.5.3:
resolved "https://registry.yarnpkg.com/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz#fa10c9115cc6d8865be221ba47ee9bed78601113"
integrity sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==

ms@2.1.2:
version "2.1.2"
resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009"
integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==
ms@^2.1.3:
version "2.1.3"
resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2"
integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==

napi-build-utils@^1.0.1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/napi-build-utils/-/napi-build-utils-1.0.2.tgz#b1fddc0b2c46e380a0b7a76f984dd47c41a13806"
integrity sha512-ONmRUqK7zj7DWX0D9ADe03wbwOBZxNAfF20PlGfCWQcD3+/MakShIHrMqx9YwPTfxDdF1zLeL+RGZiR9kGMLdg==

node-abi@^3.3.0:
version "3.65.0"
resolved "https://registry.yarnpkg.com/node-abi/-/node-abi-3.65.0.tgz#ca92d559388e1e9cab1680a18c1a18757cdac9d3"
integrity sha512-ThjYBfoDNr08AWx6hGaRbfPwxKV9kVzAzOzlLKbk2CuqXE2xnCh+cbAGnwM3t8Lq4v9rUB7VfondlkBckcJrVA==
version "3.71.0"
resolved "https://registry.yarnpkg.com/node-abi/-/node-abi-3.71.0.tgz#52d84bbcd8575efb71468fbaa1f9a49b2c242038"
integrity sha512-SZ40vRiy/+wRTf21hxkkEjPJZpARzUMVcJoQse2EF8qkUWbbO2z7vd5oA/H6bVH6SZQ5STGcu0KRDS7biNRfxw==
dependencies:
semver "^7.3.5"

Expand All @@ -175,14 +175,14 @@ node-addon-api@^4.3.0:
integrity sha512-73sE9+3UaLYYFmDsFZnqCInzPyh3MqIwZO9cw58yIqAZhONrrabrYyYe3TuIqtIiOuTXVhsGau8hcrhhwSsDIQ==

node-addon-api@^8.0.0:
version "8.1.0"
resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-8.1.0.tgz#55a573685dd4bd053f189cffa4e6332d2b1f1645"
integrity sha512-yBY+qqWSv3dWKGODD6OGE6GnTX7Q2r+4+DfpqxHSHh8x0B4EKP9+wVGLS6U/AM1vxSNNmUEuIV5EGhYwPpfOwQ==
version "8.2.2"
resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-8.2.2.tgz#3658f78d04d260aa95931d3bbc45f22ce433b821"
integrity sha512-9emqXAKhVoNrQ792nLI/wpzPpJ/bj/YXxW0CvAau1+RdGBcCRF1Dmz7719zgVsQNrzHl9Tzn3ImZ4qWFarWL0A==

node-gyp-build@^4.5.0:
version "4.8.1"
resolved "https://registry.yarnpkg.com/node-gyp-build/-/node-gyp-build-4.8.1.tgz#976d3ad905e71b76086f4f0b0d3637fe79b6cda5"
integrity sha512-OSs33Z9yWr148JZcbZd5WiAXhh/n9z8TxQcdMhIOlpN9AhWpLfvVFO73+m77bBABQMaY9XSvIa+qk0jlI7Gcaw==
version "4.8.4"
resolved "https://registry.yarnpkg.com/node-gyp-build/-/node-gyp-build-4.8.4.tgz#8a70ee85464ae52327772a90d66c6077a900cfc8"
integrity sha512-LA4ZjwlnUblHVgq0oBF3Jl/6h/Nvs5fzBLwdEF4nuxnFdsfajde4WfxtJr3CaiH+F6ewcIB/q4jQ4UzPyid+CQ==

once@^1.3.1, once@^1.4.0:
version "1.4.0"
Expand Down Expand Up @@ -210,9 +210,9 @@ prebuild-install@^7.0.1, prebuild-install@^7.1.1:
tunnel-agent "^0.6.0"

pump@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/pump/-/pump-3.0.0.tgz#b4a2116815bde2f4e1ea602354e8c75565107a64"
integrity sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==
version "3.0.2"
resolved "https://registry.yarnpkg.com/pump/-/pump-3.0.2.tgz#836f3edd6bc2ee599256c924ffe0d88573ddcbf8"
integrity sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw==
dependencies:
end-of-stream "^1.1.0"
once "^1.3.1"
Expand Down
6 changes: 3 additions & 3 deletions lib/core/driverManifests.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ const driverManifests = {
Dexcom: {
mode: 'serial',
usb: [
{ vendorId: 8867, productId: 71, driver: 'cdc-acm' }, // G4, G5 and G6
{ vendorId: 8867, productId: 72, driver: 'cdc-acm' }, // G7, not supported yet
{ vendorId: 8867, productId: 71 }, // G4, G5 and G6
{ vendorId: 8867, productId: 72 }, // G7, not supported yet
],
},
AbbottPrecisionXtra: {
Expand All @@ -39,7 +39,7 @@ const driverManifests = {
sendTimeout: 50,
receiveTimeout: 50,
usb: [
{ vendorId: 1155, productId: 22336, driver: 'cdc-acm' },
{ vendorId: 1155, productId: 22336 },
],
},
AbbottFreeStyleLite: {
Expand Down
2 changes: 1 addition & 1 deletion lib/drivers/tandem
14 changes: 0 additions & 14 deletions lib/serialDevice.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,13 @@
var _ = require('lodash');
var async = require('async');

var UsbCdcAcm = null;
var PL2303 = null;
var CP2102 = null;
var FTDI = null;
if (!(process.env.NODE_ENV === 'test')) {
// libusb is not available when testing on CI environments

(async () => {
UsbCdcAcm = await import('usb-cdc-acm');
PL2303 = (await import('pl2303')).default;
CP2102 = (await import('cp2102')).default;
FTDI = (await import('ftdi-js')).default;
Expand Down Expand Up @@ -225,13 +223,6 @@ module.exports = function(config) {
return cb();
});
break;
case 'cdc-acm':
var device = deviceInfo.usbDevice;
device.open();
connection = UsbCdcAcm.fromUsbDevice(device, connectopts);
connection.cdcAcm = device;
return cb();
break;
case 'cp2102':
connection = new CP2102(deviceInfo.usbDevice, connectopts);
connection.addEventListener('error', function (event) {
Expand Down Expand Up @@ -304,11 +295,6 @@ module.exports = function(config) {

function disconnect(cb) {
if (connection) {
if (connection.cdcAcm) {
connection.destroy();
init();
return cb();
}
if (reader) {
(async () => {
keepReading = false;
Expand Down
8 changes: 7 additions & 1 deletion locales/en/translation.missing.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,11 @@
"There is no new data since last time. If you think this is an error, please reach out below.": "There is no new data since last time. If you think this is an error, please reach out below.",
"Data is up to date": "Data is up to date",
"There is no data on the device. If you think this is an error, please reach out below.": "There is no data on the device. If you think this is an error, please reach out below.",
"Unlock PDM. Plug into USB. Tap Export on PDM. Click Upload.": "Unlock PDM. Plug into USB. Tap Export on PDM. Click Upload."
"Unlock PDM. Plug into USB. Tap Export on PDM. Click Upload.": "Unlock PDM. Plug into USB. Tap Export on PDM. Click Upload.",
"Clinic Workspace": "Clinic Workspace",
"To manage your clinic workspaces and view patient invites": "To manage your clinic workspaces and view patient invites",
"login to your account in Tidepool Web": "login to your account in Tidepool Web",
"Go to Workspace": "Go to Workspace",
"Want to use Tidepool for your private data?": "Want to use Tidepool for your private data?",
"Go to Private Workspace": "Go to Private Workspace"
}
Loading