Skip to content

Commit 80d8d0d

Browse files
author
Dimitri Kopriwa
committed
fix(dependencies): upgrade all dependencies
1 parent e9d0ba4 commit 80d8d0d

File tree

6 files changed

+51
-130
lines changed

6 files changed

+51
-130
lines changed

.ncurc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
const { createConfig } = require('@rollup-umd/ncu');
2+
module.exports = createConfig();

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ coverage/
2121
docs/
2222
reports/
2323
/styleguide
24+
.ncurc.js

package.json

Lines changed: 43 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -67,68 +67,58 @@
6767
],
6868
"license": "MIT",
6969
"devDependencies": {
70-
"@babel/cli": "^7.2.3",
71-
"@babel/core": "^7.2.2",
70+
"@babel/cli": "^7.4.4",
71+
"@babel/core": "^7.4.5",
7272
"@babel/plugin-external-helpers": "^7.2.0",
73-
"@babel/plugin-proposal-class-properties": "^7.2.3",
74-
"@babel/plugin-proposal-decorators": "^7.2.3",
73+
"@babel/plugin-proposal-class-properties": "^7.4.4",
74+
"@babel/plugin-proposal-decorators": "^7.4.4",
7575
"@babel/plugin-proposal-json-strings": "^7.2.0",
76-
"@babel/plugin-proposal-object-rest-spread": "^7.2.0",
76+
"@babel/plugin-proposal-object-rest-spread": "^7.4.4",
7777
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
7878
"@babel/plugin-syntax-import-meta": "^7.2.0",
79-
"@babel/plugin-transform-modules-commonjs": "^7.2.0",
80-
"@babel/preset-env": "^7.2.3",
81-
"@bootstrap-styled/documentation": "^1.2.1",
82-
"@rollup-umd/documentation": "^1.3.5",
83-
"@semantic-release/changelog": "^3.0.2",
84-
"@semantic-release/git": "^7.0.7",
85-
"@semantic-release/github": "^5.2.8",
86-
"@semantic-release/npm": "^5.1.3",
79+
"@babel/plugin-transform-modules-commonjs": "^7.4.4",
80+
"@babel/preset-env": "^7.4.5",
81+
"@bootstrap-styled/documentation": "^2.0.0",
82+
"@rollup-umd/documentation": "^2.0.5",
83+
"@rollup-umd/ncu": "^1.0.9",
84+
"@rollup-umd/rollup": "^1.0.13",
85+
"@semantic-release/changelog": "^3.0.4",
86+
"@semantic-release/git": "^7.0.12",
87+
"@semantic-release/github": "^5.4.0",
88+
"@semantic-release/npm": "^5.1.9",
8789
"babel-core": "^7.0.0-bridge.0",
88-
"babel-eslint": "^10.0.1",
89-
"babel-jest": "^23.6.0",
90-
"babel-loader": "^8.0.4",
91-
"babel-plugin-add-module-exports": "^1.0.0",
90+
"babel-eslint": "^10.0.2",
91+
"babel-jest": "^24.8.0",
92+
"babel-loader": "^8.0.6",
93+
"babel-plugin-add-module-exports": "^1.0.2",
9294
"babel-plugin-array-includes": "^2.0.3",
9395
"babel-plugin-dynamic-import-node": "^2.2.0",
9496
"cz-conventional-changelog": "^2.1.0",
95-
"enzyme": "^3.8.0",
96-
"enzyme-adapter-react-16": "^1.7.1",
97-
"eslint": "^5.11.1",
97+
"enzyme": "^3.10.0",
98+
"enzyme-adapter-react-16": "^1.14.0",
99+
"eslint": "^5.16.0",
98100
"eslint-config-airbnb": "^17.1.0",
99101
"eslint-config-airbnb-base": "^13.1.0",
100-
"eslint-plugin-import": "^2.14.0",
101-
"eslint-plugin-jsx-a11y": "^6.1.2",
102-
"eslint-plugin-react": "^7.12.2",
102+
"eslint-plugin-import": "^2.17.3",
103+
"eslint-plugin-jsx-a11y": "^6.2.1",
104+
"eslint-plugin-react": "^7.13.0",
103105
"immutable": "^4.0.0-rc.12",
104-
"jest-cli": "^23.6.0",
106+
"jest-cli": "^24.8.0",
105107
"jest-sonar-reporter": "^2.0.0",
106-
"lint-staged": "^8.1.0",
108+
"lint-staged": "^8.2.1",
107109
"pre-commit": "^1.2.2",
108-
"react": "^16.7.0",
109-
"react-dom": "^16.7.0",
110-
"react-styleguidist": "^8.0.6",
110+
"react": "^16.8.6",
111+
"react-dom": "^16.8.6",
112+
"react-styleguidist": "^9.1.7",
111113
"rimraf": "^2.6.3",
112-
"rollup": "^1.0.1",
113-
"rollup-plugin-babel": "^4.2.0",
114-
"rollup-plugin-cleanup": "^3.1.0",
115-
"rollup-plugin-commonjs": "^9.2.0",
116-
"rollup-plugin-inject": "^2.2.0",
117-
"rollup-plugin-json": "^3.1.0",
118-
"rollup-plugin-node-builtins": "^2.1.2",
119-
"rollup-plugin-node-resolve": "^4.0.0",
120-
"rollup-plugin-replace": "^2.1.0",
121-
"rollup-plugin-terser": "^4.0.1",
122-
"rollup-plugin-visualizer": "^0.9.2",
123-
"rollup-watch": "^4.3.1",
124-
"semantic-release": "^15.13.2",
125-
"sinon": "^7.2.2",
126-
"stylelint": "^9.9.0",
127-
"stylelint-config-recommended": "^2.1.0",
114+
"rollup": "^1.15.6",
115+
"semantic-release": "^15.13.16",
116+
"stylelint": "^10.1.0",
117+
"stylelint-config-recommended": "^2.2.0",
128118
"stylelint-config-styled-components": "^0.1.1",
129-
"stylelint-processor-styled-components": "^1.5.1",
119+
"stylelint-processor-styled-components": "^1.8.0",
130120
"toctoc": "^0.3.2",
131-
"webpack": "^4.28.3"
121+
"webpack": "^4.34.0"
132122
},
133123
"jest": {
134124
"roots": [
@@ -138,7 +128,13 @@
138128
"raf/polyfill"
139129
],
140130
"testURL": "http://localhost/",
141-
"setupTestFrameworkScriptFile": "<rootDir>/internals/testing/test-bundler.js",
131+
"setupFilesAfterEnv": [
132+
"<rootDir>/internals/testing/test-bundler.js"
133+
],
134+
"transformIgnorePatterns": [
135+
"<rootDir>/node_modules",
136+
"<rootDir>/internals"
137+
],
142138
"testPathIgnorePatterns": [
143139
"<rootDir>/dist/",
144140
"<rootDir>/lib/"

rollup.config.js

Lines changed: 2 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,2 @@
1-
/* eslint-disable flowtype-errors/show-errors, no-console, import/extensions */
2-
import nodeResolve from 'rollup-plugin-node-resolve';
3-
import replace from 'rollup-plugin-replace';
4-
import commonjs from 'rollup-plugin-commonjs';
5-
import inject from 'rollup-plugin-inject';
6-
import babel from 'rollup-plugin-babel';
7-
import json from 'rollup-plugin-json';
8-
import { terser } from 'rollup-plugin-terser';
9-
import cleanup from 'rollup-plugin-cleanup';
10-
import visualizer from 'rollup-plugin-visualizer';
11-
import pkg from './package.json';
12-
import declination from './declination.json';
13-
const processShim = '\0process-shim';
14-
const prod = process.env.PRODUCTION;
15-
const mode = prod ? 'production' : 'development';
16-
const { external, globals } = declination;
17-
18-
console.log(`Creating ${mode} bundle...`);
19-
20-
const output = prod ? [
21-
{
22-
name: pkg.name, exports: 'named', globals, file: `dist/${pkg.name}.min.js`, format: 'umd', sourcemap: true,
23-
},
24-
{
25-
name: pkg.name, exports: 'named', globals, file: `dist/${pkg.name}.cjs.min.js`, format: 'cjs', sourcemap: true,
26-
},
27-
{
28-
name: pkg.name, exports: 'named', globals, file: `dist/${pkg.name}.esm.js`, format: 'es', sourcemap: true,
29-
},
30-
] : [
31-
{
32-
name: pkg.name, exports: 'named', globals, file: `dist/${pkg.name}.js`, format: 'umd', sourcemap: true,
33-
},
34-
{
35-
name: pkg.name, exports: 'named', globals, file: `dist/${pkg.name}.cjs.js`, format: 'cjs', sourcemap: true,
36-
},
37-
{
38-
name: pkg.name, exports: 'named', globals, file: `dist/${pkg.name}.esm.js`, format: 'es', sourcemap: true,
39-
},
40-
];
41-
const plugins = [
42-
// Unlike Webpack and Browserify, Rollup doesn't automatically shim Node
43-
// builtins like `process`. This ad-hoc plugin creates a 'virtual module'
44-
// which includes a shim containing just the parts the bundle needs.
45-
{
46-
resolveId(importee) {
47-
if (importee === processShim) return importee;
48-
return null;
49-
},
50-
load(id) {
51-
if (id === processShim) return 'export default { argv: [], env: {} }';
52-
return null;
53-
},
54-
},
55-
nodeResolve({
56-
browser: true,
57-
}),
58-
commonjs({
59-
include: 'node_modules/**',
60-
}),
61-
replace({
62-
'process.env.NODE_ENV': JSON.stringify(prod ? 'production' : 'development'),
63-
}),
64-
inject({
65-
process: processShim,
66-
}),
67-
babel({
68-
babelrc: false,
69-
exclude: 'node_modules/**',
70-
}),
71-
json(),
72-
cleanup(),
73-
];
74-
75-
export default output.map((o) => ({
76-
input: 'src/index.js',
77-
external,
78-
output: o,
79-
plugins: prod ? plugins.concat([terser(), visualizer({ filename: './bundle-stats.html' })]) : plugins,
80-
}));
1+
const { createConfig } = require('@rollup-umd/rollup');
2+
module.exports = createConfig();

src/navbar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ export function navbar(
300300
overflow: hidden;
301301
302302
&::before {
303-
content: '\00a0';
303+
content: '\\00a0';
304304
}
305305
}
306306
`;

src/tests/navbar.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ describe('bootstrap navbar mixins', () => {
3333
);
3434
expect(css).not.toContain('undefined');
3535
expect(css).not.toContain('null');
36-
expect(fromJS({ css }).hashCode()).toEqual(-55871090);
36+
expect(fromJS({ css }).hashCode()).toEqual(-857655091);
3737
});
3838
it('navbar should have arguments', () => {
3939
const css = navbar();
40-
expect(fromJS({ css }).hashCode()).toEqual(334055248);
40+
expect(fromJS({ css }).hashCode()).toEqual(130848996);
4141
});
4242
});

0 commit comments

Comments
 (0)