-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
V4 #2592
V4 #2592
Conversation
* chore(deps): upgrade chokidar * chore(deps): switch to promise method without async for close * chore(ci): remove node v6 * chore(deps): fix issue of closing watchers before middleware * chore(deps): upgrade chokidar to v3.4.0
* chore(deps): upgrade deps * style: run prettier * test: update * ci: remove Node@8 * test(cli): add windows support * chore(deps): downgrade puppeteer * chore(deps): downgrade some deps * fix(hot): enable hot option as default (#2546) BREAKING CHANGE: the `hot` option is `true` by default, the `hotOnly` option was removed in favor `{ hot: 'only' }` * fix: remove lazy and filename options (#2544) BREAKING CHANGE: `lazy` and `filename` options was removed
BREAKING CHANGE: switch default transportMode to ws
…nd requestCert to https object (#2564)
BREAKING CHANGE: the `client` now in `default` directory
BREAKING CHANGE: the `setup` was removed, `before` and `after` options were renamed to `onBeforeSetupMiddleware` and `onAfterSetupMiddleware`
Lint CI will fail because |
Codecov Report
@@ Coverage Diff @@
## master #2592 +/- ##
==========================================
- Coverage 93.77% 92.45% -1.32%
==========================================
Files 34 38 +4
Lines 1333 1246 -87
Branches 381 324 -57
==========================================
- Hits 1250 1152 -98
- Misses 81 89 +8
- Partials 2 5 +3
Continue to review full report at Codecov.
|
BREAKING CHANGE: `sockHost`, `sockPath` and `sockPort` options were removed in favor the `clientOptions` option
BREAKING CHANGE: only for Node.js API, all options are now in `devServer.options`
BREAKING CHANGE: `log`, `logLevel`, `logTime`, `noInfo`, `quiet`, `reporter` and `warn` options were removed in favor built-in webpack logger, please use https://webpack.js.org/configuration/other-options/#infrastructurelogginglevel for enable and setup logging output
BREAKING CHANGE: the `hot` value prefers from CLI over the configuration
@gandhiamarnadh hope this week |
…y if specified (#2849)
/cc @hiroppy I think time to merge this to master and do beta release, we will move other client options in the next beta ( |
@alexander-akait Yes! GoGo! Can you write the changelog including the migration guide to the release page? |
@hiroppy yep, I will do it today 👍 |
Two missing breaking changes:
|
@ylemkimon thanks, I will check every PR to when write CHANGELOG to make sure we haven't missed anything |
Time to release |
I think this should have been merged via a merge commit or rebase merging. |
@ylemkimon yes, you are right here, but we have very dirtly commit history here, so I prefer to squash it, we will avoid it in future |
Found strange thing with our client, we loaded not bundled client, WIP on this |
Yes we have a bug, not easy to fix, so I am doing release and try to fix it tomorrow, we should use |
Also found bug we write |
@ylemkimon https://github.com/webpack/webpack-dev-server/releases/tag/v4.0.0-beta.0, maybe you can help us more?
|
@alexander-akait I've tested the beta in one of my projects and it works nicely. Thank you for the great work! I currently don't have much time but will try.
Doesn't dev-server and middleware use webpack's InfrastructureLogger? |
yes, but for stats, we should not use logger, because logger always use stderr (diagnostic) |
Breaking Changes
hot
enabled by defaulttransportMode
is switched fromsockjs
tows
hotOnly
andhot
acceptsboolean
andonly
before
,after
, andsetup
and addonBeforeSetupMiddleware
andonAfterSetupMiddleware
key
,cert
,pfx
,pfx-passphrase
, andrequestCert
from CLI and webapck.config.jshttps.{key|cert|pfx|passphrase|requestCert}
inline
andiframe/live mode
lazy
andfilename
features
this.options.xxx
log
,logLevel
,logTime
,noInfo
,quiet
,reporter
andwarn
options were removed in favor of built-in webpack logger, please use https://webpack.js.org/configuration/other-options/#infrastructurelogginglevel to enable and set up logging outputhot
value prefers the CLI--hot
flag over the configurationhot
option - it is a fixclientOptions
toclient
fs
,index
,mimeTypes
,publicPath
,serverSideRender
, andwriteToDisk
in favor ofdev
option for anywebpack-dev-middleware
configurationwebpack-dev-middleware
tov4
, which includes many breaking options changesstats
option andcolor
CLI flag in favor of webpackstats
optionsocket
optioncontentBase
,contentBasePublicPath
,serveIndex
,staticOptions
,watchContentBase
,watchOptions
in favor ofstatic
createConfig
util API changesdisableHostCheck
andallowedHosts
removed in favor offirewall
Fixes
fix(client): use location protocol on ipv6 any (::) host (#2868)
For Bugs and Features; did you add new tests?
Yep
Motivation / Use-Case
We decided to release a new version as V4.
Breaking Changes
Yep
Additional Info
DON'T USE SQUASH AND MERGE