2018-10-01 01:02:10 +02:00
|
|
|
{
|
|
|
|
"name": "next",
|
2020-10-10 02:19:45 +02:00
|
|
|
"version": "9.5.5",
|
2019-01-21 13:46:01 +01:00
|
|
|
"description": "The React Framework",
|
2018-10-01 01:02:10 +02:00
|
|
|
"main": "./dist/server/next.js",
|
|
|
|
"license": "MIT",
|
2020-05-27 23:51:11 +02:00
|
|
|
"repository": "vercel/next.js",
|
|
|
|
"bugs": "https://github.com/vercel/next.js/issues",
|
2018-10-01 01:34:54 +02:00
|
|
|
"homepage": "https://nextjs.org",
|
2019-04-25 13:51:06 +02:00
|
|
|
"types": "types/index.d.ts",
|
2018-10-01 01:02:10 +02:00
|
|
|
"files": [
|
|
|
|
"dist",
|
|
|
|
"app.js",
|
2019-04-24 16:47:50 +02:00
|
|
|
"app.d.ts",
|
2018-10-01 01:02:10 +02:00
|
|
|
"babel.js",
|
2019-04-24 16:47:50 +02:00
|
|
|
"babel.d.ts",
|
2018-10-01 01:02:10 +02:00
|
|
|
"client.js",
|
2019-04-24 16:47:50 +02:00
|
|
|
"client.d.ts",
|
2018-10-01 01:02:10 +02:00
|
|
|
"config.js",
|
2019-04-24 16:47:50 +02:00
|
|
|
"config.d.ts",
|
2018-10-01 01:02:10 +02:00
|
|
|
"constants.js",
|
2019-04-24 16:47:50 +02:00
|
|
|
"constants.d.ts",
|
2019-04-03 00:32:07 +02:00
|
|
|
"data.js",
|
2019-04-24 16:47:50 +02:00
|
|
|
"data.d.ts",
|
2018-10-01 01:02:10 +02:00
|
|
|
"document.js",
|
2019-04-24 16:47:50 +02:00
|
|
|
"document.d.ts",
|
2018-10-01 01:02:10 +02:00
|
|
|
"dynamic.js",
|
2019-04-24 16:47:50 +02:00
|
|
|
"dynamic.d.ts",
|
2018-10-01 01:02:10 +02:00
|
|
|
"error.js",
|
2019-04-24 16:47:50 +02:00
|
|
|
"error.d.ts",
|
2018-10-01 01:02:10 +02:00
|
|
|
"head.js",
|
2019-04-24 16:47:50 +02:00
|
|
|
"head.d.ts",
|
2018-10-01 01:02:10 +02:00
|
|
|
"link.js",
|
2019-04-24 16:47:50 +02:00
|
|
|
"link.d.ts",
|
2019-02-14 16:22:57 +01:00
|
|
|
"router.js",
|
2019-04-24 16:47:50 +02:00
|
|
|
"router.d.ts",
|
|
|
|
"amp.js",
|
2019-04-25 13:51:06 +02:00
|
|
|
"amp.d.ts",
|
2019-06-24 20:26:17 +02:00
|
|
|
"types/index.d.ts",
|
|
|
|
"types/global.d.ts"
|
2018-10-01 01:02:10 +02:00
|
|
|
],
|
|
|
|
"bin": {
|
|
|
|
"next": "./dist/bin/next"
|
|
|
|
},
|
|
|
|
"scripts": {
|
|
|
|
"build": "taskr",
|
|
|
|
"release": "taskr release",
|
2019-04-24 22:43:04 +02:00
|
|
|
"prepublish": "npm run release && yarn types",
|
2019-09-04 16:00:54 +02:00
|
|
|
"types": "tsc --declaration --emitDeclarationOnly --declarationDir dist",
|
2020-04-07 15:42:16 +02:00
|
|
|
"typescript": "tsc --noEmit --declaration",
|
|
|
|
"ncc-compiled": "taskr ncc"
|
2018-10-01 01:02:10 +02:00
|
|
|
},
|
|
|
|
"taskr": {
|
|
|
|
"requires": [
|
2019-02-22 17:33:53 +01:00
|
|
|
"./taskfile-ncc.js",
|
2019-09-04 16:00:54 +02:00
|
|
|
"./taskfile-babel.js",
|
|
|
|
"./taskfile-typescript.js"
|
2018-10-01 01:02:10 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"dependencies": {
|
2020-08-10 18:06:00 +02:00
|
|
|
"@ampproject/toolbox-optimizer": "2.6.0",
|
2020-09-01 17:29:25 +02:00
|
|
|
"@babel/code-frame": "7.10.4",
|
2020-05-15 23:15:15 +02:00
|
|
|
"@babel/core": "7.7.7",
|
2020-09-01 17:29:25 +02:00
|
|
|
"@babel/plugin-proposal-class-properties": "7.10.4",
|
Add missing nomodule polyfills and suggest using features only up to ES2019 for browser compatibility (#15772)
These changes aim to resolve most of the concerns raised in #15756. It adds missing polyfills for legacy browsers up until ES2019:
- Number.{parseFloat,parseInt}
- ~Math.{acosh,asinh,atanh,cbrt,clz32,cosh,expm1,fround,hypot,imul,log10p,log1p,log2,sign,sinh,tanh,trunc}~ _[Removed as these are [not widely used](https://github.com/vercel/next.js/pull/15772#discussion_r463957931)]_
- While these may seem to weigh a lot, they barely add 1 kB to the resulting bundle:
<img width="492" alt="gzip: 32 kB vs. 30.9 kB, Brotli: 28.8 kB vs. 27.8 kB" src="https://user-images.githubusercontent.com/14854048/89100961-1376e600-d3fc-11ea-90fd-3e6632b70220.png">
- ~Object.fromEntries~ _[Removed as [it's rarely used in user code](https://github.com/vercel/next.js/pull/15772#discussion_r463984612)]_
Also, the following features are now supported with build-time transforms:
- ~`globalThis` (gets transformed into `window` in browser environments)~ _[Removed as it [could break existing applications](https://github.com/vercel/next.js/pull/15772#discussion_r463956269)]_
- `export * as ns from 'module'`
The suggested TypeScript library version has been set to ES2018, so the features below become unavailable in type-checked files (they're not evenly supported by module-compatible browsers, either):
- Object.fromEntries
- String.prototype.matchAll
- String.prototype.replaceAll
- Promise.any + AggregateError
- WeakRef
As for the `import.meta` support, [webpack v5 seems to fix that](https://github.com/webpack/webpack/pull/11075), so it should eventually become an issue of the past.
---
Fixes #15756
2020-08-04 08:03:52 +02:00
|
|
|
"@babel/plugin-proposal-export-namespace-from": "7.10.4",
|
2020-09-01 17:29:25 +02:00
|
|
|
"@babel/plugin-proposal-numeric-separator": "7.10.4",
|
|
|
|
"@babel/plugin-proposal-object-rest-spread": "7.11.0",
|
2020-03-29 21:07:55 +02:00
|
|
|
"@babel/plugin-syntax-bigint": "7.8.3",
|
2020-05-09 17:12:02 +02:00
|
|
|
"@babel/plugin-syntax-dynamic-import": "7.8.3",
|
2020-09-13 15:29:23 +02:00
|
|
|
"@babel/plugin-syntax-jsx": "7.10.4",
|
2020-09-01 17:29:25 +02:00
|
|
|
"@babel/plugin-transform-modules-commonjs": "7.10.4",
|
|
|
|
"@babel/plugin-transform-runtime": "7.11.5",
|
|
|
|
"@babel/preset-env": "7.11.5",
|
|
|
|
"@babel/preset-modules": "0.1.4",
|
|
|
|
"@babel/preset-react": "7.10.4",
|
|
|
|
"@babel/preset-typescript": "7.10.4",
|
|
|
|
"@babel/runtime": "7.11.2",
|
|
|
|
"@babel/types": "7.11.5",
|
2020-10-07 23:11:01 +02:00
|
|
|
"@hapi/accept": "5.0.1",
|
2020-10-10 02:19:45 +02:00
|
|
|
"@next/env": "9.5.5",
|
|
|
|
"@next/polyfill-module": "9.5.5",
|
|
|
|
"@next/react-dev-overlay": "9.5.5",
|
|
|
|
"@next/react-refresh-utils": "9.5.5",
|
2020-07-28 12:19:28 +02:00
|
|
|
"ast-types": "0.13.2",
|
2020-03-29 21:07:55 +02:00
|
|
|
"babel-plugin-transform-define": "2.0.0",
|
|
|
|
"babel-plugin-transform-react-remove-prop-types": "0.4.24",
|
2020-07-20 16:01:34 +02:00
|
|
|
"browserslist": "4.13.0",
|
2020-07-28 11:33:21 +02:00
|
|
|
"buffer": "5.6.0",
|
2020-09-11 18:19:54 +02:00
|
|
|
"cacache": "15.0.5",
|
2020-08-14 15:52:52 +02:00
|
|
|
"caniuse-lite": "^1.0.30001113",
|
2020-05-06 10:33:06 +02:00
|
|
|
"chokidar": "2.1.8",
|
2020-08-10 03:26:21 +02:00
|
|
|
"crypto-browserify": "3.12.0",
|
2020-09-10 01:29:37 +02:00
|
|
|
"css-loader": "4.3.0",
|
2020-08-20 21:10:59 +02:00
|
|
|
"cssnano-simple": "1.2.0",
|
2020-04-06 11:52:19 +02:00
|
|
|
"find-cache-dir": "3.3.1",
|
2019-08-24 20:55:43 +02:00
|
|
|
"jest-worker": "24.9.0",
|
2020-03-24 14:57:23 +01:00
|
|
|
"loader-utils": "2.0.0",
|
2020-04-06 13:12:14 +02:00
|
|
|
"mkdirp": "0.5.3",
|
2020-06-29 22:44:43 +02:00
|
|
|
"native-url": "0.3.4",
|
2020-05-06 10:33:06 +02:00
|
|
|
"neo-async": "2.6.1",
|
2020-07-28 12:19:28 +02:00
|
|
|
"node-html-parser": "^1.2.19",
|
2020-08-10 03:26:21 +02:00
|
|
|
"path-browserify": "1.0.1",
|
2020-05-11 02:48:57 +02:00
|
|
|
"pnp-webpack-plugin": "1.6.4",
|
2020-06-29 23:29:53 +02:00
|
|
|
"postcss": "7.0.32",
|
2020-07-28 11:33:21 +02:00
|
|
|
"process": "0.11.10",
|
2019-05-23 09:52:36 +02:00
|
|
|
"prop-types": "15.7.2",
|
2020-05-11 02:48:57 +02:00
|
|
|
"react-is": "16.13.1",
|
2020-05-23 23:37:56 +02:00
|
|
|
"react-refresh": "0.8.3",
|
2020-01-22 21:26:51 +01:00
|
|
|
"resolve-url-loader": "3.1.1",
|
2020-09-11 14:36:48 +02:00
|
|
|
"sass-loader": "10.0.2",
|
|
|
|
"schema-utils": "2.7.1",
|
2020-08-10 03:26:21 +02:00
|
|
|
"stream-browserify": "3.0.0",
|
2020-05-11 02:48:57 +02:00
|
|
|
"style-loader": "1.2.1",
|
2020-05-14 15:55:46 +02:00
|
|
|
"styled-jsx": "3.3.0",
|
2020-05-11 02:48:57 +02:00
|
|
|
"use-subscription": "1.4.1",
|
2020-08-10 03:26:21 +02:00
|
|
|
"vm-browserify": "1.1.2",
|
2020-02-19 11:05:59 +01:00
|
|
|
"watchpack": "2.0.0-beta.13",
|
2020-09-12 06:04:33 +02:00
|
|
|
"web-vitals": "0.2.4",
|
2020-08-03 14:57:17 +02:00
|
|
|
"webpack": "4.44.1",
|
2020-02-18 19:26:55 +01:00
|
|
|
"webpack-sources": "1.4.3"
|
2018-10-01 01:02:10 +02:00
|
|
|
},
|
|
|
|
"peerDependencies": {
|
2019-01-14 01:59:26 +01:00
|
|
|
"react": "^16.6.0",
|
|
|
|
"react-dom": "^16.6.0"
|
2018-10-01 01:02:10 +02:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2020-10-10 02:19:45 +02:00
|
|
|
"@next/polyfill-nomodule": "9.5.5",
|
2018-10-01 01:02:10 +02:00
|
|
|
"@taskr/clear": "1.1.0",
|
2018-10-07 15:04:43 +02:00
|
|
|
"@taskr/esnext": "1.1.0",
|
|
|
|
"@taskr/watch": "1.1.0",
|
2019-03-19 00:21:18 +01:00
|
|
|
"@types/amphtml-validator": "1.0.0",
|
2020-05-18 18:07:08 +02:00
|
|
|
"@types/babel__code-frame": "7.0.1",
|
2020-05-09 17:12:02 +02:00
|
|
|
"@types/babel__core": "7.1.7",
|
|
|
|
"@types/babel__generator": "7.6.1",
|
2019-05-23 09:52:36 +02:00
|
|
|
"@types/babel__template": "7.0.2",
|
2020-05-09 17:12:02 +02:00
|
|
|
"@types/babel__traverse": "7.0.10",
|
2019-08-29 18:43:06 +02:00
|
|
|
"@types/ci-info": "2.0.0",
|
2020-05-27 20:46:18 +02:00
|
|
|
"@types/comment-json": "1.1.1",
|
2019-07-29 20:35:09 +02:00
|
|
|
"@types/compression": "0.0.36",
|
2019-09-05 16:11:08 +02:00
|
|
|
"@types/content-type": "1.1.3",
|
2020-04-03 19:18:04 +02:00
|
|
|
"@types/cookie": "0.3.3",
|
2019-07-30 23:35:15 +02:00
|
|
|
"@types/cross-spawn": "6.0.0",
|
2020-04-29 17:04:42 +02:00
|
|
|
"@types/debug": "4.1.5",
|
2018-12-07 15:52:29 +01:00
|
|
|
"@types/etag": "1.8.0",
|
|
|
|
"@types/fresh": "0.5.0",
|
2019-11-25 22:52:29 +01:00
|
|
|
"@types/json5": "0.0.30",
|
2020-02-12 02:16:42 +01:00
|
|
|
"@types/jsonwebtoken": "8.3.7",
|
2019-12-09 21:08:15 +01:00
|
|
|
"@types/lodash.curry": "4.1.6",
|
2019-09-24 10:50:04 +02:00
|
|
|
"@types/lru-cache": "5.1.0",
|
2019-05-23 09:52:36 +02:00
|
|
|
"@types/nanoid": "2.0.0",
|
|
|
|
"@types/node-fetch": "2.3.4",
|
2020-03-29 19:17:06 +02:00
|
|
|
"@types/path-to-regexp": "1.7.0",
|
2020-01-06 17:43:26 +01:00
|
|
|
"@types/react": "16.9.17",
|
|
|
|
"@types/react-dom": "16.9.4",
|
2019-09-05 16:11:08 +02:00
|
|
|
"@types/react-is": "16.7.1",
|
2019-02-20 20:24:02 +01:00
|
|
|
"@types/resolve": "0.0.8",
|
2020-08-06 16:41:11 +02:00
|
|
|
"@types/semver": "7.3.1",
|
2019-09-05 16:11:08 +02:00
|
|
|
"@types/send": "0.14.4",
|
2019-04-23 09:40:24 +02:00
|
|
|
"@types/styled-jsx": "2.2.8",
|
2019-05-23 09:52:36 +02:00
|
|
|
"@types/text-table": "0.2.1",
|
2019-03-12 21:39:44 +01:00
|
|
|
"@types/webpack-sources": "0.1.5",
|
2020-03-28 20:42:35 +01:00
|
|
|
"@zeit/ncc": "0.22.0",
|
2020-09-01 17:29:25 +02:00
|
|
|
"amphtml-validator": "1.0.33",
|
2019-03-24 23:38:03 +01:00
|
|
|
"arg": "4.1.0",
|
2020-03-29 00:27:09 +01:00
|
|
|
"async-retry": "1.2.3",
|
|
|
|
"async-sema": "3.0.0",
|
2020-05-11 02:48:57 +02:00
|
|
|
"babel-loader": "8.1.0",
|
|
|
|
"babel-plugin-dynamic-import-node": "2.3.3",
|
2020-03-30 03:25:10 +02:00
|
|
|
"cache-loader": "4.1.0",
|
2020-03-29 00:43:52 +01:00
|
|
|
"chalk": "2.4.2",
|
2020-04-09 16:23:04 +02:00
|
|
|
"ci-info": "watson/ci-info#f43f6a1cefff47fb361c88cf4b943fdbcaafe540",
|
2020-09-01 17:29:25 +02:00
|
|
|
"comment-json": "3.0.3",
|
2020-03-29 00:56:38 +01:00
|
|
|
"compression": "1.7.4",
|
2020-03-29 17:46:33 +02:00
|
|
|
"conf": "5.0.0",
|
2020-03-29 00:56:38 +01:00
|
|
|
"content-type": "1.0.4",
|
2020-05-11 02:48:57 +02:00
|
|
|
"cookie": "0.4.1",
|
2020-04-29 17:04:42 +02:00
|
|
|
"debug": "4.1.1",
|
2020-03-29 01:18:22 +01:00
|
|
|
"devalue": "2.0.1",
|
2020-03-29 01:21:07 +01:00
|
|
|
"escape-string-regexp": "2.0.0",
|
2020-03-29 01:22:42 +01:00
|
|
|
"etag": "1.8.1",
|
2020-05-11 02:48:57 +02:00
|
|
|
"file-loader": "6.0.0",
|
|
|
|
"find-up": "4.1.0",
|
2020-03-29 01:27:13 +01:00
|
|
|
"fresh": "0.5.2",
|
2020-03-29 01:29:14 +01:00
|
|
|
"gzip-size": "5.1.1",
|
2020-03-29 01:30:34 +01:00
|
|
|
"http-proxy": "1.18.0",
|
2020-03-30 03:37:41 +02:00
|
|
|
"ignore-loader": "0.1.2",
|
2020-03-29 01:33:35 +01:00
|
|
|
"is-docker": "2.0.0",
|
2020-05-11 02:48:57 +02:00
|
|
|
"is-wsl": "2.2.0",
|
|
|
|
"json5": "2.1.3",
|
2020-03-29 01:37:45 +01:00
|
|
|
"jsonwebtoken": "8.5.1",
|
2020-03-29 01:43:59 +01:00
|
|
|
"lodash.curry": "4.1.1",
|
2020-03-29 01:46:22 +01:00
|
|
|
"lru-cache": "5.1.1",
|
2019-05-23 09:52:36 +02:00
|
|
|
"nanoid": "2.0.3",
|
2020-09-11 11:01:48 +02:00
|
|
|
"node-fetch": "2.6.1",
|
2020-04-22 04:52:07 +02:00
|
|
|
"ora": "4.0.4",
|
2020-03-29 19:17:06 +02:00
|
|
|
"path-to-regexp": "6.1.0",
|
2020-05-04 19:33:34 +02:00
|
|
|
"postcss-flexbugs-fixes": "4.2.1",
|
2020-03-30 04:01:30 +02:00
|
|
|
"postcss-loader": "3.0.0",
|
|
|
|
"postcss-preset-env": "6.7.0",
|
2020-05-11 02:48:57 +02:00
|
|
|
"raw-body": "2.4.1",
|
2020-03-29 03:36:38 +02:00
|
|
|
"recast": "0.18.5",
|
2019-05-23 09:52:36 +02:00
|
|
|
"resolve": "1.11.0",
|
2020-08-06 16:41:11 +02:00
|
|
|
"semver": "7.3.2",
|
2020-03-29 03:40:29 +02:00
|
|
|
"send": "0.17.1",
|
2020-03-29 05:41:35 +02:00
|
|
|
"source-map": "0.6.1",
|
2020-03-29 05:05:26 +02:00
|
|
|
"string-hash": "1.1.3",
|
2020-04-22 04:52:07 +02:00
|
|
|
"strip-ansi": "6.0.0",
|
2019-03-24 14:34:44 +01:00
|
|
|
"taskr": "1.1.0",
|
2020-08-16 19:32:37 +02:00
|
|
|
"terser": "5.1.0",
|
|
|
|
"terser-webpack-plugin": "4.1.0",
|
2019-03-19 00:21:18 +01:00
|
|
|
"text-table": "0.2.0",
|
2020-03-30 01:20:35 +02:00
|
|
|
"thread-loader": "2.1.3",
|
2020-05-09 17:12:02 +02:00
|
|
|
"typescript": "3.8.3",
|
2020-03-29 18:56:34 +02:00
|
|
|
"unfetch": "4.1.0",
|
2020-07-01 17:34:00 +02:00
|
|
|
"unistore": "3.4.1"
|
2018-11-21 21:56:24 +01:00
|
|
|
},
|
|
|
|
"engines": {
|
2020-03-19 09:25:41 +01:00
|
|
|
"node": ">=10.13.0"
|
2018-10-01 01:02:10 +02:00
|
|
|
}
|
|
|
|
}
|