1. 07 11月, 2019 1 次提交
  2. 06 11月, 2019 4 次提交
  3. 05 11月, 2019 6 次提交
  4. 02 11月, 2019 8 次提交
    • T
      Call getInitialProps on Component when it’s not defined on App (#9287) · 21f0db81
      Tim Neutkens 提交于
      Fixes #9284
      21f0db81
    • J
      Handle backslashes for plugins (#9282) · 739322d0
      JJ Kasper 提交于
      739322d0
    • D
      Add Patternfly example (#9251) · d21ad2b4
      Daniel Reinoso 提交于
      * Add Patternfly example
      
      * Fix lint
      
      * Add missing space
      
      * Remove trailing comma
      d21ad2b4
    • J
      Polyfill `window.fetch` by Default (#9168) · ff2d3fd8
      Janicklas Ralph 提交于
      * Polyfilling fetch and object-assign
      
      * Polyfilling corejs object-assign
      
      * Adding object-assign in polyfills.js. IE11 does not support Object.assign
      
      * Fixing failing test
      
      * Updating object.assign polyfill to fix aliasing
      
      * Updating test case value to match new build stats
      
      * Increasing the size of default build to 225kb
      
      * Fixing defer-script test case to not include polyfill.js
      
      * Revert README.md
      
      * Re-design the polyfill approach based on PR feedback
      
      * Adding comment and fixing test case
      
      * Rename polyfills chunk
      
      * Extract aliases into helper
      
      * Remove extra new line
      
      * Fix TypeScript typings
      
      * Adding _internal_fetch alias
      
      * Adjust build manifest plugin
      
      * Build manifest plugin changes - adding a separate entry for polyfills
      
      * Rename polyfills entry in build-manifest.json
      
      * Remove old comment
      
      * Fix TS
      
      * Set key
      
      * Polyfills already added
      
      * Filtring polyfill.module.js
      
      * Fix test
      
      * Add __internal_fetch to alias rule
      
      * Adjust name
      
      * bump size
      
      * ignore polyfills
      
      * sigh
      ff2d3fd8
    • B
      fixed spelling of cookies (#9283) · 99755b67
      bennett4 提交于
      99755b67
    • J
      Disallow iSSG revalidation period of zero (#9280) · aef927d5
      Joe Haddad 提交于
      * Disallow iSSG revalidation period of zero
      
      * Fix revalidation period in test
      aef927d5
    • T
      Initial plugins implementation (#9139) · 7c80febc
      Tim Neutkens 提交于
      * Add initial bit for plugins
      
      * Add checks for needed metadata values
      
      * Add test
      
      * Initial plugins changes
      
      * Add handling for _app middleware
      
      * Add loading of _document middleware and
      handling of multiple default export syntaxes
      
      * Fix insert order for middleware member expression
      
      * Remove early return from middleware plugin from testing
      
      * Add tests for current plugin middlewares
      
      * Update test plugin package.json
      
      * Update handling for class default export
      
      * Update to use webpack loader instead of babel
      plugin, remove redundant middleware naming, and add field for required env for plugins
      
      * Add middleware to support material-ui use case
      and example material-ui plugin
      
      * Update tests and remove tests stuff from google analytics plugin
      
      * Remove old plugin suite
      
      * Add init-server middleware
      
      * Exit hard without stack trace when error in collecting plugins
      
      * Add on-error-client and on-error-server and update
      to run init-server with next-start in serverless mode
      
      * Update init-client for google analytics plugin
      
      * Add example Sentry plugin and update with-sentry-simple
      
      * Remove middleware field/folder and use src dir for plugins
      
      * Add post-hydration middleware and update
      material-ui plugin
      
      * Put plugins code behind flag
      
      * Update chromedriver
      
      * Revert "Update chromedriver"
      
      This reverts commit 1461e978e677f7da05e29e0415ec614a04bf65f9.
      
      * Update lock file
      
      * Remove un-needed _app for sentry example
      
      * Add auto loading of scoped packages, add plugins
      config for manually listing plugins, and update
      to only collect plugins once
      
      * Update example plugins
      
      * Expose plugins' config
      
      * Rename plugin lifecycles and add babel-preset-build
      
      * Rename other methods with unstable
      
      * Update log when plugin config overrides auto-detecting
      7c80febc
    • J
      Require Node 8.10 (#9278) · 68390378
      Joe Haddad 提交于
      68390378
  5. 01 11月, 2019 4 次提交
  6. 31 10月, 2019 8 次提交
  7. 30 10月, 2019 9 次提交
    • I
      Load granular chunks with correct asset prefix (#8993) · 8dd394a0
      Ilya 提交于
      * closes #8989
      
      fix
      
      closes #8989
      
      * test
      
      * Update next.config.js
      
      * Revert page1.js
      
      * Revert page2.js
      
      * Delete page4.js
      
      * Delete page3.js
      
      * Update index.test.js
      
      * Revert index.test.js
      
      * Revert next.config.js
      8dd394a0
    • G
      Add experimental config for React Mode (#9207) · f632567b
      Gerald Monaco 提交于
      * Add experimental config for React Mode
      
      * Use latest types
      
      * Use latest types
      f632567b
    • T
      Add experimental example of next-news (#9249) · 4c6e294c
      Tim Neutkens 提交于
      * Add next-news example
      
      * Update components
      
      * Use getStaticProps
      
      * Move directory
      4c6e294c
    • S
      Error when user tries to use uncompiled `next.config.ts` (#9223) · 67079096
      sagar talla 提交于
      * Throw Error for next.config.ts
      
      Ref: https://github.com/zeit/next-plugins/issues/555
      
      * Check for .js else .ts
      
      * Update Error Message
      Co-Authored-By: NAlexander Kachkaev <alexander@kachkaev.ru>
      
      * Add test case when both next.config.js and next.config.ts exist.
      
      * Remove extra constant CONFIG_FILE_TS and Add check for ts/tsx/json
      
      * Rename test config parameter and add tsx and json files
      
      * Change messege
      
      * change value
      
      * Update next.config.json
      
      * Update next.config.json
      
      * Change message  and add jsx filter
      
      * Adjust
      
      * Simplify test
      
      * adjust
      67079096
    • J
      Fix Prettier Commit Hook (#9245) · 6b54e9ed
      Joe Haddad 提交于
      * Apply format to webpack config
      
      * hit all files
      6b54e9ed
    • J
      Add test for #8924 (#9243) · 636be246
      Joe Haddad 提交于
      This adds a test for PR #8924.
      636be246
    • J
    • J
      Improve serverless build performance (#9155) · 5f203b83
      Jason Miller 提交于
      * Improve serverless build performance
      
      Next's serverless build uses a custom resolver, injected the via Webpack's `externals` option that delegates out to `resolve-request` to more aggressively pull node modules into the serverless bundles.
      
      When profiling a large Next.js application, I noticed an excessive number of filesystem calls near the end of the build. I narrowed this down to the serverless compiler pass, and eventually the custom resolver function that is the subject of this PR.  As it turns out, around half of the calls to the `externals` custom resolver function are for a `request` path that is a relative import. Next doesn't have any specific logic to apply to relative imports - it only needs to special-case bare module resolution.
      
      Adding a simple bypass for relative module resolution reduces the number of blocking filesystem-bound `resolveRequest()` calls by 50% on a certain well-known Next.js website. This also results in a 30% reduction in production build times for incremental builds.
      
      * Explain more in the comment
      5f203b83
    • N
      Add Framer Motion example (#9185) · 61a9cfb3
      Nate Moore 提交于
      * Add example for Framer Motion
      
      * Prevent scroll on route change
      
      * Replace hook with more robust useId hook
      
      * Improve scroll behavior
      
      * Remove custom hook in favor of gitInitialProps
      
      * Update framer-motion, react
      
      * Update readme
      
      * Fix lint errors
      61a9cfb3