chore(dependencies): update dependency browser-sync to 2.23.x #46
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This Pull Request updates dependency browser-sync from
2.18.xto2.23.xRelease Notes
v2.23.0notifycommand over HTTP protocol ac86665bbde182ff1c033bf915cbeb06e8103c61 (closes #1467)watchoption - (see below)@imports- thanks to Live Reload fb26e82aa69a851bc5db46381420f5c3fc5d1a8b (closes #10)singleoption - adds a middleware to help with SPAs (serves index.html for all non-matching routes) 91480aa692779825aef0791b79d79139e56030f4ignoreoption - shortcut for adding towatchOptions.ignored- added because of the newwatchoptiongit checkoutwithout any configuration fd3d074b80da14b99027018de0f1ea8da4ef9ce5Highlights
Easier CLI commands
In an attempt to streamline the common use-cases, Browsersync will now attempt to 'do the right thing' when no command is provided, for example:
To run a static server, serving from the current directory
To run a static server, serving from 2 directories:
If the directory contains a 'index.html' file, you can omit any input and just run:
### after browser-syncYou can run the proxy in this manner too
### after browser-sync https://example.comTo run a proxy, whilst also serving static files
### after browser-sync https://example.com htdocs/themes/exampleNew
watchoptionBecause we now have the shorthand ways of launching servers/proxies, eg:
browser-sync .- it also made sense to automatically watch files too. So, ifwatch: true- then Browsersync will make a best-guess at which files to automatically watch.Here's a comparison to the old way (which will still work, of course)
Behind the scenes, Browsersync is just looking at served directories (in this case,
app) andadding it to the regular
filesoption as normal.It means the following the 2 configurations are identical, but the latter is better since there's no
repetition.
{ "server": {"baseDir": ["app"]}, "files": ["app"] }{ "server": {"baseDir": ["app"]}, "watch": "true" }New
ignoreoptionAdded as a convenience since we have simpler watching via the
watchflag. Use it to ignore any patterns that should not cause Browsersync reloads/injectionsExample:
- Serve files from the 'app' directory
- Watch all files
- But, exclude
**/*.js(if using Webpack, etc)CLI:
browser-sync app -w --ignore '**/*.js'Config:
{ "server": "app", "watch": true, "ignore": "**/*.js" }New
singleoption, easy SPA developmentThis option will add the
connect-history-api-fallbackmiddleware automatically for you, meaning that developing with client-side routers can be done without configuring this middleware manuallyExample:
- Serve files from the
appdirectory- Watch all files
- Serve
index.htmlfor all none matching routesFall back to a directory listing if a request gives a 404
No more
Cannot Get /' messages. If you run Browsersync in a directory where there's noindex.html, a directory listing will be shown instead.v2.23.2CLI
type: arrayin server field of startOpts b24514b8818f3646944835288df6f9c5e241f20ev2.23.3misc
type: arrayin server field of startOpts" - fixes #1483 (This reverts commit b24514b) 31150d62eeb3a9d176eba075045d57b5bbb2e97dv2.23.6https://github.com/BrowserSync/browser-sync-client/issues/45Commits
v2.19.0
86cda87Use correct markdown heading formatae438d8Adding options to http2 modulebedc7feFix homepage in package.json4c4b821Fix repository casing in package.jsone6be4e9fix(deps): remove weinre - fixes #1413a069c042.19.0v2.20.0
ac86665fix(http-protocol): enable notify command over http - closeshttps://github.com/BrowserSync/browser-sync/pull/14679a0888eMerge branch 'master' into fix-package-json399bf9eMerge branch 'master' into fix-package-jsone0668afMerge pull request #1441 from shroudedcode/fix-package-json242ca4cMerge pull request #1439 from Hrafnkellos/master4098c27Merge pull request #1432 from luftywiranda13/patch-13645283deps: update custom lodash - closeshttps://github.com/BrowserSync/browser-sync/pull/141105ba853stripping how client works619f580Add client to main repo1f4575ddeps: Update to latest browser-sync-uief92799deps: remove hard-coded socket.io scriptba93a88Merge branch 'socket-io-update' - fixes #13923b7e8cbci: build on node 820bf54atests: update tests to support new way of loading client/socket12722582.20.0v2.20.1
23bd4deAdded tailwind fixture58d203edeps: add deps missing from client - fixes #14718344d0b2.20.1v2.21.0
d45d04cadding cleaner cli commands91b7e89dx: make it easier to launch a server/proxy re: #12534e4d01e2.21.0v2.22.0
a4bc2fdchore: move certs to top-level3165cacchore: move templates to top level22052d8chore: move cli-options to top levelbe41d11move files around to support Typescriptacbaa65ts: fix tests to work with new directory structure0e7052blink: prettier1a8ac77chore: remove un-used gulpfileb456e57Merge branch 'ts'b0382f8bin: convert to TS411e162lint: test files911aeedcomments/refactor for bin.tsf260b42cli: process start args when using shorthand756c49ets: command.start325dad8Update README.mdfd3d074perf: support flexible buffers for file-watchers386fcd6Merge remote-tracking branch 'origin/master'a62eb89build client with webpack + TS + awesome-typescript loader0d99420deps: add crossbow for builde142eafcli: fix shorthand proxya3446deadding AMD stub545c7falogger: Provide info about buffered FS events44cdc7etests: updating to use schedulers on time-related buffersa62b0dftests: update .reload() api tests4c7530atests: update .stream() api tests4c66bb8tests: update wherever stream/reload used to include scheduler controlfb26e82feat: support CSS imports - fixes #10cb5b44cclient: log when a stylesheet will be affected55319cbclient: support liveImg updating34429f4fixtures: add nested @import rulesbe1a477fixtures: css file under .tmp directory2a2d881cli: add cwd, watch and ignore flagsa5e214btests: adding tests for option merging2c744c8tests: run all tests393309boptions: switch to pipeline of transformsb5cc56efeat: add directory listing for serve-static mode91480aafeat: add 'single' flag to put Browsersync into SPA modedd35b50make it clearer where default ignore patterns originatef72a6ad2.22.0v2.23.0
dbb1267watcher: adding cwd + ignore defaults to all0f8c240chore: move all option mods to single pipeline863bac12.23.0v2.23.1
34ce044docs: new default optionsbced1c82.23.1v2.23.2
b24514bFix the missingtype: arrayin server field of startOptse331c96Merge pull request #1476 from yuheiy/fix-cli-options0b04a7achangelog generatord55b465add misc field to generator148ac022.23.2v2.23.3
9bc6d9cUpdate immutable dependency version to get newer license620e9aefix(server-middleware): allow res.end -> next() in middeware flow when no serveStatic exists - fixes #148131150d6Revert "Fix the missingtype: arrayin server field of startOpts" - fixes #1483a5b56032.23.3v2.23.4
ce6d335fix(client): enable img injection - fixes #148955127feRemove tracef957956fix(client): regression over injection of extensions declared underconfig.injectFileTypes13065aeMerge pull request #1479 from ThiagoMVF/tf-bump-immutable-version4f42b81compiled assets6ba435c2.23.4v2.23.5
a40092dfix(server): default to baseDir: ['./'] when object with routes given for server68850c0chore: apply prettier126cc702.23.5v2.23.6
2ccd8acdefer to crossbow for buildfa7e791fix(css-injection): enable smoother CSS file for none-css files - re: #1488ecc6671fix(watcher): remove greedy regexes - fixes #149011018e6add example for notify styles391a7a9fixtures: added new bootstrap examples9e900dffix(client): remove sourcemaps - fixes #1498,https://github.com/BrowserSync/browser-sync-client/issues/45fa80f7dcompiled assetsca41bf12.23.6This PR has been generated by Renovate Bot.