rsnext/packages/next/compiled
JJ Kasper 75748caf7f
Migrate server-sent events HMR connection to WebSocket (#29903)
This replaces the server-sent events HMR connection with a WebSocket connection to prevent hitting browser connection limits, allow sending events back from the browser, and overall better performance. 

This approach sets up the the `upgrade` event listener on the server immediately when created via `next dev` and on the first request using `req.socket.server` when created via a custom server. In a follow-up PR we can push the files changed via the WebSocket as well. 

x-ref: https://github.com/vercel/next.js/issues/10061
x-ref: https://github.com/vercel/next.js/issues/8064
x-ref: https://github.com/vercel/next.js/issues/4495

## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes
2021-10-15 07:09:54 +00:00
..
@vercel/nft Update to latest @vercel/nft (#29902) 2021-10-14 06:12:33 +00:00
amphtml-validator feat: webpack inlining with configuration for v4 / v5 (#20598) 2021-01-13 20:59:08 -05:00
arg feat: webpack inlining with configuration for v4 / v5 (#20598) 2021-01-13 20:59:08 -05:00
async-retry Use @vercel/fetch for run-tests requests (#27815) 2021-08-06 10:20:05 -05:00
async-sema feat: webpack inlining with configuration for v4 / v5 (#20598) 2021-01-13 20:59:08 -05:00
babel Update test set-up to leverage playwright when able to (#28634) 2021-09-13 14:36:25 +02:00
babel-packages Update test set-up to leverage playwright when able to (#28634) 2021-09-13 14:36:25 +02:00
ci-info feat: webpack inlining with configuration for v4 / v5 (#20598) 2021-01-13 20:59:08 -05:00
cli-select [ESLint] Introduce a new setup process when next lint is run for the first time (#26584) 2021-08-04 21:53:15 +00:00
comment-json feat: webpack inlining with configuration for v4 / v5 (#20598) 2021-01-13 20:59:08 -05:00
compression feat: webpack inlining with configuration for v4 / v5 (#20598) 2021-01-13 20:59:08 -05:00
conf Upgrade eslint to the latest version (#24377) 2021-04-25 18:34:36 +00:00
content-type feat: webpack inlining with configuration for v4 / v5 (#20598) 2021-01-13 20:59:08 -05:00
cookie feat: webpack inlining with configuration for v4 / v5 (#20598) 2021-01-13 20:59:08 -05:00
cross-spawn [ESLint] Introduce a new setup process when next lint is run for the first time (#26584) 2021-08-04 21:53:15 +00:00
debug Upgrade jest-worker (#23077) 2021-03-16 21:08:35 +00:00
devalue feat: webpack inlining with configuration for v4 / v5 (#20598) 2021-01-13 20:59:08 -05:00
escape-string-regexp feat: webpack inlining with configuration for v4 / v5 (#20598) 2021-01-13 20:59:08 -05:00
file-loader the way towards webpack 5 typings (#29105) 2021-09-21 19:17:16 +02:00
find-cache-dir Remove experimental babel flag (#24776) 2021-05-07 19:17:45 +02:00
find-up Delay server compilation until client compilation is done in development (#22187) 2021-02-19 11:10:19 +01:00
fresh feat: webpack inlining with configuration for v4 / v5 (#20598) 2021-01-13 20:59:08 -05:00
glob Add entrypoint tracing (#25538) 2021-08-16 19:29:11 +00:00
gzip-size feat: webpack inlining with configuration for v4 / v5 (#20598) 2021-01-13 20:59:08 -05:00
http-proxy feat: webpack inlining with configuration for v4 / v5 (#20598) 2021-01-13 20:59:08 -05:00
icss-utils Remove webpack 4 support (#29660) 2021-10-06 17:40:01 +02:00
ignore-loader feat: webpack inlining with configuration for v4 / v5 (#20598) 2021-01-13 20:59:08 -05:00
is-animated feat: webpack inlining with configuration for v4 / v5 (#20598) 2021-01-13 20:59:08 -05:00
is-docker feat: webpack inlining with configuration for v4 / v5 (#20598) 2021-01-13 20:59:08 -05:00
is-wsl feat: webpack inlining with configuration for v4 / v5 (#20598) 2021-01-13 20:59:08 -05:00
json5 Upgrade eslint to the latest version (#24377) 2021-04-25 18:34:36 +00:00
jsonwebtoken feat: webpack inlining with configuration for v4 / v5 (#20598) 2021-01-13 20:59:08 -05:00
loader-utils Remove webpack 4 support (#29660) 2021-10-06 17:40:01 +02:00
lodash.curry feat: webpack inlining with configuration for v4 / v5 (#20598) 2021-01-13 20:59:08 -05:00
lru-cache Upgrade to lerna 4 (#22039) 2021-02-12 13:34:25 +01:00
mini-css-extract-plugin the way towards webpack 5 typings (#29105) 2021-09-21 19:17:16 +02:00
nanoid feat: webpack inlining with configuration for v4 / v5 (#20598) 2021-01-13 20:59:08 -05:00
neo-async feat: webpack inlining with configuration for v4 / v5 (#20598) 2021-01-13 20:59:08 -05:00
ora feat: webpack inlining with configuration for v4 / v5 (#20598) 2021-01-13 20:59:08 -05:00
postcss-flexbugs-fixes Use consistent postcss version for all transforms (#28529) 2021-09-02 08:45:35 +02:00
postcss-modules-extract-imports Remove webpack 4 support (#29660) 2021-10-06 17:40:01 +02:00
postcss-modules-local-by-default Remove webpack 4 support (#29660) 2021-10-06 17:40:01 +02:00
postcss-modules-scope Remove webpack 4 support (#29660) 2021-10-06 17:40:01 +02:00
postcss-modules-values Remove webpack 4 support (#29660) 2021-10-06 17:40:01 +02:00
postcss-preset-env Use consistent postcss version for all transforms (#28529) 2021-09-02 08:45:35 +02:00
postcss-safe-parser Use consistent postcss version for all transforms (#28529) 2021-09-02 08:45:35 +02:00
postcss-scss fix: upgrade cssnano/postcss version (#24034) 2021-04-14 08:44:07 +00:00
postcss-value-parser Use consistent postcss version for all transforms (#28529) 2021-09-02 08:45:35 +02:00
resolve-url-loader Use consistent postcss version for all transforms (#28529) 2021-09-02 08:45:35 +02:00
sass-loader Support node-sass@6 (#28710) 2021-09-09 11:00:19 +02:00
schema-utils2 the way towards webpack 5 typings (#29105) 2021-09-21 19:17:16 +02:00
schema-utils3 the way towards webpack 5 typings (#29105) 2021-09-21 19:17:16 +02:00
semver feat: webpack inlining with configuration for v4 / v5 (#20598) 2021-01-13 20:59:08 -05:00
send feat: webpack inlining with configuration for v4 / v5 (#20598) 2021-01-13 20:59:08 -05:00
source-map feat: webpack inlining with configuration for v4 / v5 (#20598) 2021-01-13 20:59:08 -05:00
string-hash feat: webpack inlining with configuration for v4 / v5 (#20598) 2021-01-13 20:59:08 -05:00
strip-ansi fix(link): cancel idle callback on unmount (#22072) 2021-02-11 13:51:41 -05:00
terser Update to latest @vercel/nft and use async fs methods (#29341) 2021-09-23 21:22:14 +00:00
text-table feat: webpack inlining with configuration for v4 / v5 (#20598) 2021-01-13 20:59:08 -05:00
unistore feat: webpack inlining with configuration for v4 / v5 (#20598) 2021-01-13 20:59:08 -05:00
web-vitals Upgrades web-vitals to v1.1.2. (#25272) 2021-07-12 16:18:51 +00:00
webpack update webpack (#29870) 2021-10-13 17:21:15 +02:00
webpack-sources1 the way towards webpack 5 typings (#29105) 2021-09-21 19:17:16 +02:00
webpack-sources3 the way towards webpack 5 typings (#29105) 2021-09-21 19:17:16 +02:00
ws Migrate server-sent events HMR connection to WebSocket (#29903) 2021-10-15 07:09:54 +00:00