Skip to content
This repository was archived by the owner on Sep 30, 2023. It is now read-only.

Commit f253704

Browse files
authored
Updating webpack and other deps
* Updating storage adapter and tests * reverting addition of localstorage-down * linting * updating circle config to lts * package.json engines * babel-loader@8.2.2 * standard@16.0.3 * updating webpack * webpack conf updates * dist files * fixing circle config * standard 16 linting
1 parent ae25fc9 commit f253704

13 files changed

+5579
-12499
lines changed

.circleci/config.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
version: 2.1
33

44
executors:
5-
node12-browsers:
5+
lts-browsers:
66
docker:
7-
- image: circleci/node:12-browsers
7+
- image: circleci/node:lts-browsers
88

99
jobs:
1010
setup:
11-
executor: node12-browsers
11+
executor: lts-browsers
1212
steps:
1313
- checkout
1414
- run: mkdir -p /tmp/workspace
@@ -25,19 +25,19 @@ jobs:
2525
- conf
2626
- package.json
2727
test-node:
28-
executor: node12-browsers
28+
executor: lts-browsers
2929
steps:
3030
- attach_workspace:
3131
at: ./
3232
- run: npm run test:node
3333
test-browser:
34-
executor: node12-browsers
34+
executor: lts-browsers
3535
steps:
3636
- attach_workspace:
3737
at: ./
3838
- run: npm run test:browser
3939
build:
40-
executor: node12-browsers
40+
executor: lts-browsers
4141
steps:
4242
- attach_workspace:
4343
at: ./

conf/webpack.config.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,22 @@ module.exports = {
1111
},
1212
target: 'web',
1313
mode: 'production',
14-
devtool: 'sourcemap',
15-
node: {
16-
console: false,
17-
Buffer: true
18-
},
14+
devtool: 'source-map',
1915
plugins: [
2016
],
2117
resolve: {
2218
modules: [
2319
'node_modules',
2420
path.resolve(__dirname, '../node_modules')
25-
]
21+
],
22+
fallback: {
23+
path: require.resolve('path-browserify')
24+
}
2625
},
2726
resolveLoader: {
2827
modules: [
2928
'node_modules',
3029
path.resolve(__dirname, '../node_modules')
31-
],
32-
moduleExtensions: ['-loader']
30+
]
3331
}
3432
}

conf/webpack.tests.config.js

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ module.exports = {
1313
target: 'web',
1414
mode: 'production',
1515
devtool: 'source-map',
16-
node: {
17-
child_process: 'empty'
18-
},
1916
plugins: [
2017
new webpack.DefinePlugin({
2118
'process.env': {
@@ -37,14 +34,18 @@ module.exports = {
3734
modules: [
3835
'node_modules',
3936
path.resolve(__dirname, '../node_modules')
40-
]
37+
],
38+
fallback: {
39+
assert: require.resolve('assert/'),
40+
path: require.resolve('path-browserify'),
41+
stream: require.resolve('stream-browserify')
42+
}
4143
},
4244
resolveLoader: {
4345
modules: [
4446
'node_modules',
4547
path.resolve(__dirname, '../node_modules')
46-
],
47-
moduleExtensions: ['-loader']
48+
]
4849
},
4950
module: {
5051
rules: [
@@ -57,7 +58,11 @@ module.exports = {
5758
presets: [
5859
['@babel/preset-env', { modules: false }]
5960
],
60-
plugins: ['@babel/syntax-object-rest-spread', '@babel/transform-runtime', '@babel/plugin-transform-modules-commonjs']
61+
plugins: [
62+
'@babel/syntax-object-rest-spread',
63+
'@babel/transform-runtime',
64+
'@babel/plugin-transform-modules-commonjs'
65+
]
6166
}
6267
}
6368
},

dist/orbit-db-store.min.js

Lines changed: 2 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/**
2+
* [js-sha3]{@link https://github.com/emn178/js-sha3}
3+
*
4+
* @version 0.8.0
5+
* @author Chen, Yi-Cyuan [emn178@gmail.com]
6+
* @copyright Chen, Yi-Cyuan 2015-2018
7+
* @license MIT
8+
*/
9+
10+
//! stable.js 0.1.8, https://github.com/Two-Screen/stable
11+
12+
//! © 2018 Angry Bytes and contributors. MIT licensed.

0 commit comments

Comments
 (0)