-
Notifications
You must be signed in to change notification settings - Fork 28.3k
Comparing changes
Open a pull request
base repository: vercel/next.js
base: v12.0.10
head repository: vercel/next.js
compare: v12.1.0
Commits on Feb 1, 2022
-
Building web forms with Next.js and Vercel (#32525)
* First commit * Test Commit * First draft * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Update intro. * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Improve docs in part 5 * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Fix Form function in JSX * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Update guide contents * Add different cloud computing companies * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Add details about JavaScript validation * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Improve code for validation without JS * Improve regex docs * Add regular expression example * Explain regex example * Add regex image * Add demo videos * Improve small fixes * Fix images * Fix images * Improve scripts * Improve scripts * Add links to example repo * Test cloudinary images * Test cloudinary images * Add resized images * Test videos * Remove images folder * test video * Fix link * New video component * Add images in readme * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Add mdx frontmatter details * Remove videos from guide * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Update docs/guides/building-forms.md Co-authored-by: Rich Haines <hello@richardhaines.dev> * Fix typo for Name * Fix code changes * Improve docs * Improve conclusion * Improve code syntax * Add lint tests * Fix yarn language test Co-authored-by: Rich Haines <hello@richardhaines.dev>
Configuration menu - View commit details
-
Copy full SHA for 791c356 - Browse repository at this point
Copy the full SHA 791c356View commit details -
Add Clarity About Downloading and Self-Hosting a Font File (#33760)
Details about downloading and self-hosting font files were missing from our[ Font Optimization docs](https://nextjs.org/docs/basic-features/font-optimization). This PR addresses these changes. ## Bug - [x] Related issues linked using #33054 ## Documentation / Examples - [x] Make sure the linting passes by running `yarn lint`
Configuration menu - View commit details
-
Copy full SHA for af0d082 - Browse repository at this point
Copy the full SHA af0d082View commit details -
Relay Support in Rust Compiler (#33702)
Reverts #33699 This re-opens the support for relay in swc, although we need to narrow in the causes for the build failures in https://github.com/vercel/next.js/runs/4950448889?check_suite_focus=true Co-authored-by: Andrey Lunyov <102968+alunyov@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 3e60c23 - Browse repository at this point
Copy the full SHA 3e60c23View commit details -
Configuration menu - View commit details
-
Copy full SHA for a7793c7 - Browse repository at this point
Copy the full SHA a7793c7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ba3bb8 - Browse repository at this point
Copy the full SHA 3ba3bb8View commit details -
Configuration menu - View commit details
-
Copy full SHA for dd48660 - Browse repository at this point
Copy the full SHA dd48660View commit details -
Flush buffered vitals metrics on page mount (#33867)
## Bug fixes #32631 - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [x] Errors have helpful link attached, see `contributing.md`
Configuration menu - View commit details
-
Copy full SHA for 4786557 - Browse repository at this point
Copy the full SHA 4786557View commit details -
fix problem with HMR when middleware and page reference the same node…
…_module (#33873) fixes #31827 ## Bug - [x] Related issues linked using `fixes #number` - [x] 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`
Configuration menu - View commit details
-
Copy full SHA for a803638 - Browse repository at this point
Copy the full SHA a803638View commit details -
Correct pluralization in newly added Relay documentation (#33880)
* Correct pluralization * Apply suggestions from code review Co-authored-by: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for d432032 - Browse repository at this point
Copy the full SHA d432032View commit details -
Refactor page component getter in web server (#33759)
Cleans up the code of the middleware SSR loader and the web server. Currently the page components and render options are provided to the server via `globalThis` which is not ideal. Instead we can inject `extendRenderOpts` and `loadComponent` to the web server. Since this is the the minimal mode and we'll need to handle `?flight` requests, we update the server render opts upon `updateRenderOpts` (In the future this should be changed to be passed to `requestHandler` to avoid race conditions). Currently, we can't fully get rid of the `__server_context` global as we call `getBuildId` in the base server constructor. ## 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`
Configuration menu - View commit details
-
Copy full SHA for 51f0359 - Browse repository at this point
Copy the full SHA 51f0359View commit details -
update NextResponse default redirect status to 307 to match docs (#33505
Configuration menu - View commit details
-
Copy full SHA for 5d9310e - Browse repository at this point
Copy the full SHA 5d9310eView commit details -
Configuration menu - View commit details
-
Copy full SHA for d005631 - Browse repository at this point
Copy the full SHA d005631View commit details -
1
Configuration menu - View commit details
-
Copy full SHA for 39d3210 - Browse repository at this point
Copy the full SHA 39d3210View commit details
Commits on Feb 2, 2022
-
Bug fix: dynamic page should not be interpreted as predefined page (#…
…33808) Fixes: #17096 Fixes: #23824 Closes: #33765 ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added in #33765 - [x] Errors have helpful link attached (N/A) Co-authored-by: Tim Neutkens <6324199+timneutkens@users.noreply.github.com> Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
1Configuration menu - View commit details
-
Copy full SHA for 965d26e - Browse repository at this point
Copy the full SHA 965d26eView commit details -
Group streaming experimental apis (#33878)
Move undocumented `next/rsc` and `next/vitals` to `next/streaming`. In the future `next/streaming` can contain streaming SSR related (including react server components) APIs together.
Configuration menu - View commit details
-
Copy full SHA for 5365f41 - Browse repository at this point
Copy the full SHA 5365f41View commit details -
Encapsulate routing and initial hydration (#33875)
* Encapsulate initial rendering * Run dev code before rendering * Fix call * Try reverting last change, fixing call
Configuration menu - View commit details
-
Copy full SHA for 0fa95da - Browse repository at this point
Copy the full SHA 0fa95daView commit details -
This PR added about `providerImportSource` option, which we need to specify in `next.config.js` to use `MDXProvider`. Related mdx documents: https://mdxjs.com/docs/using-mdx/#mdx-provider > To solve this, a context can be used in React, Preact, and Vue. Context provides a way to pass data through the component tree without having to pass props down manually at every level. Set it up like so: > 1. Install either @mdx-js/react, @mdx-js/preact, or @mdx-js/vue, depending on what framework you’re using > 1. Configure your MDX integration with options.providerImportSource set to that package, so either '@mdx-js/react', '@mdx-js/preact', or '@mdx-js/vue' > 1. Import MDXProvider from that package. Use it to wrap your top-most MDX content component and pass it your components instead: Because my English skills are not high, feel free to improve my sentences. ## 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 - [x] 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` Co-authored-by: Lee Robinson <9113740+leerob@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 04ca8db - Browse repository at this point
Copy the full SHA 04ca8dbView commit details -
Optimize offline condition judgment (#33238)
* perf: optimize offline condition judgment * lint-fix Co-authored-by: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for 6dfe02d - Browse repository at this point
Copy the full SHA 6dfe02dView commit details -
Update info on how to process webhooks by disabling bodyParser (#33909)
Explicitly mention disabling `bodyParser` when processing a webhook request. Uses the "webhook" keyword that becomes searchable in the docs for anyone running a search from the sidebar. It addresses the issue [here](https://github.com/vercel/documentation/issues/71) and [this discussion](vercel/community#93). ## Documentation / Examples - [x] Make sure the linting passes by running `yarn lint`
Configuration menu - View commit details
-
Copy full SHA for ee2725f - Browse repository at this point
Copy the full SHA ee2725fView commit details -
Ensure external beforeFiles rewrites are handled with next/link (#33888)
This ensures we properly handle external `beforeFiles` rewrites client-side so that a different result doesn't occur client-side versus on a direct visit. ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` Fixes: #32348
Configuration menu - View commit details
-
Copy full SHA for 7b1bace - Browse repository at this point
Copy the full SHA 7b1baceView commit details -
Fix parsing params for i18n optional route in minimal mode (#33896)
This fixes our parsing of params with i18n for optional catch-all routes and ensures a regression test catches this case. ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` Fixes: #30631
Configuration menu - View commit details
-
Copy full SHA for f841307 - Browse repository at this point
Copy the full SHA f841307View commit details -
Ensure browserslist extends works properly (#33890)
* Ensure browserslist extends works properly * add comment
Configuration menu - View commit details
-
Copy full SHA for cdc4ee3 - Browse repository at this point
Copy the full SHA cdc4ee3View commit details -
1
Configuration menu - View commit details
-
Copy full SHA for aae0370 - Browse repository at this point
Copy the full SHA aae0370View commit details -
Configuration menu - View commit details
-
Copy full SHA for e3e62aa - Browse repository at this point
Copy the full SHA e3e62aaView commit details -
Add support for Relay projects without
artifactDirectory
(#33918)* update plugin * Update the test * remove dbg * Use pages_dir in Relay * copy edits * cargo test Co-authored-by: JJ Kasper <jj@jjsweb.site>
Configuration menu - View commit details
-
Copy full SHA for 831d45d - Browse repository at this point
Copy the full SHA 831d45dView commit details -
Configuration menu - View commit details
-
Copy full SHA for abae663 - Browse repository at this point
Copy the full SHA abae663View commit details -
fix: handle jsxspreadattribute in inline-script-id eslint rule (#32421)
fixes #32178 the `inline-script-id` eslint rule crashed when encountering a `JSXSpreadAttribute`. this pr fixes that, and also handles `id` being passed via the spreaded object. ## Bug - [x] Related issues linked using `fixes #number` - [x] ~~Integration~~ Unit 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`
1Configuration menu - View commit details
-
Copy full SHA for 49afcd4 - Browse repository at this point
Copy the full SHA 49afcd4View commit details
Commits on Feb 3, 2022
-
Update deployment docs to fix oversized image. (#33934)
We made the images expand to fit the full width of the container, but the deploy button image shouldn't be that large. Also made some slight refactors here to improve on my past documentation changes.
Configuration menu - View commit details
-
Copy full SHA for bc223d7 - Browse repository at this point
Copy the full SHA bc223d7View commit details -
docs: recommend
.end
instead of.send
when no body is being sent (#……33611) Fixes #33536 I was thinking to make `body` optional here instead: https://github.com/vercel/next.js/blob/2c6bd1ed1b3821debda74dc8f407b8f11779a4f0/packages/next/shared/lib/utils.ts#L262 But that might result in more errors when not setting the status code correctly. So it's the easiest for us to just recommend `.end()` which `.send()` uses when there is no argument. https://github.com/vercel/next.js/blob/c71465d87a7eeb050e5cc7e94817f19e69e9d1e4/packages/next/server/api-utils.ts#L269 ## 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`
Configuration menu - View commit details
-
Copy full SHA for b772513 - Browse repository at this point
Copy the full SHA b772513View commit details -
feat(next-swc): Update swc (#33724)
This PR applies - swc-project/swc#3350 which fixes lots of minifier issues. - swc-project/swc#3391 This fixes the regression of evaluatior. - swc-project/swc#3436 This fixes codegen bugs. - swc-project/swc#3425 This improves compression. - swc-project/swc#3400 This fixes some transform bugs. - swc-project/swc#3392 This implements more terser options.
Configuration menu - View commit details
-
Copy full SHA for 4bd76ff - Browse repository at this point
Copy the full SHA 4bd76ffView commit details -
Update custom document docs to prepare for React 18. (#33814)
To help prepare for React 18, I've found myself sharing the updated code snippet of `_document` linked in the [React 18 docs](https://nextjs.org/docs/advanced-features/react-18#react-server-components), which uses a function instead of a class. This PR updates the Custom Document docs to help prepare for this change, by encourage readers to use the new version, and listing more tangible examples of why you would override `_document` (`lang` on `html`, className on `body`). It also reorganizes some of the caveats and warnings related to `getInitialProps` usage to only be in the single section that applies to it. These overrides and ejections (`getInitialProps` and `renderPage`) only apply to a subset of the people looking to change document. Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 5abd92f - Browse repository at this point
Copy the full SHA 5abd92fView commit details -
1
Configuration menu - View commit details
-
Copy full SHA for 740f908 - Browse repository at this point
Copy the full SHA 740f908View commit details -
Configuration menu - View commit details
-
Copy full SHA for ce9c6b7 - Browse repository at this point
Copy the full SHA ce9c6b7View commit details -
Update Contentful example to add validations to solve graphql complex…
…ity errors. (#33958) Hi! Dev Rel from Contentful here. We noticed that the Contentful example was giving a graphQL complexity error so adding in some validations to the content model that is imported to prevent the error from showing up. ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md`
Configuration menu - View commit details
-
Copy full SHA for 4749014 - Browse repository at this point
Copy the full SHA 4749014View commit details -
Fix typo in new experimental Relay support docs (#33963)
## Documentation / Examples - [x] Make sure the linting passes by running `yarn lint`
Configuration menu - View commit details
-
Copy full SHA for 834546a - Browse repository at this point
Copy the full SHA 834546aView commit details
Commits on Feb 4, 2022
-
Update all CMS examples dependencies. (#33580)
Updates all CMS updates to use: - Tailwind 3 (and the corresponding `tailwind.config.js` and PostCSS changes) - `remark@14` and `remark-html@15` (and the corresponding ESM breaking changes) - `date-fns` minor bump Ensured all CMS examples were: - Using `next/image` - Not using `as` for `next/link` (no longer needed)
Configuration menu - View commit details
-
Copy full SHA for 01e174e - Browse repository at this point
Copy the full SHA 01e174eView commit details -
Update to latest version of amphtml-validator (#33967)
* Update to latest version of amphtml-validator * update compiled * bump compiled
Configuration menu - View commit details
-
Copy full SHA for 06b2630 - Browse repository at this point
Copy the full SHA 06b2630View commit details -
Warn in dev mode when script tags are added with next/head (#33968)
This commit adds a development mode warning in the console if you try to include <script> tags in next/head, e.g. ``` <Head> <script async src="..." /> </Head> ``` The warning message explains that this pattern will not work well with Suspense/streaming and recommends using the next/script component instead. TODO in follow-up PR: add same warning for stylesheets, etc ## Feature - [x] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [x] Integration tests added - [x] Documentation added - [x] Errors have helpful link attached, see `contributing.md`
Configuration menu - View commit details
-
Copy full SHA for 61ea8ef - Browse repository at this point
Copy the full SHA 61ea8efView commit details -
docs(isr): add missing key prop in jsx loop (#33984)
Copy pasting this example with a default create-next-app leads to an eslint warning. So I thought let's fix this. ## Documentation / Examples - [x] Make sure the linting passes by running `yarn lint`
Configuration menu - View commit details
-
Copy full SHA for 632c986 - Browse repository at this point
Copy the full SHA 632c986View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4812e22 - Browse repository at this point
Copy the full SHA 4812e22View commit details -
Updated going-to-production with loading performance (#33179)
## Documentation Update Based on this issue: #29319 ## Documentation / Examples - [x] Make sure the linting passes by running `yarn lint` Co-authored-by: Steven <229881+styfle@users.noreply.github.com> Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 25d93de - Browse repository at this point
Copy the full SHA 25d93deView commit details -
Ensure optional chaining in swc matches babel (#33995)
This ensures we always transpile optional chaining and nullish coalescing with swc the same as we do [with babel](https://github.com/vercel/next.js/blob/4812e229928dc01ae21ee0533685f6813694c136/packages/next/build/babel/preset.ts#L97-L98) since it can cause issues with webpack even when the node target supports these features. The specific case this seems to cause issues with webpack is when a value is imported and optional chaining is used on the import value webpack is stripping the optional chaining cc @sokra ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` Fixes: #33915
Configuration menu - View commit details
-
Copy full SHA for a65e361 - Browse repository at this point
Copy the full SHA a65e361View commit details -
Configuration menu - View commit details
-
Copy full SHA for 502a869 - Browse repository at this point
Copy the full SHA 502a869View commit details -
Use
react-dom/server.browser
in Node.js (#33950)Instead of branching rendering based on Node.js and browser/web runtimes, we should just use the web version for now, which can run as-is on versions >=16.5.0 of Node.js, polyfilling `ReadableStream` on older versions when necessary. There are a few potential downsides to this, as React is less able to optimize flushing and execution. We can revisit that in the future though if desired.
1Configuration menu - View commit details
-
Copy full SHA for 0b1d5e1 - Browse repository at this point
Copy the full SHA 0b1d5e1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 103d3ab - Browse repository at this point
Copy the full SHA 103d3abView commit details -
* Update azure config * speed up checkout * update config * remove checkout path * undo checkout change
Configuration menu - View commit details
-
Copy full SHA for 1821bde - Browse repository at this point
Copy the full SHA 1821bdeView commit details -
Update Terser to v5.10.0, fix minification issues (#33045)
Bumping Terser from v5.7.1 to v5.10.0 fixes some minification issues: - I specifically encountered this bug, where a boolean condition was flipped when a nullish coalescing operator was involved: terser/terser#1045 - See [Terser's changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md) for more fixes ## 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 - [x] Make sure the linting passes by running `yarn lint`
Configuration menu - View commit details
-
Copy full SHA for f275fcf - Browse repository at this point
Copy the full SHA f275fcfView commit details -
Warn in dev mode when stylesheets are added using next/head (#34004)
This commit adds a development mode warning in the console if you try to include <link rel="stylesheet"> tags in next/head, e.g. ``` <Head> <link ref="stylesheet" href="..." /> </Head> ``` The warning message explains that this pattern will not work well with Suspense/streaming and recommends using a custom Document component instead. ## Feature - [x] 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` - [x] Integration tests added - [x] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [x] Errors have helpful link attached, see `contributing.md` Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 24fe279 - Browse repository at this point
Copy the full SHA 24fe279View commit details -
1
Configuration menu - View commit details
-
Copy full SHA for f322d62 - Browse repository at this point
Copy the full SHA f322d62View commit details
Commits on Feb 5, 2022
-
Use
ReadableStream
inRenderResult
(#34005)Since we're always using `ReadableStream`, we should just get rid of `ResultPiper`. This also lets us replace things like `bufferedReadFromReadableStream` with a `TransformStream` that does the same thing, so that it's `TransformStream`s all the way down. Finally, we can get rid of the one-off call to `renderToReadableStream` and just use `renderToStream` whenever we're rendering a concurrent tree.
1Configuration menu - View commit details
-
Copy full SHA for 7e0b8aa - Browse repository at this point
Copy the full SHA 7e0b8aaView commit details
There are no files selected for viewing