Skip to content

Commit 7aeb25d

Browse files
author
Shubham Kanodia
committed
Bump minimum supported node version to 12
1 parent 052c07a commit 7aeb25d

File tree

8 files changed

+3655
-3553
lines changed

8 files changed

+3655
-3553
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
- uses: actions/setup-node@v1
1212
with:
1313
node-version: "*"
14+
cache: 'yarn'
1415
- name: Install dependencies
1516
run: yarn
1617
- name: Lint
@@ -20,7 +21,7 @@ jobs:
2021
strategy:
2122
matrix:
2223
os: [ubuntu-latest, windows-latest]
23-
node-version: [10.x, 12.x, 14.x, 15.x]
24+
node-version: [12.x, 14.x, 16.x]
2425
webpack-version: [latest, '4']
2526
include:
2627
- node: 14.x
@@ -33,6 +34,7 @@ jobs:
3334
uses: actions/setup-node@v1
3435
with:
3536
node-version: ${{ matrix.node-version }}
37+
cache: 'yarn'
3638
- name: Install dependencies
3739
run: yarn
3840
- name: Install webpack ${{ matrix.webpack-version }}
@@ -48,29 +50,4 @@ jobs:
4850
if: ${{ matrix.coverage }}
4951
with:
5052
token: ${{ secrets.CODECOV_TOKEN }}
51-
test-legacy:
52-
name: Test - ubuntu-latest - Node v8.9, Webpack 4
53-
runs-on: ubuntu-latest
54-
env:
55-
YARN_NODE_LINKER: node-modules
56-
steps:
57-
- uses: actions/checkout@v2
58-
- name: Use Node.js 14.x
59-
uses: actions/setup-node@v1
60-
with:
61-
node-version: 14.x
62-
- name: Install dependencies
63-
run: yarn
64-
- name: Install webpack 4
65-
run: yarn add -D webpack@4
66-
- name: Build babel-loader
67-
run: yarn run build
68-
env:
69-
BABEL_ENV: test
70-
- name: Use Node.js 8.9
71-
uses: actions/setup-node@v1
72-
with:
73-
node-version: '8.9'
74-
- name: Run tests for webpack version 4
75-
run: node scripts/test-legacy
7653

.yarn/releases/yarn-2.3.3.cjs

Lines changed: 0 additions & 55 deletions
This file was deleted.

.yarn/releases/yarn-3.2.0.cjs

Lines changed: 785 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
yarnPath: .yarn/releases/yarn-2.3.3.cjs
1+
yarnPath: .yarn/releases/yarn-3.2.0.cjs
2+
nodeLinker: node-modules

babel.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
["@babel/preset-env", {
44
"loose": true,
55
"targets": {
6-
"node": "6.9"
6+
"node": "12.0.0"
77
}
88
}]
99
],

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
},
1212
"dependencies": {
1313
"find-cache-dir": "^3.3.1",
14+
"lmdb": "^2.2.4",
1415
"loader-utils": "^1.4.0",
15-
"make-dir": "^3.1.0",
1616
"schema-utils": "^2.6.5"
1717
},
1818
"peerDependencies": {
@@ -36,6 +36,7 @@
3636
"eslint-plugin-prettier": "^3.0.0",
3737
"husky": "^4.3.0",
3838
"lint-staged": "^10.5.1",
39+
"node-preload": "^0.2.1",
3940
"nyc": "^15.1.0",
4041
"pnp-webpack-plugin": "^1.6.4",
4142
"prettier": "^2.1.2",

test/loader.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,8 @@ test.cb("should transpile the code snippet", t => {
5454
t.true(files.length === 1);
5555
fs.readFile(path.resolve(t.context.directory, files[0]), (err, data) => {
5656
t.is(err, null);
57-
const test = "var App = function App()";
57+
const test = "var App = /*#__PURE__*/_createClass(function App()";
5858
const subject = data.toString();
59-
6059
t.not(subject.indexOf(test), -1);
6160

6261
t.end();

0 commit comments

Comments
 (0)