Skip to content

Commit c05581c

Browse files
committed
Major rewrite in TypeScript (v0.3).
1 parent 3ddcb35 commit c05581c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+6780
-4499
lines changed

.flowconfig

-32
This file was deleted.

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@
55
# Project
66
/lib-cjs/
77
/lib-esm/
8+
/typings/*
9+
!/typings/index.test-d.ts

.npmignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.DS_Store
2+
3+
/tests/

.travis.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
language: node_js
3+
4+
# Node releases to test against. Should include all currently supported versions. See:
5+
# https://nodejs.org/en/about/releases
6+
node_js:
7+
- '10'
8+
- '12'
9+
- '13'
10+
- '14'

CHANGELOG.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11

22
# Changelog
33

4+
- v0.3.x
5+
- Rewrite in TypeScript.
6+
47
- v0.2.x
5-
- Upgrade to lifecycle-loader v0.1.2
8+
- Upgrade to lifecycle-loader v0.1
69

7-
- v0.1.x
10+
- v0.0.x
811
- Initial version.

.babelrc.js babel.config.cjs

+13-3
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,19 @@ const env = process.env.BABEL_ENV || 'esm';
33

44
module.exports = {
55
presets: [
6-
'@babel/flow',
76
['@babel/env', {
87
targets: {
9-
node: '6.9', // LTS (Boron)
10-
browsers: ['>0.25%', 'not dead'],
8+
node: '10.13', // Support Node v10.13 LTS (Dubnium) or higher
9+
browsers: [
10+
'last 2 Chrome versions',
11+
'last 2 Firefox versions',
12+
'last 2 Safari versions',
13+
'last 2 Edge versions',
14+
'>0.1%',
15+
'not dead',
16+
'not OperaMini all',
17+
'not IE < 11',
18+
],
1119
},
1220

1321
// Whether to transpile modules
@@ -18,6 +26,7 @@ module.exports = {
1826
'transform-regenerator',
1927
],
2028
}],
29+
'@babel/typescript',
2130
],
2231
plugins: [
2332
// Note: this may cause issues with `export * from` syntax:
@@ -31,4 +40,5 @@ module.exports = {
3140
globals: ['Error', 'String', 'Number', 'Array', 'Promise'],
3241
}],
3342
],
43+
sourceMaps: 'inline',
3444
};

0 commit comments

Comments
 (0)