language stringclasses 1
value | owner stringlengths 2 15 | repo stringlengths 2 21 | sha stringlengths 45 45 | message stringlengths 7 36.3k | path stringlengths 1 199 | patch stringlengths 15 102k | is_multipart bool 2
classes |
|---|---|---|---|---|---|---|---|
Other | vercel | next.js | 8dfab19d6ede702925340e048649450176d349c9.json | fix(#39807): ignore width/height from webpack with "fill" (#39849)
Fixes #39807.
When statically importing an image, the `width` and `height` will always be provided alongside the `src` by the Webpack. `next/image` will ignore `width` and `height` come from Webpack when `layout === 'fill'`, while `next/future/image... | test/integration/image-future/default/pages/static-img.js | @@ -36,6 +36,10 @@ const Page = () => {
<Image id="static-gif" src={testGIF} />
<Image id="static-bmp" src={testBMP} />
<Image id="static-ico" src={testICO} />
+ <Image id="static-svg-fill" src={testSVG} fill />
+ <Image id="static-gif-fill" src={testGIF} fill />
+ <Image id="static-... | true |
Other | vercel | next.js | 8dfab19d6ede702925340e048649450176d349c9.json | fix(#39807): ignore width/height from webpack with "fill" (#39849)
Fixes #39807.
When statically importing an image, the `width` and `height` will always be provided alongside the `src` by the Webpack. `next/image` will ignore `width` and `height` come from Webpack when `layout === 'fill'`, while `next/future/image... | test/integration/image-future/default/test/static.test.ts | @@ -6,6 +6,7 @@ import {
renderViaHTTP,
File,
waitFor,
+ launchApp,
} from 'next-test-utils'
import webdriver from 'next-webdriver'
import { join } from 'path'
@@ -18,7 +19,7 @@ let html
const indexPage = new File(join(appDir, 'pages/static-img.js'))
-const runTests = () => {
+const runTests = (isDev ... | true |
Other | vercel | next.js | 8f023992a2072209be8db1345fbbbcc293eee13a.json | Update links to point to more accurate docs (#39818)
Initial links were pointing to basic features which don't describe redirections. | docs/api-reference/next.config.js/redirects.md | @@ -300,4 +300,4 @@ In some rare cases, you might need to assign a custom status code for older HTTP
## Other Redirects
- Inside [API Routes](/docs/api-routes/response-helpers.md), you can use `res.redirect()`.
-- Inside [`getStaticProps`](/docs/basic-features/data-fetching/get-static-props.md) and [`getServerSideP... | false |
Other | vercel | next.js | 1ebd6a1d9409d1e1dbf51adedf18aacccd39afc9.json | Update next.js.configs line number (#39802) | docs/api-reference/next.config.js/introduction.md | @@ -80,7 +80,7 @@ module.exports = (phase, { defaultConfig }) => {
}
```
-The commented lines are the place where you can put the configs allowed by `next.config.js`, which are [defined in this file](https://github.com/vercel/next.js/blob/canary/packages/next/server/config-shared.ts#L137).
+The commented lines are ... | false |
Other | vercel | next.js | bf82a47393ff1924c60a09e87fde8277223a1df6.json | refactor(use-intersection): remove useRef usage (#39791)
The PR neither fixes a bug nor introduces a new feature. It just makes the current code be more clearer.
We track the `unobserve` method (to clear the side-effect) in a ref before this PR which is not required anymore:
- The `unobserve` method can only be crea... | packages/next/client/use-intersection.tsx | @@ -1,4 +1,4 @@
-import { useCallback, useEffect, useRef, useState } from 'react'
+import { useCallback, useEffect, useState } from 'react'
import {
requestIdleCallback,
cancelIdleCallback,
@@ -100,30 +100,21 @@ export function useIntersection<T extends Element>({
}: UseIntersection): [(element: T | null) => vo... | false |
Other | vercel | next.js | 05b621aa9cf236bc2bc706a6076c310e68f1e30d.json | refactor(portal): remove useRef from portal component (#39792)
The PR is similar to #39791.
Currently, `<Portal />` saves the container in a ref (with initial value as `null`). The update of the ref happens during the `useEffect`, after creating the corresponding HTMLElement. However, `<Portal />` has to use `forceUp... | packages/next/client/portal/index.tsx | @@ -1,24 +1,22 @@
-import React from 'react'
+import { useEffect, useState } from 'react'
import { createPortal } from 'react-dom'
type PortalProps = {
children: React.ReactNode
type: string
}
-export const Portal: React.FC<PortalProps> = ({ children, type }) => {
- let portalNode = React.useRef<HTMLEleme... | false |
Other | vercel | next.js | f7eed07945375f0b4a76efcbb5cbfe87072c2261.json | Use realpath when emitting traced package.json (#39683)
This ensures we emit the real path when emitting traced package.json files so that we don't conflict with symlinked package paths.
x-ref: slack thread
Bug
Related issues linked using fixes #number
Integration tests added
Errors have helpful link attache... | packages/next/build/webpack/plugins/next-trace-entrypoints-plugin.ts | @@ -563,7 +563,7 @@ export class TraceEntryPointsPlugin implements webpack.WebpackPluginInstance {
const curPackageJsonPath = `${requestPath}/package.json`
if (await job.isFile(curPackageJsonPath)) {
await job.emitFile(
- ... | false |
Other | vercel | next.js | d4a98a15f7498ed93b4a9ec548e3a0f5c3849956.json | Add todo for dependsOn (#39677) | packages/next/build/webpack/plugins/flight-client-entry-plugin.ts | @@ -335,6 +335,7 @@ export class FlightClientEntryPlugin {
return shouldInvalidate
}
+ // TODO-APP: make sure dependsOn is added for layouts/pages
addEntry(
compilation: any,
context: string, | false |
Other | vercel | next.js | 7de3cf5f8962f28ff667aedeb2331c4b0a33ee65.json | fix(next-server): Fix priority for edge routes (#39462)
Fixes #39411
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 ... | packages/next/server/base-server.ts | @@ -127,7 +127,7 @@ export interface BaseRequestHandler {
): Promise<void>
}
-type RequestContext = {
+export type RequestContext = {
req: BaseNextRequest
res: BaseNextResponse
pathname: string | true |
Other | vercel | next.js | 7de3cf5f8962f28ff667aedeb2331c4b0a33ee65.json | fix(next-server): Fix priority for edge routes (#39462)
Fixes #39411
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 ... | packages/next/server/dev/next-dev-server.ts | @@ -386,6 +386,7 @@ export default class DevServer extends Server {
routedPages.push(pageName)
},
onEdgeServer: () => {
+ routedPages.push(pageName)
edgeRoutesSet.add(pageName)
},
}) | true |
Other | vercel | next.js | 7de3cf5f8962f28ff667aedeb2331c4b0a33ee65.json | fix(next-server): Fix priority for edge routes (#39462)
Fixes #39411
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 ... | packages/next/server/dev/on-demand-entry-handler.ts | @@ -1,4 +1,5 @@
import type ws from 'ws'
+import * as Log from '../../build/output/log'
import type { webpack } from 'next/dist/compiled/webpack/webpack'
import type { NextConfigComplete } from '../config-shared'
import { EventEmitter } from 'events'
@@ -514,6 +515,13 @@ export function onDemandEntryHandler({
... | true |
Other | vercel | next.js | 7de3cf5f8962f28ff667aedeb2331c4b0a33ee65.json | fix(next-server): Fix priority for edge routes (#39462)
Fixes #39411
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 ... | packages/next/server/next-server.ts | @@ -73,6 +73,7 @@ import BaseServer, {
prepareServerlessUrl,
RoutingItem,
NoFallbackError,
+ RequestContext,
} from './base-server'
import { getPagePath, requireFontManifest } from './require'
import { denormalizePagePath } from '../shared/lib/page-path/denormalize-page-path'
@@ -95,7 +96,6 @@ import { che... | true |
Other | vercel | next.js | 7de3cf5f8962f28ff667aedeb2331c4b0a33ee65.json | fix(next-server): Fix priority for edge routes (#39462)
Fixes #39411
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 ... | packages/next/server/router.ts | @@ -220,8 +220,7 @@ export default class Router {
- User rewrites (checking filesystem and pages each match)
*/
- const [middlewareCatchAllRoute, edgeSSRCatchAllRoute] =
- this.catchAllMiddleware
+ const [middlewareCatchAllRoute] = this.catchAllMiddleware
const allRoutes = [
... | true |
Other | vercel | next.js | 7de3cf5f8962f28ff667aedeb2331c4b0a33ee65.json | fix(next-server): Fix priority for edge routes (#39462)
Fixes #39411
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 ... | test/e2e/edge-vs.-non-edge-api-route-priority/index.test.ts | @@ -0,0 +1,33 @@
+import { createNext } from 'e2e-utils'
+import { NextInstance } from 'test/lib/next-modes/base'
+import { fetchViaHTTP } from 'next-test-utils'
+
+describe('Edge vs. non-Edge API route priority', () => {
+ let next: NextInstance
+
+ beforeAll(async () => {
+ next = await createNext({
+ files... | true |
Other | vercel | next.js | 7de3cf5f8962f28ff667aedeb2331c4b0a33ee65.json | fix(next-server): Fix priority for edge routes (#39462)
Fixes #39411
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 ... | test/lib/next-test-utils.js | @@ -114,6 +114,7 @@ export function renderViaHTTP(appPort, pathname, query, opts) {
return fetchViaHTTP(appPort, pathname, query, opts).then((res) => res.text())
}
+/** @return {Promise<Response & {buffer: any} & {headers: any}>} */
export function fetchViaHTTP(appPort, pathname, query, opts) {
const url = `$... | true |
Other | vercel | next.js | 57b6eff904a53784d08d284382945b93b082df02.json | Add separate entry per layout/page. (#39611)
Builds on top of #39162 which adds support for creating any kind of bundle path without breaking the compilation.
Ensures every layout gets a separate client-side bundle if it has client components being used.
Bug
Related issues linked using fixes #number
Integrat... | packages/next/build/webpack/loaders/next-app-loader.ts | @@ -24,8 +24,9 @@ async function createTreeCodeFromPath({
// First item in the list is the page which can't have layouts by itself
if (i === segments.length - 1) {
+ const resolvedPagePath = await resolve(pagePath)
// Use '' for segment as it's the page. There can't be a segment called '' so thi... | true |
Other | vercel | next.js | 57b6eff904a53784d08d284382945b93b082df02.json | Add separate entry per layout/page. (#39611)
Builds on top of #39162 which adds support for creating any kind of bundle path without breaking the compilation.
Ensures every layout gets a separate client-side bundle if it has client components being used.
Bug
Related issues linked using fixes #number
Integrat... | packages/next/build/webpack/plugins/flight-client-entry-plugin.ts | @@ -2,8 +2,6 @@ import { stringify } from 'querystring'
import path from 'path'
import { webpack, sources } from 'next/dist/compiled/webpack/webpack'
import { clientComponentRegex } from '../loaders/utils'
-import { normalizePagePath } from '../../../shared/lib/page-path/normalize-page-path'
-import { denormalizePag... | true |
Other | vercel | next.js | 57b6eff904a53784d08d284382945b93b082df02.json | Add separate entry per layout/page. (#39611)
Builds on top of #39162 which adds support for creating any kind of bundle path without breaking the compilation.
Ensures every layout gets a separate client-side bundle if it has client components being used.
Bug
Related issues linked using fixes #number
Integrat... | packages/next/server/app-render.tsx | @@ -37,8 +37,8 @@ const ReactDOMServer = shouldUseReactRoot
export type RenderOptsPartial = {
err?: Error | null
dev?: boolean
- serverComponentManifest?: any
- serverCSSManifest?: any
+ serverComponentManifest?: FlightManifest
+ serverCSSManifest?: FlightCSSManifest
supportsDynamicHTML?: boolean
runti... | true |
Other | vercel | next.js | 506116719085baf26089617c80b23d730e5eae97.json | Add comment on slash normalizing in server (#39653)
Documentation / Examples
Make sure the linting passes by running pnpm lint
The examples guidelines are followed from our contributing doc
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> | packages/next/server/base-server.ts | @@ -423,6 +423,10 @@ export default abstract class Server<ServerOptions extends Options = Options> {
const urlParts = (req.url || '').split('?')
const urlNoQuery = urlParts[0]
+ // this normalizes repeated slashes in the path e.g. hello//world ->
+ // hello/world or backslashes to forward slas... | false |
Other | vercel | next.js | 3f63a491d05e7e562639a03915cfcd0da06d1557.json | fix(next/dynamic): handle template literal import path (#39623)
## Bug
- [x] fixes #39522
- [x] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md` | packages/next-swc/crates/core/src/next_dynamic.rs | @@ -7,7 +7,7 @@ use swc_common::{FileName, DUMMY_SP};
use swc_ecmascript::ast::{
ArrayLit, ArrowExpr, BinExpr, BinaryOp, BlockStmtOrExpr, Bool, CallExpr, Callee, Expr,
ExprOrSpread, Id, Ident, ImportDecl, ImportSpecifier, KeyValueProp, Lit, MemberExpr,
- MemberProp, Null, ObjectLit, Prop, PropName, PropOr... | true |
Other | vercel | next.js | 3f63a491d05e7e562639a03915cfcd0da06d1557.json | fix(next/dynamic): handle template literal import path (#39623)
## Bug
- [x] fixes #39522
- [x] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md` | packages/next-swc/crates/core/tests/fixture/next-dynamic/template-literal/input.js | @@ -0,0 +1,7 @@
+import dynamic from 'next/dynamic'
+
+const DynamicComponent = dynamic(() => import(`../components/hello`))
+
+const componentRoot = '@/some-components'
+const Component1 = dynamic(() => import(`${componentRoot}/component1`));
+const Component2 = dynamic(() => import(`${componentRoot}/component2`));
\ ... | true |
Other | vercel | next.js | 3f63a491d05e7e562639a03915cfcd0da06d1557.json | fix(next/dynamic): handle template literal import path (#39623)
## Bug
- [x] fixes #39522
- [x] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md` | packages/next-swc/crates/core/tests/fixture/next-dynamic/template-literal/output-dev.js | @@ -0,0 +1,11 @@
+import dynamic from 'next/dynamic';
+const DynamicComponent = dynamic(()=>import(`../components/hello`), {
+ loadableGenerated: {
+ modules: [
+ "some-file.js -> " + "../components/hello"
+ ]
+ }
+});
+const componentRoot = '@/some-components';
+const Component1 = dynami... | true |
Other | vercel | next.js | 3f63a491d05e7e562639a03915cfcd0da06d1557.json | fix(next/dynamic): handle template literal import path (#39623)
## Bug
- [x] fixes #39522
- [x] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md` | packages/next-swc/crates/core/tests/fixture/next-dynamic/template-literal/output-prod.js | @@ -0,0 +1,11 @@
+import dynamic from 'next/dynamic';
+const DynamicComponent = dynamic(()=>import(`../components/hello`), {
+ loadableGenerated: {
+ webpack: ()=>[
+ require.resolveWeak("../components/hello")
+ ]
+ }
+});
+const componentRoot = '@/some-components';
+const Compone... | true |
Other | vercel | next.js | 3f63a491d05e7e562639a03915cfcd0da06d1557.json | fix(next/dynamic): handle template literal import path (#39623)
## Bug
- [x] fixes #39522
- [x] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md` | packages/next-swc/crates/core/tests/fixture/next-dynamic/template-literal/output-server.js | @@ -0,0 +1,11 @@
+import dynamic from 'next/dynamic';
+const DynamicComponent = dynamic(()=>import(`../components/hello`), {
+ loadableGenerated: {
+ modules: [
+ "some-file.js -> " + "../components/hello"
+ ]
+ }
+});
+const componentRoot = '@/some-components';
+const Component1 = dynami... | true |
Other | vercel | next.js | 6876bb4c44ba44f74c940dbd556651448bfc34c1.json | Enable additional TypeScript ESLint rules (#39640)
Enables some rules that are useful and already pass currently.
## Bug
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`
## Feature
- [ ] Implements an existing feature re... | .eslintrc.json | @@ -93,7 +93,9 @@
}
],
"no-useless-constructor": "off",
- "@typescript-eslint/no-useless-constructor": "warn"
+ "@typescript-eslint/no-useless-constructor": "warn",
+ "@typescript-eslint/prefer-literal-enum-member": "error",
+ "@typescript-eslint/prefer-namespace... | true |
Other | vercel | next.js | 6876bb4c44ba44f74c940dbd556651448bfc34c1.json | Enable additional TypeScript ESLint rules (#39640)
Enables some rules that are useful and already pass currently.
## Bug
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`
## Feature
- [ ] Implements an existing feature re... | examples/convex/convex/_generated/dataModel.ts | @@ -9,8 +9,8 @@
* @module
*/
-import { AnyDataModel } from "convex/server";
-import { GenericId } from "convex/values";
+import { AnyDataModel } from 'convex/server'
+import { GenericId } from 'convex/values'
/**
* No `schema.ts` file found!
@@ -26,12 +26,12 @@ import { GenericId } from "convex/values";
/**... | true |
Other | vercel | next.js | 6876bb4c44ba44f74c940dbd556651448bfc34c1.json | Enable additional TypeScript ESLint rules (#39640)
Enables some rules that are useful and already pass currently.
## Bug
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`
## Feature
- [ ] Implements an existing feature re... | examples/convex/convex/_generated/react.ts | @@ -9,10 +9,10 @@
* @module
*/
-import type getCounter from "../getCounter";
-import type incrementCounter from "../incrementCounter";
-import type { OptimisticLocalStore as GenericOptimisticLocalStore } from "convex/browser";
-import type { ClientMutation, ClientQuery } from "convex/server";
+import type getCoun... | true |
Other | vercel | next.js | 6876bb4c44ba44f74c940dbd556651448bfc34c1.json | Enable additional TypeScript ESLint rules (#39640)
Enables some rules that are useful and already pass currently.
## Bug
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`
## Feature
- [ ] Implements an existing feature re... | examples/convex/convex/_generated/server.ts | @@ -16,8 +16,8 @@ import {
MutationCtx as GenericMutationCtx,
DatabaseReader as GenericDatabaseReader,
DatabaseWriter as GenericDatabaseWriter,
-} from "convex/server";
-import { DataModel } from "./dataModel.js";
+} from 'convex/server'
+import { DataModel } from './dataModel.js'
/**
* Define a query in ... | true |
Other | vercel | next.js | 6876bb4c44ba44f74c940dbd556651448bfc34c1.json | Enable additional TypeScript ESLint rules (#39640)
Enables some rules that are useful and already pass currently.
## Bug
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`
## Feature
- [ ] Implements an existing feature re... | packages/next/types/misc.d.ts | @@ -335,7 +335,7 @@ declare module 'next/dist/compiled/@segment/ajv-human-errors' {
export = m
}
-declare module NodeJS {
+declare namespace NodeJS {
interface ProcessVersions {
pnp?: string
} | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | package.json | @@ -200,7 +200,7 @@
"turbo": "1.3.2-canary.1",
"typescript": "4.6.3",
"wait-port": "0.2.2",
- "webpack": "link:packages/next/node_modules/webpack5",
+ "webpack": "5.74.0",
"webpack-bundle-analyzer": "4.3.0"
},
"resolutions": { | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/build/babel/loader/types.d.ts | @@ -1,8 +1,9 @@
-import { loader } from 'next/dist/compiled/webpack/webpack'
+import { webpack } from 'next/dist/compiled/webpack/webpack'
import { Span } from '../../../trace'
-export interface NextJsLoaderContext extends loader.LoaderContext {
+export interface NextJsLoaderContext extends webpack.LoaderContext<{}>... | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/build/compiler.ts | @@ -1,16 +1,15 @@
import { webpack } from 'next/dist/compiled/webpack/webpack'
-import type { webpack5 } from 'next/dist/compiled/webpack/webpack'
import { Span } from '../trace'
export type CompilerResult = {
- errors: webpack5.StatsError[]
- warnings: webpack5.StatsError[]
- stats: webpack5.Stats | undefined
... | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/build/entries.ts | @@ -3,7 +3,7 @@ import type { MiddlewareLoaderOptions } from './webpack/loaders/next-middleware-
import type { EdgeSSRLoaderQuery } from './webpack/loaders/next-edge-ssr-loader'
import type { NextConfigComplete } from '../server/config-shared'
import type { ServerlessLoaderQuery } from './webpack/loaders/next-server... | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/build/index.ts | @@ -1,4 +1,4 @@
-import type { webpack5 as webpack } from 'next/dist/compiled/webpack/webpack'
+import type { webpack } from 'next/dist/compiled/webpack/webpack'
import { loadEnvConfig } from '@next/env'
import chalk from 'next/dist/compiled/chalk'
import crypto from 'crypto' | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/build/output/index.ts | @@ -4,16 +4,16 @@ import textTable from 'next/dist/compiled/text-table'
import createStore from 'next/dist/compiled/unistore'
import formatWebpackMessages from '../../client/dev/error-overlay/format-webpack-messages'
import { OutputState, store as consoleStore } from './store'
-import type { webpack5 } from 'next/di... | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/build/webpack-config.ts | @@ -2,7 +2,6 @@ import ReactRefreshWebpackPlugin from 'next/dist/compiled/@next/react-refresh-ut
import chalk from 'next/dist/compiled/chalk'
import crypto from 'crypto'
import { webpack } from 'next/dist/compiled/webpack/webpack'
-import type { webpack5 } from 'next/dist/compiled/webpack/webpack'
import path, { di... | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/build/webpack/config/blocks/css/loaders/getCssModuleLocalIdent.ts | @@ -5,7 +5,7 @@ import { webpack } from 'next/dist/compiled/webpack/webpack'
const regexLikeIndexModule = /(?<!pages[\\/])index\.module\.(scss|sass|css)$/
export function getCssModuleLocalIdent(
- context: webpack.loader.LoaderContext,
+ context: webpack.LoaderContext<{}>,
_: any,
exportName: string,
opt... | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/build/webpack/config/helpers.ts | @@ -10,14 +10,17 @@ export const loader = curry(function loader(
}
if (rule.oneOf) {
- const existing = config.module.rules.find((arrayRule) => arrayRule.oneOf)
- if (existing) {
+ const existing = config.module.rules?.find(
+ (arrayRule) =>
+ arrayRule && typeof arrayRule === 'object' && a... | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/build/webpack/loaders/error-loader.ts | @@ -2,12 +2,13 @@ import chalk from 'next/dist/compiled/chalk'
import path from 'path'
import { webpack } from 'next/dist/compiled/webpack/webpack'
-const ErrorLoader: webpack.loader.Loader = function () {
+const ErrorLoader: webpack.LoaderDefinitionFunction = function () {
// @ts-ignore exists
- const options ... | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/build/webpack/loaders/get-module-build-info.ts | @@ -1,10 +1,10 @@
-import { webpack5 } from 'next/dist/compiled/webpack/webpack'
+import { webpack } from 'next/dist/compiled/webpack/webpack'
/**
* A getter for module build info that casts to the type it should have.
* We also expose here types to make easier to use it.
*/
-export function getModuleBuildInfo... | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/build/webpack/loaders/next-app-loader.ts | @@ -1,4 +1,4 @@
-import type webpack from 'webpack5'
+import type webpack from 'webpack'
import { NODE_RESOLVE_OPTIONS } from '../../webpack-config'
import { getModuleBuildInfo } from './get-module-build-info'
| true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/build/webpack/loaders/next-serverless-loader/index.ts | @@ -33,7 +33,7 @@ export type ServerlessLoaderQuery = {
i18n: string
}
-const nextServerlessLoader: webpack.loader.Loader = function () {
+const nextServerlessLoader: webpack.LoaderDefinitionFunction = function () {
const {
distDir,
absolutePagePath,
@@ -52,8 +52,9 @@ const nextServerlessLoader: webp... | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/build/webpack/loaders/noop-loader.ts | @@ -1,4 +1,4 @@
import { webpack } from 'next/dist/compiled/webpack/webpack'
-const NoopLoader: webpack.loader.Loader = (source) => source
+const NoopLoader: webpack.LoaderDefinitionFunction = (source) => source
export default NoopLoader | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/build/webpack/plugins/app-build-manifest-plugin.ts | @@ -6,7 +6,6 @@ import {
CLIENT_STATIC_FILES_RUNTIME_MAIN_APP,
CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH,
} from '../../../shared/lib/constants'
-import type { webpack5 } from 'next/dist/compiled/webpack/webpack'
import { getEntrypointFiles } from './build-manifest-plugin'
import getAppRouteFromEntrypoint from... | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/build/webpack/plugins/css-minimizer-plugin.ts | @@ -2,7 +2,6 @@ import cssnanoSimple from 'next/dist/compiled/cssnano-simple'
import postcssScss from 'next/dist/compiled/postcss-scss'
import postcss, { Parser } from 'postcss'
import { webpack, sources } from 'next/dist/compiled/webpack/webpack'
-import type { webpack5 } from 'next/dist/compiled/webpack/webpack'
... | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/build/webpack/plugins/flight-client-entry-plugin.ts | @@ -1,7 +1,6 @@
import { stringify } from 'querystring'
import path from 'path'
import { webpack, sources } from 'next/dist/compiled/webpack/webpack'
-import type { webpack5 } from 'next/dist/compiled/webpack/webpack'
import { clientComponentRegex } from '../loaders/utils'
import { normalizePagePath } from '../../... | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/build/webpack/plugins/flight-manifest-plugin.ts | @@ -9,7 +9,6 @@ import { webpack, sources } from 'next/dist/compiled/webpack/webpack'
import { FLIGHT_MANIFEST } from '../../../shared/lib/constants'
import { clientComponentRegex } from '../loaders/utils'
import { relative } from 'path'
-import type { webpack5 } from 'next/dist/compiled/webpack/webpack'
// This ... | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/build/webpack/plugins/font-stylesheet-gathering-plugin.ts | @@ -58,7 +58,7 @@ export class FontStylesheetGatheringPlugin {
}
private parserHandler = (
- factory: webpack.compilation.NormalModuleFactory
+ factory: ReturnType<webpack.Compiler['createNormalModuleFactory']>
): void => {
const JS_TYPES = ['auto', 'esm', 'dynamic']
// Do an extra walk per m... | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/build/webpack/plugins/jsconfig-paths-plugin.ts | @@ -166,7 +166,7 @@ type Paths = { [match: string]: string[] }
* Largely based on how the TypeScript compiler handles it:
* https://github.com/microsoft/TypeScript/blob/1a9c8197fffe3dace5f8dca6633d450a88cba66d/src/compiler/moduleNameResolver.ts#L1362
*/
-export class JsConfigPathsPlugin implements webpack.Resolve... | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/build/webpack/plugins/middleware-plugin.ts | @@ -6,7 +6,7 @@ import type { EdgeSSRMeta } from '../loaders/get-module-build-info'
import { getNamedMiddlewareRegex } from '../../../shared/lib/router/utils/route-regex'
import { getModuleBuildInfo } from '../loaders/get-module-build-info'
import { getSortedRoutes } from '../../../shared/lib/router/utils'
-import {... | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/build/webpack/plugins/next-drop-client-page-plugin.ts | @@ -1,23 +1,21 @@
import { webpack } from 'next/dist/compiled/webpack/webpack'
import { STRING_LITERAL_DROP_BUNDLE } from '../../../shared/lib/constants'
-export const ampFirstEntryNamesMap: WeakMap<
- webpack.compilation.Compilation,
- string[]
-> = new WeakMap()
+export const ampFirstEntryNamesMap: WeakMap<webp... | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/build/webpack/plugins/next-trace-entrypoints-plugin.ts | @@ -8,7 +8,6 @@ import {
} from 'next/dist/compiled/@vercel/nft'
import { TRACE_OUTPUT_VERSION } from '../../../shared/lib/constants'
import { webpack, sources } from 'next/dist/compiled/webpack/webpack'
-import type { webpack5 } from 'next/dist/compiled/webpack/webpack'
import {
NODE_ESM_RESOLVE_OPTIONS,
NOD... | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/build/webpack/plugins/nextjs-require-cache-hot-reloader.ts | @@ -1,11 +1,11 @@
-import type { webpack5 } from 'next/dist/compiled/webpack/webpack'
+import type { webpack } from 'next/dist/compiled/webpack/webpack'
import { clearModuleContext } from '../../../server/web/sandbox'
import { realpathSync } from 'fs'
import path from 'path'
import isError from '../../../lib/is-err... | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/build/webpack/plugins/pages-manifest-plugin.ts | @@ -16,7 +16,9 @@ let nodeServerAppPaths = {}
// This plugin creates a pages-manifest.json from page entrypoints.
// This is used for mapping paths like `/` to `.next/server/static/<buildid>/pages/index.js` when doing SSR
// It's also used by next export to provide defaultPathMap
-export default class PagesManifestP... | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/build/webpack/plugins/profiling-plugin.ts | @@ -1,6 +1,6 @@
import { NormalModule } from 'next/dist/compiled/webpack/webpack'
import { Span } from '../../../trace'
-import type { webpack5 as webpack } from 'next/dist/compiled/webpack/webpack'
+import type { webpack } from 'next/dist/compiled/webpack/webpack'
const pluginName = 'ProfilingPlugin'
export cons... | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/build/webpack/plugins/react-loadable-plugin.ts | @@ -46,13 +46,13 @@ function getOriginModuleFromDependency(
function getChunkGroupFromBlock(
compilation: any,
block: any
-): webpack.compilation.ChunkGroup {
+): webpack.Compilation['chunkGroups'] {
return compilation.chunkGraph.getBlockChunkGroup(block)
}
function buildManifest(
_compiler: webpack.Co... | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/build/webpack/plugins/telemetry-plugin.ts | @@ -1,7 +1,4 @@
-import {
- NormalModule,
- webpack5 as webpack,
-} from 'next/dist/compiled/webpack/webpack'
+import { NormalModule, webpack } from 'next/dist/compiled/webpack/webpack'
/**
* List of target triples next-swc native binary supports. | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/build/webpack/plugins/wellknown-errors-plugin/index.ts | @@ -1,4 +1,4 @@
-import type { webpack5 as webpack } from 'next/dist/compiled/webpack/webpack'
+import type { webpack } from 'next/dist/compiled/webpack/webpack'
import { getModuleBuildError } from './webpackModuleError'
| true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/build/webpack/plugins/wellknown-errors-plugin/parseNotFoundError.ts | @@ -1,7 +1,7 @@
import Chalk from 'next/dist/compiled/chalk'
import { SimpleWebpackError } from './simpleWebpackError'
import { createOriginalStackFrame } from 'next/dist/compiled/@next/react-dev-overlay/dist/middleware'
-import type { webpack5 } from 'next/dist/compiled/webpack/webpack'
+import type { webpack } fro... | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/build/webpack/plugins/wellknown-errors-plugin/simpleWebpackError.ts | @@ -1,4 +1,4 @@
-import type { webpack5 as webpack } from 'next/dist/compiled/webpack/webpack'
+import type { webpack } from 'next/dist/compiled/webpack/webpack'
// This class creates a simplified webpack error that formats nicely based on
// webpack's build in serializer. | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/build/webpack/plugins/wellknown-errors-plugin/webpackModuleError.ts | @@ -1,6 +1,6 @@
import { readFileSync } from 'fs'
import * as path from 'path'
-import type { webpack5 as webpack } from 'next/dist/compiled/webpack/webpack'
+import type { webpack } from 'next/dist/compiled/webpack/webpack'
import { getBabelError } from './parseBabel'
import { getCssError } from './parseCss' | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/bundles/webpack/bundle5.js | @@ -2,23 +2,23 @@
module.exports = function () {
return {
- BasicEvaluatedExpression: require('webpack5/lib/javascript/BasicEvaluatedExpression'),
- ModuleFilenameHelpers: require('webpack5/lib/ModuleFilenameHelpers'),
- NodeTargetPlugin: require('webpack5/lib/node/NodeTargetPlugin'),
- NodeTemplatePl... | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/bundles/webpack/packages/webpack.d.ts | @@ -1,11 +1,6 @@
export namespace webpack {
export type Compiler = any
export type Plugin = any
-}
-
-export namespace webpack5 {
- export type Compiler = any
- export type Plugin = any
export type Configuration = any
export type StatsError = any
export type Stats = any | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/bundles/webpack/packages/webpack.js | @@ -3,22 +3,22 @@ exports.__esModule = true
exports.default = undefined
exports.init = function () {
- if (process.env.NEXT_PRIVATE_LOCAL_WEBPACK5) {
+ if (process.env.NEXT_PRIVATE_LOCAL_webpack) {
Object.assign(exports, {
// eslint-disable-next-line import/no-extraneous-dependencies
- BasicEvalu... | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/compiled/mini-css-extract-plugin/cjs.js | @@ -1 +1 @@
-(()=>{"use strict";var e={471:(e,r,_)=>{e.exports=_(717)["default"]},717:e=>{e.exports=require("./index.js")}};var r={};function __nccwpck_require__(_){var t=r[_];if(t!==undefined){return t.exports}var a=r[_]={exports:{}};var i=true;try{e[_](a,a.exports,__nccwpck_require__);i=false}finally{if(i)delete r[_]... | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/compiled/mini-css-extract-plugin/hmr/hotModuleReplacement.js | @@ -1 +1 @@
-(()=>{"use strict";var e={722:(e,r,t)=>{var n=t(121);var i=Object.create(null);var a=typeof document==="undefined";var o=Array.prototype.forEach;function debounce(e,r){var t=0;return function(){var n=this;var i=arguments;var a=function functionCall(){return e.apply(n,i)};clearTimeout(t);t=setTimeout(a,r)}}... | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/compiled/mini-css-extract-plugin/index.js | @@ -1 +1 @@
-(()=>{"use strict";var e={722:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.SINGLE_DOT_PATH_SEGMENT=t.MODULE_TYPE=t.AUTO_PUBLIC_PATH=t.ABSOLUTE_PUBLIC_PATH=void 0;t.compareModulesByIdentifier=compareModulesByIdentifier;t.evalModuleCode=evalModuleCode;t.findModuleById=findModuleById;t.getUn... | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/compiled/mini-css-extract-plugin/loader.js | @@ -1 +1 @@
-(()=>{"use strict";var e={722:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:true});t.SINGLE_DOT_PATH_SEGMENT=t.MODULE_TYPE=t.AUTO_PUBLIC_PATH=t.ABSOLUTE_PUBLIC_PATH=void 0;t.compareModulesByIdentifier=compareModulesByIdentifier;t.evalModuleCode=evalModuleCode;t.findModuleById=findModuleById;t.getUn... | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/compiled/sass-loader/cjs.js | @@ -1 +1 @@
-(function(){var __webpack_modules__={814:function(e,t){function set(e,t,s){if(typeof s.value==="object")s.value=klona(s.value);if(!s.enumerable||s.get||s.set||!s.configurable||!s.writable||t==="__proto__"){Object.defineProperty(e,t,s)}else e[t]=s.value}function klona(e){if(typeof e!=="object")return e;var ... | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/compiled/webpack/webpack.d.ts | @@ -1,11 +1,6 @@
export namespace webpack {
export type Compiler = any
export type Plugin = any
-}
-
-export namespace webpack5 {
- export type Compiler = any
- export type Plugin = any
export type Configuration = any
export type StatsError = any
export type Stats = any | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/compiled/webpack/webpack.js | @@ -3,22 +3,22 @@ exports.__esModule = true
exports.default = undefined
exports.init = function () {
- if (process.env.NEXT_PRIVATE_LOCAL_WEBPACK5) {
+ if (process.env.NEXT_PRIVATE_LOCAL_webpack) {
Object.assign(exports, {
// eslint-disable-next-line import/no-extraneous-dependencies
- BasicEvalu... | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/package.json | @@ -273,8 +273,7 @@
"web-vitals": "3.0.0-beta.2",
"webpack-sources1": "npm:webpack-sources@1.4.3",
"webpack-sources3": "npm:webpack-sources@3.2.3",
- "webpack4": "npm:webpack@4.44.1",
- "webpack5": "npm:webpack@5.74.0",
+ "webpack": "5.74.0",
"ws": "8.2.3"
},
"resolutions": { | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/server/config-shared.ts | @@ -1,5 +1,5 @@
import os from 'os'
-import type { webpack5 } from 'next/dist/compiled/webpack/webpack'
+import type { webpack } from 'next/dist/compiled/webpack/webpack'
import type { Header, Redirect, Rewrite } from '../lib/load-custom-routes'
import {
ImageConfig,
@@ -115,7 +115,7 @@ export interface Experimen... | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/server/dev/hot-middleware.ts | @@ -21,7 +21,7 @@
// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-import type { webpack5 as webpack } from 'next/dist/compiled/webpack/webpack'
+import type { webpac... | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/server/dev/hot-reloader.ts | @@ -1,12 +1,11 @@
-import { webpack5 } from 'next/dist/compiled/webpack/webpack'
+import { webpack, StringXor } from 'next/dist/compiled/webpack/webpack'
import type { NextConfigComplete } from '../config-shared'
import type { CustomRoutes } from '../../lib/load-custom-routes'
import { getOverlayMiddleware } from 'n... | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/server/dev/on-demand-entry-handler.ts | @@ -1,5 +1,5 @@
import type ws from 'ws'
-import type { webpack5 as webpack } from 'next/dist/compiled/webpack/webpack'
+import type { webpack } from 'next/dist/compiled/webpack/webpack'
import type { NextConfigComplete } from '../config-shared'
import { EventEmitter } from 'events'
import { findPageFile } from '..... | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/taskfile.js | @@ -1733,7 +1733,7 @@ export async function ncc_webpack_bundle5(task, opts) {
await task
.source(opts.src || 'bundles/webpack/bundle5.js')
.ncc({
- packageName: 'webpack5',
+ packageName: 'webpack',
bundleName: 'webpack',
customEmit(path) {
if (path.endsWith('.runtime.js'))... | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/tsconfig.json | @@ -9,5 +9,11 @@
"jsx": "react",
"stripInternal": true
},
- "exclude": ["dist", "./*.d.ts", "future/*.d.ts", "image-types/global.d.ts"]
+ "exclude": [
+ "dist",
+ "./*.d.ts",
+ "future/*.d.ts",
+ "image-types/global.d.ts",
+ "types/compiled.d.ts"
+ ]
} | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/types/compiled.d.ts | @@ -0,0 +1,21 @@
+// this file is used to stub compiled imports when skipLibCheck: false is used
+// it is not meant to be used with local type checking and is ignored in our
+// local tsconfig.json
+
+declare module 'next/dist/compiled/webpack/webpack' {
+ export function init(): void
+ export let BasicEvaluatedExpr... | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/types/misc.d.ts | @@ -335,14 +335,6 @@ declare module 'next/dist/compiled/@segment/ajv-human-errors' {
export = m
}
-declare module 'pnp-webpack-plugin' {
- import webpack from 'webpack4'
-
- class PnpWebpackPlugin extends webpack.Plugin {}
-
- export = PnpWebpackPlugin
-}
-
declare module NodeJS {
interface ProcessVersions... | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | packages/next/types/webpack.d.ts | @@ -28,19 +28,11 @@ declare module 'next/dist/compiled/loader-utils3'
declare module 'next/dist/compiled/webpack/webpack' {
import webpackSources from 'webpack-sources1'
- import webpack4, { loader } from 'webpack4'
- import webpack5 from 'webpack5'
- export { NormalModule } from 'webpack5'
export function ... | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | pnpm-lock.yaml | @@ -163,7 +163,7 @@ importers:
turbo: 1.3.2-canary.1
typescript: 4.6.3
wait-port: 0.2.2
- webpack: link:packages/next/node_modules/webpack5
+ webpack: 5.74.0
webpack-bundle-analyzer: 4.3.0
devDependencies:
'@babel/core': 7.18.0
@@ -317,7 +317,7 @@ importers:
turb... | true |
Other | vercel | next.js | 6fd2a7fa3132a3e7d67c15b4b77ae7e637b75476.json | Remove webpack4 types (#39631)
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types. | scripts/check-pre-compiled.sh | @@ -4,10 +4,10 @@ set -e
cd packages/next
-cp node_modules/webpack5/lib/hmr/HotModuleReplacement.runtime.js bundles/webpack/packages/
-cp node_modules/webpack5/lib/hmr/JavascriptHotModuleReplacement.runtime.js bundles/webpack/packages/
-cp node_modules/webpack5/hot/lazy-compilation-node.js bundles/webpack/packages... | true |
Other | vercel | next.js | 11bd44f031164f73205fdf9fcfdb41430ee12c17.json | Update Convex Example (#39562)
This makes a few changes to the Convex example app.
We're using this example app in the Convex quick start (https://docs.convex.dev/quick-start), so I want to make sure we're setting new users up for success.
Upgrade to the newest version of Convex (includes adding a tsconfig.json fo... | .prettierignore | @@ -24,3 +24,4 @@ test/**/out/**
bench/nested-deps/pages/**/*
bench/nested-deps/components/**/*
pnpm-lock.yaml
+**/convex/_generated/** | true |
Other | vercel | next.js | 11bd44f031164f73205fdf9fcfdb41430ee12c17.json | Update Convex Example (#39562)
This makes a few changes to the Convex example app.
We're using this example app in the Convex quick start (https://docs.convex.dev/quick-start), so I want to make sure we're setting new users up for success.
Upgrade to the newest version of Convex (includes adding a tsconfig.json fo... | examples/convex/.prettierignore | @@ -0,0 +1,2 @@
+.next
+convex/_generated | true |
Other | vercel | next.js | 11bd44f031164f73205fdf9fcfdb41430ee12c17.json | Update Convex Example (#39562)
This makes a few changes to the Convex example app.
We're using this example app in the Convex quick start (https://docs.convex.dev/quick-start), so I want to make sure we're setting new users up for success.
Upgrade to the newest version of Convex (includes adding a tsconfig.json fo... | examples/convex/.prettierrc.json | @@ -0,0 +1,4 @@
+{
+ "singleQuote": true,
+ "semi": false
+} | true |
Other | vercel | next.js | 11bd44f031164f73205fdf9fcfdb41430ee12c17.json | Update Convex Example (#39562)
This makes a few changes to the Convex example app.
We're using this example app in the Convex quick start (https://docs.convex.dev/quick-start), so I want to make sure we're setting new users up for success.
Upgrade to the newest version of Convex (includes adding a tsconfig.json fo... | examples/convex/convex.json | @@ -0,0 +1,6 @@
+{
+ "authInfo": [],
+ "functions": "convex/",
+ "instanceName": "handsome-turtle-915",
+ "origin": "https://handsome-turtle-915.convex.cloud"
+} | true |
Other | vercel | next.js | 11bd44f031164f73205fdf9fcfdb41430ee12c17.json | Update Convex Example (#39562)
This makes a few changes to the Convex example app.
We're using this example app in the Convex quick start (https://docs.convex.dev/quick-start), so I want to make sure we're setting new users up for success.
Upgrade to the newest version of Convex (includes adding a tsconfig.json fo... | examples/convex/convex/_generated/dataModel.ts | @@ -0,0 +1,60 @@
+/* eslint-disable */
+/**
+ * Generated data model types.
+ *
+ * THIS CODE IS AUTOMATICALLY GENERATED.
+ *
+ * Generated by convex@0.1.8.
+ * To regenerate, run `npx convex codegen`.
+ * @module
+ */
+
+import { AnyDataModel } from "convex/server";
+import { GenericId } from "convex/values";
+
+/**
+... | true |
Other | vercel | next.js | 11bd44f031164f73205fdf9fcfdb41430ee12c17.json | Update Convex Example (#39562)
This makes a few changes to the Convex example app.
We're using this example app in the Convex quick start (https://docs.convex.dev/quick-start), so I want to make sure we're setting new users up for success.
Upgrade to the newest version of Convex (includes adding a tsconfig.json fo... | examples/convex/convex/_generated/react.ts | @@ -0,0 +1,82 @@
+/* eslint-disable */
+/**
+ * Generated React hooks.
+ *
+ * THIS CODE IS AUTOMATICALLY GENERATED.
+ *
+ * Generated by convex@0.1.8.
+ * To regenerate, run `npx convex codegen`.
+ * @module
+ */
+
+import type getCounter from "../getCounter";
+import type incrementCounter from "../incrementCounter";
... | true |
Other | vercel | next.js | 11bd44f031164f73205fdf9fcfdb41430ee12c17.json | Update Convex Example (#39562)
This makes a few changes to the Convex example app.
We're using this example app in the Convex quick start (https://docs.convex.dev/quick-start), so I want to make sure we're setting new users up for success.
Upgrade to the newest version of Convex (includes adding a tsconfig.json fo... | examples/convex/convex/_generated/server.ts | @@ -0,0 +1,79 @@
+/* eslint-disable */
+/**
+ * Generated utilities for implementing server-side Convex query and mutation functions.
+ *
+ * THIS CODE IS AUTOMATICALLY GENERATED.
+ *
+ * Generated by convex@0.1.8.
+ * To regenerate, run `npx convex codegen`.
+ * @module
+ */
+
+import {
+ makeQuery,
+ makeMutation,
... | true |
Other | vercel | next.js | 11bd44f031164f73205fdf9fcfdb41430ee12c17.json | Update Convex Example (#39562)
This makes a few changes to the Convex example app.
We're using this example app in the Convex quick start (https://docs.convex.dev/quick-start), so I want to make sure we're setting new users up for success.
Upgrade to the newest version of Convex (includes adding a tsconfig.json fo... | examples/convex/convex/incrementCounter.ts | @@ -7,16 +7,16 @@ export default mutation(
.filter((q) => q.eq(q.field('name'), counterName))
.first()
if (counterDoc === null) {
- counterDoc = {
+ db.insert('counter_table', {
name: counterName,
counter: increment,
- }
- db.insert('counter_table', counterDoc)
+... | true |
Other | vercel | next.js | 11bd44f031164f73205fdf9fcfdb41430ee12c17.json | Update Convex Example (#39562)
This makes a few changes to the Convex example app.
We're using this example app in the Convex quick start (https://docs.convex.dev/quick-start), so I want to make sure we're setting new users up for success.
Upgrade to the newest version of Convex (includes adding a tsconfig.json fo... | examples/convex/convex/tsconfig.json | @@ -0,0 +1,28 @@
+{
+ /* This TypeScript project config describes the environment that
+ * Convex functions run in and is used to typecheck them.
+ * You can modify it, but some settings required to use Convex.
+ */
+ "compilerOptions": {
+ /* These settings are not required by Convex and can be modified. */... | true |
Other | vercel | next.js | 11bd44f031164f73205fdf9fcfdb41430ee12c17.json | Update Convex Example (#39562)
This makes a few changes to the Convex example app.
We're using this example app in the Convex quick start (https://docs.convex.dev/quick-start), so I want to make sure we're setting new users up for success.
Upgrade to the newest version of Convex (includes adding a tsconfig.json fo... | examples/convex/package.json | @@ -6,10 +6,11 @@
"start": "next start"
},
"dependencies": {
+ "convex": "latest",
"next": "latest",
+ "prettier": "^2.7.1",
"react": "^18.2.0",
- "react-dom": "^18.2.0",
- "convex": "^0.1.6"
+ "react-dom": "^18.2.0"
},
"devDependencies": {
"@types/node": "~16.11.12", | true |
Other | vercel | next.js | 11bd44f031164f73205fdf9fcfdb41430ee12c17.json | Update Convex Example (#39562)
This makes a few changes to the Convex example app.
We're using this example app in the Convex quick start (https://docs.convex.dev/quick-start), so I want to make sure we're setting new users up for success.
Upgrade to the newest version of Convex (includes adding a tsconfig.json fo... | examples/convex/styles/Home.module.css | @@ -1,11 +1,13 @@
.container {
padding: 0 2rem;
+ display: flex;
+ flex-direction: column;
+ min-height: 100vh;
}
.main {
- min-height: 100vh;
padding: 4rem 0;
- flex: 1;
+ flex: 10;
display: flex;
flex-direction: column;
justify-content: center; | true |
Other | vercel | next.js | 059fba21a05a5ad923b440e018af9377b747ca08.json | Eliminate path and utils from base server (#39622)
`_isLikeServerless` is only needed by the Node.js server.
## Bug
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`
## Feature
- [ ] Implements an existing feature request ... | packages/next/server/base-server.ts | @@ -28,14 +28,11 @@ import type { PagesManifest } from '../build/webpack/plugins/pages-manifest-plug
import type { BaseNextRequest, BaseNextResponse } from './base-http'
import type { PayloadOptions } from './send-payload'
-import { join } from '../shared/lib/isomorphic/path'
import { parse as parseQs } from 'quer... | true |
Other | vercel | next.js | 059fba21a05a5ad923b440e018af9377b747ca08.json | Eliminate path and utils from base server (#39622)
`_isLikeServerless` is only needed by the Node.js server.
## Bug
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`
## Feature
- [ ] Implements an existing feature request ... | packages/next/server/next-server.ts | @@ -39,6 +39,8 @@ import {
CLIENT_PUBLIC_FILES_PATH,
APP_PATHS_MANIFEST,
FLIGHT_SERVER_CSS_MANIFEST,
+ SERVERLESS_DIRECTORY,
+ SERVER_DIRECTORY,
} from '../shared/lib/constants'
import { recursiveReadDirSync } from './lib/recursive-readdir-sync'
import { format as formatUrl, UrlWithParsedQuery } from 'url... | true |
Other | vercel | next.js | 27e0b1293b893b0f0004df4e48e5bebbe3996a50.json | Add edge ssr to pr stats (#39621)
Monitoring edge-ssr bundle size in PR stats
change the react version in stats-app to 18
checking size of edge ssr page | test/.stats-app/package.json | @@ -1,11 +1,10 @@
{
"name": "stats-app",
- "version": "1.0.0",
- "main": "index.js",
+ "private": true,
"license": "MIT",
"dependencies": {
"next": "latest",
- "react": "17.0.2",
- "react-dom": "17.0.2"
+ "react": "18.2.0",
+ "react-dom": "18.2.0"
}
} | true |
Other | vercel | next.js | 27e0b1293b893b0f0004df4e48e5bebbe3996a50.json | Add edge ssr to pr stats (#39621)
Monitoring edge-ssr bundle size in PR stats
change the react version in stats-app to 18
checking size of edge ssr page | test/.stats-app/pages/edge-ssr.js | @@ -0,0 +1,13 @@
+export default function page() {
+ return 'edge-ssr'
+}
+
+export async function getServerSideProps() {
+ return {
+ props: {},
+ }
+}
+
+export const config = {
+ runtime: 'experimental-edge',
+} | true |
Other | vercel | next.js | 27e0b1293b893b0f0004df4e48e5bebbe3996a50.json | Add edge ssr to pr stats (#39621)
Monitoring edge-ssr bundle size in PR stats
change the react version in stats-app to 18
checking size of edge ssr page | test/.stats-app/stats-config.js | @@ -31,6 +31,10 @@ const clientGlobs = [
name: 'Rendered Page Sizes',
globs: ['fetched-pages/**/*.html'],
},
+ {
+ name: 'Edge SSR Page bundle Size',
+ globs: ['.next/server/pages/edge-ssr.js'],
+ },
{
name: 'Middleware size',
globs: [ | true |
Other | vercel | next.js | 683db9a8ad2660c0de12dfb44ef6808a9726cb20.json | Support tsconfig paths without baseurl (#34926)
tsconfig behaves differently with `tsc` vs. Next.js. When `baseurl` is omitted, `paths` should be resolved against the tsconfig location. Consequentially, in this case the paths must start with `./`. This PR aligns Next.js behavior with `tsc` around `paths` without `base... | packages/next/build/load-jsconfig.ts | @@ -49,6 +49,7 @@ export default async function loadJsConfig(
typeScriptPath && (await fileExists(tsConfigPath))
)
+ let implicitBaseurl
let jsConfig
// jsconfig is a subset of tsconfig
if (useTypeScript) {
@@ -65,17 +66,24 @@ export default async function loadJsConfig(
)) as typeof import('typ... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.