Reload command line quality of life enhancements
- Reload command line now supports serving
.html
files when only/
is present in the browser. See: #326 - Reload command line now uses supervisor instead of nodemon for server side file watching - See: #367
- Reload command line now watches sub-directories - See: #367
- Reload command line now supports ignoring directories and files. See: #370
- Reload command line now shows help if invalid flag is provided. See: #369
- Refactored how file serving works in reload-server to make it more performant and easier to read. See: #326
- Removed codecov dependency for coverage reporting in favor of native GitHub Action. See: #366
A bunch of dependency updates and some project maintenance
- Fixed tests and updated CI (drop 14.x and 16.x | added 20.x and 22.x) - See: #356
- Updated actions/setup-node action to v4 - See: #350
- Updated actions/checkout action to v4 - See: #347
- Updated ws from ~8.11.0 to ~8.18.0 - See: #354 and #360
- Updated sinon from 15.0.1 to 18.0.0 - See: #343 and #364
- Updated standard from 17.0.0 to 17.1.0 - See: #345
- Updated mocha from 10.2.0 to 10.7.3 - See: #359
- Updated codecov from 3.8.2 to 3.8.3 - See: #358
- Updated open from 8.4.0 to 8.4.2 - See: #358
- Updated minimist from 1.2.7 to 1.2.8 - See: #341
- Updated commander from ~9.4.0 to ~12.1.0 - See: #351
- Updated cli-color from 2.0.3 to 2.0.4 - See: #357
- Updated express from 4.18.2 to 4.19.2 - See: #352
- Updated nyc from 15.1.0 to 17.0.0 - See: #362
Happy New Year!
-
Drop 12.x and add 18.x on CI - See: #328
-
Update CI actions/checkout to v3 - See: #318
-
Update CI actions/setup-node to v3 - See: #319
-
Dependency Updates
- Update ws from ~7.4.0 to ~8.11.0 - See: #307
- Update express from 4.17.1 to 4.18.2 - See: #315
- Update finalhandler from ~1.1.1 to ~1.2.0 - See: #316
- Update serve-static from ~1.14.0 to ~1.15.0 - See: #317
- Update commander from ~7.2.0 to ~9.4.0 - See: #332
- Update mocha from 9.0.0 to 10.2.0 - See: #333
- Update sinon from 11.1.1 to 15.0.1 - See: #334
- Update standard from 16.0.3 to 17.0.0 - See: #335
- Remove url-parse dependency in favor of built in function - See: #325
- CI Updates
- Dependency Updates
- Update commander from ~6.1.0 to ~7.2.0 - See: #283
- Update url-parse from ~1.4.4 to ~1.5.0 - See: #291
- Update open from ^7.0.0 to ^8.0.0 - See: https://github.com/alallier/reload/pull/292/files
- Update ws from ~7.3.0 to ~7.4.6 - See: #294
- Update sinon from 9.1.0 to 11.1.1 - See: https://github.com/alallier/reload/pull/295/files
- Update mocha from 8.4.0 to 9.0.0 - See: https://github.com/alallier/reload/pull/297/files
- Update downstream y18n from 4.0.0 to 4.0.1 - See: #288
- Updated mocha from 7.1.2 to 8.1.3 - See: #255
- Updated codecov from 3.7.0 to 3.7.2 - See: #258 and #266
- Updated commander from 5.1.0 to 6.1.0 - See: #259 and #265
- Updated sinon from 9.0.2 to 9.1.0 - See: #264
- Changed
passphrase
option fromhttps.p12.passphrase
tohttps.passphrase
so it can be used for certAndKey configurations as well - See: #251 - Tweaked CI configuration file so GitHub Actions CI will also run on pull requests - See: #250
- Updated nyc from 15.0.1 to 15.1.0 - See: #249
- Fix the repository URL in package.json - See: #252
- Contains the changes from 3.1.0 but was semantically versioned incorrectly. It is recommended not to use this version and upgrade to 3.1.0
- Fixed bug where command line Reload where reload was writing to a file properly that broke on Node 14.x - See: #245
- GitHub Actions - See: #247
- Added Node 14.x to GitHub Actions CI
- Removed Node 13.x from GitHub Actions due to end of life
- Dependency Updates
- Updated codecov from 3.6.1 to 3.7.0 - See: #235 and #246
- Updated commander from 4.1.0 to 5.1.0 - See: #246
- Updated minimist from 1.2.0 to 1.2.3 (Security package-lock.json) - See: #236
- Updated mocha from 7.0.0 to 7.1.2 - See: #233
- Updated sinon from 8.0.4 to 9.0.2 - See: #231 and #234
- Updated standard from 14.3.1 to 14.3.4 - See: #238
- Updated nyc from 15.0.0 to 15.0.1 - See: #242
- Updated ws from 7.2.0 to 7.3.0 - See: #244
- Migrated CI to GitHub Actions - See: #222
- Moved sample app to a new project - See: #229
- Updated nyc from 14.1.1 to 15.0.0 - See: #224
- Updated sinon from 7.5.0 to 8.0.4 - See: #225
- Updated mocha from 6.2.2 to 7.0.0 - See: #226
- Updated commander from ~3.0.0 to ~4.1.0 - See: #220
- Removed tree-kill dependency - See: #223
- Updated cli-color from ~1.4.0 to ~2.0.0 - See: #212
- Updated open from ^6.1.0 to ^7.0.0 - See: #213
- Updated mocha from 6.2.1 to 6.2.2 - See: #214
- Updated ws from ~7.1.0 to ~7.2.0 - See: #215
- Updated express sample app's body-parser from 1.18.3 to 1.19.0 - See: #193
- Updated ws from ~6.2.1 to ~7.1.0 - See: #194
- Updated nyc from 14.0.0 to 14.1.1 - See: #195
- Updated serve-static from ~1.13.2 to ~1.14.0 - See: #196
- Updated codecov from 3.3.0 to 3.6.1 - See: #197
- Updated express in reload and sample from 4.16.4 to 4.17.1 - See: #198
- Updated mocha from 6.1.4 to 6.2.1 - See: #203
- Updated sinon from 7.3.2 to 7.5.0 - See: #204
- Updated commander from ~2.20.0 to ~3.0.0 - See: #205
- Updated standard from 12.0.1 to 14.3.1 - See: #206
- Use package.json files instead of
.npmignore
. See: #209 - Update CONTRIBUTING.md file for collaborators to ensure the sample app's reload version matches reload upstream. See: #210
- Renovate for auto dependency updating
- Codecov for coverage reports
- npmignore
- Contributing Document
- Updated documentation to better reflect new API with promises
- Added reload as dependency to sample app
- Moved Mocha to dev dependencies
Consult Migration Guide for help with updating from Version 2.x to 3.x
- Removed deprecated parameters (Reload no longer takes the server argument and will error if you provide it)
- Removed support for Node versions 4, 5, 6, 7, 8, and 9
- Reload now returns a promise
- Functions in the return API also return promises
closerServer
startWebSocketServer
- Reload returns errors in promises
- Functions in the return API also return promises
- Added unit tests. (See: #42)
- Added coverage analyzer
- Coverage 100% on
reload.js
file
- Coverage 100% on
- Added node 10 and 11 to the official supported list
- Added support for HTTPS
- Cert and Key or PFX/P12
- Note: This was available in version 1 and then was dropped in Version 2
- Added sample app README (See: #45)
- Added MIGRATION_GUIDE to help with migrating across major versions of reload
- Added force wss option
- CI jobs now use npm ci isntall (See: #158)
- Updates dependencies
- HTTPS - #143
- Unit tests - #42
- Document Fallback flag - #169
- Drop Node 4 support - #156
- Documentation on how to use sample app - #45
- Use npm ci install - #158
- Added new
-f
or--fallback
command-line flag. See: MR #167. Issue: #164 - Allow HTML pages to be routed with
.html
. See: MR #167. Issue: #166
- Fixed url-parse vulnerability. See: #160
- Added wss to return API. See: #148
- Added watch flag to command line. See: #155
- Security updates
- Updated finalhandler from
~1.0.3
to~1.1.1
. See: #154 - Replaced open with opn. See: #154
- Updated serve-static from
~1.12.3
to1.13.2
. See: #154 - Updated ws from
~3.0.0
to~5.2.0
. See: https://github.com/alallier/reload/commit/3310a66f80e04e48247e5c2ca4a2f4f12780294f - Updated standard from
^10.0.2
to^11.0.1
. See: https://github.com/alallier/reload/commit/073e91b33a00dcb37c7eb5fa7601cd71f7ea34e9
- Updated finalhandler from
Fixed bug that caused HTML files to not be served when using directory flag (reload command line). See: #139
Fixed regression causing reload command line to only serve HTML files. See: #134
- Dropped express as a dependency (in reload command line). Reload now uses a vanilla node http server to achieve the same result. This update for the command line offers no changes to the end user and simply modifies the underlying code. See: #132
- Added the ability to have the WebSocket server start wait. (For more information read about the
webSocketServerWaitStart
parameter) See: #130
- Adjusted wording in README. See: #123
- Removed MacOS Travis Building. See: #125
- Fixed bug when running command line on port 80. See: #128
See V2.0.0 PR #118
- Added object based parameters (Issue #77 / Originally solved in PR #101 and refactored in #104)
- Added port configuration (Issue #60 / Originally solved in PR #68 and refactored in #104)
- Added timestamp to reload command line reloading (Issue #7 / PR #78)
- Added node 8 support (Issue #106 / PR #119)
- Added table of contents to README (Issue #103 / PR #105)
- Added return API to README (PR #121)
- Abstracted reload call to an index.js file. Index file now calls
reload.js
source file. This is to abstract the reload command line calling with a third argument that is now private and not apart of the public API (PR #117) - Update dependencies to latest and add package-lock.json files (PR #109)
- Audited and refactored return API (Issue #120 / PR #121)
- Drop support for server and just use ports (Issue #102 / PR #104)
- Removed support of node 0.1 and 0.12 (Issue #73 / PR #86)
- Separate server and app initialization into two parts. (This was originally fixed in PR #71 but was reversed in PR #104 when the decision to drop server was made.)
This version makes breaking changes to the reload API. The only required argument to reload now is app
. This makes reload a lot easier to use. Reload takes a maximum of two arguments app
and an opts
(options) object with the following optional parameters, port
, route
, and verbose
. Reload runs on default port 9856
unless otherwise specified in the opts
object.
Before Version 2 reload always attached to your server's port by passing the server in a argument to reload. We have now dropped support for server and reload runs on ports only. Reload now has one required parameter app
and one optional parameter opts
an object of reload options. Below are two upgrade examples for the only two possible 1.x configurations.
Upgrade with required arguments: reload(server, app)
becomes reload(app)
Upgrade with both required arguments and the one optional argument: reload(server, app, true)
becomes reload(app, {verbose: true})
It is important to note that reload only uses ports now. So upgrading using the examples above will have reload run on it's default port 9856
. If you want to run reload on a different port you need to specify a port in the opts
object like: reload(app, {port: 9852})
Most people can just use the default settings, allowing reload(app)
to work in most cases.
Please refer to the full API in the README.
Repository ownership was transfered from jprichardson to alallier
- Updated Travis badge after ownership change. See: #116
- Updated AppVeyor badge after ownership change. See: #112
- Updated README after owernship change. See: #115
- Changed style of npm badge to match the others. See: #111
Add Mac building in Travis. See #98
Fixed standard call so that our bin file also got tested. See #85
Added AppVeyor to build our tests in an Windows environment. See #92
Upgrade Standard to ~10.0.2
in order for the build to pass node 0.1
and 0.12
Also removed depricated fs.exists
and replaced with fs.access
See: #75
Fix multiple websockets at once when using reload.reload(); See: #57
Fixed undefined error log on send message. See: #59
Added client end web socket support for https. See: #54
Added error handling to websocket send. See: #49
Fixed onbeforeunload event not firing in reload-client See: #46
Added
- Two new badges to the README (code-style and npm version)
- Verbose mode as option for both Express and command line usage
- A sample app for express
Modified
- Re-wrote the README to reflect all of these changes
- Updated dependencies to their latest version’s
- Fixed race condition that caused reload to spam the server when using sockets for automatic reloading
Removed
- All delays (wait, normal, and socket) (Reload is now all automatic using web sockets (no delays at all))
- Client side sockjs web sockets (removed sockjs) (Now using native web sockets on the client side and ws on server side)
See: #41
- Fixed regression caused by Windows line endings. See: #40
- Allow reload from node server. See: #38
- fixed
wait
flag: #27
- added option for start page. See: #20
- Added Express 4 Support
- silence sockjs
- created
reload
bin that is useful for browser/html development
- fixed bug that caused failure on hashbang urls
- set proper mime type on reload.js client side script
- Initial release.