1. 12 3月, 2020 2 次提交
  2. 10 3月, 2020 1 次提交
    • J
      Verify GS(S)P Serializability (#10857) · 8443a809
      Joe Haddad 提交于
      * Verify GS(S)P Serializability
      
      * Add support for cyclic refs
      
      * Add unit tests
      
      * Test for error in development mode
      
      * Fix prerender preview tests
      
      * Fix gssp preview tests
      
      * fix 2x test cases
      
      * Add desired test
      
      * fix some more tests
      
      * Fix route manifest expect
      
      * Fix test expects
      
      * Test that `getServerSideProps` does not error in production
      
      * Test that getStaticProps is not checked in production
      
      * Test serialization check during build
      
      * Fix export detection for serverless
      
      * Update test/unit/is-serializable-props.test.js
      Co-Authored-By: NJJ Kasper <jj@jjsweb.site>
      Co-authored-by: NJJ Kasper <jj@jjsweb.site>
      8443a809
  3. 07 3月, 2020 1 次提交
  4. 06 3月, 2020 2 次提交
  5. 04 3月, 2020 2 次提交
  6. 02 3月, 2020 2 次提交
  7. 01 3月, 2020 2 次提交
  8. 28 2月, 2020 2 次提交
  9. 27 2月, 2020 1 次提交
  10. 24 2月, 2020 1 次提交
  11. 21 2月, 2020 2 次提交
  12. 20 2月, 2020 1 次提交
  13. 18 2月, 2020 1 次提交
    • J
      Remove ts-ignore where possible (#10541) · 3f691eaa
      Jan Potoms 提交于
      * Remove ts-ignore where possible
      
      And replace by typecasts
      
      * More accurate types
      
      * bend cliententries in a correct shape earlier on
      
      * comment becomes unnecessary
      
      * add webpack overload to allow for the next.js use case
      
      * Avoid changing public interface
      Co-authored-by: NJoe Haddad <timer150@gmail.com>
      3f691eaa
  14. 16 2月, 2020 1 次提交
  15. 12 2月, 2020 1 次提交
    • J
      SSG Preview Mode (#10459) · 3cb34983
      Joe Haddad 提交于
      * checkpoint: api impl
      
      * Add support for tryGetPreviewData
      
      * snapshot: server(less) support
      
      * Add X-Prerender-Bypass-Mode header support
      
      * Pass preview data to getStaticProps call
      
      * add TODO
      
      * setPreviewData
      
      * 100k iterations
      
      * Handle jwt error
      
      * Write out preview values
      
      * forgot file
      
      * set preview props
      
      * Send preview props
      
      * add preview props
      
      * Pass around more data
      
      * update yarn lock
      
      * Fail on Invalid Prerender Manifest
      
      * Make Missing Prerender Manifest Fatal
      
      * fix ts errors
      
      * fix test
      
      * Fix setting cookies + maxage
      
      * Secure is not needed as we encrypt necessary data
      
      * Set on domain root
      
      * Set cookie max ages
      
      * Render a fallback on-demand for non-dynamic pages
      
      * Test preview mode
      
      * remove old build
      
      * remove snapshots
      
      * Add serverless tests
      
      * use afterAll
      
      * Remove object assigns
      
      * fix cookie spread
      
      * add comment
      3cb34983
  16. 08 2月, 2020 1 次提交
  17. 07 2月, 2020 1 次提交
    • J
      Add initial SSG fallback handling (#10424) · 3099f088
      JJ Kasper 提交于
      * Add initial SSG fallback handling
      
      * Remove extra changes and update fallback handling
      
      * Remove extra timeout for testing
      
      * Update SSG tests in dynamic-routing suite
      
      * Add racing to decide between rendering fallback and data
      
      * Update size-limit test
      
      * Update comment
      
      * Make sure to follow correct route change order
      
      * Make comment more verbose for racing
      
      * Revert getStaticData to only return Promise
      
      * Make sure to update URL on fallback
      
      * Add retrying for data, de-dupe initial fallback request, and merge fallback replace
      
      * Update to add preload for fallback pages data
      
      * Add test for data preload link
      
      * Use pre-built fallback in production mode
      
      * Remove preload link for fallback from _document
      
      * Update to make sure fallback is rendered correctly for serverless
      3099f088
  18. 01 2月, 2020 1 次提交
    • J
      Implement experimental pages/404.js for custom 404 page (#10329) · db90ffe1
      JJ Kasper 提交于
      * Implement experimental pages/404.js for custom 404 page
      
      * Make sure to show error for getInitialProps in pages/404 in dev mode also
      
      * Update routes-manifest tests for new value
      
      * Make sure page404 is boolean in routes-manifest
      
      * Rename variables for consistency
      
      * Make sure to only use 404 page for 404 error
      db90ffe1
  19. 28 1月, 2020 1 次提交
    • J
      Add initial support for unstable_getServerProps (#10077) · c24daa21
      JJ Kasper 提交于
      * Add support for unstable_getServerProps
      
      * Apply suggestions from review
      
      * Add no-cache header and update types
      
      * Revert sharing of load-components type
      
      * Add catchall test and update routes-manifest field
      
      * Update header check
      
      * Update to pass query for getServerProps data requests
      
      * Update to not cache getServerProps requests
      
      * Rename server side props identifier
      
      * Update to nest props for getServerProps
      
      * Add no-cache header in serverless-loader also
      
      * Update to throw error for mixed SSG/serverProps earlier
      
      * Add comment explaining params chosing in serverless-loader
      
      * Update invalidKeysMsg to return a string and inline throwing
      
      * Inline throwing mixed SSG/serverProps error
      
      * Update setting cache header in serverless-loader
      
      * Add separate getServerData method in router
      
      * Update checkIsSSG -> isDataIdentifier
      
      * Refactor router getData back to ternary
      
      * Apply suggestions to build/index.ts
      
      * drop return
      
      * De-dupe extra escape regex
      
      * Add param test
      c24daa21
  20. 25 1月, 2020 1 次提交
  21. 15 1月, 2020 1 次提交
  22. 05 1月, 2020 1 次提交
  23. 04 1月, 2020 1 次提交
  24. 31 12月, 2019 1 次提交
  25. 18 12月, 2019 1 次提交
  26. 12 12月, 2019 1 次提交
  27. 28 11月, 2019 1 次提交
    • J
      s/getStaticParams/getStaticPaths/ (#9565) · ca3f881a
      Joe Haddad 提交于
      * WIP: rename get static paths
      
      * Adjust logic
      
      * Add warning
      
      * rename constant
      
      * Check for error when using old method
      
      * Add friendly error message
      
      * Test for message of invalid keys
      
      * replace index with dots
      ca3f881a
  28. 26 11月, 2019 1 次提交
  29. 15 11月, 2019 1 次提交
  30. 13 11月, 2019 1 次提交
  31. 11 11月, 2019 1 次提交
  32. 02 11月, 2019 2 次提交
    • 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
    • J
      Disallow iSSG revalidation period of zero (#9280) · aef927d5
      Joe Haddad 提交于
      * Disallow iSSG revalidation period of zero
      
      * Fix revalidation period in test
      aef927d5