Skip to content

Commit

Permalink
Merge branch 'canary' into font
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk authored Apr 5, 2021
2 parents cf771cd + bf629f9 commit 964a8bc
Show file tree
Hide file tree
Showing 35 changed files with 636 additions and 310 deletions.
6 changes: 3 additions & 3 deletions examples/custom-server-express/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ npm install body-parser

Use the package within server.js:

```bash
const bodyParser = require('body-parser');
```js
const bodyParser = require('body-parser')

app.prepare().then(() => {
const server = express();
const server = express()
server.use(bodyParser.urlencoded({ extended: true }))
server.use(bodyParser.json())
})
Expand Down
4 changes: 0 additions & 4 deletions examples/with-glamor/.babelrc

This file was deleted.

34 changes: 0 additions & 34 deletions examples/with-glamor/.gitignore

This file was deleted.

25 changes: 0 additions & 25 deletions examples/with-glamor/README.md

This file was deleted.

16 changes: 0 additions & 16 deletions examples/with-glamor/next.config.js

This file was deleted.

17 changes: 0 additions & 17 deletions examples/with-glamor/package.json

This file was deleted.

36 changes: 0 additions & 36 deletions examples/with-glamor/pages/_document.js

This file was deleted.

17 changes: 0 additions & 17 deletions examples/with-glamor/pages/index.js

This file was deleted.

8 changes: 4 additions & 4 deletions examples/with-mqtt-js/.env.local.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
NEXT_MQTT_URI="wss://test.mosquitto.org:8081/mqtt"
NEXT_MQTT_CLIENTID="a_client_id"
NEXT_MQTT_USERNAME="username"
CONTENTFUL_PREVIEW_SECRET="a_secure_password"
NEXT_PUBLIC_MQTT_URI="wss://test.mosquitto.org:8081/mqtt"
NEXT_PUBLIC_MQTT_CLIENTID="a_client_id"
NEXT_PUBLIC_MQTT_USERNAME="username"
NEXT_PUBLIC_MQTT_PASSWORD="a_secure_password"
7 changes: 4 additions & 3 deletions examples/with-styled-jsx-plugins/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@
"start": "next start"
},
"dependencies": {
"lost": "8.2.0",
"next": "latest",
"postcss-nested": "2.1.2",
"lost": "8.2.0",
"postcss-nested": "5.0.5",
"postcss": "8.2.9",
"react": "^16.7.0",
"react-dom": "^16.7.0",
"styled-jsx-plugin-postcss": "0.1.0"
"styled-jsx-plugin-postcss": "4.0.1"
},
"license": "MIT",
"postcss": {
Expand Down
2 changes: 1 addition & 1 deletion examples/with-web-worker/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# WebWorker example

This example shows how to run code in WebWorkers by utilizing [worker-plugin](https://github.com/GoogleChromeLabs/worker-plugin).
This example shows how to run code in WebWorkers by utilizing [webpack 5](https://nextjs.org/docs/messages/webpack5).

## Deploy your own

Expand Down
14 changes: 2 additions & 12 deletions examples/with-web-worker/next.config.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
const WorkerPlugin = require('worker-plugin')

module.exports = {
webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
if (!isServer) {
config.plugins.push(
new WorkerPlugin({
// use "self" as the global object when receiving hot updates.
globalObject: 'self',
})
)
}
return config
future: {
webpack5: true,
},
}
3 changes: 1 addition & 2 deletions examples/with-web-worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
"dependencies": {
"next": "latest",
"react": "16.13.1",
"react-dom": "16.13.1",
"worker-plugin": "^4.0.3"
"react-dom": "16.13.1"
},
"license": "MIT"
}
2 changes: 1 addition & 1 deletion examples/with-web-worker/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useEffect, useRef, useCallback } from 'react'
export default function Index() {
const workerRef = useRef()
useEffect(() => {
workerRef.current = new Worker('../worker.js', { type: 'module' })
workerRef.current = new Worker(new URL('../worker.js', import.meta.url))
workerRef.current.onmessage = (evt) =>
alert(`WebWorker Response => ${evt.data}`)
return () => {
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
"registry": "https://registry.npmjs.org/"
}
},
"version": "10.1.3-canary.0"
"version": "10.1.4-canary.0"
}
2 changes: 1 addition & 1 deletion packages/create-next-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-next-app",
"version": "10.1.3-canary.0",
"version": "10.1.4-canary.0",
"keywords": [
"react",
"next",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-next/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/eslint-plugin-next",
"version": "10.1.3-canary.0",
"version": "10.1.4-canary.0",
"description": "ESLint plugin for NextJS.",
"main": "lib/index.js",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/next-bundle-analyzer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/bundle-analyzer",
"version": "10.1.3-canary.0",
"version": "10.1.4-canary.0",
"main": "index.js",
"license": "MIT",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/next-codemod/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/codemod",
"version": "10.1.3-canary.0",
"version": "10.1.4-canary.0",
"license": "MIT",
"dependencies": {
"chalk": "4.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/next-env/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/env",
"version": "10.1.3-canary.0",
"version": "10.1.4-canary.0",
"keywords": [
"react",
"next",
Expand Down
2 changes: 1 addition & 1 deletion packages/next-mdx/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/mdx",
"version": "10.1.3-canary.0",
"version": "10.1.4-canary.0",
"main": "index.js",
"license": "MIT",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/next-plugin-google-analytics/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/plugin-google-analytics",
"version": "10.1.3-canary.0",
"version": "10.1.4-canary.0",
"repository": {
"url": "vercel/next.js",
"directory": "packages/next-plugin-google-analytics"
Expand Down
2 changes: 1 addition & 1 deletion packages/next-plugin-sentry/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/plugin-sentry",
"version": "10.1.3-canary.0",
"version": "10.1.4-canary.0",
"repository": {
"url": "vercel/next.js",
"directory": "packages/next-plugin-sentry"
Expand Down
2 changes: 1 addition & 1 deletion packages/next-plugin-storybook/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/plugin-storybook",
"version": "10.1.3-canary.0",
"version": "10.1.4-canary.0",
"repository": {
"url": "vercel/next.js",
"directory": "packages/next-plugin-storybook"
Expand Down
2 changes: 1 addition & 1 deletion packages/next-polyfill-module/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/polyfill-module",
"version": "10.1.3-canary.0",
"version": "10.1.4-canary.0",
"description": "A standard library polyfill for ES Modules supporting browsers (Edge 16+, Firefox 60+, Chrome 61+, Safari 10.1+)",
"main": "dist/polyfill-module.js",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/next-polyfill-nomodule/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/polyfill-nomodule",
"version": "10.1.3-canary.0",
"version": "10.1.4-canary.0",
"description": "A polyfill for non-dead, nomodule browsers.",
"main": "dist/polyfill-nomodule.js",
"license": "MIT",
Expand Down
Loading

0 comments on commit 964a8bc

Please sign in to comment.