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
20fe65ce4119727a0f2b35a630b0cbc568ae3724.json
Implement tslint for core files (#5952) Fixes #5845 Implement tslint for core files **What is this?** Implements tslint for both next and next-server, but keeps standardjs/eslint for the .js files that are still there, we're gradually migrating to Typescript. **How does it work?** Before every commit (pre-...
packages/next/bin/next-start.ts
@@ -13,10 +13,11 @@ const args = arg({ // Aliases '-h': '--help', '-p': '--port', - '-H': '--hostname' + '-H': '--hostname', }) if (args['--help']) { + // tslint:disable-next-line console.log(` Description Starts the application in production mode. @@ -42,10 +43,12 @@ const dir = resolve(...
true
Other
vercel
next.js
20fe65ce4119727a0f2b35a630b0cbc568ae3724.json
Implement tslint for core files (#5952) Fixes #5845 Implement tslint for core files **What is this?** Implements tslint for both next and next-server, but keeps standardjs/eslint for the .js files that are still there, we're gradually migrating to Typescript. **How does it work?** Before every commit (pre-...
packages/next/bin/next.ts
@@ -3,11 +3,12 @@ import { join } from 'path' import spawn from 'cross-spawn' import arg from 'arg' -['react', 'react-dom'].forEach(dependency => { +['react', 'react-dom'].forEach((dependency) => { try { // When 'npm link' is used it checks the clone location. Not the project. require.resolve(dependenc...
true
Other
vercel
next.js
20fe65ce4119727a0f2b35a630b0cbc568ae3724.json
Implement tslint for core files (#5952) Fixes #5845 Implement tslint for core files **What is this?** Implements tslint for both next and next-server, but keeps standardjs/eslint for the .js files that are still there, we're gradually migrating to Typescript. **How does it work?** Before every commit (pre-...
tslint.json
@@ -0,0 +1,30 @@ +{ + "defaultSeverity": "error", + "extends": [ + "tslint:recommended" + ], + "jsRules": {}, + "rules": { + "curly": false, + "no-empty": false, + "object-literal-sort-keys": false, + "variable-name": false, + "max-line-length": false, + "interface-over-type-literal": false, +...
true
Other
vercel
next.js
2c916137b277f018849b6a9daa0503d71ac19f01.json
Add test for instance method on getInitialProps. (#5951)
test/integration/basic/pages/instance-get-initial-props.js
@@ -0,0 +1,18 @@ +import React from 'react' + +export default class InstanceInitialPropsPage extends React.Component { + async getInitialProps () { + return fetchData() + } + + render () { + return <p>{this.props.name}</p> + } +} + +function fetchData () { + const p = new Promise(resolve => { + setTimeout...
true
Other
vercel
next.js
2c916137b277f018849b6a9daa0503d71ac19f01.json
Add test for instance method on getInitialProps. (#5951)
test/integration/basic/test/rendering.js
@@ -120,6 +120,12 @@ export default function ({ app }, suiteName, render, fetch) { expect(link.text()).toBe('About') }) + test('getInitialProps should be class method', async () => { + const $ = await get$('/instance-get-initial-props') + const expectedErrorMessage = '"InstanceInitialPropsPag...
true
Other
vercel
next.js
44d12d0c9506250021e29c66344aeec4db8e1ba7.json
Remove unused imports. (#5950)
packages/next-server/server/render.tsx
@@ -1,14 +1,12 @@ import {IncomingMessage, ServerResponse} from 'http' import { ParsedUrlQuery } from 'querystring' -import { join } from 'path' import React from 'react' import { renderToString, renderToStaticMarkup } from 'react-dom/server' import Router from '../lib/router/router' import { loadGetInitialProps,...
false
Other
vercel
next.js
05479400e3cda40eb5e8c53c8cc914f3238ad382.json
Update react and react-dom to use "latest" (#5942)
examples/with-emotion/package.json
@@ -11,8 +11,8 @@ "@emotion/styled": "^10.0.0", "babel-plugin-emotion": "^10.0.0", "next": "latest", - "react": "^16.3.0", - "react-dom": "^16.3.0" + "react": "latest", + "react-dom": "latest" }, "license": "ISC" }
false
Other
vercel
next.js
960f50a019d171cdb66cb8a15e0a6d8a7ab93116.json
Upgrade packages & React v15.4.0 (#283) * Upgrade packages & React v15.4.0 * Update package.json * no message
client/head-manager.js
@@ -1,4 +1,4 @@ -import HTMLDOMPropertyConfig from 'react/lib/HTMLDOMPropertyConfig' +import HTMLDOMPropertyConfig from 'react-dom/lib/HTMLDOMPropertyConfig' const DEFAULT_TITLE = ''
true
Other
vercel
next.js
960f50a019d171cdb66cb8a15e0a6d8a7ab93116.json
Upgrade packages & React v15.4.0 (#283) * Upgrade packages & React v15.4.0 * Update package.json * no message
package.json
@@ -29,53 +29,53 @@ }, "dependencies": { "ansi-html": "0.0.6", - "babel-core": "6.17.0", - "babel-generator": "6.17.0", - "babel-loader": "6.2.5", + "babel-core": "6.18.2", + "babel-generator": "6.19.0", + "babel-loader": "6.2.8", "babel-plugin-module-resolver": "2.3.0", "babel-pl...
true
Other
vercel
next.js
e0455823a0388ce2e9c96472c7ed393d821389f4.json
Add default utf-8 charset. (#270)
lib/head.js
@@ -11,13 +11,18 @@ class Head extends React.Component { } } +export function defaultHead () { + return [<meta charSet='utf-8' className='next-head' />] +} + function reduceComponents (components) { return components .map((c) => c.props.children) .filter((c) => !!c) .map((children) => React.Children...
true
Other
vercel
next.js
e0455823a0388ce2e9c96472c7ed393d821389f4.json
Add default utf-8 charset. (#270)
server/render.js
@@ -8,7 +8,7 @@ import read from './read' import getConfig from './config' import Router from '../lib/router' import Document from '../lib/document' -import Head from '../lib/head' +import Head, {defaultHead} from '../lib/head' import App from '../lib/app' export async function render (url, ctx = {}, { @@ -33,7 ...
true
Other
vercel
next.js
e0455823a0388ce2e9c96472c7ed393d821389f4.json
Add default utf-8 charset. (#270)
test/fixtures/basic/pages/head.js
@@ -4,6 +4,7 @@ import Head from 'next/head' export default () => <div> <Head> + <meta charSet='iso-8859-5' /> <meta content='my meta' /> </Head> <h1>I can haz meta tags</h1>
true
Other
vercel
next.js
e0455823a0388ce2e9c96472c7ed393d821389f4.json
Add default utf-8 charset. (#270)
test/index.js
@@ -9,6 +9,7 @@ test.before(() => build(dir)) test(async t => { const html = await render('/stateless') + t.true(html.includes('<meta charset="utf-8" class="next-head"/>')) t.true(html.includes('<h1>My component!</h1>')) }) @@ -25,6 +26,7 @@ test(async t => { test(async t => { const html = await (ren...
true
Other
vercel
next.js
d88f40a0017548d3e409a482662f5c2d01b90d3c.json
remove babel settings for ava
package.json
@@ -22,18 +22,7 @@ "precommit": "npm run lint" }, "ava": { - "babel": { - "presets": [ - "es2015", - "react" - ], - "plugins": [ - "transform-async-to-generator", - "transform-object-rest-spread", - "transform-class-properties", - "transform-runtime...
false
Other
vercel
next.js
a1337320ea99b5e941d2b6bb2416fd973a3ae445.json
remove unused code
client/next.js
@@ -3,14 +3,13 @@ import { render } from 'react-dom' import HeadManager from './head-manager' import { rehydrate } from '../lib/css' import Router from '../lib/router' -import DefaultApp from '../lib/app' +import App from '../lib/app' import evalScript from '../lib/eval-script' const { - __NEXT_DATA__: { app, c...
false
Other
vercel
next.js
c5887281fb355a881de59418dbfc47a5a4ef8eac.json
Update glamor (#228)
package.json
@@ -53,7 +53,7 @@ "babel-runtime": "6.11.6", "cross-spawn": "4.0.2", "del": "2.2.2", - "glamor": "2.17.10", + "glamor": "2.17.14", "glob-promise": "1.0.6", "htmlescape": "1.1.1", "json-loader": "0.5.4",
false
Other
vercel
next.js
027622f6469680e7b2b06a3f42af0d7ac6cc3c65.json
add ava as a devDependencies for npm@2.x
package.json
@@ -74,6 +74,7 @@ "write-file-webpack-plugin": "3.3.0" }, "devDependencies": { + "ava": "0.16.0", "babel-eslint": "7.0.0", "babel-plugin-transform-remove-strict-mode": "0.0.2", "benchmark": "2.1.1",
false
Other
vercel
next.js
fe9e72ac163d7951d854dfba211269158664d65c.json
README: add travis badge
README.md
@@ -1,5 +1,6 @@ <img width="112" alt="screen shot 2016-10-25 at 2 37 27 pm" src="https://cloud.githubusercontent.com/assets/13041/19686250/971bf7f8-9ac0-11e6-975c-188defd82df1.png"> +[![Build Status](https://travis-ci.org/zeit/next.js.svg?branch=master)](https://travis-ci.org/zeit/next.js) [![Slack Channel](https:/...
false
Other
vercel
next.js
27c5632b1d5a0206aa789f6a7e275f705fe6354b.json
add strip-ansi again
package.json
@@ -66,6 +66,7 @@ "react-dom": "15.3.2", "react-hot-loader": "3.0.0-beta.6", "send": "0.14.1", + "strip-ansi": "3.0.1", "url": "0.11.0", "webpack": "1.13.2", "webpack-dev-server": "1.16.2",
false
Other
vercel
next.js
bce4434db97893127800cce6fa43691090b79755.json
Add syntax highlighting to debug error page (#195)
package.json
@@ -39,6 +39,7 @@ "parser": "babel-eslint" }, "dependencies": { + "ansi-html": "0.0.6", "babel-core": "6.17.0", "babel-generator": "6.17.0", "babel-loader": "6.2.5", @@ -65,7 +66,6 @@ "react-dom": "15.3.2", "react-hot-loader": "3.0.0-beta.6", "send": "0.14.1", - "strip-ans...
true
Other
vercel
next.js
bce4434db97893127800cce6fa43691090b79755.json
Add syntax highlighting to debug error page (#195)
pages/_error-debug.js
@@ -1,5 +1,5 @@ import React from 'react' -import stripAnsi from 'strip-ansi' +import ansiHTML from 'ansi-html' import Head from 'next/head' import style from 'next/css' @@ -16,20 +16,24 @@ export default class ErrorDebug extends React.Component { <Head> <style dangerouslySetInnerHTML={{ __html: ` ...
true
Other
vercel
next.js
a3548a6717fd0676b0adc5291ec5f35300810f60.json
hot-reloader: remove fileSystem property
server/hot-reloader.js
@@ -143,10 +143,6 @@ export default class HotReloader { send (type, data) { this.server.sockWrite(this.server.sockets, type, data) } - - get fileSystem () { - return this.server.middleware.fileSystem - } } function deleteCache (path) {
false
Other
vercel
next.js
47d057134185c5a60d5690c94e339e5f5bcace8b.json
README: add more help on using Glamor (#165)
README.md
@@ -58,18 +58,23 @@ That means pages never load unnecessary code! ### CSS -We use [glamor](https://github.com/threepointone/glamor) to provide a great built-in solution for CSS isolation and modularization without trading off any CSS features +We use [glamor](https://github.com/threepointone/glamor) to provide a g...
false
Other
vercel
next.js
3fa636fa8132be3884e67dc2f2126e4a15161ed2.json
Expose css, link, and head in package. (#154) * Expose next/css, next/link, and next/head. This allows test runners like Jest and ESLint's file resolver to be able to find exported modules within `next`. Fixes #113 * Removed semicolons for linting and expose modules.
css.js
@@ -0,0 +1 @@ +module.exports = require('./dist/lib/css')
true
Other
vercel
next.js
3fa636fa8132be3884e67dc2f2126e4a15161ed2.json
Expose css, link, and head in package. (#154) * Expose next/css, next/link, and next/head. This allows test runners like Jest and ESLint's file resolver to be able to find exported modules within `next`. Fixes #113 * Removed semicolons for linting and expose modules.
head.js
@@ -0,0 +1 @@ +module.exports = require('./dist/lib/head')
true
Other
vercel
next.js
3fa636fa8132be3884e67dc2f2126e4a15161ed2.json
Expose css, link, and head in package. (#154) * Expose next/css, next/link, and next/head. This allows test runners like Jest and ESLint's file resolver to be able to find exported modules within `next`. Fixes #113 * Removed semicolons for linting and expose modules.
link.js
@@ -0,0 +1 @@ +module.exports = require('./dist/lib/link')
true
Other
vercel
next.js
3fa636fa8132be3884e67dc2f2126e4a15161ed2.json
Expose css, link, and head in package. (#154) * Expose next/css, next/link, and next/head. This allows test runners like Jest and ESLint's file resolver to be able to find exported modules within `next`. Fixes #113 * Removed semicolons for linting and expose modules.
package.json
@@ -6,7 +6,10 @@ "license": "MIT", "repository": "zeit/next.js", "files": [ - "dist" + "dist", + "link.js", + "css.js", + "head.js" ], "bin": { "next": "./dist/bin/next"
true
Other
vercel
next.js
4ea933725d32bfcb64c21bbc3633b3cfb259c3c3.json
example: add missing dependencies and babel config
examples/with-jest/package.json
@@ -12,6 +12,15 @@ "devDependencies": { "babel-jest": "^16.0.0", "enzyme": "^2.5.1", - "jest": "^16.0.2" + "jest": "^16.0.2", + "react": "^15.3.2", + "react-addons-test-utils": "^15.3.2", + "react-dom": "^15.3.2" + }, + "babel": { + "presets": [ + "es2015", + "react" + ] ...
false
Other
vercel
next.js
a636ba36a4f022e34c22e8cd0f4b2f2c25cc7503.json
Add license MIT (#93) * Add license MIT * Fix typo * Remove extension LICENSE * Change copyright to Zeit, Inc. * Remove section license in README file * Update README.md
LICENSE
@@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2016 Zeit, Inc. developers + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the right...
false
Other
vercel
next.js
7501e80b4b2779fbd545c804b92fff61053caef9.json
fix: add json-loader to dependency list (#146)
package.json
@@ -52,6 +52,7 @@ "glamor": "2.17.10", "glob-promise": "1.0.6", "htmlescape": "1.1.1", + "json-loader": "0.5.4", "loader-utils": "0.2.16", "minimist": "1.2.0", "mz": "2.4.0",
false
Other
vercel
next.js
93d856706b801126453240d62ba8bbb0de987edc.json
add cdn config (#111)
lib/document.js
@@ -2,32 +2,7 @@ import React from 'react' import htmlescape from 'htmlescape' import pkg from '../../package.json' -export default ({ head, css, html, data, dev, staticMarkup }) => { - let script - if (!staticMarkup) { - if (dev) { - script = <script type='text/javascript' src='/_next/next-dev.bundle.js'...
true
Other
vercel
next.js
93d856706b801126453240d62ba8bbb0de987edc.json
add cdn config (#111)
server/config.js
@@ -0,0 +1,33 @@ +import { join } from 'path' +import { readFile } from 'mz/fs' + +const cache = new Map() + +const defaultConfig = { cdn: true } + +export default function getConfig (dir) { + if (!cache.has(dir)) { + cache.set(dir, loadConfig(dir)) + } + return cache.get(dir) +} + +async function loadConfig (dir...
true
Other
vercel
next.js
93d856706b801126453240d62ba8bbb0de987edc.json
add cdn config (#111)
server/render.js
@@ -2,13 +2,14 @@ import { join } from 'path' import { parse } from 'url' import { createElement } from 'react' import { renderToString, renderToStaticMarkup } from 'react-dom/server' +import { renderStatic } from 'glamor/server' import requireModule from './require' import read from './read' +import getConfig fro...
true
Other
vercel
next.js
da1cdcb8437d0b3d289e5c27fb20cc0ac3d41509.json
next init: create package.json with empty description (#135)
bin/next-init
@@ -39,7 +39,7 @@ exists(join(dir, 'package.json')) const basePackage = `{ "name": "my-app", - "description": "my app", + "description": "", "dependencies": { "next": "latest" },
false
Other
vercel
next.js
e763dc731b054af99e35d2751e71a6569f5ac812.json
Fix #85 (#97)
server/build/webpack.js
@@ -31,6 +31,9 @@ export default async function createCompiler (dir, { hotReload = false } = {}) { const nodeModulesDir = join(__dirname, '..', '..', '..', 'node_modules') const plugins = [ + new webpack.DefinePlugin({ + 'process.env.NODE_ENV': JSON.stringify('production') + }), new WriteFilePlu...
false
Other
vercel
next.js
eb74ff4bf9e3b83edee346fc0dfa99e7e7cc086c.json
README: fix missing links
README.md
@@ -290,7 +290,7 @@ While these are tractable for CSS itself, we don’t need to duplicate the effor We track V8. Since V8 has wide support for ES6 and `async` and `await`, we transpile those. Since V8 doesn’t support class decorators, we don’t transpile those. -See [this](link to default babel config we use) and [t...
false
Other
vercel
next.js
bbcb448e87d466d682828a6d3eaec43b0728e816.json
Fix index.js for API routes (#8112) This fixes the problem with `/pages/api/index.js` not creating serverless function. Fixes #8111
packages/next/build/entries.ts
@@ -1,6 +1,6 @@ import { join } from 'path' import { stringify } from 'querystring' -import { PAGES_DIR_ALIAS, DOT_NEXT_ALIAS } from '../lib/constants' +import { PAGES_DIR_ALIAS, DOT_NEXT_ALIAS, API_ROUTE } from '../lib/constants' import { ServerlessLoaderQuery } from './webpack/loaders/next-serverless-loader' ty...
true
Other
vercel
next.js
bbcb448e87d466d682828a6d3eaec43b0728e816.json
Fix index.js for API routes (#8112) This fixes the problem with `/pages/api/index.js` not creating serverless function. Fixes #8111
packages/next/build/webpack/loaders/next-serverless-loader.ts
@@ -3,6 +3,7 @@ import { join } from 'path' import { parse } from 'querystring' import { BUILD_MANIFEST, REACT_LOADABLE_MANIFEST } from 'next-server/constants' import { isDynamicRoute } from 'next-server/dist/lib/router/utils' +import { API_ROUTE } from '../../../lib/constants' export type ServerlessLoaderQuery =...
true
Other
vercel
next.js
bbcb448e87d466d682828a6d3eaec43b0728e816.json
Fix index.js for API routes (#8112) This fixes the problem with `/pages/api/index.js` not creating serverless function. Fixes #8111
packages/next/lib/constants.ts
@@ -15,6 +15,9 @@ export const NEXT_PROJECT_ROOT_DIST_SERVER = join( 'server' ) +// Regex for API routes +export const API_ROUTE = /^\/api(?:\/|$)/ + // Because on Windows absolute paths in the generated code can break because of numbers, eg 1 in the path, // we have to use a private alias export const PAGES_D...
true
Other
vercel
next.js
bbcb448e87d466d682828a6d3eaec43b0728e816.json
Fix index.js for API routes (#8112) This fixes the problem with `/pages/api/index.js` not creating serverless function. Fixes #8111
test/integration/api-support/pages/api/index.js
@@ -0,0 +1,3 @@ +export default (req, res) => { + res.send('Index should work') +}
true
Other
vercel
next.js
bbcb448e87d466d682828a6d3eaec43b0728e816.json
Fix index.js for API routes (#8112) This fixes the problem with `/pages/api/index.js` not creating serverless function. Fixes #8111
test/integration/api-support/test/index.test.js
@@ -45,6 +45,27 @@ function runTests (serverless = false) { killApp(app) }) + it('should work with index api', async () => { + if (serverless) { + const port = await findPort() + const resolver = require(join(appDir, '.next/serverless/pages/api.js')) + .default + + const server = cre...
true
Other
vercel
next.js
8b0a93b0edf06d46da4839d5be426133810c8bad.json
Fix extension for module/nomodule
packages/next/pages/_document.tsx
@@ -167,7 +167,7 @@ export class Head extends Component< return ( dedupe(dynamicImports) .map((bundle: any) => { - // `dynamicImports` will contain both `.js` and `.modern.js` when the + // `dynamicImports` will contain both `.js` and `.module.js` when the // feature is...
false
Other
vercel
next.js
d006a24d8f9d70ad92f59c41a42b2ecb7c46cbf6.json
Require label to merge for now
.kodiak.toml
@@ -2,9 +2,9 @@ version = 1 [merge] automerge_label = "lgtm" -require_automerge_label = false +require_automerge_label = true blacklist_title_regex = "^WIP.*" -blacklist_labels = ["hold"] +blacklist_labels = ["hold", "work in progress"] method = "squash" delete_branch_on_merge = true block_on_reviews_requested ...
false
Other
vercel
next.js
31385febb4b516ccc3637543f46002a2f48800c7.json
Enable Kodiak bot (#8096)
.kodiak.toml
@@ -0,0 +1,18 @@ +version = 1 + +[merge] +automerge_label = "lgtm" +require_automerge_label = false +blacklist_title_regex = "^WIP.*" +blacklist_labels = ["hold"] +method = "squash" +delete_branch_on_merge = true +block_on_reviews_requested = false +notify_on_conflict = true +optimistic_updates = true + +[merge.message...
false
Other
vercel
next.js
6faf0d18fb69704c82a70290a735dcfd6f143a64.json
Fix userAgent type error in README.md (#8048)
packages/next/README.md
@@ -2182,7 +2182,7 @@ Next.js provides `NextPage` type that can be used for pages in the `pages` direc import { NextPage } from 'next' interface Props { - userAgent: string + userAgent?: string } const Page: NextPage<Props> = ({ userAgent }) => ( @@ -2213,7 +2213,7 @@ import React from 'react' import { NextP...
false
Other
vercel
next.js
1cbb5958ec8bd5a6b48d11475b6499d2da8b71a5.json
Fix syntax error in ie11 from next-server/amp (#8032)
packages/next-server/amp.js
@@ -1,2 +1,2 @@ -const { useAmp } = require('./dist/lib/amp') -module.exports = { useAmp } +const amp = require('./dist/lib/amp') +module.exports = { useAmp: amp.useAmp }
true
Other
vercel
next.js
1cbb5958ec8bd5a6b48d11475b6499d2da8b71a5.json
Fix syntax error in ie11 from next-server/amp (#8032)
test/integration/production/pages/some-amp.js
@@ -0,0 +1,11 @@ +import { useAmp } from 'next/amp' + +if (typeof window !== 'undefined') { + window.addEventListener('error', () => { + document.querySelector('p').innerText('error') + }) +} + +export const config = { amp: 'hybrid' } + +export default () => <p>{useAmp() ? 'AMP' : 'Not AMP'}</p>
true
Other
vercel
next.js
1cbb5958ec8bd5a6b48d11475b6499d2da8b71a5.json
Fix syntax error in ie11 from next-server/amp (#8032)
test/integration/production/test/index.test.js
@@ -566,6 +566,13 @@ describe('Production Usage', () => { expect(text).toMatch(/some interesting title/) }) + it('should handle AMP correctly in IE', async () => { + const browser = await webdriver(appPort, '/some-amp') + await waitFor(1000) + const text = await browser.elementByCss('p').text() + ...
true
Other
vercel
next.js
d486152b98b481afd2d6e6e013e8a0cefda93350.json
Remove old media images
packages/create-next-app/README.md
@@ -35,14 +35,6 @@ If you run into any issues or have feedback, please <a href="https://github.com/ Open [http://localhost:3000](http://localhost:3000) to view your running app. When you're ready for production, run the `build` then `start` scripts. -<p align='center'> - <img width="600" alt="Create Next App runni...
false
Other
vercel
next.js
9609fe453d8ce3e67ab89733f52643fc85c16b72.json
Replace fs.exists with fs.access (#7742) * Replace deprecated fs.exists with fs.access. * Update packages/next/lib/file-exists.ts Co-Authored-By: Joe Haddad <timer150@gmail.com> * Update packages/next/lib/file-exists.ts Co-Authored-By: Joe Haddad <timer150@gmail.com>
packages/next/build/flying-shuttle.ts
@@ -8,6 +8,7 @@ import path from 'path' import { promisify } from 'util' import { recursiveDelete } from '../lib/recursive-delete' +import { fileExists } from '../lib/file-exists' import * as Log from './output/log' import { PageInfo } from './utils' @@ -17,7 +18,6 @@ const DIR_FILES_NAME = 'files' const MAX_S...
true
Other
vercel
next.js
9609fe453d8ce3e67ab89733f52643fc85c16b72.json
Replace fs.exists with fs.access (#7742) * Replace deprecated fs.exists with fs.access. * Update packages/next/lib/file-exists.ts Co-Authored-By: Joe Haddad <timer150@gmail.com> * Update packages/next/lib/file-exists.ts Co-Authored-By: Joe Haddad <timer150@gmail.com>
packages/next/build/utils.ts
@@ -10,10 +10,10 @@ import { promisify } from 'util' import { isValidElementType } from 'react-is' import prettyBytes from '../lib/pretty-bytes' import { recursiveReadDir } from '../lib/recursive-readdir' +import { fileExists } from '../lib/file-exists' import { getPageChunks } from './webpack/plugins/chunk-graph-p...
true
Other
vercel
next.js
9609fe453d8ce3e67ab89733f52643fc85c16b72.json
Replace fs.exists with fs.access (#7742) * Replace deprecated fs.exists with fs.access. * Update packages/next/lib/file-exists.ts Co-Authored-By: Joe Haddad <timer150@gmail.com> * Update packages/next/lib/file-exists.ts Co-Authored-By: Joe Haddad <timer150@gmail.com>
packages/next/build/webpack-config.ts
@@ -8,7 +8,6 @@ import { } from 'next-server/constants' import resolve from 'next/dist/compiled/resolve/index.js' import path from 'path' -import { promisify } from 'util' import webpack from 'webpack' import { @@ -17,6 +16,7 @@ import { NEXT_PROJECT_ROOT_DIST_CLIENT, PAGES_DIR_ALIAS, } from '../lib/const...
true
Other
vercel
next.js
9609fe453d8ce3e67ab89733f52643fc85c16b72.json
Replace fs.exists with fs.access (#7742) * Replace deprecated fs.exists with fs.access. * Update packages/next/lib/file-exists.ts Co-Authored-By: Joe Haddad <timer150@gmail.com> * Update packages/next/lib/file-exists.ts Co-Authored-By: Joe Haddad <timer150@gmail.com>
packages/next/lib/file-exists.ts
@@ -0,0 +1,16 @@ +import fs from 'fs' +import { promisify } from 'util' + +const access = promisify(fs.access) + +export async function fileExists(fileName: string): Promise<boolean> { + try { + await access(fileName, fs.constants.F_OK) + return true + } catch (err) { + if (err.code === 'ENOENT') { + re...
true
Other
vercel
next.js
9609fe453d8ce3e67ab89733f52643fc85c16b72.json
Replace fs.exists with fs.access (#7742) * Replace deprecated fs.exists with fs.access. * Update packages/next/lib/file-exists.ts Co-Authored-By: Joe Haddad <timer150@gmail.com> * Update packages/next/lib/file-exists.ts Co-Authored-By: Joe Haddad <timer150@gmail.com>
packages/next/lib/verifyTypeScriptSetup.ts
@@ -4,9 +4,9 @@ import path from 'path' import chalk from 'chalk' import { promisify } from 'util' import { recursiveReadDir } from './recursive-readdir' +import { fileExists } from './file-exists' import resolve from 'next/dist/compiled/resolve/index.js' -const exists = promisify(fs.exists) const writeFile = pr...
true
Other
vercel
next.js
9609fe453d8ce3e67ab89733f52643fc85c16b72.json
Replace fs.exists with fs.access (#7742) * Replace deprecated fs.exists with fs.access. * Update packages/next/lib/file-exists.ts Co-Authored-By: Joe Haddad <timer150@gmail.com> * Update packages/next/lib/file-exists.ts Co-Authored-By: Joe Haddad <timer150@gmail.com>
packages/next/server/hot-reloader.js
@@ -17,13 +17,12 @@ import { createPagesMapping, createEntrypoints } from '../build/entries' import { watchCompilers } from '../build/output' import { findPageFile } from './lib/find-page-file' import { recursiveDelete } from '../lib/recursive-delete' +import { fileExists } from '../lib/file-exists' import { promis...
true
Other
vercel
next.js
d84f2919e6fc65d2ca6a3daa3378e79ea7aeade1.json
Make tests for both async and sync GIP (#7999)
test/integration/typescript/pages/_error.tsx
@@ -2,7 +2,7 @@ import { NextPageContext } from 'next' import ErrorComponent from 'next/error' class CustomError extends ErrorComponent { - static async getInitialProps({ res }: NextPageContext) { + static getInitialProps({ res }: NextPageContext) { const statusCode = 500 return { statusCode, title: 'Cu...
true
Other
vercel
next.js
d84f2919e6fc65d2ca6a3daa3378e79ea7aeade1.json
Make tests for both async and sync GIP (#7999)
test/integration/typescript/test/typescript.js
@@ -1,7 +1,7 @@ /* eslint-env jest */ import { join } from 'path' import cheerio from 'cheerio' -import { runNextCommand } from 'next-test-utils' +import { runNextCommand, File } from 'next-test-utils' const appDir = join(__dirname, '../') @@ -17,7 +17,22 @@ export default (context, render) => { expect...
true
Other
vercel
next.js
0b496a45e85f3c9aa3cf2e77eef10888be5884fc.json
Import isomorphic-unfetch in data fetching example (#7895) Following this example confused me at first because it looked like it was using native fetch, and when that didn't work server-side I wasn't sure if that was my mistake or an issue with the docs.
packages/next/README.md
@@ -404,6 +404,8 @@ When you need state, lifecycle hooks or **initial data population** you can expo Using a stateless function: ```jsx +import fetch from 'isomorphic-unfetch'; + function Page({ stars }) { return <div>Next stars: {stars}</div> }
false
Other
vercel
next.js
f43ae7363ebc72e0406862728a36a6e55a1f57f6.json
Adjust test names for `send` (#7996) * Adjust test names for `serve` * Clarify names more
test/integration/production/test/index.test.js
@@ -126,21 +126,32 @@ describe('Production Usage', () => { expect(res.status).toBe(405) }) - it('should return 412 method on static file if If-Unmodified-Since is invalid', async () => { + it('should return 412 on static file when If-Unmodified-Since is provided and file is modified', async () => { ...
false
Other
vercel
next.js
a10b3dff335ff4b687dea2fb70fc41ac5775e1c1.json
Add default value for pageConfig for custom _error (#7984) * Add default value for pageConfig for custom _error * Add serverless mode for custom-error test
packages/next-server/server/render.tsx
@@ -249,7 +249,7 @@ export async function renderToHTML( ampPath = '', App, Document, - pageConfig, + pageConfig = {}, DocumentMiddleware, Component, buildManifest,
true
Other
vercel
next.js
a10b3dff335ff4b687dea2fb70fc41ac5775e1c1.json
Add default value for pageConfig for custom _error (#7984) * Add default value for pageConfig for custom _error * Add serverless mode for custom-error test
test/integration/custom-error/pages/_error.js
@@ -0,0 +1,23 @@ +import React from 'react' + +class Error extends React.Component { + static getInitialProps ({ res, err }) { + const statusCode = res ? res.statusCode : err ? err.statusCode : null + return { statusCode } + } + + render () { + return ( + <> + <h3>Custom error!!</h3> + <p...
true
Other
vercel
next.js
a10b3dff335ff4b687dea2fb70fc41ac5775e1c1.json
Add default value for pageConfig for custom _error (#7984) * Add default value for pageConfig for custom _error * Add serverless mode for custom-error test
test/integration/custom-error/pages/index.js
@@ -0,0 +1,7 @@ +const Page = () => <p>Hello world</p> + +Page.getInitialProps = () => { + throw new Error('oof') +} + +export default Page
true
Other
vercel
next.js
a10b3dff335ff4b687dea2fb70fc41ac5775e1c1.json
Add default value for pageConfig for custom _error (#7984) * Add default value for pageConfig for custom _error * Add serverless mode for custom-error test
test/integration/custom-error/test/index.test.js
@@ -0,0 +1,55 @@ +/* eslint-env jest */ +/* global jasmine */ +import fs from 'fs-extra' +import { join } from 'path' +import { + renderViaHTTP, + findPort, + nextBuild, + nextStart, + killApp +} from 'next-test-utils' + +jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2 +const appDir = join(__dirname, '..') +const...
true
Other
vercel
next.js
e7440858db5d23fe162549df762d93b0b543b04c.json
Add empty publicRuntimeConfig to serverless tests (#7948) to make sure error isn't thrown when not used
test/integration/serverless/next.config.js
@@ -6,5 +6,7 @@ module.exports = { }, experimental: { publicDirectory: true - } + }, + // make sure error isn't thrown from empty publicRuntimeConfig + publicRuntimeConfig: {} }
false
Other
vercel
next.js
cdf4f0a20d71b365e69828942ca7bf69498fa825.json
Fix example with-firebase-hosting-and-typescript (#7971)
examples/with-firebase-hosting-and-typescript/package.json
@@ -21,8 +21,8 @@ "install-deps": "cd \"dist/functions\" && npm i" }, "dependencies": { - "firebase-admin": "^6.3.0", - "firebase-functions": "^2.1.0", + "firebase-admin": "^8.0.0", + "firebase-functions": "^3.1.0", "next": "latest", "react": "16.8.6", "react-dom": "16.8.6" @@ -33,...
true
Other
vercel
next.js
cdf4f0a20d71b365e69828942ca7bf69498fa825.json
Fix example with-firebase-hosting-and-typescript (#7971)
examples/with-firebase-hosting-and-typescript/src/app/next.config.js
@@ -0,0 +1,3 @@ +module.exports = { + distDir: '../../dist/functions/next' +}
true
Other
vercel
next.js
10614e84658df5e878928769681cd9e2d3fec0b7.json
Replace windows backslashes with forward (#7942) slashes for better handling
packages/next/build/webpack/plugins/chunk-graph-plugin.ts
@@ -36,6 +36,8 @@ export function getPageChunks( const external = new Set<string>() // from node_modules const internal = new Set<string>() // from project ;[...(manifest.pages[page] || []), ...(pageModules[page] || [])].map(mod => { + mod = mod.replace(/\\/g, '/') + if (mod.match(/(next-server|next)\/...
false
Other
vercel
next.js
45f80409dca104aa824cfbbca13baaf102f2c077.json
Remove duplicated client code (#7907)
packages/next/client/index.js
@@ -190,6 +190,8 @@ export async function render (props) { export async function renderError (props) { const { App, err } = props + // In development runtime errors are caught by react-error-overlay + // In production we catch runtime errors using componentDidCatch which will trigger renderError if (process....
false
Other
vercel
next.js
963695820f2189cc2031c8789bad5385f36f6062.json
Make sure pages bundles are served correctly
lib/page-loader.js
@@ -1,4 +1,4 @@ -/* global window, document, __NEXT_DATA__ */ +/* global window, document */ import EventEmitter from './EventEmitter' const webpackModule = module @@ -69,11 +69,7 @@ export default class PageLoader { loadScript (route) { route = this.normalizeRoute(route) - let scriptRoute = route - - ...
true
Other
vercel
next.js
963695820f2189cc2031c8789bad5385f36f6062.json
Make sure pages bundles are served correctly
server/index.js
@@ -194,12 +194,12 @@ export default class Server { await this.serveStatic(req, res, p) }, - '/_next/:buildId/page/:path*': async (req, res, params) => { + '/_next/:buildId/page/:path*.js': async (req, res, params) => { const paths = params.path || [''] // URL is asks for $...
true
Other
vercel
next.js
21f875f3ae9613059c38462e537644f39a8c130b.json
Add comma removed by merge
package.json
@@ -105,7 +105,7 @@ "xss-filters": "1.2.7" }, "devDependencies": { - "uglifyjs-webpack-plugin": "^1.1.1" + "uglifyjs-webpack-plugin": "^1.1.1", "@taskr/babel": "1.1.0", "@taskr/clear": "1.1.0", "@taskr/esnext": "1.1.0",
false
Other
vercel
next.js
9263ad13f73cb4583720f3b284cf6015a7c50f47.json
Update Ant Design example (#3485)
examples/with-ant-design/index.js
@@ -4,7 +4,7 @@ export default ({ children }) => <Head> <meta name='viewport' content='width=device-width, initial-scale=1' /> <meta charSet='utf-8' /> - <link rel='stylesheet' href='//cdnjs.cloudflare.com/ajax/libs/antd/2.9.3/antd.min.css' /> + <link rel='stylesheet' href='https://unpkg.co...
true
Other
vercel
next.js
9263ad13f73cb4583720f3b284cf6015a7c50f47.json
Update Ant Design example (#3485)
examples/with-ant-design/package.json
@@ -7,7 +7,7 @@ "start": "next start" }, "dependencies": { - "antd": "^2.10.2", + "antd": "^3.0.2", "babel-plugin-import": "^1.1.1", "next": "latest", "react": "^16.0.0",
true
Other
vercel
next.js
9263ad13f73cb4583720f3b284cf6015a7c50f47.json
Update Ant Design example (#3485)
examples/with-ant-design/pages/index.js
@@ -1,73 +1,70 @@ import Layout from '../index.js' -import { Form, Select, InputNumber, DatePicker, Switch, Slider, Button, LocaleProvider } from 'antd' -import enUS from 'antd/lib/locale-provider/en_US' +import { Form, Select, InputNumber, DatePicker, Switch, Slider, Button } from 'antd' const FormItem = Form.Item...
true
Other
vercel
next.js
ffe48048dee66aaec5ee078f2e75dd19d99d1ee5.json
Update license year (#3522)
license.md
@@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2016 Zeit, Inc. +Copyright (c) 2016-present Zeit, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal
false
Other
vercel
next.js
9d059f60077cc86358c9a85b097fb8da18f23cd4.json
Add support for Fragments in Head (#3502) * Add support for Fragments in Head. * Add test cases * Check if Component has custom key * Upgrade to React 16.2.0
lib/head.js
@@ -21,6 +21,12 @@ function reduceComponents (components) { .map((c) => c.props.children) .map((children) => React.Children.toArray(children)) .reduce((a, b) => a.concat(b), []) + .reduce((a, b) => { + if (React.Fragment && b.type === React.Fragment) { + return a.concat(React.Children.toArray(b.props....
true
Other
vercel
next.js
9d059f60077cc86358c9a85b097fb8da18f23cd4.json
Add support for Fragments in Head (#3502) * Add support for Fragments in Head. * Add test cases * Check if Component has custom key * Upgrade to React 16.2.0
package.json
@@ -105,7 +105,7 @@ "webpack-hot-middleware": "2.19.1", "write-file-webpack-plugin": "4.2.0", "xss-filters": "1.2.7", - "uglifyjs-webpack-plugin": "^1.1.1" + "uglifyjs-webpack-plugin": "^1.1.1" }, "devDependencies": { "@taskr/babel": "1.1.0", @@ -131,8 +131,8 @@ "node-notifier":...
true
Other
vercel
next.js
9d059f60077cc86358c9a85b097fb8da18f23cd4.json
Add support for Fragments in Head (#3502) * Add support for Fragments in Head. * Add test cases * Check if Component has custom key * Upgrade to React 16.2.0
test/integration/basic/pages/head.js
@@ -10,6 +10,11 @@ export default () => <div> <meta content='my meta' /> + <React.Fragment> + <title>Fragment title</title> + <meta content='meta fragment' /> + </React.Fragment> + {/* the following 2 links tag will be rendered both */} <link rel='stylesheet' href='/dup-style.css' /> ...
true
Other
vercel
next.js
9d059f60077cc86358c9a85b097fb8da18f23cd4.json
Add support for Fragments in Head (#3502) * Add support for Fragments in Head. * Add test cases * Check if Component has custom key * Upgrade to React 16.2.0
test/integration/basic/test/rendering.js
@@ -38,6 +38,12 @@ export default function ({ app }, suiteName, render, fetch) { expect(html).not.toContain('<link rel="stylesheet" href="dedupe-style.css" class="next-head"/><link rel="stylesheet" href="dedupe-style.css" class="next-head"/>') }) + test('header helper renders Fragment children', async ...
true
Other
vercel
next.js
9d059f60077cc86358c9a85b097fb8da18f23cd4.json
Add support for Fragments in Head (#3502) * Add support for Fragments in Head. * Add test cases * Check if Component has custom key * Upgrade to React 16.2.0
yarn.lock
@@ -4803,9 +4803,9 @@ react-deep-force-update@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/react-deep-force-update/-/react-deep-force-update-2.1.1.tgz#8ea4263cd6455a050b37445b3f08fd839d86e909" -react-dom@16.0.0: - version "16.0.0" - resolved "https://registry.yarnpkg.com/react-dom/-/react-do...
true
Other
vercel
next.js
337fb6a9aadb61c916f0121c899e463819cd3f33.json
Remove buildId from dynamic import URLs (#3498) * Use without .js for the filename. * Modify the chunk filename to add .js via webpack * Add import chunk's hash to the filename via webpack. * Remove buildId from dynamic import urls. * Make sure next-export work with dynamic imports
server/build/babel/plugins/handle-import.js
@@ -21,9 +21,9 @@ const buildImport = (args) => (template(` eval('require.ensure = function (deps, callback) { callback(require) }') require.ensure([], (require) => { let m = require(SOURCE) - m.__webpackChunkName = '${args.name}.js' + m.__webpackChunkName = '${args.name}'...
true
Other
vercel
next.js
337fb6a9aadb61c916f0121c899e463819cd3f33.json
Remove buildId from dynamic import URLs (#3498) * Use without .js for the filename. * Modify the chunk filename to add .js via webpack * Add import chunk's hash to the filename via webpack. * Remove buildId from dynamic import urls. * Make sure next-export work with dynamic imports
server/build/plugins/dynamic-chunks-plugin.js
@@ -1,6 +1,6 @@ import { ConcatSource } from 'webpack-sources' -const isImportChunk = /^chunks[/\\].*\.js$/ +const isImportChunk = /^chunks[/\\]/ const matchChunkName = /^chunks[/\\](.*)$/ class DynamicChunkTemplatePlugin {
true
Other
vercel
next.js
337fb6a9aadb61c916f0121c899e463819cd3f33.json
Remove buildId from dynamic import URLs (#3498) * Use without .js for the filename. * Modify the chunk filename to add .js via webpack * Add import chunk's hash to the filename via webpack. * Remove buildId from dynamic import urls. * Make sure next-export work with dynamic imports
server/build/webpack.js
@@ -325,7 +325,7 @@ export default async function createCompiler (dir, { buildId, dev = false, quiet path: buildDir ? join(buildDir, '.next') : join(dir, config.distDir), filename: '[name]', libraryTarget: 'commonjs2', - publicPath: `/_next/${buildId}/webpack/`, + publicPath: `/_next/webp...
true
Other
vercel
next.js
337fb6a9aadb61c916f0121c899e463819cd3f33.json
Remove buildId from dynamic import URLs (#3498) * Use without .js for the filename. * Modify the chunk filename to add .js via webpack * Add import chunk's hash to the filename via webpack. * Remove buildId from dynamic import urls. * Make sure next-export work with dynamic imports
server/document.js
@@ -71,12 +71,12 @@ export class Head extends Component { getPreloadDynamicChunks () { const { chunks, __NEXT_DATA__ } = this.context._documentProps - let { assetPrefix, buildId } = __NEXT_DATA__ - return chunks.map((chunk) => ( + let { assetPrefix } = __NEXT_DATA__ + return chunks.filenames.map((...
true
Other
vercel
next.js
337fb6a9aadb61c916f0121c899e463819cd3f33.json
Remove buildId from dynamic import URLs (#3498) * Use without .js for the filename. * Modify the chunk filename to add .js via webpack * Add import chunk's hash to the filename via webpack. * Remove buildId from dynamic import urls. * Make sure next-export work with dynamic imports
server/export.js
@@ -51,10 +51,10 @@ export default async function (dir, options, configuration) { if (existsSync(join(nextDir, 'chunks'))) { log(' copying dynamic import chunks') - await mkdirp(join(outDir, '_next', buildId, 'webpack')) + await mkdirp(join(outDir, '_next', 'webpack')) await cp( join(nextDi...
true
Other
vercel
next.js
337fb6a9aadb61c916f0121c899e463819cd3f33.json
Remove buildId from dynamic import URLs (#3498) * Use without .js for the filename. * Modify the chunk filename to add .js via webpack * Add import chunk's hash to the filename via webpack. * Remove buildId from dynamic import urls. * Make sure next-export work with dynamic imports
server/hot-reloader.js
@@ -179,7 +179,7 @@ export default class HotReloader { ] let webpackDevMiddlewareConfig = { - publicPath: `/_next/${this.buildId}/webpack/`, + publicPath: `/_next/webpack/`, noInfo: true, quiet: true, clientLogLevel: 'warning',
true
Other
vercel
next.js
337fb6a9aadb61c916f0121c899e463819cd3f33.json
Remove buildId from dynamic import URLs (#3498) * Use without .js for the filename. * Modify the chunk filename to add .js via webpack * Add import chunk's hash to the filename via webpack. * Remove buildId from dynamic import urls. * Make sure next-export work with dynamic imports
server/index.js
@@ -136,21 +136,17 @@ export default class Server { }, // This is to support, webpack dynamic imports in production. - '/_next/:buildId/webpack/chunks/:name': async (req, res, params) => { - if (!this.handleBuildId(params.buildId, res)) { - return this.send404(res) + '/_next/we...
true
Other
vercel
next.js
337fb6a9aadb61c916f0121c899e463819cd3f33.json
Remove buildId from dynamic import URLs (#3498) * Use without .js for the filename. * Modify the chunk filename to add .js via webpack * Add import chunk's hash to the filename via webpack. * Remove buildId from dynamic import urls. * Make sure next-export work with dynamic imports
server/render.js
@@ -1,5 +1,4 @@ import { join } from 'path' -import { existsSync } from 'fs' import { createElement } from 'react' import { renderToString, renderToStaticMarkup } from 'react-dom/server' import send from 'send' @@ -10,6 +9,7 @@ import getConfig from './config' import resolvePath from './resolve' import { Router }...
true
Other
vercel
next.js
337fb6a9aadb61c916f0121c899e463819cd3f33.json
Remove buildId from dynamic import URLs (#3498) * Use without .js for the filename. * Modify the chunk filename to add .js via webpack * Add import chunk's hash to the filename via webpack. * Remove buildId from dynamic import urls. * Make sure next-export work with dynamic imports
server/utils.js
@@ -13,7 +13,8 @@ export function getAvailableChunks (dir, dist) { chunkFiles.forEach(filename => { if (/\.js$/.test(filename)) { - chunksMap[filename] = true + const chunkName = filename.replace(/-.*/, '') + chunksMap[chunkName] = filename } })
true
Other
vercel
next.js
e4acd7db591c9cd77d960eab6ec60ab3361062df.json
Add the closed parenthesis. (#3506)
readme.md
@@ -1087,7 +1087,7 @@ Next.js can be deployed to other hosting solutions too. Please have a look at th Note: `NODE_ENV` is properly configured by the `next` subcommands, if absent, to maximize performance. if you’re using Next.js [programmatically](#custom-server-and-routing), it’s your responsibility to set `NODE_E...
false
Other
vercel
next.js
29c4035eb5ef093e415e3723e0f3e9b883864953.json
Remove config from bin/next since it's unused (#3496) * No need to get the config here * Remove unused functions
bin/next
@@ -1,10 +1,7 @@ #!/usr/bin/env node - -import { join, resolve } from 'path' +import { join } from 'path' import { spawn } from 'cross-spawn' -import { watchFile } from 'fs' import pkg from '../../package.json' -import getConfig from '../server/config' if (pkg.peerDependencies) { Object.keys(pkg.peerDependenci...
false
Other
vercel
next.js
c23046dc79b80c754602339845d8eeeb5becccce.json
Rewrite combine-asset-plugin using correct event (#3486) * Speed up next build * Remove comment * Add comment * Add comments
package.json
@@ -104,7 +104,8 @@ "webpack-dev-middleware": "1.12.0", "webpack-hot-middleware": "2.19.1", "write-file-webpack-plugin": "4.2.0", - "xss-filters": "1.2.7" + "xss-filters": "1.2.7", + "uglifyjs-webpack-plugin": "^1.1.1" }, "devDependencies": { "@taskr/babel": "1.1.0", @@ -134,7 +13...
true
Other
vercel
next.js
c23046dc79b80c754602339845d8eeeb5becccce.json
Rewrite combine-asset-plugin using correct event (#3486) * Speed up next build * Remove comment * Add comment * Add comments
server/build/plugins/combine-assets-plugin.js
@@ -11,26 +11,23 @@ export default class CombineAssetsPlugin { apply (compiler) { compiler.plugin('compilation', (compilation) => { - compilation.plugin('additional-chunk-assets', (chunks) => { + // This is triggered after uglify and other optimizers have ran. + compilation.plugin('after-optimi...
true
Other
vercel
next.js
9bc681bea1e77ed083a1f90c41de706200bd1a89.json
Fix glamorous example (#3462) It used old version 1 and when I run npm run dev it returned 500. Once I updated to 4, everything works as expected.
examples/with-glamorous/package.json
@@ -8,7 +8,7 @@ }, "dependencies": { "glamor": "^2.20.24", - "glamorous": "^1.0.0", + "glamorous": "^4.11.0", "next": "^2.0.1", "react": "^16.0.0", "react-dom": "^16.0.0"
false
Other
vercel
next.js
9c88ea8c580098c3decff945cc235a707410d39e.json
fix grammatical error in readme file (#3443)
readme.md
@@ -325,7 +325,7 @@ Client-side routing behaves exactly like the browser: 1. The component is fetched 2. If it defines `getInitialProps`, data is fetched. If an error occurs, `_error.js` is rendered -3. After 1 and 2 complete, `pushState` is performed and the new component rendered +3. After 1 and 2 complete, `push...
false
Other
vercel
next.js
24c1ac6ca94c9e81bcd6c19d832e9df1a5235b8e.json
Use canary for all example downloads (#3411)
examples/active-class-name/README.md
@@ -18,7 +18,7 @@ create-next-app --example active-class-name active-class-name-app Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash -curl https://codeload.github.com/zeit/next.js/tar.gz/master | tar -xz --strip=2 next.js-master/examples/active-class-name +curl https://codeload.git...
true
Other
vercel
next.js
24c1ac6ca94c9e81bcd6c19d832e9df1a5235b8e.json
Use canary for all example downloads (#3411)
examples/basic-css/README.md
@@ -18,7 +18,7 @@ create-next-app --example basic-css basic-css-app Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash -curl https://codeload.github.com/zeit/next.js/tar.gz/master | tar -xz --strip=2 next.js-master/examples/basic-css +curl https://codeload.github.com/zeit/next.js/tar...
true
Other
vercel
next.js
24c1ac6ca94c9e81bcd6c19d832e9df1a5235b8e.json
Use canary for all example downloads (#3411)
examples/custom-server-express/README.md
@@ -18,7 +18,7 @@ create-next-app --example custom-server-express custom-server-express-app Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash -curl https://codeload.github.com/zeit/next.js/tar.gz/master | tar -xz --strip=2 next.js-master/examples/custom-server-express +curl https://...
true
Other
vercel
next.js
24c1ac6ca94c9e81bcd6c19d832e9df1a5235b8e.json
Use canary for all example downloads (#3411)
examples/custom-server-fastify/README.md
@@ -18,7 +18,7 @@ create-next-app --example custom-server-fastify custom-server-fastify-app Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash -curl https://codeload.github.com/zeit/next.js/tar.gz/master | tar -xz --strip=2 next.js-master/examples/custom-server-fastify +curl https://...
true
Other
vercel
next.js
24c1ac6ca94c9e81bcd6c19d832e9df1a5235b8e.json
Use canary for all example downloads (#3411)
examples/custom-server-hapi/README.md
@@ -18,7 +18,7 @@ create-next-app --example custom-server-hapi custom-server-hapi-app Download the example [or clone the repo](https://github.com/zeit/next.js): ```bash -curl https://codeload.github.com/zeit/next.js/tar.gz/master | tar -xz --strip=2 next.js-master/examples/custom-server-hapi +curl https://codeload....
true