Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Feb 8, 2018

This Pull Request updates dependency browser-sync from 2.18.x to 2.23.x

Release Notes

v2.23.0

  • Fixed: removed weinre from the UI - it was using deprecated packages, and is un-maintained. e6be4e9058f862425264b689b807f42575c9ba6a
  • Fixed: Updated socket.io to the latest version (security advisory)
  • Fixed: Allow notify command over HTTP protocol ac86665bbde182ff1c033bf915cbeb06e8103c61 (closes #​1467)
  • New: CI: build on node 8 (latest lts) 3b7e8cbe8b3b5cc3fb1f8891318a0c22df60e21b
  • New: Easier CLI commands for common flows. (see below) 91b7e89155bc6b3bfd3860f3105b7e76396acf86
  • New: watch option - (see below)
  • New: Supports CSS @imports - thanks to Live Reload fb26e82aa69a851bc5db46381420f5c3fc5d1a8b (closes #​10)
  • New: Fall back to a directory listing if a request gives a 404 b5cc56e64d906eaddc897bf34bb07dc5b4bf3c9c
  • New: single option - adds a middleware to help with SPAs (serves index.html for all non-matching routes) 91480aa692779825aef0791b79d79139e56030f4
  • New: ignore option - shortcut for adding to watchOptions.ignored - added because of the new watch option
  • Improved: Perf: Always group file-changes into flexible 500ms buffers - this will help things such as git checkout without any configuration fd3d074b80da14b99027018de0f1ea8da4ef9ce5
  • Improved: Perf: Adding adding cwd + ignore defaults to all watcher options dbb1267af51a6e27df4657fb487ec887a7bd8baa
  • Changed: Log CSS file injections into the console (rather than the overlay, which always gets in the way) cb5b44c0e7393b6f083b1000848bba8fce602d9f

Highlights

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

### before
browser-sync start --server
### after
browser-sync .

To run a static server, serving from 2 directories:

### before
browser-sync start --server app/src app/tmp
### after
browser-sync app/src app/tmp

If the directory contains a 'index.html' file, you can omit any input and just run:

### after
browser-sync

You can run the proxy in this manner too

### after
browser-sync https://example.com

To run a proxy, whilst also serving static files

### after
browser-sync https://example.com htdocs/themes/example
New watch option

Because we now have the shorthand ways of launching servers/proxies, eg: browser-sync . - it also made sense to automatically watch files too. So, if watch: 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)

### before
browser-sync start --server ./app --files ./app
### after
browser-sync ./app -w

Behind the scenes, Browsersync is just looking at served directories (in this case, app) and
adding it to the regular files option 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 ignore option

Added as a convenience since we have simpler watching via the watch flag. Use it to ignore any patterns that should not cause Browsersync reloads/injections

Example:
- 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 single option, easy SPA development

This option will add the connect-history-api-fallback middleware automatically for you, meaning that developing with client-side routers can be done without configuring this middleware manually

Example:
- Serve files from the app directory
- Watch all files
- Serve index.html for all none matching routes

browser-sync app -w --single

Fall 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 no index.html, a directory listing will be shown instead.


v2.23.2

CLI

  • Fix the missing type: array in server field of startOpts b24514b8818f3646944835288df6f9c5e241f20e

v2.23.3

misc

  • Revert "Fix the missing type: array in server field of startOpts" - fixes #​1483 (This reverts commit b24514b) 31150d62eeb3a9d176eba075045d57b5bbb2e97d
  • fix(server-middleware): allow res.end -> next() in middeware flow when no serveStatic exists - fixes #​1481 620e9ae3f3a00624315c6c5d1c121cac3fd6bfde

v2.23.6

  • fix(client): remove sourcemaps - fixes #​1498, https://github.com/BrowserSync/browser-sync-client/issues/45
  • fix(watcher): remove greedy regexes - fixes #​1490
  • fix(css-injection): enable smoother CSS file for none-css files - re: #​1488

Commits

v2.19.0

  • 86cda87 Use correct markdown heading format
  • ae438d8 Adding options to http2 module
  • bedc7fe Fix homepage in package.json
  • 4c4b821 Fix repository casing in package.json
  • e6be4e9 fix(deps): remove weinre - fixes #​1413
  • a069c04 2.19.0

v2.20.0

  • ac86665 fix(http-protocol): enable notify command over http - closes https://github.com/BrowserSync/browser-sync/pull/1467
  • 9a0888e Merge branch 'master' into fix-package-json
  • 399bf9e Merge branch 'master' into fix-package-json
  • e0668af Merge pull request #​1441 from shroudedcode/fix-package-json
  • 242ca4c Merge pull request #​1439 from Hrafnkellos/master
  • 4098c27 Merge pull request #​1432 from luftywiranda13/patch-1
  • 3645283 deps: update custom lodash - closes https://github.com/BrowserSync/browser-sync/pull/1411
  • 05ba853 stripping how client works
  • 619f580 Add client to main repo
  • 1f4575d deps: Update to latest browser-sync-ui
  • ef92799 deps: remove hard-coded socket.io script
  • ba93a88 Merge branch 'socket-io-update' - fixes #​1392
  • 3b7e8cb ci: build on node 8
  • 20bf54a tests: update tests to support new way of loading client/socket
  • 1272258 2.20.0

v2.20.1

  • 23bd4de Added tailwind fixture
  • 58d203e deps: add deps missing from client - fixes #​1471
  • 8344d0b 2.20.1

v2.21.0

  • d45d04c adding cleaner cli commands
  • 91b7e89 dx: make it easier to launch a server/proxy re: #​1253
  • 4e4d01e 2.21.0

v2.22.0

  • a4bc2fd chore: move certs to top-level
  • 3165cac chore: move templates to top level
  • 22052d8 chore: move cli-options to top level
  • be41d11 move files around to support Typescript
  • acbaa65 ts: fix tests to work with new directory structure
  • 0e7052b link: prettier
  • 1a8ac77 chore: remove un-used gulpfile
  • b456e57 Merge branch 'ts'
  • b0382f8 bin: convert to TS
  • 411e162 lint: test files
  • 911aeed comments/refactor for bin.ts
  • f260b42 cli: process start args when using shorthand
  • 756c49e ts: command.start
  • 325dad8 Update README.md
  • fd3d074 perf: support flexible buffers for file-watchers
  • 386fcd6 Merge remote-tracking branch 'origin/master'
  • a62eb89 build client with webpack + TS + awesome-typescript loader
  • 0d99420 deps: add crossbow for build
  • e142eaf cli: fix shorthand proxy
  • a3446de adding AMD stub
  • 545c7fa logger: Provide info about buffered FS events
  • 44cdc7e tests: updating to use schedulers on time-related buffers
  • a62b0df tests: update .reload() api tests
  • 4c7530a tests: update .stream() api tests
  • 4c66bb8 tests: update wherever stream/reload used to include scheduler control
  • fb26e82 feat: support CSS imports - fixes #​10
  • cb5b44c client: log when a stylesheet will be affected
  • 55319cb client: support liveImg updating
  • 34429f4 fixtures: add nested @​import rules
  • be1a477 fixtures: css file under .tmp directory
  • 2a2d881 cli: add cwd, watch and ignore flags
  • a5e214b tests: adding tests for option merging
  • 2c744c8 tests: run all tests
  • 393309b options: switch to pipeline of transforms
  • b5cc56e feat: add directory listing for serve-static mode
  • 91480aa feat: add 'single' flag to put Browsersync into SPA mode
  • dd35b50 make it clearer where default ignore patterns originate
  • f72a6ad 2.22.0

v2.23.0

  • dbb1267 watcher: adding cwd + ignore defaults to all
  • 0f8c240 chore: move all option mods to single pipeline
  • 863bac1 2.23.0

v2.23.1

v2.23.2

  • b24514b Fix the missing type: array in server field of startOpts
  • e331c96 Merge pull request #​1476 from yuheiy/fix-cli-options
  • 0b04a7a changelog generator
  • d55b465 add misc field to generator
  • 148ac02 2.23.2

v2.23.3

  • 9bc6d9c Update immutable dependency version to get newer license
  • 620e9ae fix(server-middleware): allow res.end -> next() in middeware flow when no serveStatic exists - fixes #​1481
  • 31150d6 Revert "Fix the missing type: array in server field of startOpts" - fixes #​1483
  • a5b5603 2.23.3

v2.23.4

  • ce6d335 fix(client): enable img injection - fixes #​1489
  • 55127fe Remove trace
  • f957956 fix(client): regression over injection of extensions declared under config.injectFileTypes
  • 13065ae Merge pull request #​1479 from ThiagoMVF/tf-bump-immutable-version
  • 4f42b81 compiled assets
  • 6ba435c 2.23.4

v2.23.5

  • a40092d fix(server): default to baseDir: ['./'] when object with routes given for server
  • 68850c0 chore: apply prettier
  • 126cc70 2.23.5

v2.23.6

  • 2ccd8ac defer to crossbow for build
  • fa7e791 fix(css-injection): enable smoother CSS file for none-css files - re: #​1488
  • ecc6671 fix(watcher): remove greedy regexes - fixes #​1490
  • 11018e6 add example for notify styles
  • 391a7a9 fixtures: added new bootstrap examples
  • 9e900df fix(client): remove sourcemaps - fixes #​1498, https://github.com/BrowserSync/browser-sync-client/issues/45
  • fa80f7d compiled assets
  • ca41bf1 2.23.6

This PR has been generated by Renovate Bot.

@renovate renovate bot added the renovate label Feb 8, 2018
@codecov
Copy link

codecov bot commented Feb 8, 2018

Codecov Report

Merging #46 into develop will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop      #46   +/-   ##
========================================
  Coverage    99.13%   99.13%           
========================================
  Files           14       14           
  Lines          460      460           
  Branches        79       79           
========================================
  Hits           456      456           
  Misses           4        4

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e612c36...6e8fde7. Read the comment docs.

Copy link
Owner

@itsdevdom itsdevdom left a comment

Choose a reason for hiding this comment

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

LGTM!

@itsdevdom itsdevdom merged commit 059bcbe into develop Feb 9, 2018
@itsdevdom itsdevdom deleted the renovate/browser-sync-2.x branch February 9, 2018 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants