These changes remove shrinkwrap from including dev dependencies for production
use. This is intended to solve errors in production environments like heroku
incorrectly pulling in darwin based chokidar and related mocha dependencies.
Both bridge packages now have clean shrinkwraps without devDependencies,
eliminating the fsevents (darwin-only) entries that caused Heroku build failures.
- Change engines.node from '^22.x || ^20.x' to '>=16.x'
- Change engines.npm from '>=10.x' to '>=8.x'
- Update runtime checkNodeVersion to allow Node 16+
- Creates overlap with previous release (^16.x || ^14.x)
This allows users on Node 16/18 to upgrade smoothly while
recommending Node 20 or 22 LTS for best support.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Updated test execution scripts in package.json to include parallel and fast test options. Converted several `beforeEach` hooks to `before` in test files for more efficient application setup. Added documentation for test optimizations.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 271f3cac-bab1-4e81-9982-f31b3b030aab
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: ac6eb857-be5a-454b-96cf-b9c4c57f058b
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7ea4278b-5c6c-4065-9cb8-f1013771318d/271f3cac-bab1-4e81-9982-f31b3b030aab/69H2O1r
Replit-Helium-Checkpoint-Created: true
With this patch, the new version of nightscout-connect will support
all the features of share2nightscout-bridge,
minimed-connect-to-nightscout, and more.
* rollback compatibility issues for tests
Revert "Bump jsonwebtoken from 8.5.1 to 9.0.0 (#7787)"
This rolls back changes to node_modules via package-lock.json as a
result of new dependencies. More work is needed before involving these
changes. Without this rollback, the tests do consistently complete within
the allowed time in a reproducible way.
* Test Github Actions with jsdom 11.11.0
* Upgrade github actions as requested by the actions runner
* Lock generated using 6.14.18
* Upgrade actions/checkout@v2 to v3
* restore jsonwebtoken upgrade
Co-authored-by: Ben West <bewest@gmail.com>
* This commit updates the uuid and socket.io packages to latest versions and enables compression over websocket
* Drop the compression threshold down to 512 bytes
* Enable http compression down to 512 bytes and request long poll transport only, as per current release
* Add the socket.io-client back in
* Use polling with the NS client
* Update express to latest in 4.x line, fix tests
npm ls fsevent didn't list any output. I'm running on linux,
and regenerating this file after removing it seems to remove
the fsevent package from the file.
It's likely that fsevent may be used in development mode as part
of one of the build utilities, but it shouldn't block anyone from
deploying.
https://github.com/nightscout/cgm-remote-monitor/issues/7475