Commit graph

4622 commits

Author SHA1 Message Date
Jayden Seric
547b4acbd8 Update the graphql-react example. (#9550)
- Updated dependencies.
- For compatibility with the current next-graphql-react API, added next.config.js using the `withGraphQLConfig` decorator.
- For compatibility with the current graphql-react API, updated the options used with `useGraphQL`.
- Updated the readme to align with the current graphql-react and next-graphql-react APIs.
- Minor destructuring refactor for clarity.
- Converted the custom App to a functional component.
2019-11-27 10:50:20 +01:00
Alejandro Garcia Anglada
8e4e07bfe2 Fixed next-offline example to serve service worker (#9531)
* Fixed next-offline example to serve service worker

* replaced custom server with rewrites
2019-11-26 21:03:09 -05:00
Kristoffer K
63886b36a2 fix: resolve preset-modules (#9538)
* fix: require preset-modules

* Update packages/next/build/webpack/plugins/next-esm-plugin.ts

Co-Authored-By: Joe Haddad <timer150@gmail.com>

* fix formatting
2019-11-26 14:56:08 -05:00
JJ Kasper
d9e8b8678f Simplify src-dir test suite (#9533) 2019-11-26 14:29:39 -05:00
Janicklas Ralph
be496a260c Update native-url package for IE compat (#9539)
* Adding native-url package

* Bumping native-url version

* Upgrading native-url

* Logging stats object for debugging

* Logging stats object for debugging

* Adding try catch to the error lines

* Experimenting with regex

* Experimenting with regex

* Experimenting with regex

* Testing regex changes

* Fixing defer-script test case to not include polyfill.js

* Meging changes with existing polyfill work

* Bumping version

* adjust webpack config

* Reduce size in size test

* Remove 1kb from legacy

* Bumping native-url version, includes fix for IE11

* Update lock file
2019-11-26 14:14:24 -05:00
Adam Stankiewicz
9c9f0609a0 Fix deduplicating dynamic (array) meta tags (#9315) 2019-11-26 12:27:33 -05:00
JJ Kasper
80533f5d62 Add file attribute to timings data (#9535)
* Add file attribute to timings data

* bump

* bump
2019-11-26 12:11:56 -05:00
Joe Haddad
5030bda9c2
Update Yarn Lockfile 2019-11-26 07:43:27 -05:00
Jason Miller
1f15746176 [modern] preset-modules & fix custom babelrc (#9489)
* Modernize additional common Babel configurations.

* Add @babel/preset-modules dependency

* code quality

* Use modern terser ecma mode for .module.js bundles.
2019-11-26 11:27:26 +01:00
Prateek Bhatnagar
698f522d71 Wait till load for paint metrics (#9406)
* wait till load to fire paint metrics as they might not be available upfront

* adding performance observer

* adding check for performance user timing
2019-11-26 10:52:38 +01:00
Yosuke Furukawa
93f7da2845 Allow custom amp validation (#9191)
* Allow custom amp validation

* Update packages/next/export/index.ts

Co-Authored-By: Tim Neutkens <tim@timneutkens.nl>

* Update packages/next/server/next-dev-server.ts

Co-Authored-By: Tim Neutkens <tim@timneutkens.nl>

* chore: fix prettier error

* fix: set amp.valiator undefined by default
2019-11-26 10:47:55 +01:00
JJ Kasper
cd8e72d5e3 Add custom routes to build output (#9517)
* Add custom routes to build output

* De-dupe code a bit
2019-11-26 10:33:47 +01:00
Janicklas Ralph
04a7f1e85d Replace url polyfill with self.URL (#9200)
* Adding native-url package

* Bumping native-url version

* Upgrading native-url

* Logging stats object for debugging

* Logging stats object for debugging

* Adding try catch to the error lines

* Experimenting with regex

* Experimenting with regex

* Experimenting with regex

* Testing regex changes

* Fixing defer-script test case to not include polyfill.js

* Meging changes with existing polyfill work

* Bumping version

* adjust webpack config

* Reduce size in size test

* Remove 1kb from legacy
2019-11-25 23:10:02 -05:00
JJ Kasper
b6aebf92b7 Bump CircleCi concurrency (#9526) 2019-11-25 18:30:47 -05:00
JJ Kasper
12cbb2e95a
Add custom timings for CircleCi (#9523)
* Add custom timings for CircleCi

* Re-add split-by flag

* Add testcase item to junit.xml

* Log tests being run

* Update junit.xml path

* bump
2019-11-25 16:50:46 -06:00
Joe Haddad
3ebc61045a
v9.1.5-canary.6 2019-11-25 17:18:00 -05:00
Joe Haddad
302407486e
Specify Invalid Dynamic Route Values (#9525) 2019-11-25 17:15:23 -05:00
Joe Haddad
4656f52d15
CSS Support Customization (#9502)
* CSS Support Customization

* Sort imports

* Correct PostCSS plugin loading

* Add css customization test

* Test "bad" css configuration

* Add load config test

* adjust spacing

* adjust spacing 2x

* Only allow config through JSON

* Support excluding false plugins

* Test tailwind css behavior

* Test plugin exclusion

* Fix unit test

* Fix config file

* Remove more variants

* Update test cases
2019-11-25 16:52:29 -05:00
Mаартен - Maarten
8357f46413 Update progressive enhancement example (#9507)
* no ssr component which uses useEffect hook

This library used wasn't updated for 4 years. I tried to contact the owner, which failed, and decided to create my own. So if you see this PR as a shameless plugin for my own component you can delete it. Just wanted to make this example more up to date.

* Update index.js

* fix linting

* Update index.js

* Update example
2019-11-25 16:32:35 -05:00
Joe Haddad
acf3517995 Catch Telemetry Initialization Error (#9518)
* Catch Telemetry Initialization Error
This catches telemetry initialization errors where a user's `os.tmpdir()` directory isn't writable by the process.

* adjust cond
2019-11-25 14:31:10 -06:00
JJ Kasper
409f20a9ca
Fix AMP HTML content emit (#9468)
* Add failing test

* Escape dollar signs in AMP HTML

* Update to not use replace for updating AMP_RENDER_TARGET
2019-11-25 14:05:52 -06:00
Joe Haddad
2cbe4d3560
Remove Broken Example (with-apollo-auth) (#9516) 2019-11-25 14:49:46 -05:00
Joe Haddad
caa5347873
Remove Legacy Code (#9515)
The `sprStatus` module state is no longer used (and shouldn't be!). We can safely remove this code.

I also renamed the drop bundle identifier while I was here.
2019-11-25 14:32:25 -05:00
Joe Haddad
0a86b149fa
Purge Babel Cache (#9514)
* Bust Babel Cache

* Increase e
2019-11-25 14:16:04 -05:00
JJ Kasper
b058427b76 Update CI/test set up (#9499)
* Disable concurrency for tests

* Add browser instance sharing

* Bump concurrency and install chromedriver smoother

* Fix config typo

* Fix local test

* Limit azure concurrency again

* Add delay for empty-object-test

* Make sure to use open port for chromedriver

* Move browser closing to jest-environment

* Re-enable concurrency for Azure

* bump

* Disable concurrency for Azure again

* Re-enable concurrency for Azure

* bump
2019-11-25 13:19:45 -05:00
Joe Haddad
77c4b4de12
v9.1.5-canary.5 2019-11-25 11:46:02 -05:00
Joe Haddad
b80d4d6893
Drop Re-Exported iSSG Imports (#9512)
* Drop Re-Exported iSSG Imports
This pull request adds loader support for the following export form:
```js
export { getStaticParams as unstable_getStaticParams } from '../../lib/docs/page';
export { getStaticProps as unstable_getStaticProps } from '../../lib/docs/page';
```

This will now result in correct detection and removal.

* Add unit tests for next page config behavior

* Test extra function is not dropped
2019-11-25 11:44:24 -05:00
JJ Kasper
ff2d28c4ff Add err.sh for invalid multi-match usage (#9498)
* Adds err.sh for multi-match error

* Fix missing apostrophe

* Update regex to catch other param names

* Add test for multi-match error

* Update test/integration/invalid-multi-match/test/index.test.js
2019-11-23 02:23:01 +01:00
Alejandro Garcia Anglada
874d3fdbb9 Updated with-jest example to latest versions (#9490)
* Updated with-jest example to latest versions

* Fix linting issue

* Updating snapshots

* Rollback snapshots change
2019-11-23 02:09:50 +01:00
Luis Alvarez D
ca730d7fa7
[Example] Fix typo in with-rbx-bulma-pro (#9494)
Requested [here](https://github.com/zeit/next.js/pull/7728#issuecomment-555695290)
2019-11-22 00:41:39 -05:00
Joe Haddad
63671782be
v9.1.5-canary.4 2019-11-21 21:17:39 -05:00
Joe Haddad
8a087d50b7
next export should skip iSSG fallback page (#9491)
* `next export` should skip iSSG fallback page

* Move config to correct place
2019-11-21 20:20:19 -05:00
Sebastian Benz
29fdea6d31 Fix typos (#9488)
See https://github.com/zeit/next.js/pull/9109#issuecomment-557139022
2019-11-22 00:35:43 +01:00
Joe Haddad
dc0c940978
v9.1.5-canary.3 2019-11-21 15:21:55 -05:00
Joe Haddad
8e7ddeb6ca
Ensure CSS Is Preloaded First (#9486)
* Ensure CSS Is Preloaded First

* add test polyfills
2019-11-21 13:24:10 -05:00
Joe Haddad
7ff9595100 Error on Size Reduction (#9485) 2019-11-21 10:14:29 -06:00
Joe Haddad
61f4e70135
Upgrade Babel Dependencies (#9478)
* Upgrade Babel Dependencies

* Update test for new size
2019-11-20 21:53:12 -05:00
Glen Ihrig
625190d06d Update purgecss search path (#9432)
* Update purgecss search string to include typescript files - closes #9415

* fix minor formatting issue
2019-11-20 14:13:45 -05:00
JJ Kasper
14cfadf599
v9.1.5-canary.2 2019-11-20 11:37:42 -06:00
Serhii
6d50b95b7f Typo in with-next-offline example manifest.json (#9472) 2019-11-20 10:39:30 -06:00
JJ Kasper
29d267a1dc
Add handling for rewriting to /_next with catchall (#9466)
* Add handling for rewriting to /_next with catchall

* bump
2019-11-20 09:53:31 -06:00
JJ Kasper
546bb68a05
v9.1.5-canary.1 2019-11-19 11:30:24 -06:00
Tim Neutkens
10066aac9a Exclude cache from being deleted in dev (#9448)
* Exclude cache from being deleted in dev

* Exclude cache directory from delete

* Fix clean regex and update tests

* Remove extra param comment
2019-11-19 10:40:13 -06:00
Joe Haddad
4c549391de
v9.1.5-canary.0 2019-11-19 00:21:03 -05:00
Maël Nison
213c243c18 Adds missing dependency (#9453)
* Adds missing dependency

* Update package.json

* Update yarn.lock
2019-11-19 00:13:25 -05:00
JJ Kasper
792f2f8ce3 Add test for forward nav after reload (#9452) 2019-11-18 21:39:03 -05:00
Bart Langelaan
57fa38a39d Remove re-exports of default when they don't exist (#9450) 2019-11-18 20:11:59 -06:00
JJ Kasper
0b18f854ba
v9.1.4 2019-11-18 16:04:17 -06:00
Tim Neutkens
34125559eb v9.1.4-canary.8 2019-11-17 20:29:58 -08:00
Tim Neutkens
6a2c16a945
Update router to have only one route traverse pass (#9435)
* Fix next-news inconsistent return type

* Add failing test for static file rewrite

* Revert "Fix next-news inconsistent return type"

This reverts commit b66e76fb86061e45741c3c4bb9296a0874900f76.

* Add failing test for double redirect

* Fix bug in matcher when having multiple redirects

* Remove custom traversal in favor of router handling it

* Update next-server.ts

* Update router.ts

* Temporarily disable test

* Don't deeply resolve redirects

* Support combined parameters + query passing

* Make sure params are correctly passed in

* Add test for hash in route
2019-11-17 16:12:48 -08:00