Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(v2): update dependencies #1985

Merged
merged 2 commits into from
Nov 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,17 @@
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.4.4",
"@babel/plugin-proposal-optional-chaining": "^7.6.0",
"@babel/preset-typescript": "^7.7.2",
"@types/cross-spawn": "^6.0.1",
"@types/express": "^4.17.1",
"@types/fs-extra": "8.0.0",
"@types/inquirer": "^6.0.3",
"@types/fs-extra": "^8.0.1",
"@types/inquirer": "^6.5.0",
"@types/jest": "^24.0.22",
"@types/loader-utils": "^1.1.3",
"@types/lodash": "^4.14.145",
"@types/lodash.kebabcase": "^4.1.6",
"@types/node": "^12.0.2",
"@types/react": "^16.8.18",
"@types/react": "^16.9.11",
"@types/react-dev-utils": "^9.0.1",
"@types/semver": "^6.0.1",
"@types/semver": "^6.2.0",
"@types/shelljs": "^0.8.5",
"@types/webpack": "^4.32.0",
"@types/webpack-dev-server": "^3.1.5",
Expand Down
4 changes: 2 additions & 2 deletions packages/docusaurus-1.x/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
"@babel/types": "^7.7.2",
"autoprefixer": "^9.7.0",
"babylon": "^6.18.0",
"chalk": "^2.4.2",
"chalk": "^3.0.0",
"chokidar": "^3.3.0",
"classnames": "^2.2.6",
"color": "^2.0.1",
"commander": "^2.20.0",
"commander": "^4.0.1",
"cross-spawn": "^6.0.5",
"crowdin-cli": "^0.3.0",
"cssnano": "^4.1.10",
Expand Down
2 changes: 1 addition & 1 deletion packages/docusaurus-init-1.x/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"docusaurus-init": "initialize.js"
},
"dependencies": {
"chalk": "^2.4.2",
"chalk": "^3.0.0",
"shelljs": "^0.8.3"
}
}
4 changes: 2 additions & 2 deletions packages/docusaurus-init/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
},
"license": "MIT",
"dependencies": {
"chalk": "^2.4.2",
"commander": "^2.20.0",
"chalk": "^3.0.0",
"commander": "^4.0.1",
"fs-extra": "^8.1.0",
"inquirer": "^6.5.0",
"lodash.kebabcase": "^4.1.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/docusaurus-plugin-content-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"dependencies": {
"@docusaurus/mdx-loader": "^2.0.0-alpha.34",
"@docusaurus/utils": "^2.0.0-alpha.34",
"execa": "^3.2.0",
"execa": "^3.3.0",
"fs-extra": "^8.1.0",
"globby": "^10.0.1",
"import-fresh": "^3.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/docusaurus-plugin-content-docs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ export default function pluginContentDocs(
});
},

configureWebpack(_, isServer, utils) {
configureWebpack(_config, isServer, utils) {
const {getBabelLoader, getCacheLoader} = utils;
const {rehypePlugins, remarkPlugins} = options;
return {
Expand Down
4 changes: 2 additions & 2 deletions packages/docusaurus-plugin-ideal-image/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"dependencies": {
"@endiliey/lqip-loader": "^3.0.0",
"@endiliey/responsive-loader": "^1.3.1",
"react-ideal-image": "^0.0.5",
"react-waypoint": "8.1.0",
"@endiliey/react-ideal-image": "^0.0.8",
Copy link
Contributor Author

@endiliey endiliey Nov 13, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forked because that repo is so outdated.... :( (it still uses babel 7). Maintainer don't want to respond to issues and PR as well. My update is minimal stereobooster/react-ideal-image@master...endiliey:master

Interestingly with this fork main bundle size reduced by 14kbs. Crazy ... Most likely because react waypoint is bundled better now in v9
after 221kb

207kb after  wew

"react-waypoint": "^9.0.2",
"sharp": "^0.22.1"
},
"peerDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import IdealImage from 'react-ideal-image';
import IdealImage from '@endiliey/react-ideal-image';

function Image(props) {
const {alt, className, img} = props;
Expand Down
2 changes: 1 addition & 1 deletion packages/docusaurus-types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"license": "MIT",
"dependencies": {
"@types/webpack": "^4.32.0",
"commander": "^2.20.0",
"commander": "^4.0.1",
"querystring": "0.2.0"
}
}
8 changes: 4 additions & 4 deletions packages/docusaurus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,19 @@
"babel-loader": "^8.0.6",
"babel-plugin-dynamic-import-node": "^2.3.0",
"cache-loader": "^4.1.0",
"chalk": "^2.4.2",
"chalk": "^3.0.0",
"chokidar": "^3.3.0",
"classnames": "^2.2.6",
"commander": "^2.20.0",
"commander": "^4.0.1",
"copy-webpack-plugin": "^5.0.5",
"core-js": "^2.6.5",
"css-loader": "^3.2.0",
"del": "^5.1.0",
"ejs": "^2.6.2",
"ejs": "^2.7.1",
"express": "^4.17.1",
"fs-extra": "^8.1.0",
"globby": "^10.0.1",
"html-webpack-plugin": "^4.0.0-beta.8",
"html-webpack-plugin": "^4.0.0-beta.11",
"import-fresh": "^3.1.0",
"lodash": "^4.17.15",
"mini-css-extract-plugin": "^0.8.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/docusaurus/src/commands/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

import chalk from 'chalk';
import chalk = require('chalk');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import CopyWebpackPlugin from 'copy-webpack-plugin';
import fs from 'fs-extra';
import path from 'path';
Expand Down
2 changes: 1 addition & 1 deletion packages/docusaurus/src/commands/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import {normalizeUrl} from '@docusaurus/utils';
import chalk from 'chalk';
import chalk = require('chalk');
import chokidar from 'chokidar';
import express from 'express';
import HtmlWebpackPlugin from 'html-webpack-plugin';
Expand Down
2 changes: 1 addition & 1 deletion packages/docusaurus/src/commands/swizzle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

import chalk from 'chalk';
import chalk = require('chalk');
import fs from 'fs-extra';
import importFresh from 'import-fresh';
import path from 'path';
Expand Down
Loading