1. 02 11月, 2019 3 次提交
    • T
      Call getInitialProps on Component when it’s not defined on App (#9287) · 21f0db81
      Tim Neutkens 提交于
      Fixes #9284
      21f0db81
    • 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
    • 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
  2. 15 10月, 2019 1 次提交
  3. 03 10月, 2019 1 次提交
  4. 18 9月, 2019 1 次提交
    • J
      Global CSS Support (#8710) · 65358b7a
      Joe Haddad 提交于
      * Global CSS Support
      
      * Fix webpack configuration
      
      * oneOf rule isn't necessary yet
      
      * Adjust CSS chunk naming
      
      * Begin testing CSS behavior
      
      * Add another test TODO
      
      * Replace null-loader with ignore-loader
      
      * Turn on chunks for new CSS feature
      
      * Fix multi test suite
      
      * Test CSS import order
      
      * Test style HMR
      
      * Test CSS compilation
      
      * Test compilation and prefixing together
      
      * Verify CSS styling works for Development and Production
      
      * Add missing TODO
      
      * Remove unnecessary test
      
      * Adjust TODO message
      
      * Hide page until React hydrates
      
      * Revert "Hide page until React hydrates"
      
      This reverts commit 898d4e0ee547b003d5790e2b11476740d645b907.
      
      * Hide FOUC during development
      
      * Test CSS imports
      
      * Update tests TODO
      
      * Add fixture for url() test
      
      * Test `file-loader` support in CSS files
      
      * Use a simple variant of cssnano
      
      * Self-import
      
      * Undo bundling
      
      * Implement suggestion
      65358b7a
  5. 16 9月, 2019 1 次提交
  6. 10 9月, 2019 1 次提交
    • F
      better type for AppTree in NextPageContext (#8662) · 92e26ce1
      Filip Wojciechowski 提交于
      * better type for AppTree in NextPageContext
      
      * updated tests
      
      * new AppTreeType type and updated tests
      
      * removed a commented out line
      
      * another take on the type of AppTree, with updated tests
      
      * allow passing additional props to AppType
      
      * Update suite name
      92e26ce1
  7. 04 9月, 2019 1 次提交
    • T
      Move next-server back into `next` package (#8613) · 2ba352da
      Tim Neutkens 提交于
      * Initial move
      
      * Make emitting work
      
      * Update paths
      
      * Remove leftover files
      
      * Add correct externals configuration
      
      * Import correct path
      
      * Update path to work with ts-server test
      
      * Update lib directory
      
      * Compile next-server/lib
      2ba352da
  8. 23 8月, 2019 1 次提交
  9. 20 8月, 2019 1 次提交
  10. 14 8月, 2019 1 次提交
  11. 13 8月, 2019 1 次提交
    • J
      Also provide AppTree in NextPageContext (#8223) · 8c19d78a
      JJ Kasper 提交于
      * Also provide AppTree in NextPageContext
      
      * Don't predefine AppTree as null in ctx
      
      * Make update smaller
      
      * Don’t reassign variable
      
      * Add test for AppTree in NextPageContext
      
      * Update utils.ts
      8c19d78a
  12. 10 8月, 2019 1 次提交
    • H
      Adds user timing marks and measures for hydration/render (#8069) · d190f2e1
      Houssein Djirdeh 提交于
      * adds user timing marks for hydration step
      
      * changes measure names and removes window namespaces by adding performance as a global to standard
      
      * separates hydrate and render marks
      
      * Add performance mark to router change instead of link click
      
      * Changes performance mark name at router change
      
      * adds checks for performance
      
      * creates constants utils for performance and user timings
      d190f2e1
  13. 07 8月, 2019 1 次提交
    • J
      Implement `experimentalPrerender` option (#7983) · ca13752e
      JJ Kasper 提交于
      * Revert "Remove Old Prerender Implementation (#8218)"
      
      This reverts commit 2ab300dd.
      
      * Add contentHandler for page config
      
      * Rename config from contentHandler to re-use
      experimentalPrerender
      
      * Remove un-needed changes
      
      * Replace backslashes for manifest
      
      * Update manifest output format
      
      * Make prerender: true enable SPR behavior and update
      to merge prerender-manifest for flying-shuttle
      
      * Fix output path for / prerender file
      
      * Add dynamic routes to test suite
      
      * Add generating and previewing of skeletons
      for prerendered dynamic routes
      
      * remove inline prerender option
      
      * update to not replace getInitialProps which allows
      nested getInitialProps and add query when fetching prerender
      
      * Apply suggestions from code review
      Co-Authored-By: NJoe Haddad <timer150@gmail.com>
      
      * Remove legacy prerender option
      
      * Apply suggestions from review
      
      * Apply more suggestions from review
      
      * Apply suggestions from code review
      Co-Authored-By: NJoe Haddad <timer150@gmail.com>
      
      * Add handling of error when parsing json
      
      * Update handling of moving exported pages
      
      * Rename nextPreviewSkeleton to _nextPreviewSkeleton
      
      * bump
      ca13752e
  14. 31 7月, 2019 1 次提交
    • J
      Provide AppTree to getInitialProps for getDataFromTree (#7732) · 4850bd03
      JJ Kasper 提交于
      * Provide AppContainer to getInitialProps for getDataFromTree
      
      * Update to only pass AppTree component instead of AppContainer
      
      * Clean up props and remove extra imports
      
      * Make updates from review
      
      * De-dupe AppTree a bit
      
      * Re-use wrapApp in router
      
      * Remove un-needed change
      
      * revert changes to examples until on stable
      
      * Add test for AppTree
      4850bd03
  15. 27 7月, 2019 1 次提交
  16. 25 7月, 2019 2 次提交
  17. 16 7月, 2019 1 次提交
  18. 12 7月, 2019 1 次提交
    • L
      Improve exported router types (#7853) · b94123cc
      Luis Fernando Alvarez D 提交于
      * Added the RouteUrl type and improved router types
      
      * Added more tests for router types
      
      * Add build test for typescript types
      
      * Add next-env.d.ts to the typescript test
      
      * Removed next-env.d.ts
      
      * Added next-env.d.ts to gitignore
      
      * Remove route url re-exports
      
      * renamed PublicRouterInstance to be NextRouter
      
      * export the Url type
      
      * Replaced BaseRouter with NextRouter in server/utils
      
      * Don't export the Url type
      
      * Update tsconfig.json
      b94123cc
  19. 10 7月, 2019 3 次提交
  20. 09 7月, 2019 1 次提交
  21. 08 7月, 2019 1 次提交
  22. 05 7月, 2019 1 次提交
  23. 29 6月, 2019 1 次提交
  24. 27 6月, 2019 1 次提交
  25. 05 6月, 2019 1 次提交
    • L
      API interface extensions (#7363) · c821e830
      Lukáš Huvar 提交于
      * Cookies and Query parsing for API request
      
      * Adding JSON and SEND
      
      * First body parsing
      
      * Body parsing
      
      * Remove extra try catch
      
      * Fix tests
      
      * Only server bundling for API routes
      
      * Update packages/next-server/server/api-utils.ts
      Co-Authored-By: NTim Neutkens <tim@timneutkens.nl>
      
      * Revert on demand server changes
      
      * Use content-type for parsing
      
      * Update packages/next-server/server/api-utils.ts
      Co-Authored-By: NJan Potoms <potoms.jan@gmail.com>
      
      * Add tests for server compilation
      
      * Add body limit
      
      * Change API to function chaining
      
      * Limit test
      c821e830
  26. 29 5月, 2019 2 次提交
    • T
      Move syntax formatting to prettier (#7454) · 3e51ddb8
      Tim Neutkens 提交于
      * Run prettier over packages/**/*.js
      
      * Run prettier over packages/**/*.ts
      
      * Run prettier over examples
      
      * Remove tslint
      
      * Run prettier over examples
      
      * Run prettier over all markdown files
      
      * Run prettier over json files
      3e51ddb8
    • J
      Add amp.canonicalBase option to set absolute URL (#7262) · 24034ec9
      JJ Kasper 提交于
      * Add canonicalBase config to allow setting
      absolute path for canonical link
      
      * Make sure canonicalBase is set for
      export and serverless
      
      * Move canonicalBase to amp.canonicalBase
      
      * Update tests with canonicalBase config
      
      * Update tests
      
      * run lint-fix
      
      * Fix canonicalBase config parsing
      
      * Fix canonicalBase during export
      
      * Update amphtml tests
      24034ec9
  27. 24 5月, 2019 2 次提交
  28. 07 5月, 2019 1 次提交
  29. 01 5月, 2019 1 次提交
  30. 30 4月, 2019 1 次提交
  31. 29 4月, 2019 1 次提交
  32. 28 4月, 2019 1 次提交
  33. 26 4月, 2019 1 次提交