rsnext/packages/next/server
Shu Ding cc254cc19c
Use customized chunk loading implementation (#37163)
Follow-up PR for #37134, this PR adds back the hash in each chunk's filename. This `chunks` in the flight manifest will now be `chunkId:chunkFilename` with this PR, and `globalThis.__next_chunk_load__` then handles the chunk registration (uses chunkId) and chunk loading (uses chunkFilename). (Q: how can we port this to React?)

We can't use `[contenthash]` but only `[chunkhash]` because at the stage of generating the flight manifest, the content isn't finalized and the hash changes after that.

## 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 by running `yarn lint`
2022-05-24 22:04:27 +00:00
..
api-utils fix NextApiRequestCookies and NextApiRequestQuery types (#25532) 2022-05-23 00:48:26 +00:00
base-http Allow reading request bodies in middlewares (#34294) (#34519) 2022-02-18 19:43:43 +00:00
dev fix(typescript): worker execution failed with custom next.config.js (#37125) 2022-05-23 20:30:48 +00:00
lib Tweak routing tests (#36667) 2022-05-05 13:15:32 +02:00
send-payload Reduce the size of web server (#34767) 2022-02-24 19:53:17 +00:00
web feat(middleware): issues warnings when using node.js global APIs in middleware (#36980) 2022-05-23 11:07:26 +02:00
accept-header.ts Implement Middleware RFC (#30081) 2021-10-20 17:52:11 +00:00
base-server.ts Support TS exactOptionalPropertyTypes (fixes #35280) (#35281) 2022-05-23 05:26:44 +00:00
body-streams.ts fix post request hangs when no body is consumed on middleware (#35131) 2022-03-08 19:24:58 +00:00
config-shared.ts Stabilize SWC emotion transform plugin (#37058) 2022-05-21 04:09:30 +00:00
config-utils.ts Remove webpack 4 support (#29660) 2021-10-06 17:40:01 +02:00
config.ts Stabilize SWC emotion transform plugin (#37058) 2022-05-21 04:09:30 +00:00
crypto-utils.ts Move next-server directory files to server directory (#26756) 2021-06-30 13:44:40 +02:00
font-utils.ts Move next-server directory files to server directory (#26756) 2021-06-30 13:44:40 +02:00
get-page-files.ts Add initial handling for routing tests (#36635) 2022-05-03 10:37:23 +00:00
get-route-from-entrypoint.ts Tweak routing tests (#36667) 2022-05-05 13:15:32 +02:00
htmlescape.ts Upgrade to Prettier 2 (#13061) 2020-05-18 15:24:37 -04:00
image-optimizer.ts Add experimental wildcard remotePatterns config for upstream images (#36245) 2022-05-05 02:19:16 +00:00
incremental-cache.ts Refactor Page Paths utils and Middleware Plugin (#36576) 2022-04-30 11:19:27 +00:00
load-components.ts Keep custom app as non server component (#37044) 2022-05-20 18:07:20 +00:00
next-server.ts Fix DecodeError from invalid URI causes 500 with middleware vs 400 without (#36993) 2022-05-21 22:25:51 -05:00
next.ts Deprecate nested Middleware in favor of root middleware (#36772) 2022-05-19 15:46:21 +00:00
node-polyfill-fetch.js Pre-compile more dependencies (#32742) 2022-01-17 15:17:22 +00:00
node-polyfill-web-streams.js Update polyfill of web streams (#35571) 2022-04-07 16:26:30 +02:00
node-web-streams-helper.ts Update client router for tests (#36822) 2022-05-12 20:52:59 +00:00
optimize-amp.ts Move next-server directory files to server directory (#26756) 2021-06-30 13:44:40 +02:00
post-process.ts Enable html post optimization for react 18 (#36837) 2022-05-12 17:41:37 +00:00
render-result.ts Add unstable_useFlushEffects hook (#34117) 2022-02-18 00:18:28 +00:00
render.tsx Use customized chunk loading implementation (#37163) 2022-05-24 22:04:27 +00:00
request-meta.ts Ensure we don't poll page in development when notFound: true is returned (#34352) 2022-02-16 18:53:48 +00:00
require.ts Deprecate nested Middleware in favor of root middleware (#36772) 2022-05-19 15:46:21 +00:00
response-cache.ts Update manual revalidate response cache handling (#36462) 2022-04-26 19:32:29 +00:00
router-utils.ts test: warn on substr() usage (#35499) 2022-03-24 18:35:33 -04:00
router.ts Deprecate nested Middleware in favor of root middleware (#36772) 2022-05-19 15:46:21 +00:00
serve-static.ts Add support for AVIF to next/image (#29683) 2021-10-11 23:17:47 +00:00
server-route-utils.ts Use edge compiler for middleware (#36486) 2022-04-27 11:50:29 +02:00
utils.ts Refactor base server to remove native dependencies (#33499) 2022-01-20 21:25:44 +00:00
view-render.tsx Use customized chunk loading implementation (#37163) 2022-05-24 22:04:27 +00:00
web-server.ts Deprecate nested Middleware in favor of root middleware (#36772) 2022-05-19 15:46:21 +00:00